/* ========================================
   黑龙江省无线电运动协会模拟考试系统 - 主样式
   ======================================== */

/* CSS变量 */
:root {
    --primary: #1a237e;
    --secondary: #00bcd4;
    --accent: #ff9800;
    --bg-dark: #0a0e27;
    --bg-surface: #12163b;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.logo-icon {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    color: var(--secondary);
    font-weight: 500;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #008ba3);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), #c62828);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #2e7d32);
    color: #fff;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   英雄区
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 70px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 188, 212, 0.5);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(0, 188, 212, 0.5); }
    50% { text-shadow: 0 0 50px rgba(0, 188, 212, 0.8), 0 0 80px rgba(0, 188, 212, 0.4); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-wave {
    width: 300px;
    height: 60px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.wave-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawWave 2s ease 1s forwards;
}

@keyframes drawWave {
    to { stroke-dashoffset: 0; }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   区块标题
   ======================================== */
.section-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========================================
   考试入口卡片
   ======================================== */
.exam-entry {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 100%);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.exam-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
}

.exam-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.card-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.exam-card h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.exam-card > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    padding: 0 20px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ========================================
   功能特性
   ======================================== */
.features {
    padding: 80px 0;
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.feature-box:hover {
    border-color: var(--secondary);
}

.feature-box-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.feature-content {
    width: 45%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.feature-content h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.feature-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   统计数据
   ======================================== */
.stats {
    padding: 80px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-family: var(--font-title);
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid rgba(0, 188, 212, 0.2);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: var(--font-title);
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   表单样式
   ======================================== */
.form-container {
    max-width: 450px;
    margin: 100px auto;
    padding: 40px;
    background: rgba(18, 22, 59, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(0, 188, 212, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: var(--font-title);
    color: var(--secondary);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-secondary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.3);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.form-options input[type="checkbox"] {
    width: auto;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 14px;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

/* ========================================
   练习/考试页面
   ======================================== */
.practice-container,
.exam-container {
    max-width: 900px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.practice-header,
.exam-header {
    background: rgba(18, 22, 59, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.practice-info,
.exam-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.practice-info h2,
.exam-info h2 {
    font-family: var(--font-title);
    color: var(--secondary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 4px;
    transition: width var(--transition-normal);
}

.timer {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--accent);
}

.timer.warning {
    color: var(--error);
    animation: pulse 1s infinite;
}

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

.question-card {
    background: rgba(18, 22, 59, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-number {
    font-family: var(--font-title);
    color: var(--secondary);
    font-size: 1.1rem;
}

.question-type {
    background: rgba(0, 188, 212, 0.2);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.question-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.options-list {
    list-style: none;
}

.option-item {
    margin-bottom: 12px;
}

.option-item label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.option-item label:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: rgba(0, 188, 212, 0.3);
}

.option-item input {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: var(--secondary);
}

.option-item.correct label {
    background: rgba(76, 175, 80, 0.2);
    border-color: var(--success);
}

.option-item.wrong label {
    background: rgba(244, 67, 54, 0.2);
    border-color: var(--error);
}

.option-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(0, 188, 212, 0.2);
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    color: var(--secondary);
    font-size: 14px;
}

.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.answer-analysis {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 188, 212, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--secondary);
}

.answer-analysis h4 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.answer-analysis p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   结果页面
   ======================================== */
.result-container {
    max-width: 700px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.result-card {
    background: rgba(18, 22, 59, 0.95);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.result-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.result-title {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 30px;
}

.result-passed {
    color: var(--success);
}

.result-failed {
    color: var(--error);
}

.score-display {
    margin-bottom: 40px;
}

.score-number {
    font-family: var(--font-title);
    font-size: 5rem;
    font-weight: 900;
    color: var(--secondary);
    line-height: 1;
}

.score-label {
    color: var(--text-secondary);
    margin-top: 10px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.stat-box-value {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   历史记录
   ======================================== */
.history-container {
    max-width: 1000px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.history-header h2 {
    font-family: var(--font-title);
    color: var(--secondary);
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.active {
    background: rgba(0, 188, 212, 0.2);
    border-color: var(--secondary);
    color: var(--secondary);
}

.history-table {
    width: 100%;
    background: rgba(18, 22, 59, 0.95);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 18px 20px;
    text-align: left;
}

.history-table th {
    background: rgba(0, 188, 212, 0.1);
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
}

.history-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table tr:last-child {
    border-bottom: none;
}

.history-table td {
    color: var(--text-secondary);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.badge-error {
    background: rgba(244, 67, 54, 0.2);
    color: var(--error);
}

.badge-category {
    background: rgba(0, 188, 212, 0.2);
    color: var(--secondary);
}

/* ========================================
   后台管理
   ======================================== */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid rgba(0, 188, 212, 0.2);
    padding: 30px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-logo {
    text-align: center;
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-logo h3 {
    font-family: var(--font-title);
    color: var(--secondary);
    font-size: 1.2rem;
}

.admin-menu {
    list-style: none;
    padding: 0 15px;
}

.admin-menu li {
    margin-bottom: 5px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(0, 188, 212, 0.1);
    color: var(--secondary);
}

.admin-menu .icon {
    font-size: 20px;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h2 {
    font-family: var(--font-title);
    color: var(--text-primary);
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(18, 22, 59, 0.95);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.stat-card-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.stat-card-value {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-card-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-table {
    width: 100%;
    background: rgba(18, 22, 59, 0.95);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px 20px;
    text-align: left;
}

.admin-table th {
    background: rgba(0, 188, 212, 0.1);
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
}

.admin-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table tr:last-child {
    border-bottom: none;
}

.admin-table td {
    color: var(--text-secondary);
}

.btn-small {
    padding: 6px 15px;
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.pagination a:hover,
.pagination span.current {
    background: rgba(0, 188, 212, 0.2);
    color: var(--secondary);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .feature-item,
    .feature-item:nth-child(odd) {
        flex-direction: column;
        text-align: left;
        padding-left: 70px;
    }
    
    .feature-icon {
        left: 0;
        transform: none;
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .feature-content {
        width: 100%;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .history-table {
        overflow-x: auto;
    }
    
    .history-table table {
        min-width: 600px;
    }
}

/* ========================================
   动画类
   ======================================== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="flip-left"] {
    transform: perspective(1000px) rotateY(-30deg);
    opacity: 0;
}

[data-aos="flip-left"].aos-animate {
    transform: perspective(1000px) rotateY(0);
    opacity: 1;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s linear infinite;
}

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

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-surface);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-family: var(--font-title);
    color: var(--secondary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* 选项样式 */
.option-item {
    transition: all 0.2s ease;
}

.option-item:hover {
    background: rgba(0, 188, 212, 0.1);
}

.option-item.selected {
    background: rgba(0, 188, 212, 0.15);
    border-color: var(--secondary);
}

/* 功能框文字样式 */
.feature-box h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-family: var(--font-title);
}

.feature-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-header h3 {
    font-family: var(--font-title);
    color: var(--secondary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}
