/**
 * 零感AI - 管理员后台样式
 */

/* 全局样式调整 */
:root {
    /* 更新现代化配色方案 */
    --admin-primary: #4a6baf;
    --admin-secondary: #5d7ece;
    --admin-accent: #6d5dc6;
    --admin-accent-light: #8677d9;
    --admin-success: #2ecc71;
    --admin-warning: #f39c12;
    --admin-danger: #e74c3c;
    --admin-light: #f8fafc;
    --admin-dark: #2c3e50;
    --admin-grey: #94a3b8;
    --admin-border: #e2e8f0;
    --admin-gradient: linear-gradient(135deg, #4a6baf 0%, #6d5dc6 100%);
    --admin-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    background-color: #f1f5f9;
    color: #334155;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 顶部导航栏 */
.header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-nav {
    display: flex;
    gap: 12px;
    padding: 0 10px;
}

.admin-nav .btn {
    background-color: #f2f3f5;
    color: #5a5a5a;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.admin-nav .btn:hover {
    background-color: #e4e6eb;
    color: #222;
}

.admin-nav .btn.active {
    background: var(--admin-gradient);
    color: #fff;
    border-color: var(--admin-accent);
    box-shadow: 0 2px 8px rgba(109, 93, 198, 0.10);
}

.admin-info {
    display: flex;
    align-items: center;
    color: #445366;
    margin-right: 15px;
    font-size: 14px;
    background-color: rgba(74, 107, 175, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.admin-info i {
    margin-right: 8px;
    color: var(--admin-accent);
    font-size: 16px;
}

.btn-logout {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 6px;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background-color: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}

/* 主内容区域 */
.admin-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

/* 管理卡片 */
.admin-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--admin-shadow);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--admin-border);
    transition: box-shadow 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.admin-card.full-width {
    width: 100%;
}

.section-title {
    font-size: 1.25rem;
    color: var(--admin-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    font-weight: 600;
    position: relative;
}

.section-title i {
    margin-right: 12px;
    color: var(--admin-accent);
    font-size: 1.1em;
}

/* 添加标题装饰 */
.section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--admin-gradient);
    border-radius: 3px;
}

/* 管理面板部分 */
.admin-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-section.active {
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--admin-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: var(--admin-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(109, 93, 198, 0.15);
}

/* 按钮样式 */
.btn {
    transition: all 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 添加按钮点击波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:active::after {
    animation: ripple 0.4s ease-out;
}

@keyframes ripple {
    0% {
        opacity: 1;
        transform: scale(0, 0) translate(-50%, -50%);
    }
    100% {
        opacity: 0;
        transform: scale(20, 20) translate(-50%, -50%);
    }
}

.btn i {
    margin-right: 6px;
}

.btn-primary {
    background: var(--admin-gradient);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(109, 93, 198, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(109, 93, 198, 0.3);
    transform: translateY(-1px);
}

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

.btn-danger {
    background-color: var(--admin-danger);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.btn-danger:hover {
    background-color: #c0392b;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* 生成结果区域 */
.result-area {
    margin-top: 20px;
}

.codes-result {
    background-color: var(--admin-light);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 18px;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
}

.code-item {
    padding: 12px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.code-item:hover {
    background-color: rgba(109, 93, 198, 0.05);
}

.code-item:last-child {
    border-bottom: none;
}

.code-value {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 1.05rem;
    color: var(--admin-dark);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.code-info {
    color: var(--admin-grey);
    font-size: 0.9rem;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.empty-message {
    color: var(--admin-grey);
    text-align: center;
    padding: 40px 0;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.empty-message i {
    color: var(--admin-accent-light);
    opacity: 0.7;
}

/* 表格样式 */
.codes-table-container, .users-table-container {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
}

.codes-table, .users-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.codes-table th, .codes-table td,
.users-table th, .users-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

.codes-table th, .users-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--admin-dark);
    font-size: 14px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.codes-table tbody tr, .users-table tbody tr {
    transition: all 0.2s ease;
}

.codes-table tbody tr:hover, .users-table tbody tr:hover {
    background-color: rgba(109, 93, 198, 0.04);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.codes-table tr:last-child td, .users-table tr:last-child td {
    border-bottom: none;
}

/* 表格交替行样式 */
.codes-table tbody tr:nth-child(even),
.users-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* 表格列宽控制 */
.codes-table th:nth-child(1),
.codes-table td:nth-child(1) {
    min-width: 180px;
}

.codes-table th:last-child,
.codes-table td:last-child,
.users-table th:last-child,
.users-table td:last-child {
    width: 120px;
    text-align: center;
}

/* 表格操作按钮样式 */
.action-btn {
    padding: 6px 10px;
    margin: 0 4px;
    border-radius: 4px;
    background-color: #f8fafc;
    border: 1px solid var(--admin-border);
    color: var(--admin-dark);
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-btn:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.action-btn.edit {
    color: var(--admin-accent);
}

.action-btn.delete {
    color: var(--admin-danger);
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge i {
    margin-right: 5px;
}

.status-used {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.status-unused {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

/* 代码类型颜色标记 */
.code-type-A { color: #3498db; }
.code-type-B { color: #2ecc71; }
.code-type-C { color: #f39c12; }
.code-type-D { color: #9b59b6; }

/* 积分标签 */
.badge-points {
    background: var(--admin-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.badge-points i {
    margin-right: 5px;
    font-size: 12px;
}

/* 加载和空状态 */
.table-loading, .table-empty {
    text-align: center;
    padding: 30px;
    color: var(--admin-grey);
    font-size: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.table-loading i, .table-empty i {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--admin-accent);
    animation: spin 1.5s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* 过滤工具栏 */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 16px;
    background-color: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

.filter-bar .form-group {
    margin-bottom: 0;
    min-width: 180px;
    flex: 1;
}

.filter-bar .btn {
    align-self: flex-end;
    padding: 10px 16px;
    min-width: 100px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

#page-info, #users-page-info {
    color: var(--admin-grey);
    font-size: 14px;
}

/* 确认对话框按钮 */
.confirm-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

#confirm-message {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--admin-dark);
}

/* 设置项的提示信息 */
.setting-help {
    font-size: 12px;
    color: var(--admin-grey);
    margin-top: 5px;
    line-height: 1.4;
}

/* 进度条样式 */
.progress-bar {
    height: 10px;
    background-color: #edf2f7;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--admin-gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* 统计卡片 */
.count-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.count-card {
    flex: 1;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
    padding: 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--admin-border);
}

.count-card-title {
    font-size: 14px;
    color: var(--admin-grey);
    margin-bottom: 5px;
}

.count-card-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--admin-dark);
}

.count-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(109, 93, 198, 0.2) 0%, rgba(74, 107, 175, 0.2) 100%);
    color: var(--admin-accent);
    font-size: 18px;
    margin-bottom: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-nav {
        flex-wrap: wrap;
    }
    
    .admin-nav .btn {
        flex: 1;
        padding: 8px 10px;
        font-size: 13px;
        justify-content: center;
        min-width: 0;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar .form-group {
        width: 100%;
    }
    
    .admin-card {
        padding: 15px;
    }
    
    .codes-table th, .codes-table td,
    .users-table th, .users-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.main-logo {
    height: 60px;
    width: auto;
    margin-right: 18px;
    display: block;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: #6d5dc6;
    letter-spacing: 2px;
}

.logo-subtitle {
    display: block;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-left: 6px;
    margin-top: 2px;
}

/* 覆盖之前的所有弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.modal-visible {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    padding: 25px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    transition: all 0.2s;
}

.close-modal:hover {
    background-color: #e74c3c;
    color: white;
}

/* 编辑积分弹窗样式 */
#edit-points-modal .modal-content {
    max-width: 450px;
}

#edit-points-form {
    margin-top: 15px;
}

#edit-points-form .form-group {
    margin-bottom: 15px;
}

#edit-points-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

#edit-points-form .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#edit-points-form .btn-block {
    margin-top: 20px;
}

/* 仅保留简单的显示动画，不使用透明度变化 */
@keyframes modalFadeIn {
    from {
        transform: translateY(-30px);
    }
    to {
        transform: translateY(0);
    }
}

/* 确保动画结束后保持显示状态 */
.modal-content {
    animation: modalFadeIn 0.2s ease forwards;
}

/* 可见弹窗类 */
.modal-visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 确保弹窗内容不受外部CSS影响 */
.modal-content {
    background-color: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: modalFadeIn 0.2s ease-out !important;
    animation-fill-mode: forwards !important;
    border: 1px solid #ddd !important;
}

/* 修改弹窗背景色确保清晰可见 */
.modal {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

/* 弹窗包装器样式 */
.modal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1001;
}

/* 弹窗内容增强样式 */
.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 1002;
    opacity: 1;
    visibility: visible;
    margin: 0 auto;
}

/* 解决动画可能导致的闪烁问题 */
.modal, .modal-content, .modal-wrapper {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* ==================== 支付监控样式 ==================== */

/* 支付记录表格 */
.payment-table-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--admin-border);
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 14px;
}

.payment-table th,
.payment-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.payment-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--admin-dark);
    border-bottom: 2px solid var(--admin-border);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-table tbody tr {
    transition: background-color 0.2s ease;
}

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

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

.payment-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

/* 订单ID样式 */
.order-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    color: #495057;
    font-weight: 500;
}

/* 金额样式 */
.payment-table .amount {
    font-weight: 600;
    color: #28a745;
    font-size: 15px;
}

/* 积分样式 */
.payment-table .points {
    color: #6f42c1;
    font-weight: 600;
    font-size: 15px;
}

.payment-table .points::after {
    content: ' 积分';
    font-size: 12px;
    color: #6c757d;
    font-weight: normal;
}

/* 用户名样式 */
.payment-table .username {
    color: var(--admin-dark);
    font-weight: 500;
}

/* 时间样式 */
.payment-table .time {
    color: #6c757d;
    font-size: 12px;
}

/* 支付状态样式 */
.status-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-warning {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border: 1px solid rgba(253, 126, 20, 0.3);
}

/* 支付统计卡片特殊样式 */
#payment-monitor .count-summary {
    margin-bottom: 25px;
}

#payment-monitor .count-card {
    transition: all 0.3s ease;
    position: relative;
}

#payment-monitor .count-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* 趋势指示器样式 */
.trend-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
}

.trend-indicator.positive {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
}

.trend-indicator.negative {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.trend-indicator.neutral {
    color: #64748b;
    background: rgba(100, 116, 139, 0.1);
}

.trend-indicator i {
    font-size: 10px;
}

.trend-indicator span {
    font-size: 11px;
    line-height: 1;
}

/* 快速日期筛选按钮 */
.quick-date-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
}

.quick-date-filters label {
    font-weight: 600;
    color: var(--admin-dark);
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

.quick-date-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-date-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--admin-border);
    background: white;
    color: var(--admin-grey);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-date-btn:hover {
    background: var(--admin-light);
    border-color: var(--admin-primary);
    color: var(--admin-primary);
    transform: translateY(-1px);
}

.quick-date-btn.active {
    background: var(--admin-gradient);
    border-color: var(--admin-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(74, 107, 175, 0.2);
}

.quick-date-btn i {
    font-size: 12px;
}

/* 数据可视化区域 */
.analytics-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
    background: #f8fafc;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--admin-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-title i {
    color: var(--admin-primary);
}

.chart-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-controls select {
    padding: 6px 10px;
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.chart-controls .btn {
    padding: 6px 10px;
    font-size: 13px;
}

.chart-content {
    padding: 20px;
    position: relative;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
}

#revenue-chart {
    width: 100%;
    height: 300px;
    max-width: 100%;
    display: block;
}

.chart-loading,
.chart-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--admin-grey);
}

.chart-loading i,
.chart-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.chart-loading span,
.chart-empty span {
    display: block;
    font-size: 14px;
}

/* 统计网格 */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-item {
    background: white;
    border-radius: 8px;
    box-shadow: var(--admin-shadow);
    border: 1px solid var(--admin-border);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: var(--admin-gradient);
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--admin-grey);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--admin-dark);
    margin-bottom: 4px;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.negative {
    color: #dc2626;
}

.stat-change.neutral {
    color: #64748b;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .analytics-section {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-content {
        padding: 15px;
    }

    #revenue-chart {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .quick-date-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .quick-date-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .quick-date-btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }

    .analytics-section {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .chart-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .chart-controls {
        width: 100%;
        justify-content: space-between;
    }

    .chart-content {
        padding: 10px;
    }

    #revenue-chart {
        height: 200px;
    }

    .chart-header {
        padding: 15px 20px;
    }

    .chart-title {
        font-size: 14px;
    }
}

/* 支付记录加载和空状态 */
#payment-loading,
#payment-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
    background-color: #fff;
}

#payment-loading i {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--admin-accent);
}

#payment-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #dee2e6;
}

/* 支付监控分页样式 */
#payment-monitor .pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

#payment-monitor .pagination .btn {
    min-width: 80px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
}

#payment-monitor .pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#payment-page-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* 支付监控响应式样式 */
@media (max-width: 1200px) {
    .payment-table-container .filter-bar {
        gap: 10px;
    }
    
    .payment-table-container .filter-bar .form-group {
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .payment-table th,
    .payment-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    /* 在小屏幕上隐藏一些不重要的列 */
    .payment-table th:nth-child(7),
    .payment-table td:nth-child(7) {
        display: none; /* 隐藏支付时间列 */
    }
    
    .order-id {
        font-size: 10px;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕上进一步隐藏列 */
    .payment-table th:nth-child(6),
    .payment-table td:nth-child(6) {
        display: none; /* 隐藏创建时间列 */
    }
    
    .payment-table th:nth-child(4),
    .payment-table td:nth-child(4) {
        display: none; /* 隐藏积分数量列 */
    }
}

/* 反馈管理样式 */
#feedback-management .admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#feedback-management .admin-table th,
#feedback-management .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

#feedback-management .admin-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#feedback-management .admin-table tbody tr {
    transition: background-color 0.2s ease;
}

#feedback-management .admin-table tbody tr:hover {
    background-color: #f9fafb;
}

/* 反馈状态样式 */
.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-processing {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status-resolved {
    background-color: rgba(46, 204, 113, 0.1);
    color: #10b981;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-unknown {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* 反馈操作按钮 */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.status-select:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 2px rgba(109, 93, 198, 0.1);
}

.btn-small {
    padding: 4px 8px;
    font-size: 12px;
    min-width: auto;
}

.btn-small i {
    margin: 0;
    font-size: 12px;
}

/* 反馈表格容器 */
.table-container {
    position: relative;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* 反馈加载和空状态 */
#feedback-loading,
#feedback-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6b7280;
}

#feedback-loading i {
    font-size: 24px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

#feedback-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 反馈分页样式 */
#feedback-management .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
}

#feedback-management .pagination .btn {
    padding: 8px 16px;
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #374151;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#feedback-management .pagination .btn:hover:not(:disabled) {
    background-color: var(--admin-accent);
    color: white;
    border-color: var(--admin-accent);
}

#feedback-management .pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#feedback-page-info {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* 反馈内容截断 */
#feedback-management .admin-table td[title] {
    cursor: help;
    position: relative;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    #feedback-management .admin-table th:nth-child(5),
    #feedback-management .admin-table td:nth-child(5) {
        display: none; /* 隐藏联系方式列 */
    }
}

@media (max-width: 768px) {
    #feedback-management .admin-table th:nth-child(4),
    #feedback-management .admin-table td:nth-child(4) {
        display: none; /* 隐藏内容列 */
    }
    
    #feedback-management .admin-table th:nth-child(7),
    #feedback-management .admin-table td:nth-child(7) {
        display: none; /* 隐藏提交时间列 */
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .status-select {
        width: 100%;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    #feedback-management .admin-table th:nth-child(1),
    #feedback-management .admin-table td:nth-child(1) {
        display: none; /* 隐藏ID列 */
    }
    
    #feedback-management .admin-table th:nth-child(3),
    #feedback-management .admin-table td:nth-child(3) {
        display: none; /* 隐藏类型列 */
    }
} 