/* Version: 20260415234412 */
/* ===================================
   AISZ新时代数字思政实践教学平台 - 公共样式
   =================================== */

:root {
    /* 思政教育红色系 */
    --china-red: #C8102E;
    --deep-red: #8B0000;
    --bright-red: #FF1744;

    /* 金色系 */
    --gold: #FFD700;
    --gold-light: #FFE066;

    /* 背景色 */
    --bg-dark: #1a0a2e;
    --bg-card: rgba(26, 10, 46, 0.85);
    --bg-light: rgba(200, 16, 46, 0.6);

    /* 文字色 - 确保高对比度 */
    --text-primary: #FFFFFF;            /* 主要文字 - 纯白，确保在任何深色背景上清晰可见 */
    --text-secondary: #FFD700;          /* 次要文字 - 金色，确保在深色背景上清晰可见 */
    --text-gold: #FFD700;               /* 金色 - 高可见度金色 */
    --text-light: #FFF8DC;              /* 浅金色 - 备用浅色 */
    --text-dark: #8B0000;               /* 深红色 - 用于浅色背景 */
    --text-on-light: #1a0a2e;           /* 深色 - 用于浅色背景 */
    --text-error: #FF6B6B;              /* 错误文字 - 红色 */
    --text-success: #00FF88;            /* 成功文字 - 绿色 */

    /* 边框和线条 */
    --border-red: rgba(255, 23, 68, 0.3);
    --border-gold: rgba(255, 215, 0, 0.5);
    --line: rgba(255, 215, 0, 0.2);

    /* 发光效果 */
    --glow-red: 0 0 30px rgba(200, 16, 46, 0.6);
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.4);
    --glow-bright: 0 0 40px rgba(255, 23, 68, 0.5);

    /* 阴影 */
    --shadow: 0 20px 60px rgba(27, 38, 44, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: transparent;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden; /* 防止横向滚动 */
    overflow-y: auto; /* 允许body级别滚动，但主要由main-content处理 */
}

/* 红色星光背景 - 暂时禁用 */
/*
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(255, 215, 0, 0.08) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 23, 68, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: sparkle 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
*/

@keyframes sparkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* 动态背景层 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(200, 16, 46, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0F172A 0%, #8B0000 50%, #C8102E 100%);
    z-index: -1;
    pointer-events: none;
}

/* 星光背景 */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(1px 1px at 50px 50px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 215, 0, 0.6), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* 红色光晕 */
.red-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(200, 16, 46, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

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

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(200, 16, 46, 0.9));
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 2px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--glow-red);
}

/* 顶部金色线条 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.logo {
    font-size: 18px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--gold), #FFF8DC, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.chip {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.3), rgba(200, 16, 46, 0.2));
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid var(--border-gold);
    box-shadow: var(--glow-red);
}

/* 主容器 */
.container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 68px);
    position: relative;
    z-index: 10;
    overflow: hidden; /* 防止容器本身出现滚动条 */
}

/* 侧边栏 */
.sidebar {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.95), rgba(200, 16, 46, 0.9));
    backdrop-filter: blur(15px);
    padding: 26px 18px;
    border-right: 2px solid var(--border-gold);
    overflow-y: auto; /* 侧边栏内容过多时也可以滚动 */
    max-height: calc(100vh - 68px); /* 限制侧边栏高度 */
    flex-shrink: 0; /* 防止侧边栏被压缩 */
}

.nav-title {
    font-size: 12px;
    color: #FFD700;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 8px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.nav-item:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    box-shadow: var(--glow-gold);
    transform: translateX(5px);
    border-color: var(--border-red);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.5), rgba(200, 16, 46, 0.4));
    color: #FFFFFF;
    font-weight: 700;
    border: 2px solid var(--gold);
    box-shadow: var(--glow-red);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 215, 0, 0.6);
}

/* 主内容区 */
.main-content {
    padding: 30px 36px 40px;
    max-height: calc(100vh - 100px); /* 限制最大高度，视窗高度减去头部高度 */
    overflow-y: auto; /* 内容超出时显示垂直滚动条 */
    overflow-x: hidden; /* 隐藏横向滚动条 */
}

/* 主内容区域滚动条样式 */
.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(139, 0, 0, 0.2);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

/* 表格容器优化 */
.table-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid var(--border-red);
    max-height: 60vh; /* 限制表格卡片最大高度为视窗高度的60% */
    display: flex;
    flex-direction: column;
}

/* 表格内部滚动容器 */
.table-card .table-wrapper {
    overflow-y: auto;
    overflow-x: auto;
    max-height: calc(60vh - 20px); /* 减去一些padding空间 */
}

.table-card::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-card::-webkit-scrollbar-track {
    background: rgba(139, 0, 0, 0.2);
    border-radius: 4px;
}

.table-card::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 4px;
}

.table-card::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: rgba(139, 0, 0, 0.4);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.content-header h2 {
    font-size: 24px;
    color: #FFFFFF;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 23, 68, 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 按钮样式 - 统一标准 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 主要操作按钮 - 统一样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--bright-red), var(--china-red), var(--deep-red));
    color: #FFFFFF !important;
    border: 2px solid var(--gold);
    box-shadow: var(--glow-red);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5);
    background: linear-gradient(135deg, var(--bright-red), var(--china-red));
}

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

/* 次要操作按钮 - 保持一致的次要样式 */
.btn-secondary {
    background: rgba(92, 0, 0, 0.8);
    color: #FFD700 !important;
    border: 2px solid rgba(255, 215, 0, 0.5);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9), rgba(200, 16, 46, 0.8));
    color: #FFFFFF !important;
    border-color: var(--gold);
    box-shadow: var(--glow-red);
    transform: translateY(-2px);
}

/* 头部操作按钮容器 */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-actions .btn {
    margin: 0;
    padding: 10px 20px;
    font-size: 14px;
}

/* 小按钮样式 - 用于表格操作 */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* 表格操作按钮 */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions .btn {
    margin: 0;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
}

/* 统计卡片 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
    flex-shrink: 0; /* 防止统计卡片被压缩 */
}

.stat-card {
    background: rgba(139, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-red);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--glow-gold);
    transform: translateY(-5px);
    border-color: var(--gold);
}

.stat-card span {
    font-size: 12px;
    color: #FFD700; /* 强制使用金色，确保可见 */
}

.stat-card h3 {
    margin-top: 10px;
    font-size: 26px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 表格卡片 */
.table-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid var(--border-red);
    max-height: 60vh; /* 限制表格卡片最大高度为视窗高度的60% */
    display: flex;
    flex-direction: column;
}

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

thead {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.2), rgba(200, 16, 46, 0.15));
}

th {
    color: #FFD700;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    color: #FFFFFF;
}

td {
    color: #FFFFFF;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

tbody tr:hover {
    background: rgba(255, 23, 68, 0.15);
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
}

/* 状态徽章 */
.status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 23, 68, 0.2);
    color: #FFD700;
    font-size: 12px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    font-weight: 600;
}

.status.active {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.4), rgba(0, 200, 100, 0.3));
    color: #FFFFFF;
    border: 1px solid rgba(0, 255, 136, 0.6);
}

.status.inactive {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.4), rgba(255, 140, 0, 0.3));
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.6);
}

/* 表格操作 */
.table-actions {
    display: flex;
    gap: 8px;
}

/* 分页容器 */
.pagination-container {
    display: flex;
    justify-content: flex-end; /* 靠右对齐 */
    align-items: center;
    gap: 12px; /* 减小间距，更紧凑 */
    margin-top: 20px;
    padding: 8px 16px; /* 减小padding，更紧凑 */
    background: rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    flex-wrap: nowrap; /* 确保不换行 */
}

/* 分页信息 */
.pagination-info {
    display: flex;
    align-items: center;
    gap: 4px; /* 进一步减小间距 */
    color: #FFD700;
    font-size: 12px; /* 进一步减小字体 */
    white-space: nowrap; /* 防止换行 */
    flex-shrink: 0; /* 防止压缩 */
}

.pagination-text {
    color: #FFFFFF;
    font-weight: 500;
}

#totalItems {
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
}

/* 每页显示数量选择器 */
.page-size-select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.5);
    border-radius: 6px;
    color: #FFD700;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.page-size-select:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.page-size-select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 分页控制按钮 */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px; /* 减小间距，更紧凑 */
    flex-shrink: 0; /* 防止压缩 */
}

.pagination-numbers {
    display: flex;
    gap: 4px;
}

.page-number {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: #FFFFFF;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 36px;
    text-align: center;
}

.page-number:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    color: #FFD700;
}

.page-number.active {
    background: linear-gradient(135deg, var(--bright-red), var(--china-red));
    border-color: var(--gold);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

.page-number:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-controls .btn {
    margin: 0;
}

/* 响应式分页 */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-end; /* 移动端也保持靠右 */
    }

    .pagination-info,
    .pagination-controls {
        width: 100%;
        justify-content: flex-end; /* 移动端也保持靠右 */
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: flex-end; /* 移动端也保持靠右 */
    }
}

/* 模态框 */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.98), rgba(139, 0, 0, 0.95));
    backdrop-filter: blur(15px);
    width: min(720px, 100%);
    border-radius: 18px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-gold);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.modal-header, .modal-footer {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-footer {
    border-top: 1px solid var(--line);
    border-bottom: none;
}

.modal-body {
    padding: 20px 22px 26px;
}

/* 表单 */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

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

input, textarea, select {
    padding: 10px 12px;
    border: 1px solid var(--border-red);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    transition: all 0.3s;
}

/* 必填字段边框提示 - 已禁用，只保留标签上的红色星号 */
/*
input:required, textarea: required, select:required {
    border-left: 4px solid #FF1744 !important;
    background: rgba(255, 23, 68, 0.05);
}
*/

/* 必填字段聚焦效果 - 已禁用 */
/*
input:required:focus, textarea:required:focus, select:required:focus {
    border-left: 4px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
*/

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--glow-gold);
    background: rgba(0, 0, 0, 0.4);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

label {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
}

/* 必填字段标识 */
label.required {
    color: #FFD700;
    font-weight: bold;
}

label.required::after {
    content: '';
    margin-left: 0;
}

/* 必填字段输入框左侧红色边框 - 已禁用 */
/*
input:required, textarea:required, select:required {
    border-left: 4px solid #FF1744 !important;
    background: rgba(255, 23, 68, 0.05);
}
*/

/* 必填字段聚焦效果 - 已禁用 */
/*
input:required:focus, textarea:required:focus, select:required:focus {
    border-left: 4px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
*/

/* 必填字段输入框左侧红色边框 - 已禁用 */
/*
input:required, textarea:required, select:required {
    border-left: 4px solid #FF1744 !important;
}
*/

/* 表单验证错误样式 */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #FF1744 !important;
    border-left: 4px solid #FF1744 !important;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.5);
    background: rgba(255, 23, 68, 0.1);
}

.form-group.error label {
    color: #FF1744 !important;
    font-weight: bold;
}

/* 字段级错误提示 */
.field-error {
    color: var(--bright-red);
    font-size: 12px;
    margin-top: 4px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

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

.form-group.error .field-error {
    display: block;
}

/* 错误抖动动画 */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    animation: shake 0.5s ease-in-out;
}

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

/* 错误信息 */
.error-message {
    background: rgba(255, 23, 68, 0.2);
    border: 1px solid rgba(255, 23, 68, 0.5);
    color: #FF6B6B;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #00FF88;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* 提示信息 */
.note {
    font-size: 12px;
    color: var(--gold);
    margin-top: 10px;
    padding: 12px;
    background: rgba(139, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    font-weight: 500;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    background: rgba(139, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* 红金主题弹窗样式 */
.styled-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.styled-modal.show {
    display: flex;
    opacity: 1;
}

.styled-modal-content {
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.98), rgba(139, 0, 0, 0.95));
    backdrop-filter: blur(15px);
    border-radius: 18px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(27, 38, 44, 0.3);
    border: 2px solid var(--border-gold);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.styled-modal.show .styled-modal-content {
    transform: scale(1);
}

/* 错误弹窗样式 */
.error-modal-content {
    border-color: #FF1744;
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.5);
}

.error-modal-header {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.3), rgba(200, 16, 46, 0.2));
    border-bottom: 2px solid #FF1744;
    border-radius: 16px 16px 0 0;
    padding: 20px;
}

.error-modal-content .styled-modal-icon {
    font-size: 32px;
    margin-right: 10px;
}

.error-modal-content h3 {
    color: #FF1744;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.8);
}

/* 成功弹窗样式 */
.success-modal-content {
    border-color: #00FF88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.success-modal-header {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 200, 100, 0.2));
    border-bottom: 2px solid #00FF88;
    border-radius: 16px 16px 0 0;
    padding: 20px;
}

.success-modal-content .styled-modal-icon {
    font-size: 32px;
    margin-right: 10px;
}

.success-modal-content h3 {
    color: #00FF88;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

/* 信息弹窗样式 */
.info-modal-content {
    border-color: #2196F3;
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.5);
}

.info-modal-header {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.2));
    border-bottom: 2px solid #2196F3;
    border-radius: 16px 16px 0 0;
    padding: 20px;
}

.info-modal-content .styled-modal-icon {
    font-size: 32px;
    margin-right: 10px;
}

.info-modal-content h3 {
    color: #2196F3;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.8);
}

.info-message {
    color: #2196F3;
    font-weight: 500;
    font-size: 15px;
}

/* 确认弹窗样式 */
.confirm-modal-content {
    border-color: #FF9800;
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.5);
}

.confirm-modal-header {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.3), rgba(255, 152, 0, 0.2));
    border-bottom: 2px solid #FF9800;
    border-radius: 16px 16px 0 0;
    padding: 20px;
}

.confirm-modal-content .styled-modal-icon {
    font-size: 32px;
    margin-right: 10px;
}

.confirm-modal-content h3 {
    color: #FF9800;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
}

.confirm-message {
    color: #FF9800;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.6;
}

/* 弹窗头部 */
.styled-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.styled-modal-header h3 {
    margin: 0;
    flex: 1;
}

.styled-modal-close {
    background: transparent;
    border: none;
    color: #FFD700;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.styled-modal-close:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

/* 弹窗主体 */
.styled-modal-body {
    padding: 25px 20px;
    text-align: center;
}

.styled-modal-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.error-message {
    color: #FF6B6B;
    font-weight: 500;
}

.success-message {
    color: #00FF88;
    font-weight: 500;
}

/* 弹窗底部 */
.styled-modal-footer {
    padding: 15px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--line);
}

.styled-modal-footer .btn {
    min-width: 120px;
    padding: 10px 24px;
}

.footer-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===================================
   高对比度工具类 - 防止对比问题再次出现
   =================================== */

/* 强制高对比度文字颜色 */
.text-high-contrast {
    color: #FFFFFF !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

.text-gold-contrast {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6) !important;
}

.text-dark-on-light {
    color: #1a0a2e !important;
    font-weight: 600 !important;
}

/* 强制高对比度背景 */
.bg-dark-contrast {
    background: rgba(139, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

.bg-card-contrast {
    background: rgba(26, 10, 46, 0.9) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
}

/* 确保所有标题都有足够对比度 */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 215, 0, 0.6) !important;
    font-weight: 700 !important;
}

/* 确保所有段落和文本都有足够对比度 */
p, span, div, li {
    color: #FFFFFF !important;
}

/* 特殊：金色文字类 */
.gold-text {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
}

/* 特殊：次要文字类 */
.secondary-text {
    color: #FFD700 !important;
    font-weight: 500 !important;
}

/* 确保所有按钮文字清晰可见 */
.btn, button {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.btn-primary {
    color: #FFFFFF !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8) !important;
}

.btn-secondary {
    color: #FFD700 !important;
    font-weight: 600 !important;
}

/* 确保表单标签清晰可见 */
label {
    color: #FFD700 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

label.required {
    color: #FFD700 !important;
    font-weight: bold !important;
}

/* 确保表格文字清晰可见 */
th {
    color: #FFD700 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
}

td {
    color: #FFFFFF !important;
    font-weight: 400 !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
}

/* 确保导航项文字清晰可见 */
.nav-title {
    color: #FFD700 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
}

.nav-item {
    color: #FFFFFF !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
}

/* 确保输入框文字清晰可见 */
input, textarea, select {
    color: #FFFFFF !important;
    font-weight: 500 !important;
}

input::placeholder, textarea::placeholder, select::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* 确保卡片和容器内的文字清晰 */
.card, .box, .container, .content {
    color: #FFFFFF !important;
}

/* 特殊情况处理：浅色背景上的深色文字 */
.bg-light-text-dark {
    background: rgba(255, 215, 0, 0.2) !important;
    color: #1a0a2e !important;
    font-weight: 600 !important;
}

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

    .sidebar {
        border-right: none;
        border-bottom: 2px solid var(--border-gold);
    }

    .stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
    }

    .logo {
        font-size: 16px;
    }

    .main-content {
        padding: 20px;
    }

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

/* ===== Unified Interaction Rules (2026-04) ===== */
.btn,
.btn-primary,
.btn-secondary,
.primary-btn,
.secondary-btn,
.action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

.btn-primary,
.primary-btn,
.action-btn:not(.secondary) {
    background: linear-gradient(135deg, var(--bright-red), var(--china-red), var(--deep-red)) !important;
    color: #FFFFFF !important;
    border: 1px solid var(--gold) !important;
}

.btn-secondary,
.secondary-btn,
.action-btn.secondary {
    background: rgba(0, 0, 0, 0.35) !important;
    color: var(--gold) !important;
    border: 1px solid rgba(255, 215, 0, 0.5) !important;
}

.btn-sm {
    min-height: 38px !important;
    padding: 0 12px !important;
}

.modal {
    position: fixed !important;
    inset: 0 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(5px) !important;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    width: min(720px, 92vw) !important;
    max-height: 84vh !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
    border: 2px solid var(--border-gold) !important;
    background: linear-gradient(135deg, rgba(26, 10, 46, 0.98), rgba(139, 0, 0, 0.95)) !important;
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 16px 20px !important;
}

label.required {
    position: relative !important;
    padding-left: 10px !important;
    font-weight: 600 !important;
}

label.required::before {
    content: '*' !important;
    position: absolute;
    left: 0;
    top: 0;
    color: #FF1744;
    font-weight: 700;
}

label.required::after {
    content: '' !important;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-left: none !important;
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.35) !important;
}

.form-group.error label {
    font-weight: 600 !important;
}
