/**
 * Admin Pages CSS - 从各PHP文件中提取的CSS样式
 * 包含以下页面的样式:
 * - set.php (系统设置)
 * - user.php (用户管理)
 * - file.php (文件管理)
 * - product.php (配额商品)
 * - traffic.php (流量监控)
 * - login.php (登录页面)
 * - order.php (订单管理)
 * - card.php (卡密管理)
 * - set_stor.php (存储设置)
 * - set_smtp.php (SMTP设置)
 * - update.php (系统更新)
 * - file-view.php (文件查看)
 * - password.php (密码修改)
 * - index.php (首页弹窗)
 */

/* ==================== login.php ==================== */
/* 管理员登录页面样式 */
.login-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-page body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
}

.login-page body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.login-page .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.login-page .particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float 15s infinite;
}

.login-page .particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.login-page .particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 14s; }
.login-page .particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 10s; }
.login-page .particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.login-page .particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 13s; }
.login-page .particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 11s; }
.login-page .particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 15s; }
.login-page .particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 12s; }
.login-page .particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 14s; }
.login-page .particle:nth-child(10) { left: 95%; animation-delay: 3s; animation-duration: 10s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.login-page .login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-page .login-card {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-page .login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-page .login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

.login-page .login-header .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.login-page .login-header .icon-wrapper i {
    font-size: 36px;
    color: #fff;
}

.login-page .login-header h2 {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.login-page .login-header p {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin: 10px 0 0;
    position: relative;
    z-index: 1;
}

.login-page .login-body {
    padding: 40px 35px;
}

.login-page .form-group {
    margin-bottom: 25px;
    position: relative;
}

.login-page .form-group .input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    z-index: 2;
    transition: all 0.3s ease;
}

.login-page .form-group .form-control {
    width: 100%;
    height: 55px;
    padding: 15px 20px 15px 50px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    color: #333;
}

.login-page .form-group .form-control:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.15);
}

.login-page .form-group .form-control:focus + .input-icon {
    color: #764ba2;
}

.login-page .form-group .form-control::placeholder {
    color: #aaa;
    font-weight: 400;
}

.login-page .code-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-page .code-group .form-control {
    flex: 1;
}

.login-page .code-group .code-img {
    height: 55px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #e8e8e8;
}

.login-page .code-group .code-img:hover {
    transform: scale(1.02);
}

.login-page .btn-login {
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.login-page .btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.login-page .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px rgba(102,126,234,0.5);
}

.login-page .btn-login:hover::before {
    left: 100%;
}

.login-page .btn-login:active {
    transform: translateY(0);
}

.login-page .login-footer {
    text-align: center;
    padding: 20px 35px 30px;
    border-top: 1px solid #eee;
}

.login-page .login-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-page .login-footer a:hover {
    color: #764ba2;
}

.login-page .error-msg {
    background: #fff5f5;
    border-left: 4px solid #ff4757;
    color: #ff4757;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.login-page .error-msg.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@media (max-width: 480px) {
    .login-page .login-wrapper {
        padding: 15px;
    }
    .login-page .login-header {
        padding: 30px 20px;
    }
    .login-page .login-body {
        padding: 30px 20px;
    }
    .login-page .login-header h2 {
        font-size: 22px;
    }
}

/* ==================== set.php ==================== */
/* 现代化系统设置样式 */
.settings-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.settings-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.settings-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card-header i {
    font-size: 18px;
}

.settings-card-header.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.settings-card-header.info {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.settings-card-header.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.settings-card-body {
    padding: 28px;
}

.form-group-custom {
    margin-bottom: 24px;
    position: relative;
}

.form-group-custom:last-child {
    margin-bottom: 0;
}

.control-label-custom {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.control-label-custom .label-icon {
    margin-right: 6px;
    color: #6b7280;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-control-custom:focus {
    border-color: #667eea;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control-custom:hover {
    border-color: #d1d5db;
}

select.form-control-custom {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control-custom {
    resize: vertical;
    min-height: 100px;
}

.form-control-custom::placeholder {
    color: #9ca3af;
}

.input-group-custom {
    display: flex;
}

.input-group-custom .form-control-custom {
    border-radius: 8px 0 0 8px;
    flex: 1;
}

.input-group-addon-custom {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

.form-text-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.5;
}

.form-text-help i {
    color: #10b981;
    margin-right: 4px;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -1px rgba(102, 126, 234, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 6px -1px rgba(17, 153, 142, 0.2);
}

.btn-submit-success:hover {
    box-shadow: 0 8px 12px -1px rgba(17, 153, 142, 0.3);
}

.btn-block-custom {
    display: block;
    width: 100%;
}

.panel-footer-custom {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 20px 24px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.8;
}

.panel-footer-custom i {
    color: #3b82f6;
    margin-right: 6px;
}

.panel-footer-custom a {
    color: #667eea;
    text-decoration: none;
}

.panel-footer-custom a:hover {
    text-decoration: underline;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-item span {
    font-size: 14px;
    color: #374151;
}

/* API文档样式 */
.api-tabs {
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.api-tabs > li > a {
    color: #6b7280;
    font-weight: 500;
    padding: 12px 20px;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.api-tabs > li.active > a {
    color: #667eea;
    border-bottom-color: #667eea;
    background: none;
}

.api-tabs > li > a:hover {
    color: #667eea;
    background: #f3f4f6;
}

.api-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.api-info-card h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
}

.api-info-card p {
    margin: 6px 0;
    font-size: 14px;
    opacity: 0.9;
}

.api-info-card code {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.well-custom {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.well-custom h5, .well-custom h6 {
    margin-top: 0;
    color: #374151;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-custom th {
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.table-custom td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.table-custom tr:hover td {
    background: #f9fafb;
}

.alert-custom {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-custom.alert-success-custom {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-custom.alert-info-custom {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-custom.alert-warning-custom {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.alert-custom i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-custom ul {
    margin: 0;
    padding-left: 20px;
}

.alert-custom li {
    margin: 4px 0;
}

/* 按钮组 */
.btn-group-custom {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-custom {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-info-custom {
    background: #3b82f6;
    color: #fff;
}

.btn-info-custom:hover {
    background: #2563eb;
}

.btn-warning-custom {
    background: #f59e0b;
    color: #fff;
}

.btn-warning-custom:hover {
    background: #d97706;
}

.status-info-box {
    margin-top: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* 隐藏/显示区域 */
.toggle-section {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
    border: 1px solid #e5e7eb;
}

/* 表格响应式 */
.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive-custom::-webkit-scrollbar {
    height: 6px;
}

.table-responsive-custom::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-responsive-custom::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* ==================== file.php / user.php / order.php / card.php / product.php / traffic.php ==================== */
/* 公共管理页面样式 */

/* 主容器 */
.file-manager, .user-manager, .order-manager, .card-manager, .product-manager, .traffic-monitor {
    padding: 24px;
    max-width: 100%;
}

/* 页面标题区 */
.page-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
}

.page-title-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

/* 用户管理图标色 */
.user-manager .page-title-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 订单管理图标色 */
.order-manager .page-title-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 卡密管理图标色 */
.card-manager .page-title-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* 商品管理图标色 */
.product-manager .page-title-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

/* 流量监控图标色 */
.traffic-monitor .page-title-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* 统计卡片行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-item {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon-box.blue {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #4f46e5;
}

.stat-icon-box.green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
}

.stat-icon-box.orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #ea580c;
}

.stat-icon-box.red {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
}

.stat-icon-box.purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #7c3aed;
}

.stat-info h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.stat-info p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #64748b;
}

/* 搜索筛选区 */
.filter-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.filter-form {
    display: grid;
    grid-template-columns: 140px 1fr 110px 140px 140px auto;
    gap: 12px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-control {
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    background: #fff;
    transition: all 0.2s;
    width: 100%;
}

.filter-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 不同页面的焦点色 */
.order-manager .filter-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.card-manager .filter-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.product-manager .filter-control:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.traffic-monitor .filter-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.btn-filter {
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.btn-filter-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-filter-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 各页面主色调按钮 */
.order-manager .btn-filter-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.order-manager .btn-filter-primary:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.card-manager .btn-filter-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-manager .btn-filter-primary:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.card-manager .btn-filter-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.card-manager .btn-filter-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.card-manager .btn-filter-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.card-manager .btn-filter-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.product-manager .btn-filter-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

.product-manager .btn-filter-primary:hover {
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.product-manager .btn-filter-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.product-manager .btn-filter-success:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.traffic-monitor .btn-filter-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.traffic-monitor .btn-filter-primary:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-filter-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-filter-secondary:hover {
    background: #e2e8f0;
}

/* 操作栏 */
.toolbar-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.batch-actions {
    display: flex;
    gap: 8px;
}

.btn-batch {
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.btn-batch:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-batch.delete:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-batch.ban:hover {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #ea580c;
}

.btn-batch.unban:hover {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #16a34a;
}

/* 卡密生成按钮 */
.card-manager .btn-batch.generate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
}

.card-manager .btn-batch.generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* 商品添加按钮 */
.product-manager .btn-batch.add {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: #fff;
    border: none;
}

.product-manager .btn-batch.add:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.selected-count {
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    padding: 8px 14px;
    border-radius: 8px;
}

.selected-count span {
    font-weight: 600;
    color: #667eea;
}

/* 表格区域 */
.table-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1100px;
}

.data-table thead th {
    background: #f8fafc;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
}

.data-table thead th:first-child {
    width: 40px;
    text-align: center;
}

.data-table thead th.checkbox-col {
    width: 40px;
    padding-left: 20px;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table tbody td.checkbox-col {
    padding-left: 20px;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 自定义复选框 */
.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.custom-checkbox:checked {
    background: #667eea;
    border-color: #667eea;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* ID列 */
.col-id {
    font-weight: 600;
    color: #667eea;
    font-size: 13px;
    width: 60px;
}

/* 用户列 */
.col-user a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.col-user a:hover {
    background: #dbeafe;
}

.col-user .guest-badge {
    color: #94a3b8;
    font-size: 13px;
}

/* 用户头像 */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
}

.user-id {
    font-size: 12px;
    color: #94a3b8;
}

/* 文件名列 */
.col-name {
    max-width: 300px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    flex-shrink: 0;
}

.file-icon.image { background: #fef3c7; color: #d97706; }
.file-icon.video { background: #fee2e2; color: #dc2626; }
.file-icon.audio { background: #dbeafe; color: #2563eb; }
.file-icon.document { background: #d1fae5; color: #059669; }
.file-icon.archive { background: #e0e7ff; color: #4f46e5; }
.file-icon.code { background: #f3e8ff; color: #7c3aed; }

.file-details {
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.file-name a {
    color: inherit;
    text-decoration: none;
}

.file-name a:hover {
    color: #667eea;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 12px;
    color: #94a3b8;
}

.file-preview-btn {
    color: #667eea;
    cursor: pointer;
    transition: color 0.2s;
}

.file-preview-btn:hover {
    color: #764ba2;
}

/* 大小列 */
.col-size {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

/* 格式列 */
.col-type {
    width: 80px;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.type-badge.storage { background: #dbeafe; color: #1e40af; }
.type-badge.traffic { background: #d1fae5; color: #065f46; }
.type-badge.both { background: #fef3c7; color: #92400e; }
.type-badge.combo { background: #f3e8ff; color: #7c3aed; }
.type-badge.vip { background: #fef9c3; color: #a16207; }
.type-badge.normal { background: #f3f4f6; color: #6b7280; }

/* 日期列 */
.col-date {
    font-size: 13px;
    color: #64748b;
    width: 160px;
}

.col-date .primary {
    color: #334155;
}

.col-date .secondary {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* IP列 */
.col-ip {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    width: 130px;
}

.col-ip a {
    color: #475569;
    text-decoration: none;
}

.col-ip a:hover {
    color: #667eea;
}

.download-stat {
    font-size: 12px;
    color: #667eea;
    margin-top: 2px;
    font-weight: 500;
}

/* 状态列 */
.col-status {
    width: 90px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.normal, .status-badge.active, .status-badge.paid, .status-badge.unused {
    background: #dcfce7;
    color: #166534;
}

.status-badge.normal::before, .status-badge.active::before, .status-badge.paid::before, .status-badge.unused::before {
    background: #22c55e;
}

.status-badge.banned, .status-badge.inactive, .status-badge.disabled {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.banned::before, .status-badge.inactive::before, .status-badge.disabled::before {
    background: #ef4444;
}

.status-badge.pending, .status-badge.unpaid {
    background: #ffedd5;
    color: #9a3412;
}

.status-badge.pending::before, .status-badge.unpaid::before {
    background: #f97316;
}

.status-badge.used {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.used::before {
    background: #3b82f6;
}

.status-badge:hover {
    transform: scale(1.05);
}

/* 卡密样式 */
.card-code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    color: #475569;
}

/* 配额条 */
.quota-bar {
    width: 100px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.quota-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.quota-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* 交易号 */
.trade-no {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    color: #475569;
}

.order-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.money {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 15px;
    font-weight: 600;
    color: #dc2626;
}

/* 支付类型 */
.pay-type-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.pay-type-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pay-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.pay-type-icon.alipay { background: #eff6ff; color: #1677ff; }
.pay-type-icon.wxpay { background: #f0fdf4; color: #07c160; }
.pay-type-icon.qqpay { background: #f0f9ff; color: #12b7f5; }

.pay-type-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.pay-type-info p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.pay-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.pay-type-badge.alipay { background: #eff6ff; color: #1677ff; }
.pay-type-badge.wxpay { background: #f0fdf4; color: #07c160; }
.pay-type-badge.qqpay { background: #f0f9ff; color: #12b7f5; }

/* 商品信息 */
.product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.product-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); color: #fff; }
.product-icon.green { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); color: #fff; }

.product-details h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.product-details p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #64748b;
}

.size-text {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

.price-text {
    font-size: 16px;
    font-weight: 700;
    color: #0f766e;
}

.days-text {
    font-size: 13px;
    color: #64748b;
}

/* 标签 */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

.badge-tag.hot { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); color: #fff; }
.badge-tag.best { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); color: #fff; }

/* 流量监控特定样式 */
.chart-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chart-card h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #1e293b;
}

.chart-container {
    height: 250px;
}

.file-icon-sm {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
}

.file-name-sm {
    font-weight: 500;
    color: #1e293b;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size-sm {
    font-size: 12px;
    color: #94a3b8;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 6px;
    font-size: 12px;
}

.user-badge.guest {
    background: #f1f5f9;
    color: #64748b;
}

.access-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.access-type.download { background: #dbeafe; color: #1e40af; }
.access-type.preview { background: #d1fae5; color: #065f46; }

.traffic-size {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

/* 操作列 */
.col-actions {
    width: 140px;
}

.action-group {
    display: flex;
    gap: 6px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.btn-action:hover {
    transform: translateY(-2px);
}

.btn-action.edit {
    background: #eff6ff;
    color: #2563eb;
}

.btn-action.edit:hover {
    background: #2563eb;
    color: #fff;
}

.btn-action.view {
    background: #f0fdf4;
    color: #16a34a;
}

.btn-action.view:hover {
    background: #16a34a;
    color: #fff;
}

.btn-action.delete {
    background: #fef2f2;
    color: #dc2626;
}

.btn-action.delete:hover {
    background: #dc2626;
    color: #fff;
}

.btn-action.disable {
    background: #fef3c7;
    color: #92400e;
}

.btn-action.disable:hover {
    background: #f59e0b;
    color: #fff;
}

.btn-action.enable {
    background: #dcfce7;
    color: #166534;
}

.btn-action.enable:hover {
    background: #22c55e;
    color: #fff;
}

/* 分页 */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.pagination-info {
    font-size: 13px;
    color: #64748b;
}

.pagination {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.pagination li.active span {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.order-manager .pagination li.active span {
    background: #10b981;
    border-color: #10b981;
}

.card-manager .pagination li.active span {
    background: #f59e0b;
    border-color: #f59e0b;
}

.pagination li a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pagination li.disabled span {
    color: #cbd5e1;
    cursor: not-allowed;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 32px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1e293b;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* 加载动画 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 模态框公共样式 ==================== */

/* 文件编辑模态框 */
.modal-file-edit .modal-content,
.modal-user-edit .modal-content,
.modal-order .modal-content,
.modal-card .modal-content,
.modal-product .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.modal-file-edit .modal-header,
.modal-user-edit .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 24px;
    border: none;
    border-radius: 20px 20px 0 0;
}

.modal-order .modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 24px;
    border: none;
    border-radius: 20px 20px 0 0;
}

.modal-card .modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 24px;
    border: none;
    border-radius: 20px 20px 0 0;
}

.modal-product .modal-header {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    color: #fff;
    padding: 24px;
    border: none;
    border-radius: 20px 20px 0 0;
}

.modal-file-edit .modal-title,
.modal-user-edit .modal-title,
.modal-order .modal-title,
.modal-card .modal-title,
.modal-product .modal-title {
    font-size: 18px;
    font-weight: 600;
}

.modal-file-edit .close,
.modal-user-edit .close,
.modal-order .close,
.modal-card .close,
.modal-product .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
    font-size: 24px;
}

.modal-file-edit .close:hover,
.modal-user-edit .close:hover,
.modal-order .close:hover,
.modal-card .close:hover,
.modal-product .close:hover {
    opacity: 1;
}

.modal-file-edit .modal-body,
.modal-user-edit .modal-body,
.modal-order .modal-body,
.modal-card .modal-body,
.modal-product .modal-body {
    padding: 28px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input:disabled {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-select {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-card .form-input:focus,
.modal-card .form-select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.modal-product .form-input:focus,
.modal-product .form-select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.input-group {
    display: flex;
}

.input-group .form-input {
    border-radius: 10px 0 0 10px;
    flex: 1;
}

.input-group .form-select {
    border-radius: 0 10px 10px 0;
    width: 100px;
    border-left: none;
}

.input-group-addon {
    height: 46px;
    padding: 0 16px;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    color: #64748b;
    font-size: 14px;
}

.modal-footer-custom {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
    border-radius: 0 0 20px 20px;
}

.btn-modal {
    height: 44px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-modal-secondary:hover {
    background: #e5e7eb;
}

.btn-modal-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-modal-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modal-card .btn-modal-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modal-card .btn-modal-primary:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.modal-product .btn-modal-primary {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

.modal-product .btn-modal-primary:hover {
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-group.modal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.modal-card .checkbox-item input[type="checkbox"] {
    accent-color: #f59e0b;
}

.modal-product .checkbox-item input[type="checkbox"] {
    accent-color: #14b8a6;
}

.checkbox-item label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

/* ==================== set_stor.php ==================== */
/* 存储设置页面样式 */
.storage-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.storage-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.storage-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.storage-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}

.storage-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.storage-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.storage-card-header h3 i {
    font-size: 22px;
}

.storage-card-body {
    padding: 28px;
}

.storage-form-group {
    margin-bottom: 24px;
}

.storage-form-group:last-child {
    margin-bottom: 0;
}

.storage-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
    font-size: 14px;
}

.storage-label i {
    color: #667eea;
    width: 18px;
    text-align: center;
}

.storage-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #fafafa;
    color: #374151;
}

.storage-input:focus {
    border-color: #667eea;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.storage-input:hover {
    border-color: #d1d5db;
}

select.storage-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.storage-help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.storage-help-text i {
    color: #10b981;
    font-size: 14px;
    margin-top: 1px;
}

.storage-help-text.warning {
    color: #f59e0b;
}

.storage-help-text.warning i {
    color: #f59e0b;
}

.storage-input-group {
    display: flex;
    gap: 0;
}

.storage-input-group .storage-input {
    border-radius: 10px 0 0 10px;
    flex: 1;
}

.storage-input-group-addon {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid #e5e7eb;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.storage-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.storage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.storage-btn-block {
    display: flex;
    width: 100%;
}

.storage-card-footer {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
    padding: 24px 28px;
    font-size: 13px;
    color: #4b5563;
    line-height: 2;
}

.storage-card-footer p {
    margin: 0 0 12px 0;
}

.storage-card-footer p:last-child {
    margin-bottom: 0;
}

.storage-card-footer strong {
    color: #374151;
}

/* 存储类型选择网格 */
.storage-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.storage-type-item {
    position: relative;
}

.storage-type-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.storage-type-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    gap: 8px;
}

.storage-type-item label:hover {
    border-color: #667eea;
    background: #fff;
}

.storage-type-item input[type="radio"]:checked + label {
    border-color: #667eea;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.storage-type-item label i {
    font-size: 28px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.storage-type-item input[type="radio"]:checked + label i {
    color: #667eea;
}

.storage-type-item label span {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* 云存储配置区域 */
.cloud-config-section {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.4s ease-out;
}

/* 存储提供商手风琴 */
.storage-accordion {
    margin-top: 24px;
}

.storage-provider-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.storage-provider-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.storage-provider-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    gap: 12px;
}

.storage-provider-header:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.storage-provider-header.active {
    border-bottom-color: #e5e7eb;
}

.storage-provider-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.storage-provider-title > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storage-provider-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.storage-provider-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.storage-provider-icon.local { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.storage-provider-icon.oss { background: linear-gradient(135deg, #ff6a00 0%, #ff4500 100%); }
.storage-provider-icon.qcloud { background: linear-gradient(135deg, #006eff 0%, #0052cc 100%); }
.storage-provider-icon.obs { background: linear-gradient(135deg, #ff4d4f 0%, #ff1a1a 100%); }
.storage-provider-icon.upyun { background: linear-gradient(135deg, #00a8e6 0%, #0086b3 100%); }
.storage-provider-icon.qiniu { background: linear-gradient(135deg, #00a6e6 0%, #0077c2 100%); }
.storage-provider-icon.rainyun { background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%); }
.storage-provider-icon.sae { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.storage-provider-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e5e7eb;
    color: #6b7280;
}

.storage-provider-badge.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.storage-provider-body {
    padding: 24px;
    display: none;
}

.storage-provider-body.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.storage-provider-toggle {
    transition: transform 0.3s ease;
    color: #6b7280;
}

.storage-provider-toggle.active {
    transform: rotate(180deg);
}

/* 链接按钮 */
.storage-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
}

.storage-link-btn:hover {
    background: #f3f4f6;
    text-decoration: none;
    color: #374151;
}

.storage-link-btn i {
    font-size: 11px;
}

/* 警告提示 */
.storage-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    color: #92400e;
}

.storage-alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.storage-alert strong {
    display: block;
    margin-bottom: 4px;
}

/* ==================== set_smtp.php ==================== */
/* SMTP设置页面样式 */
.smtp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.smtp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.smtp-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.smtp-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.smtp-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.smtp-card-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.smtp-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.smtp-card-header h3 i {
    font-size: 24px;
}

.smtp-card-body {
    padding: 32px;
}

.smtp-form-group {
    margin-bottom: 24px;
    position: relative;
}

.smtp-form-group:last-of-type {
    margin-bottom: 0;
}

.smtp-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
    font-size: 14px;
}

.smtp-label i {
    color: #667eea;
    width: 18px;
    text-align: center;
}

.smtp-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.25s ease;
    background: #fafafa;
    color: #374151;
}

.smtp-input:focus {
    border-color: #667eea;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.smtp-input:hover {
    border-color: #d1d5db;
}

select.smtp-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

textarea.smtp-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.smtp-input::placeholder {
    color: #9ca3af;
}

.smtp-help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.smtp-help-text i {
    color: #10b981;
    font-size: 14px;
    margin-top: 1px;
}

/* ==================== update.php ==================== */
/* 系统更新页面样式 */
.update-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.update-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.update-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.update-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 28px 32px;
    position: relative;
    overflow: hidden;
}

.update-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.update-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.update-card-header h3 i {
    font-size: 24px;
}

.update-card-body {
    padding: 32px;
}

/* 版本信息网格 */
.update-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.update-info-item {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.update-info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-info-item.current {
    border-left: 4px solid #6b7280;
}

.update-info-item.latest {
    border-left: 4px solid #10b981;
}

.update-info-item.has-update {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.update-info-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.update-info-value {
    font-size: 24px;
    font-weight: 700;
    color: #374151;
}

.update-info-item.has-update .update-info-value {
    color: #f59e0b;
}

.update-info-item.latest .update-info-value {
    color: #10b981;
}

/* 警告和提示框 */
.update-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.update-alert i {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.update-alert strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.update-alert p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.update-alert-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.update-alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    color: #92400e;
}

.update-alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.update-alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* 按钮样式 */
.update-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.update-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.update-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
    color: #fff;
    text-decoration: none;
}

.update-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.update-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    color: #fff;
    text-decoration: none;
}

.update-btn-default {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border: 1px solid #d1d5db;
}

.update-btn-default:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #374151;
    text-decoration: none;
}

/* 更新日志 */
.update-changelog {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.update-changelog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.update-changelog-header i {
    color: #667eea;
}

.update-changelog-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
    max-height: 400px;
    overflow-y: auto;
}

.update-changelog-content::-webkit-scrollbar {
    width: 8px;
}

.update-changelog-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.update-changelog-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

/* 更新步骤 */
.update-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.update-step i {
    font-size: 18px;
    flex-shrink: 0;
}

.update-step-success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.update-step-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.update-step-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.update-step-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* 操作按钮组 */
.update-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* 状态图标 */
.status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.status-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.status-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.status-icon.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* ==================== index.php 弹窗 ==================== */
/* 首页弹窗通知样式 */
.popup-notice-modal {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.popup-notice-header {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-notice-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.popup-notice-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.popup-notice-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.popup-notice-close:hover {
    color: #fff;
}

.popup-notice-body {
    padding: 25px;
}

.popup-notice-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    max-height: 300px;
    overflow-y: auto;
}

.popup-notice-footer {
    padding: 15px 25px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.popup-notice-btn-dismiss {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-notice-btn-dismiss:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.popup-notice-btn-confirm {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.popup-notice-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,118,110,0.3);
}

/* ==================== 响应式适配 ==================== */

/* 大屏幕 */
@media (max-width: 1400px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-form {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .filter-group:nth-child(4),
    .filter-group:nth-child(5),
    .filter-actions {
        grid-column: span 1;
    }
}

/* 平板 */
@media (max-width: 991px) {
    .file-manager, .user-manager, .order-manager, .card-manager, .product-manager, .traffic-monitor {
        padding: 16px;
    }
    
    .page-title h2 {
        font-size: 20px;
    }
    
    .page-title-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-icon-box {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 20px;
    }
    
    .filter-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
    
    .data-table {
        min-width: 1000px;
    }
    
    .chart-row {
        grid-template-columns: 1fr;
    }
}

/* 手机横屏 */
@media (max-width: 767px) {
    .file-manager, .user-manager, .order-manager, .card-manager, .product-manager, .traffic-monitor {
        padding: 12px;
    }
    
    .page-header-section {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    
    .page-actions {
        width: 100%;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stat-item {
        padding: 14px;
        gap: 12px;
    }
    
    .stat-icon-box {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .stat-info h3 {
        font-size: 18px;
    }
    
    .stat-info p {
        font-size: 11px;
    }
    
    .filter-section {
        padding: 16px;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-group label {
        font-size: 12px;
    }
    
    .filter-control {
        height: 44px;
    }
    
    .filter-actions {
        grid-column: span 1;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-filter {
        width: 100%;
        height: 44px;
        justify-content: center;
    }
    
    .toolbar-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-batch {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .selected-count {
        text-align: center;
    }
    
    .table-section {
        border-radius: 12px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .modal-file-edit .modal-dialog,
    .modal-user-edit .modal-dialog,
    .modal-order .modal-dialog,
    .modal-card .modal-dialog,
    .modal-product .modal-dialog {
        margin: 10px;
    }
    
    .modal-file-edit .modal-content,
    .modal-user-edit .modal-content,
    .modal-order .modal-content,
    .modal-card .modal-content,
    .modal-product .modal-content {
        border-radius: 16px;
    }
    
    .modal-file-edit .modal-header,
    .modal-user-edit .modal-header,
    .modal-order .modal-header,
    .modal-card .modal-header,
    .modal-product .modal-header {
        padding: 20px;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-file-edit .modal-body,
    .modal-user-edit .modal-body,
    .modal-order .modal-body,
    .modal-card .modal-body,
    .modal-product .modal-body {
        padding: 20px;
    }
    
    .modal-footer-custom {
        padding: 16px 20px;
        flex-direction: column-reverse;
        border-radius: 0 0 16px 16px;
    }
    
    .btn-modal {
        width: 100%;
        justify-content: center;
    }
    
    .settings-container,
    .storage-container,
    .smtp-container,
    .update-container {
        padding: 12px;
    }
    
    .settings-card-body,
    .storage-card-body,
    .smtp-card-body,
    .update-card-body {
        padding: 20px;
    }
    
    .settings-card-header,
    .storage-card-header,
    .smtp-card-header,
    .update-card-header {
        padding: 20px 24px;
    }
    
    .storage-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .storage-provider-header {
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    
    .storage-provider-title {
        gap: 10px;
        font-size: 14px;
    }
    
    .storage-provider-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .storage-provider-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .storage-provider-actions {
        gap: 8px;
    }
    
    .storage-link-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .storage-provider-body {
        padding: 20px 16px;
    }
    
    .update-info-grid {
        grid-template-columns: 1fr;
    }
    
    .update-actions {
        flex-direction: column;
    }
    
    .update-btn {
        width: 100%;
    }
}

/* 手机竖屏 */
@media (max-width: 480px) {
    .file-manager, .user-manager, .order-manager, .card-manager, .product-manager, .traffic-monitor {
        padding: 10px;
    }
    
    .page-title h2 {
        font-size: 18px;
    }
    
    .page-title-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item {
        padding: 14px 16px;
    }
    
    .filter-section {
        padding: 14px;
        border-radius: 12px;
    }
    
    .batch-actions {
        width: 100%;
    }
    
    .btn-batch {
        flex: 1;
        padding: 0 12px;
        font-size: 12px;
    }
    
    .table-section {
        border-radius: 10px;
    }
    
    .data-table {
        min-width: 900px;
    }
    
    .data-table thead th {
        padding: 12px;
        font-size: 11px;
    }
    
    .data-table tbody td {
        padding: 12px;
        font-size: 13px;
    }
    
    .file-info {
        gap: 8px;
    }
    
    .file-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .file-name {
        max-width: 180px;
    }
    
    .action-group {
        gap: 4px;
    }
    
    .btn-action {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .status-badge {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .type-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .popup-notice-modal {
        margin: 15px;
    }
    
    .popup-notice-header {
        padding: 15px 20px;
    }
    
    .popup-notice-body {
        padding: 20px;
    }
    
    .popup-notice-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .popup-notice-btn-dismiss,
    .popup-notice-btn-confirm {
        width: 100%;
    }
    
    .storage-provider-header {
        padding: 12px 14px;
    }
    
    .storage-provider-title {
        gap: 8px;
        font-size: 13px;
    }
    
    .storage-provider-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .storage-provider-badge {
        display: none;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-card,
.storage-card,
.smtp-card,
.update-card {
    animation: fadeIn 0.4s ease-out;
}
