/* ================================================
   梦迈驰 | DreamsMatch 后台管理系统样式
   ================================================ */

/* 管理员body */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #F1F5F9;
}

/* 侧边栏 */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0A2540 0%, #0d3352 100%);
    color: #CDE3E5;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.3s ease;
    overflow-x: hidden;
}

.admin-sidebar.collapsed {
    width: 68px;
}

.sidebar-header {
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    min-width: 0;
    flex: 1;
}

.sidebar-logo i {
    font-size: 1.5rem;
    color: #2c9e9f;
    flex-shrink: 0;
}

.sidebar-brand {
    font-weight: 800;
    font-size: 1.1rem;
    display: block;
    white-space: nowrap;
}

.sidebar-sub {
    font-size: 0.7rem;
    opacity: 0.6;
    display: block;
    white-space: nowrap;
}

.admin-sidebar.collapsed .sidebar-brand,
.admin-sidebar.collapsed .sidebar-sub {
    display: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #CDE3E5;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: 0.2s;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.admin-sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* 侧边栏导航 */
.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #CDE3E5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.2s;
    white-space: nowrap;
    position: relative;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar-link.active {
    background: rgba(44,158,159,0.25);
    color: white;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #2c9e9f;
    border-radius: 0 3px 3px 0;
}

.sidebar-badge {
    margin-left: auto;
    background: #EF4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.admin-sidebar.collapsed .sidebar-link span:not(.sidebar-badge),
.admin-sidebar.collapsed .sidebar-badge {
    display: none;
}

.sidebar-footer {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* 主内容区 */
.admin-main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.admin-main.expanded {
    margin-left: 68px;
}

/* 顶部栏 */
.admin-header {
    background: white;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-sidebar-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #475569;
}

.breadcrumb {
    font-weight: 600;
    color: #1E293B;
    font-size: 1rem;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748B;
    transition: 0.2s;
}

.header-icon-btn:hover {
    background: #F1F5F9;
    color: #007a7c;
}

.admin-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.admin-user-menu:hover {
    background: #F1F5F9;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #007a7c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.admin-user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* 内容区域 */
.admin-content {
    flex: 1;
    padding: 24px 28px;
}

/* 页面区域 */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 0;
    white-space: nowrap;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0 14px;
    min-width: 240px;
}

.search-box i {
    color: #94A3B8;
    font-size: 0.85rem;
}

.search-box input {
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 0.9rem;
    flex: 1;
    background: transparent;
}

.filter-select {
    padding: 10px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
    outline: none;
    cursor: pointer;
    color: #475569;
}

.filter-select:focus {
    border-color: #007a7c;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #F1F5F9;
    position: relative;
    transition: 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0A2540;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 2px;
}

.stat-card-trend {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.stat-card-trend.up {
    color: #059669;
    background: #D1FAE5;
}

.stat-card-trend.down {
    color: #DC2626;
    background: #FEF2F2;
}

/* 图表 */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.chart-box {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #F1F5F9;
}

.chart-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 16px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.chart-header h3 {
    margin-bottom: 0;
}

.chart-range-select {
    padding: 4px 10px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.8rem;
    background: white;
    outline: none;
    cursor: pointer;
}

.chart-box canvas {
    width: 100% !important;
    max-height: 280px;
}

/* 审核队列提示 */
.review-queue {
    background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
    border: 1px solid #FCD34D;
    border-radius: 10px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-queue i {
    color: #F59E0B;
    font-size: 1.1rem;
}

.review-queue span {
    flex: 1;
    font-size: 0.9rem;
    color: #92400E;
}

.review-queue strong {
    color: #B45309;
}

.btn-warning {
    background: #F59E0B;
    color: white;
    border: none;
}

.btn-warning:hover {
    background: #D97706;
}

/* 数据表格 */
.table-container {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #F1F5F9;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th {
    background: #F8FAFC;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #E2E8F0;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #F8FAFC;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-loading td {
    text-align: center;
    padding: 40px !important;
}

.table-loading .spinner {
    margin: 0 auto;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pending {
    background: #FEF3C7;
    color: #92400E;
}

.status-approved {
    background: #D1FAE5;
    color: #059669;
}

.status-rejected {
    background: #FEE2E2;
    color: #DC2626;
}

.status-closed {
    background: #F1F5F9;
    color: #64748B;
}

.status-active {
    background: #D1FAE5;
    color: #059669;
}

.status-disabled {
    background: #FEE2E2;
    color: #DC2626;
}

.status-viewed {
    background: #DBEAFE;
    color: #2563EB;
}

.status-accepted {
    background: #D1FAE5;
    color: #059669;
}

.status-negotiating {
    background: #EDE9FE;
    color: #7C3AED;
}

/* 表格内操作按钮 */
.action-btns {
    display: flex;
    gap: 6px;
}

.btn-table {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}

.btn-table-view {
    background: #EFF6FF;
    color: #2563EB;
}

.btn-table-view:hover {
    background: #DBEAFE;
}

.btn-table-approve {
    background: #D1FAE5;
    color: #059669;
}

.btn-table-approve:hover {
    background: #A7F3D0;
}

.btn-table-reject {
    background: #FEE2E2;
    color: #DC2626;
}

.btn-table-reject:hover {
    background: #FECACA;
}

.btn-table-disable {
    background: #FEE2E2;
    color: #DC2626;
}

.btn-table-disable:hover {
    background: #FECACA;
}

.btn-table-enable {
    background: #D1FAE5;
    color: #059669;
}

.btn-table-enable:hover {
    background: #A7F3D0;
}

/* 用户类型标签 */
.user-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #F1F5F9;
    color: #475569;
}

.user-type-founder { background: #EFF6FF; color: #2563EB; }
.user-type-investor { background: #FEF3C7; color: #B45309; }
.user-type-enterprise { background: #EDE9FE; color: #7C3AED; }
.user-type-expert { background: #D1FAE5; color: #059669; }
.user-type-institution { background: #F1F5F9; color: #475569; }

/* 模态框加大 */
.modal-lg {
    max-width: 800px !important;
}

/* 通知表单 */
.notification-form {
    margin-bottom: 16px;
}

.notification-form h4 {
    margin-bottom: 16px;
    color: #0A2540;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 系统设置 */
.settings-list {
    padding: 4px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-key {
    width: 200px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #0A2540;
    flex-shrink: 0;
}

.setting-value-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.85rem;
}

.setting-desc-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 250px;
    color: #64748B;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E2E8F0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    transition: 0.2s;
}

.pagination button:hover {
    background: #F1F5F9;
}

.pagination button.active {
    background: #007a7c;
    color: white;
    border-color: #007a7c;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Canvas响应式 */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .page-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .search-box {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 200;
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0 !important;
    }

    .admin-main.expanded {
        margin-left: 0 !important;
    }

    .mobile-sidebar-btn {
        display: block;
    }

    .admin-user-name {
        display: none;
    }

    .admin-content {
        padding: 16px;
    }

    .data-table {
        font-size: 0.78rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card-value {
        font-size: 1.3rem;
    }
}

/* ============================================
   管理后台动态内容样式 (供 admin.js 使用)
   ============================================ */

/* 登录页面 (admin.js 动态渲染) */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}
.login-box {
    background: white;
    border-radius: 16px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    text-align: center;
}
.login-box h2 { margin-bottom: 4px; color: #0A2540; font-size: 1.5rem; }
.login-subtitle { color: #64748B; font-size: 0.9rem; margin-bottom: 24px; }
.login-error { background: #FEF2F2; color: #DC2626; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 0.85rem; }

/* 统计卡片 (动态渲染) */
.stat-card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.stat-card.primary { border-left: 4px solid #667eea; }
.stat-card.success { border-left: 4px solid #2ecc71; }
.stat-card.info { border-left: 4px solid #3498db; }
.stat-card.warning { border-left: 4px solid #f39c12; }
.stat-card.danger { border-left: 4px solid #EF4444; }
.stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 700; color: #0A2540; }
.stat-label { font-size: 0.85rem; color: #64748B; margin-top: 4px; }
.stat-sub { font-size: 0.78rem; color: #94A3B8; margin-top: 8px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

/* 图表区域 */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.chart-card h3 { margin-bottom: 16px; color: #0A2540; font-size: 1rem; }
.chart-card canvas { max-height: 300px; }
@media (max-width: 1024px) { .charts-row { grid-template-columns: 1fr; } }

/* 快捷操作 */
.quick-actions {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.quick-actions h3 { margin-bottom: 16px; color: #0A2540; }
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.action-buttons button {
    padding: 10px 20px; border: 1px solid #E2E8F0; background: white;
    border-radius: 8px; cursor: pointer; font-size: 0.9rem; transition: 0.2s;
}
.action-buttons button:hover { background: #F1F5F9; border-color: #007a7c; color: #007a7c; }

/* 表格工具栏 */
.table-toolbar { margin-bottom: 16px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar input[type="text"],
.filter-bar select {
    padding: 8px 14px; border: 1px solid #E2E8F0; border-radius: 8px;
    font-size: 0.85rem; min-width: 180px;
}

/* 数据表格 */
.table-wrap { overflow-x: auto; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { background: #F8FAFC; padding: 12px 16px; text-align: left; font-weight: 600; color: #475569; border-bottom: 2px solid #E2E8F0; white-space: nowrap; }
.data-table td { padding: 12px 16px; border-bottom: 1px solid #F1F5F9; color: #334155; }
.data-table tbody tr:hover { background: #F8FAFC; }

/* 徽章 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #D1FAE5; color: #059669; }
.badge-danger { background: #FEE2E2; color: #DC2626; }
.badge-warning { background: #FEF3C7; color: #B45309; }
.badge-info { background: #DBEAFE; color: #2563EB; }
.badge-primary { background: #EDE9FE; color: #7C3AED; }
.badge-secondary { background: #F1F5F9; color: #475569; }

/* 按钮尺寸 */
.btn-sm { padding: 5px 12px; font-size: 0.78rem; border-radius: 6px; border: none; cursor: pointer; font-weight: 500; transition: 0.2s; margin: 0 2px; }
.btn-sm:hover { opacity: 0.85; }
.btn-sm.btn-success { background: #059669; color: white; }
.btn-sm.btn-danger { background: #DC2626; color: white; }
.btn-sm.btn-info { background: #2563EB; color: white; }
.btn-full { width: 100%; }
.btn-primary {
    background: #007a7c; color: white; border: none; padding: 10px 24px;
    border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.2s;
}
.btn-primary:hover { background: #006062; }

/* 表单控件 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #334155; font-size: 0.85rem; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 0.9rem; box-sizing: border-box; }
.form-control:focus { outline: none; border-color: #007a7c; box-shadow: 0 0 0 3px rgba(0,122,124,0.1); }

/* 区段卡片 */
.section-card { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); margin-bottom: 24px; }
.section-card h3 { margin-bottom: 16px; color: #0A2540; }

/* 模态框 (admin.js 动态创建) */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-box { background: white; border-radius: 16px; width: 90%; max-width: 600px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #E2E8F0; }
.modal-header h3 { margin: 0; color: #0A2540; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #94A3B8; }
.modal-close:hover { color: #DC2626; }
.modal-body { padding: 24px; }
.modal-body p { margin-bottom: 10px; line-height: 1.6; color: #334155; }

/* 加载与错误 */
.loading { text-align: center; padding: 60px 20px; color: #94A3B8; font-size: 1rem; }
.error-msg { text-align: center; padding: 60px 20px; color: #DC2626; background: #FEF2F2; border-radius: 12px; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pagination button {
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid #E2E8F0; background: white; border-radius: 8px;
    cursor: pointer; font-size: 0.85rem; font-weight: 500; color: #475569; transition: 0.2s;
}
.pagination button:hover { background: #F1F5F9; }
.pagination button.active { background: #007a7c; color: white; border-color: #007a7c; }

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 1.5rem; }
    .action-buttons { flex-direction: column; }
    .action-buttons button { width: 100%; }
}

/* ============================================
   工单管理样式
   ============================================ */

/* 工单详情模态框加大 */
.modal-box.modal-lg {
    max-width: 750px !important;
}

/* 工单元信息 */
.ticket-meta {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}
.ticket-meta p {
    margin-bottom: 6px;
    font-size: 0.88rem;
    color: #475569;
}
.ticket-meta p:last-child { margin-bottom: 0; }

/* 工单内容框 */
.ticket-content-box,
.ticket-reply-box {
    background: #F8FAFC;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.ticket-content-box h4,
.ticket-reply-box h4 {
    font-size: 0.95rem;
    color: #0A2540;
    margin-bottom: 10px;
}
.ticket-reply-box h4 small {
    font-weight: 400;
    color: #94A3B8;
    font-size: 0.8rem;
}
.ticket-content-text,
.ticket-reply-text {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 工单回复表单 */
.ticket-reply-form {
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 16px;
    margin-top: 8px;
}
.ticket-reply-form h4 {
    font-size: 0.95rem;
    color: #0A2540;
    margin-bottom: 10px;
}
.ticket-reply-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.ticket-reply-form textarea:focus {
    outline: none;
    border-color: #007a7c;
    box-shadow: 0 0 0 3px rgba(0,122,124,0.1);
}
.ticket-reply-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.ticket-reply-actions select {
    padding: 8px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.85rem;
    background: white;
}

/* 工单已关闭提示 */
.ticket-closed-note {
    text-align: center;
    padding: 20px;
    color: #94A3B8;
    font-size: 0.9rem;
    background: #F1F5F9;
    border-radius: 8px;
}

/* 工单v2 - 超大模态框 */
.modal-box.modal-xl {
    max-width: 900px !important;
}

/* 工单v2 - 回复项 */
.ticket-reply-item {
    transition: background 0.15s;
}
.ticket-reply-item:hover {
    background: rgba(0,122,124,0.03);
}

/* 工单v2 - 时间线 */
.ticket-timeline-section {
    max-height: 400px;
    overflow-y: auto;
}

/* 工单v2 - 操作栏选择器 */
#ticket-priority-select,
#ticket-status-select {
    cursor: pointer;
    background: white;
    min-width: 120px;
}
#ticket-priority-select:focus,
#ticket-status-select:focus {
    outline: none;
    border-color: #007a7c;
    box-shadow: 0 0 0 2px rgba(0,122,124,0.15);
}

/* btn-warning 样式（重新打开按钮） */
.btn-sm.btn-warning {
    background: #f59e0b;
    color: white;
}
.btn-sm.btn-warning:hover {
    background: #d97706;
}

/* --bg-secondary / --border-color / --text-muted 变量 */
:root {
    --bg-secondary: #F8FAFC;
    --border-color: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --primary-color: #007a7c;
}
