/**
 * 新云宝塔主机系统 - 二次元公共样式
 * 统一二次元风格CSS
 */

/* ========== 基础变量 ========== */
:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ff8fab;
    --bg-gradient-start: #fff0f3;
    --bg-gradient-mid: #ffe4e9;
    --bg-gradient-end: #fff5f7;
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(255, 107, 157, 0.15);
    --text-primary: #5a4a5a;
    --text-secondary: #8b7a8b;
}

/* ========== 页面基础 ========== */
body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========== 容器布局 ========== */
.container-fluid {
    padding: 20px;
}

/* ========== 卡片统一样式（覆盖Bootstrap） ========== */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 2px solid var(--card-border);
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: cardFadeIn 0.5s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.2);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    padding: 15px 20px;
    border: none;
}

.card-header,
.card-header * {
    color: white !important;
}

.card-header h4,
.card-header h5,
.card-header h6,
.card-header .card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
}

.card-header .card-actions {
    float: right;
    list-style: none;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* ========== 按钮样式（覆盖Bootstrap） ========== */
.btn {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary,
.btn-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border: none !important;
}

.btn-primary:hover,
.btn-info:hover {
    background: linear-gradient(135deg, #ff477e, #ff6b9d) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #34ce57) !important;
    border: none !important;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
    border: none !important;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ffca28) !important;
    border: none !important;
    color: #333 !important;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #868e96) !important;
    border: none !important;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

/* ========== 背景色（覆盖Bootstrap） ========== */
.bg-primary,
.bg-info {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.bg-purple {
    background: linear-gradient(135deg, #a855f7, #c084fc) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745, #34ce57) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107, #ffca28) !important;
    color: #333 !important;
}

.bg-cyan {
    background: linear-gradient(135deg, #17a2b8, #20c997) !important;
}

/* ========== 表格样式（覆盖Bootstrap） ========== */
.table {
    margin-bottom: 0;
}

.table-bordered {
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.table-bordered td,
.table-bordered th {
    border-color: rgba(255, 107, 157, 0.1);
    padding: 12px 15px;
    vertical-align: middle;
}

.table thead th {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 143, 171, 0.05));
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
    color: #ff6b9d;
    font-weight: 700;
}

.table tbody tr:hover {
    background: rgba(255, 107, 157, 0.03);
}

/* ========== 标签页样式（覆盖Bootstrap） ========== */
.nav-tabs {
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 12px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    border-color: rgba(255, 107, 157, 0.3);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

/* ========== 进度条（覆盖Bootstrap） ========== */
.progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 107, 157, 0.1);
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* ========== 徽章（覆盖Bootstrap） ========== */
.badge {
    border-radius: 10px;
    padding: 5px 10px;
}

.badge-success {
    background: linear-gradient(135deg, #28a745, #34ce57);
}

.badge-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.badge-warning {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    color: #333;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* ========== 弹窗样式（覆盖Bootstrap） ========== */
.modal-content {
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 157, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 18px 18px 0 0;
    border: none;
}

.modal-title {
    color: white;
    font-weight: 700;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-footer {
    border-top: 1px solid rgba(255, 107, 157, 0.1);
}

/* ========== 表单样式（覆盖Bootstrap） ========== */
.form-control {
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

/* ========== 下拉菜单（覆盖Bootstrap） ========== */
.dropdown-menu {
    border-radius: 16px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
}

.dropdown-item {
    border-radius: 8px;
    margin: 2px 5px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 107, 157, 0.1);
    color: var(--primary-color);
}

/* ========== 分页（覆盖Bootstrap） ========== */
.pagination .page-link {
    border-radius: 10px;
    margin: 0 3px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: var(--primary-color);
}

/* ========== 提示框（覆盖Bootstrap） ========== */
.alert {
    border-radius: 16px;
    border: none;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 107, 157, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff477e, #ff6b9d);
}

/* ========== 基础动画 ========== */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========== 卡片容器 ========== */
.anime-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    animation: cardFadeIn 0.5s ease;
}

.anime-card-header {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab) !important;
    padding: 20px 25px;
    border: none !important;
}

.anime-card-header .card-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.anime-card-body {
    padding: 25px;
}

/* ========== 表单样式 ========== */
.anime-form-group {
    margin-bottom: 25px;
}

.anime-form-group label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.anime-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.anime-form-control:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.anime-form-control::placeholder {
    color: #aaa;
}

.anime-form-group small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 0.9rem;
}

/* ========== 输入组 ========== */
.anime-input-group {
    display: flex;
    gap: 10px;
}

.anime-input-group .anime-form-control {
    flex: 1;
}

/* ========== 按钮样式 ========== */
.anime-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.anime-btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.anime-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.anime-btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.anime-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.anime-btn-secondary {
    padding: 12px 20px;
    background: linear-gradient(135deg, #6c757d, #868e96);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.anime-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.anime-btn-outline {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 107, 157, 0.3);
    color: #ff6b9d;
}

.anime-btn-outline:hover {
    background: rgba(255, 107, 157, 0.1);
}

.anime-submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.anime-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
}

/* ========== 提示框 ========== */
.anime-notice {
    background: linear-gradient(135deg, rgba(255, 218, 185, 0.3), rgba(255, 255, 255, 0.8));
    border: 2px dashed #ff6b9d;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.anime-notice strong {
    color: #ff6b9d;
    font-size: 1rem;
    display: block;
    margin-bottom: 10px;
}

.anime-notice p {
    margin: 0;
    color: #555;
    line-height: 1.8;
}

.anime-notice-box {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.5), rgba(255, 234, 167, 0.3));
    border: 2px dashed #ffc107;
    border-radius: 16px;
    color: #856404;
    line-height: 1.8;
}

.anime-notice-box::before {
    content: '💡 ';
    font-size: 1.2rem;
}

/* ========== 工具栏 ========== */
.anime-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.anime-search-group {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 400px;
}

.anime-search-input {
    padding: 10px 15px;
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.anime-search-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* ========== 表格样式 ========== */
.anime-table-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.anime-table-wrapper .table {
    margin-bottom: 0;
}

.anime-table-wrapper .table thead th {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 143, 171, 0.05));
    color: #ff6b9d;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
    padding: 15px;
}

.anime-table-wrapper .table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 107, 157, 0.05);
}

.anime-table-wrapper .table tbody tr:hover {
    background: rgba(255, 107, 157, 0.03);
}

/* ========== 弹窗样式 ========== */
.anime-modal .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.25);
}

.anime-modal .modal-header {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border: none;
    padding: 20px 25px;
}

.anime-modal .modal-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.anime-modal .modal-header .close {
    color: white;
    opacity: 0.8;
}

.anime-modal .modal-body {
    padding: 25px;
}

.anime-modal .modal-footer {
    border: none;
    padding: 0 25px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========== 开关样式 ========== */
.anime-switch-group {
    margin-bottom: 25px;
}

.anime-switch-group label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.anime-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab) !important;
    border-color: #ff6b9d !important;
}

/* ========== 文件上传 ========== */
.anime-file-upload {
    margin-bottom: 25px;
}

.anime-file-upload label {
    display: block;
    color: #555;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
}

.anime-custom-file-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px dashed rgba(255, 107, 157, 0.3);
    border-radius: 14px;
    background: rgba(255, 245, 250, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.anime-custom-file-input:hover {
    border-color: #ff6b9d;
    background: rgba(255, 107, 157, 0.05);
}

/* ========== 区块标题 ========== */
.anime-section-title {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 143, 171, 0.05));
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #ff6b9d;
}

.anime-section-title h6, .anime-section-title h4 {
    margin: 0;
    color: #ff6b9d;
    font-weight: 700;
}

/* ========== 下拉按钮 ========== */
.anime-dropdown-btn {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anime-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* ========== 分割线 ========== */
.anime-hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.3), transparent);
    margin: 20px 0;
}

/* ========== 徽章样式 ========== */
.anime-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.anime-badge-success {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.anime-badge-danger {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.anime-badge-warning {
    background: linear-gradient(135deg, #ffc107, #ffdb4d);
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* ========== 步骤列表 ========== */
.anime-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.anime-steps-list li {
    position: relative;
    padding: 15px 15px 15px 55px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    border-left: 4px solid #ff6b9d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
}

.anime-steps-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.15);
    background: rgba(255, 255, 255, 1);
}

.anime-steps-list li::before {
    content: attr(data-step);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.anime-steps-list li.anime-step-warning {
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.9), rgba(255, 234, 167, 0.8));
    border-left: 4px solid #ffc107;
    color: #856404;
}

.anime-steps-list li.anime-step-warning::before {
    background: linear-gradient(135deg, #ffc107, #ffdb4d);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

/* ========== 下载框 ========== */
.anime-download-box {
    margin-top: 25px;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 143, 171, 0.05));
    border-radius: 16px;
    border: 2px dashed rgba(255, 107, 157, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 0.5s ease 0.6s forwards;
    opacity: 0;
}

.anime-download-link {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    color: white !important;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.anime-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    text-decoration: none !important;
}

/* ========== 版本卡片 ========== */
.anime-version-card {
    border-radius: 20px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.anime-version-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.anime-version-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.anime-version-latest {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .anime-search-group {
        min-width: 100%;
    }
    
    .anime-toolbar {
        flex-direction: column;
    }
    
    .anime-card-body {
        padding: 20px;
    }
}
