:root {
    --bg-color: #050a15;
    --primary-color: #bd00ff;
    --text-color: #e0e6ed;
    --panel-bg: rgba(10, 20, 40, 0.55);
    --panel-border: rgba(189, 0, 255, 0.2);
    
    /* 学科战区色 */
    --chinese-color: #00ffaa;
    --math-color: #00f0ff;
    --english-color: #ffd500;
    --physics-color: #bd00ff;
    --chemistry-color: #ff3333;
    --vocab-color: #00f0ff;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    font-family: 'Noto Sans SC', 'Orbitron', sans-serif;
    color: var(--text-color);
}

/* Background Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Main Container Layout */
.app-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    height: 100vh;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

/* Glassmorphism 面板 */
.glass-panel {
    background: rgba(10, 20, 40, 0.85);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
}

/* Header Styles */
.main-header {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--primary-color);
    background: rgba(5, 5, 10, 0.85);
    gap: 0;
}
.main-header h1 {
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    font-size: 0.8rem;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 10px var(--primary-color);
}

.badge.warning {
    background: var(--english-color);
    color: #000;
    box-shadow: 0 0 10px var(--english-color);
}

/* Cyber Buttons (base from style.css, exams-specific below) */
.cyber-btn { color: #00f0ff; border-color: #00f0ff; }
.cyber-btn:hover { background: #00f0ff; color: #050a15; box-shadow: 0 0 24px #00f0ff, 0 0 48px rgba(0,240,255,0.35); }
.cyber-btn.danger { border-color: #ff3e3e; color: #ff3e3e; }
.cyber-btn.danger:hover { background: #ff3e3e; color: #fff; box-shadow: 0 0 24px #ff3e3e, 0 0 48px rgba(255,62,62,0.35); }

.cyber-btn.warning {
    border-color: var(--english-color);
    color: var(--english-color);
}
.cyber-btn.warning:hover {
    background: var(--english-color);
    color: #000;
    box-shadow: 0 0 20px var(--english-color);
}

.cyber-btn.disabled, .cyber-btn:disabled {
    border-color: #444 !important;
    color: #666 !important;
    cursor: not-allowed;
    background: transparent !important;
    box-shadow: none !important;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
}

/* Left Profile Aside */
.profile-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}
.profile-panel::-webkit-scrollbar {
    width: 4px;
}
.profile-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.agent-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f1f2e 0%, #0d0d13 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.agent-info {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.75rem;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.highlight {
    color: var(--vocab-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.agent-info h2 {
    font-size: 1.4rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

/* Rank XP Progress */
.rank-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rank-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid;
}

.rank-badge.trainee {
    color: #8892b0;
    border-color: #8892b0;
    box-shadow: none;
    opacity: 0.8;
}

.rank-badge.iron {
    color: #a8a8a8;
    border-color: #a8a8a8;
    box-shadow: 0 0 8px rgba(168, 168, 168, 0.3);
}

.rank-badge.bronze {
    color: #cd7f32;
    border-color: #cd7f32;
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.3);
}

.rank-badge.silver {
    color: #e0e0e0;
    border-color: #e0e0e0;
    box-shadow: 0 0 10px rgba(224, 224, 224, 0.4);
}

.rank-badge.gold {
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.rank-badge.platinum {
    color: #00f0ff;
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.rank-badge.diamond {
    color: #bd00ff;
    border-color: #bd00ff;
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.8);
    text-shadow: 0 0 5px rgba(189, 0, 255, 0.5);
    animation: diamondPulse 2s infinite;
}

.rank-badge.stellar {
    color: #ff007f;
    border-color: #ff007f;
    box-shadow: 0 0 25px rgba(255, 0, 127, 1);
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.8);
    background: rgba(255, 0, 127, 0.1);
}

.rank-badge.shadow {
    color: #000;
    border-color: #555;
    background: linear-gradient(45deg, #111, #333);
    box-shadow: 0 0 30px rgba(85, 85, 85, 0.9);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.rank-badge.quantum {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    background-size: 200% auto;
    color: #fff;
    border: none;
    box-shadow: 0 0 35px rgba(255, 255, 255, 1);
    animation: quantumFlow 3s linear infinite;
    font-weight: 900;
}

@keyframes diamondPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(189, 0, 255, 0.6); }
    50% { box-shadow: 0 0 25px rgba(189, 0, 255, 1); }
}

@keyframes quantumFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

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

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--vocab-color) 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--vocab-color);
    transition: width 0.8s ease-in-out;
}

.xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8892b0;
    font-family: 'Orbitron', sans-serif;
}

/* Stats Summary */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.stat-lbl {
    font-size: 0.75rem;
    color: #8892b0;
    margin-top: 4px;
}

/* Medal Wall styling */
.panel-subtitle {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 8px;
}

.medals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 0.5rem;
}

.medal-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.medal-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.medal-name {
    font-size: 0.65rem;
    color: #8892b0;
    text-align: center;
}

.tier-label {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.55rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Orbitron', sans-serif;
}

.medal-slot {
    position: relative;
    /* ... existing medal-slot styles are kept above ... */
}

/* Locked VS Unlocked states */
.medal-slot.locked {
    filter: grayscale(1);
    opacity: 0.35;
}

.medal-slot.locked.secret {
    background: #050505;
    border-color: #333;
    opacity: 0.8;
    filter: none;
}
.medal-slot.locked.secret .medal-icon {
    filter: brightness(0.2) sepia(1) hue-rotate(-50deg) saturate(5);
    text-shadow: 0 0 10px red;
}
.medal-slot.locked.secret .medal-name {
    color: #555;
}

.medal-slot.locked:hover {
    opacity: 0.6;
    transform: scale(1.02);
}

.medal-slot.unlocked {
    filter: none;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.medal-slot.unlocked .tier-label {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Tiers */
.medal-slot.unlocked.tier-1 {
    border-color: #a8a8a8;
    box-shadow: 0 0 10px rgba(168, 168, 168, 0.2);
}
.medal-slot.unlocked.tier-2 {
    border-color: #cd7f32;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.3);
}
.medal-slot.unlocked.tier-3 {
    border-color: #e0e0e0;
    box-shadow: 0 0 15px rgba(224, 224, 224, 0.4);
}
.medal-slot.unlocked.tier-4 {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.1);
}
.medal-slot.unlocked.tier-5 {
    border-color: #bd00ff;
    box-shadow: 0 0 25px rgba(189, 0, 255, 0.8);
    background: rgba(189, 0, 255, 0.15);
}
.medal-slot.unlocked.tier-5 .medal-icon {
    animation: medalFloat 1.5s infinite ease-in-out, tier5Pulse 2s infinite;
}

.medal-slot.unlocked .medal-icon {
    animation: medalFloat 2.5s infinite ease-in-out;
}

.medal-slot.unlocked:hover {
    transform: scale(1.1);
    z-index: 2;
}

@keyframes medalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes tier5Pulse {
    0%, 100% { filter: drop-shadow(0 0 5px #bd00ff); }
    50% { filter: drop-shadow(0 0 15px #bd00ff) hue-rotate(45deg); }
}

/* Right Section Main Panel */
.main-content-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    min-height: 0;
    min-width: 0;
}

/* Subject warzone tabs */
.warzone-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.warzone-tabs::-webkit-scrollbar {
    display: none;
}

.warzone-tab {
    flex: 1;
    min-width: 120px;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8892b0;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

/* Subject specific Tab Active Glows */
.warzone-tab:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.warzone-tab.active.chinese {
    color: var(--chinese-color);
    border: 1px solid var(--chinese-color);
    box-shadow: 0 0 15px rgba(0, 255, 170, 0.25), inset 0 0 10px rgba(0, 255, 170, 0.1);
    background: rgba(0, 255, 170, 0.05);
}
.warzone-tab.active.math {
    color: var(--math-color);
    border: 1px solid var(--math-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.1);
    background: rgba(0, 240, 255, 0.05);
}
.warzone-tab.active.english {
    color: var(--english-color);
    border: 1px solid var(--english-color);
    box-shadow: 0 0 15px rgba(255, 213, 0, 0.25), inset 0 0 10px rgba(255, 213, 0, 0.1);
    background: rgba(255, 213, 0, 0.05);
}
.warzone-tab.active.physics {
    color: var(--physics-color);
    border: 1px solid var(--physics-color);
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.25), inset 0 0 10px rgba(189, 0, 255, 0.1);
    background: rgba(189, 0, 255, 0.05);
}
.warzone-tab.active.chemistry {
    color: var(--chemistry-color);
    border: 1px solid var(--chemistry-color);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.25), inset 0 0 10px rgba(255, 51, 51, 0.1);
    background: rgba(255, 51, 51, 0.05);
}
.warzone-tab.active.mistake {
    color: #ff3e3e !important;
    border: 1px solid #ff3e3e !important;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.25), inset 0 0 10px rgba(255, 62, 62, 0.1) !important;
    background: rgba(255, 62, 62, 0.08) !important;
}


/* Mission List Area */
.mission-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.paper-count-badge {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #8892b0;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Grid of test papers */
.mission-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
    padding: 2rem calc(50% - 150px);
}

.mission-grid::-webkit-scrollbar {
    display: none;
}

.mission-grid.empty-grid {
    padding: 2rem;
    justify-content: center;
}

/* Individual test paper cards */
.mission-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0.5;
    filter: blur(2px);
    cursor: pointer;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mission-card.focused {
    transform: scale(1.1);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(189, 0, 255, 0.25);
    border-color: rgba(189, 0, 255, 0.3);
    background: rgba(10, 15, 30, 0.8);
    cursor: default;
}

.mission-card.focused::before {
    opacity: 1;
    height: 4px;
}

/* Specific Subject border tops on cards */
.mission-card.chinese::before { background: var(--chinese-color); }
.mission-card.math::before { background: var(--math-color); }
.mission-card.english::before { background: var(--english-color); }
.mission-card.physics::before { background: var(--physics-color); }
.mission-card.chemistry::before { background: var(--chemistry-color); }

.mission-card.chinese.focused { border-color: rgba(0, 255, 170, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(0, 255, 170, 0.2); }
.mission-card.math.focused { border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(0, 240, 255, 0.2); }
.mission-card.english.focused { border-color: rgba(255, 213, 0, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(255, 213, 0, 0.2); }
.mission-card.physics.focused { border-color: rgba(189, 0, 255, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(189, 0, 255, 0.2); }
.mission-card.chemistry.focused { border-color: rgba(255, 51, 51, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px rgba(255, 51, 51, 0.2); }

/* Card Content Details */
.mission-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 8px;
}

.mission-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-pill {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #8892b0;
    padding: 2px 8px;
    border-radius: 4px;
}

.meta-pill.completed {
    border-color: #00ffaa;
    color: #00ffaa;
    background: rgba(0, 255, 170, 0.05);
}

.meta-pill.unattempted {
    border-color: var(--math-color);
    color: var(--math-color);
    background: rgba(0, 240, 255, 0.05);
}

.meta-pill.perfect {
    border-color: #ffd700;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.08);
}

.meta-pill.failed {
    border-color: #ff3e3e;
    color: #ff3e3e;
    background: rgba(255, 62, 62, 0.08);
}

.mission-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mission-score-history {
    display: flex;
    flex-direction: column;
}

.score-label {
    font-size: 0.7rem;
    color: #8892b0;
}

.score-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--chinese-color);
}

.mission-action button {
    width: 100%;
}

.sys-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: #8892b0;
    padding: 3rem;
    font-style: italic;
}

/* Modals styling (Parent Admin Center) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-color: var(--primary-color);
    box-shadow: 0 0 40px rgba(189, 0, 255, 0.3);
    animation: modalSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.8rem;
}

.modal-header h2 {
    font-size: 1.3rem;
    font-family: 'Orbitron', 'Noto Sans SC', sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: transparent;
    border: none;
    color: #8892b0;
    font-size: 2rem;
    cursor: pointer;
    line-height: 0.5;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #fff;
}

/* Drag Drop Uploader Area */
.import-workspace {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.guide-text {
    font-size: 0.9rem;
    color: #8892b0;
    line-height: 1.5;
}

.drag-drop-area {
    width: 100%;
    height: 160px;
    border: 2px dashed rgba(189, 0, 255, 0.3);
    border-radius: 12px;
    background: rgba(189, 0, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
}

.drag-drop-area:hover, .drag-drop-area.dragover {
    background: rgba(189, 0, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
}

.upload-icon {
    font-size: 2.5rem;
    animation: iconBounce 2s infinite ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.upload-text {
    font-size: 0.9rem;
    color: #8892b0;
    text-align: center;
}

.highlight-action {
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(189, 0, 255, 0.3);
}

.import-options {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

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

.select-group label {
    font-size: 0.8rem;
    color: #8892b0;
    font-weight: bold;
}

.select-group select, .select-group input {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.select-group select:focus, .select-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(189, 0, 255, 0.2);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1rem;
}

.modal-footer button {
    width: 100%;
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-panel {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .agent-card-header, .rank-container, .stats-grid, .medal-wall {
        flex: 1;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    body, html {
        overflow-y: auto;
        overflow-x: hidden;
    }
    .app-container {
        padding: 0.8rem;
        gap: 1rem;
    }
    
    .main-header {
        padding: 0.8rem 1rem;
    }
    .header-top {
        flex-wrap: wrap;
        gap: 8px;
    }
    #user-info {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    #user-info button {
        flex: 1;
    }
    
    .profile-panel {
        flex-direction: column;
    }
    
    .warzone-tab {
        font-size: 0.85rem;
        padding: 10px 8px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }
}

/* 通用隐藏实用类 */
.hidden {
    display: none !important;
}

/* 弹窗中心滚动控制区 */
.modal-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 8px;
    margin-right: -4px; /* 对齐边距 */
}

/* 赛博霓虹自定义滚动条 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color, #bd00ff);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-color, #bd00ff);
}

/* ==========================================
   🪐 AI 全屏沉浸式智能考舱 (AI Immersion Chamber) 专属样式
   ========================================== */
#ai-immersion-chamber {
    animation: fadeInOverlay 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(15px); }
}

.immersion-wrapper {
    font-family: 'Noto Sans SC', 'Orbitron', sans-serif;
}

/* 玻璃拟态面板 */
.immersion-panel {
    background: rgba(13, 17, 35, 0.65) !important;
    border: 1px solid rgba(0, 240, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    transition: all 0.3s ease;
}

.immersion-panel:hover {
    border-color: rgba(0, 240, 255, 0.25) !important;
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.08), inset 0 1px 1px rgba(255,255,255,0.05) !important;
}

#immersion-right-panel {
    border-color: rgba(189, 0, 255, 0.12) !important;
}
#immersion-right-panel:hover {
    border-color: rgba(189, 0, 255, 0.25) !important;
    box-shadow: 0 10px 40px rgba(189, 0, 255, 0.08), inset 0 1px 1px rgba(255,255,255,0.05) !important;
}

/* 头部特工 HUD */
.hud-title-badge {
    text-shadow: 0 0 10px var(--primary-color);
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 5px rgba(189,0,255,0.3); }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(189,0,255,0.6); }
}

/* 智能启发式特工导师战术提醒 */
.ai-tutor-banner {
    border: 1px solid rgba(189, 0, 255, 0.2) !important;
    box-shadow: 0 5px 25px rgba(189, 0, 255, 0.05) !important;
    animation: bannerSlideIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

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

/* 选项选择网格 */
.options-grid .cyber-btn {
    padding: 15px;
    font-size: 0.95rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.options-grid .cyber-btn:hover {
    background: rgba(0, 240, 255, 0.08) !important;
    border-color: #00f0ff !important;
    color: #00f0ff !important;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15) !important;
    transform: translateY(-2px);
}

.options-grid .cyber-btn.active {
    background: rgba(0, 240, 255, 0.2) !important;
    border-color: #00f0ff !important;
    color: #fff !important;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3) !important;
}

/* 输入框微发光焦点 */
#immersion-fill-input:focus, #immersion-essay-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(189, 0, 255, 0.2), inset 0 2px 4px rgba(0,0,0,0.5) !important;
}

/* 自定义卡片内滚动条 */
.panel-scroll-content::-webkit-scrollbar {
    width: 6px;
}
.panel-scroll-content::-webkit-scrollbar-track {
    background: transparent;
}
.panel-scroll-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}
.panel-scroll-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* ==========================================
   历史战绩面板
   ========================================== */
.history-section {
    border: 1px solid rgba(255,255,255,0.06);
}

.history-section .section-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.history-section .section-header h3 {
    margin: 0;
}

#history-body {
    padding: 0.8rem 1rem;
}

.history-filter-btn.active {
    background: rgba(189,0,255,0.15) !important;
    border-color: #bd00ff !important;
    color: #bd00ff !important;
}

.history-table th {
    position: sticky;
    top: 0;
    background: rgba(10,14,23,0.95);
    z-index: 1;
}

.history-table tbody tr:hover {
    background: rgba(255,255,255,0.03) !important;
}

.history-table-wrapper {
    max-height: 360px;
    overflow-y: auto;
}

.history-table-wrapper::-webkit-scrollbar {
    width: 4px;
}

.history-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* 响应式：小屏隐藏用时列 */
@media (max-width: 600px) {
    .history-table th:nth-child(4),
    .history-table td:nth-child(4) {
        display: none;
    }
}

/* ====== 试卷状态沉底与删除功能扩展 ====== */
.completed-paper {
    opacity: 0.65;
    filter: grayscale(40%) sepia(20%) hue-rotate(180deg);
    transition: all 0.3s ease;
}
.completed-paper.focused {
    opacity: 0.85;
    filter: grayscale(30%) sepia(10%) hue-rotate(180deg);
}
.cleared-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 255, 170, 0.15);
    border: 4px solid rgba(0, 255, 170, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
    letter-spacing: 5px;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.2);
}
.perfect-watermark {
    color: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}
.failed-watermark {
    color: rgba(255, 62, 62, 0.15);
    border-color: rgba(255, 62, 62, 0.15);
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.2);
}
.perfect-paper {
    filter: sepia(10%) hue-rotate(-20deg) brightness(1.2);
    border-color: rgba(255, 215, 0, 0.3);
}
.perfect-paper.focused {
    filter: sepia(0) hue-rotate(0) brightness(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 215, 0, 0.3);
}
.failed-paper {
    filter: grayscale(60%) sepia(50%) hue-rotate(320deg);
}
.failed-paper.focused {
    filter: grayscale(30%) sepia(30%) hue-rotate(320deg);
}
.delete-paper-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8892b0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0; /* 默认完全隐形 */
    backdrop-filter: blur(4px);
}

.mission-card:hover .delete-paper-btn {
    opacity: 1; /* 鼠标悬浮在卡片上时显形 */
}

.delete-paper-btn:hover {
    background: rgba(255, 62, 62, 0.2);
    border-color: rgba(255, 62, 62, 0.5);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.5);
    transform: scale(1.1);
}
.radar-btn.active {
    background: rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    font-weight: bold;
}

.rank-badge.multiverse {
    background: linear-gradient(135deg, #00ffff, #ff00ff, #ffff00);
    background-size: 300% 300%;
    color: #fff;
    border: none;
    box-shadow: 0 0 25px rgba(0, 255, 255, 1);
    animation: multiversePulse 4s ease infinite;
    font-weight: 900;
}

.rank-badge.dimensional {
    background: radial-gradient(circle, #fff, #00f, #f0f, #000);
    background-size: 200% 200%;
    color: #fff;
    border: 1px solid #fff;
    box-shadow: 0 0 35px #fff;
    animation: dimensionalShift 2s linear infinite;
    font-weight: 900;
    text-shadow: 0 0 10px #000;
}

.rank-badge.creator {
    background: transparent;
    color: #fff;
    border: 2px solid transparent;
    box-shadow: 0 0 50px #ffd700, inset 0 0 15px #ffd700;
    text-shadow: 0 0 15px #fff, 0 0 25px #ffd700;
    animation: creatorGlow 3s infinite alternate;
    font-weight: 900;
    font-size: 0.9rem;
}

.rank-badge.architect {
    background: radial-gradient(ellipse at 30% 30%, #1a0033, #001);
    color: #c0b0ff;
    border: 1px solid #7b5fe0;
    box-shadow: 0 0 40px #4a30b0, 0 0 80px #2a1070;
    text-shadow: 0 0 10px #a080ff, 0 0 20px #6040d0;
    animation: architectSpark 3s infinite;
    font-weight: 900;
}

.rank-badge.weaver {
    background: linear-gradient(135deg, #0a1628, #1a2a48);
    color: #60f0ff;
    border: 1px solid #30c0e0;
    box-shadow: 0 0 35px #20a0d0, inset 0 0 10px rgba(50,200,240,0.2);
    text-shadow: 0 0 8px #80f0ff;
    animation: weaverRipple 4s ease-in-out infinite;
    font-weight: 900;
}

.rank-badge.shaper {
    background: conic-gradient(from 0deg, #ff0040, #ff6000, #ffe000, #00ff60, #0080ff, #8000ff, #ff0040);
    background-size: 400% 100%;
    color: #fff;
    border: none;
    box-shadow: 0 0 45px #ff40ff, 0 0 90px #ff0080;
    text-shadow: 0 0 6px #000;
    animation: shaperChaos 5s linear infinite;
    font-weight: 900;
}

.rank-badge.breaker {
    background: radial-gradient(circle at 50% 50%, #ffe0a0, #ffa000 40%, #000 100%);
    color: #fff;
    border: 1px solid #ffd080;
    box-shadow: 0 0 60px #ffb000, 0 0 120px #ff8000;
    text-shadow: 0 0 15px #fff, 0 0 30px #ffa000;
    animation: breakerSingularity 2.5s infinite alternate;
    font-weight: 900;
}

.rank-badge.infinite {
    background: none;
    color: #fff;
    border: none;
    box-shadow: 0 0 80px #fff, 0 0 160px #ff80ff, 0 0 240px #80ffff;
    text-shadow: 0 0 10px #fff, 0 0 30px #fff;
    animation: infiniteRadiance 2s infinite alternate;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
}

@keyframes multiversePulse {
    0% { background-position: 0% 50%; box-shadow: 0 0 25px #00ffff; }
    50% { background-position: 100% 50%; box-shadow: 0 0 40px #ff00ff; }
    100% { background-position: 0% 50%; box-shadow: 0 0 25px #00ffff; }
}

@keyframes dimensionalShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

@keyframes creatorGlow {
    0% { border-color: #fff; box-shadow: 0 0 30px #fff; }
    100% { border-color: #ffd700; box-shadow: 0 0 60px #ffd700; }
}

@keyframes architectSpark {
    0%, 100% { box-shadow: 0 0 40px #4a30b0, 0 0 80px #2a1070; }
    50% { box-shadow: 0 0 60px #7b5fe0, 0 0 120px #4a20a0, 0 0 200px #2a1070; }
}

@keyframes weaverRipple {
    0%, 100% { box-shadow: 0 0 35px #20a0d0, inset 0 0 10px rgba(50,200,240,0.2); }
    50% { box-shadow: 0 0 60px #60f0ff, 0 0 100px #40d0f0, inset 0 0 20px rgba(50,200,240,0.4); }
}

@keyframes shaperChaos {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

@keyframes breakerSingularity {
    0% { box-shadow: 0 0 60px #ffb000, 0 0 120px #ff8000; transform: scale(1); }
    100% { box-shadow: 0 0 100px #fff, 0 0 200px #ffb000; transform: scale(1.05); }
}

@keyframes infiniteRadiance {
    0% { box-shadow: 0 0 60px #fff, 0 0 120px #ff80ff, 0 0 180px #80ffff; opacity: 0.9; }
    100% { box-shadow: 0 0 120px #fff, 0 0 200px #ff80ff, 0 0 300px #80ffff; opacity: 1; }
}
