        :root {
            --terminal-green: #00ff41;
            --terminal-green-dim: #008f11;
            --terminal-green-dark: #003b00;
            --terminal-amber: #ffb000;
            --terminal-amber-dim: #b37400;
            --terminal-red: #ff3333;
            --terminal-cyan: #00ffff;
            --bg-black: #000000;
            --bg-dark: #0a0a0a;
            --bg-panel: rgba(0, 20, 0, 0.85);
            --text-primary: #00ff41;
            --text-secondary: #008f11;
            --text-dim: #003b00;
            --border-color: rgba(0, 255, 65, 0.3);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        /* ========== 全站统一规范（v2.4.9） ========== */
        /* 统一页面底部容器：fixed 固定吸底，按钮均匀分布，科幻扫描线背景 */
        .page-footer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            gap: 0;
            justify-content: space-around;
            align-items: center;
            padding: 14px 16px;
            background:
                linear-gradient(90deg, rgba(0,255,65,0.04), rgba(0,255,65,0.08), rgba(0,255,65,0.04)),
                repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,255,65,0.03) 2px, rgba(0,255,65,0.03) 3px),
                rgba(0, 12, 4, 0.97);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            border-top: 1px solid rgba(0, 255, 65, 0.25);
            box-shadow: 0 -2px 16px rgba(0, 255, 65, 0.08), inset 0 1px 0 rgba(0, 255, 65, 0.1);
            z-index: 30;
            margin-top: 0;
        }
        .page-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(0,255,65,0.6), transparent);
            animation: footerScan 3s linear infinite;
        }
        @keyframes footerScan {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }
        /* 统一底吸条按钮：无边框文字链接风格，前缀符号 */
        .footer-link,
        .footer-back-btn {
            display: inline-block;
            padding: 8px 14px;
            border: none;
            border-radius: 0;
            color: var(--terminal-green);
            background: transparent;
            text-decoration: none !important;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.82rem;
            font-weight: 500;
            letter-spacing: 1px;
            opacity: 1;
            pointer-events: auto;
            cursor: pointer;
            transition: color 0.2s ease, text-shadow 0.2s ease;
            text-align: center;
            white-space: nowrap;
            flex: 0 1 auto;
        }
        .footer-link::before,
        .footer-back-btn::before {
            content: '> ';
            color: var(--terminal-amber);
            margin-right: 3px;
        }
        .footer-link:hover,
        .footer-back-btn:hover {
            color: #d8fff6;
            text-shadow: 0 0 8px currentColor;
        }
        /* 按钮之间的科幻发光竖线分隔 */
        .footer-divider {
            width: 1px;
            height: 22px;
            background: rgba(0, 255, 65, 0.5);
            box-shadow: 0 0 6px rgba(0, 255, 65, 0.4), 0 0 2px rgba(0, 255, 65, 0.6);
            flex-shrink: 0;
        }
        @media (max-width: 480px) {
            .footer-link, .footer-back-btn { padding: 8px 10px; font-size: 0.74rem; letter-spacing: 0.5px; }
            .footer-divider { height: 18px; }
        }
        /* 问卷"下一步"专用按钮（独立于 .next-btn，避免污染） */
        .quiz-next-btn {
            display: block;
            padding: 14px 45px;
            background: transparent;
            border: 1px solid var(--terminal-green);
            border-radius: 0;
            color: var(--terminal-green);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0.4;
            pointer-events: none;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-left: auto;
            margin-right: 0;
            position: relative;
            text-align: center;
        }
        .quiz-next-btn.active {
            opacity: 1;
            pointer-events: auto;
        }
        .quiz-next-btn.active:hover {
            background: rgba(0, 255, 65, 0.1);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
        }
        .quiz-next-btn::before {
            content: '> ';
            color: var(--terminal-amber);
        }
        /* 专有名词按类目分色 */
        .proper-noun { font-weight: 600; text-shadow: 0 0 6px currentColor; }
        .proper-noun.character { color: #ffb000; }     /* 人名：琥珀 */
        .proper-noun.event { color: #ff6b6b; }          /* 事件：红 */
        .proper-noun.faction { color: #00ffff; }        /* 派系：青 */
        .proper-noun.nation { color: #a78bfa; }         /* 国家：紫 */
        .proper-noun.organization { color: #4ade80; }   /* 组织：绿 */
        .proper-noun.religion { color: #f0abfc; }       /* 宗教：粉 */
        /* 问卷结果页次要操作按钮（保存/重新测试） */
        .result-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 20px;
        }
        .result-action-btn {
            padding: 10px 24px;
            background: transparent;
            border: 1px solid var(--terminal-cyan);
            color: var(--terminal-cyan);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.82rem;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.25s ease;
            border-radius: 0;
        }
        .result-action-btn:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
        }

        body {
            font-family: 'JetBrains Mono', monospace;
            background: var(--bg-black);
            min-height: 100vh;
            color: var(--text-primary);
            overflow-x: hidden;
            overflow-y: auto;
            position: relative;
            height: 100%;
            padding-bottom: 64px;
        }

        /* Matrix Rain Canvas */
        #matrix-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
            opacity: 0.28;
        }

        /* CRT Scanline Effect */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 3px,
                rgba(0, 255, 65, 0.02) 3px,
                rgba(0, 255, 65, 0.02) 5px
            );
            pointer-events: none;
            z-index: 2;
            animation: scanlineMove 12s linear infinite;
        }

        @keyframes scanlineMove {
            0% { background-position: 0 0; }
            100% { background-position: 0 100%; }
        }

        /* CRT Flicker - Optimized with will-change */
        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 255, 65, 0.015);
            pointer-events: none;
            z-index: 3;
            will-change: opacity;
            animation: flicker 1.8s ease-in-out infinite;
        }

        @keyframes flicker {
            0%, 100% { opacity: 0.012; }
            50% { opacity: 0.024; }
        }

        /* Screen Glow */
        .screen-glow {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, rgba(0, 255, 65, 0.04) 0%, transparent 72%);
            pointer-events: none;
            z-index: 1;
        }

        /* Vignette */
        .vignette {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, transparent 56%, rgba(0, 0, 0, 0.48) 100%);
            pointer-events: none;
            z-index: 1;
        }

        .container {
            position: relative;
            z-index: 4;
            max-width: 900px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Blinking Cursor */
        .cursor {
            display: inline-block;
            width: 10px;
            height: 1.2em;
            background: var(--terminal-green);
            animation: blink 1s step-end infinite;
            vertical-align: text-bottom;
            margin-left: 2px;
        }

        .cursor-amber {
            background: var(--terminal-amber);
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* Home Page */
        .home-page {
            min-height: 100vh;
            max-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            text-align: left;
            position: relative;
            overflow: hidden;
        }

        .terminal-header {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-bottom: 30px;
            line-height: 1.8;
            border: 1px solid var(--border-color);
            border-left: 3px solid var(--terminal-green);
            padding: 15px;
            background: var(--bg-panel);
            position: relative;
        }
        .terminal-header::before {
            content: '[ 系统日志 ]';
            position: absolute;
            top: -8px;
            left: 12px;
            background: var(--bg-black);
            padding: 0 6px;
            font-size: 0.62rem;
            color: var(--terminal-green);
            letter-spacing: 2px;
        }

        .terminal-header .line {
            display: block;
        }

        .terminal-header .prompt {
            color: var(--terminal-amber);
        }

        .home-title {
            font-size: 3.5rem;
            font-weight: 700;
            color: var(--terminal-green);
            text-shadow: 0 0 10px rgba(0, 255, 65, 0.5), 0 0 20px rgba(0, 255, 65, 0.3);
            margin-bottom: 15px;
            letter-spacing: 4px;
            position: relative;
            padding-bottom: 14px;
        }
        .home-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 72px;
            height: 1px;
            background: linear-gradient(90deg, var(--terminal-green), transparent);
            box-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
        }

        .home-subtitle {
            font-size: 1rem;
            color: var(--text-secondary);
            margin-bottom: 50px;
            letter-spacing: 2px;
        }

        .home-subtitle .highlight {
            color: var(--terminal-amber);
        }

        .home-footer {
            margin-top: auto;
            padding-top: 28px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
            position: static;
        }

        .start-btn {
            padding: 18px 50px;
            background: transparent;
            border: 1px solid var(--terminal-green);
            color: var(--terminal-green);
            font-family: 'JetBrains Mono', monospace;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 3px;
            position: relative;
            overflow: hidden;
        }

        .start-btn:hover {
            background: rgba(0, 255, 65, 0.1);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), inset 0 0 20px rgba(0, 255, 65, 0.05);
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
        }

        .start-btn::before {
            content: '> ';
            color: var(--terminal-amber);
        }

        .pokedex-btn {
            padding: 14px 35px;
            background: transparent;
            border: 1px solid var(--terminal-cyan);
            color: var(--terminal-cyan);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-top: 15px;
            position: relative;
            overflow: hidden;
        }

        .pokedex-btn:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), inset 0 0 20px rgba(0, 255, 255, 0.05);
            text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
        }

        .pokedex-btn::before {
            content: '[ ';
            color: var(--terminal-amber);
        }

        .pokedex-btn::after {
            content: ' ]';
            color: var(--terminal-amber);
        }

        .world-status-btn {
            border-color: #8b5cf6;
            color: #d7c9ff;
        }

        .pokedex-link-btn {
            border-color: #00ffff;
            color: #00ffff;
        }

        #home-nav-actions {
            display: flex;
            align-items: center;
            gap: 18px;
            flex-wrap: wrap;
            justify-content: flex-start;
            position: relative;
            padding-top: 14px;
        }
        #home-nav-actions::before {
            content: '档案索引';
            position: absolute;
            top: -4px;
            left: 0;
            font-size: 0.66rem;
            color: var(--text-dim);
            letter-spacing: 3px;
        }

        .home-footer-link {
            border: none;
            background: transparent;
            padding: 0;
            margin: 0;
            color: var(--terminal-green);
            cursor: pointer;
            font: inherit;
            font-size: 0.82rem;
            letter-spacing: 1px;
            text-decoration: none;
            transition: color 0.2s ease, text-shadow 0.2s ease;
        }
        .home-footer-link::before {
            color: var(--terminal-green);
            margin-right: 4px;
        }
        .home-footer-link.world-link::before { content: '◉'; }
        .home-footer-link.pokedex-link::before { content: '▤'; }
        .home-footer-link.wv-link::before { content: '◆'; }
        .home-footer-link.map-link::before { content: '⊙'; }

        .home-footer-link:hover {
            color: #d8fff6;
            text-shadow: 0 0 8px currentColor;
        }

        .version-tag {
            position: static;
            font-size: 0.75rem;
            color: var(--text-dim);
            letter-spacing: 1px;
        }
        .version-tag::before {
            content: '归档编号 ';
            color: var(--text-dim);
        }

        /* Quiz Container */
        .quiz-container {
            display: none;
            animation: terminalBoot 0.5s ease;
            position: relative;
        }

        @keyframes terminalBoot {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .quiz-header {
            margin-bottom: 30px;
            padding-top: 20px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 15px;
        }

        .quiz-header h1 {
            font-size: 1.4rem;
            color: var(--terminal-green);
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
            margin-bottom: 8px;
            letter-spacing: 3px;
        }

        .quiz-header p {
            color: var(--text-secondary);
            font-size: 0.85rem;
            letter-spacing: 1px;
        }

        /* Progress Bar */
        .quiz-progress {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 12px 18px;
            background: var(--bg-panel);
            border: 1px solid var(--border-color);
        }

        .progress-bar {
            flex: 1;
            height: 4px;
            background: rgba(0, 255, 65, 0.1);
            overflow: hidden;
            margin: 0 20px;
            position: relative;
        }

        .progress-fill {
            height: 100%;
            background: var(--terminal-green);
            transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
            position: relative;
        }

        .progress-text {
            font-size: 0.85rem;
            color: var(--terminal-green);
            min-width: 70px;
        }

        .status-text {
            font-size: 0.75rem;
            color: var(--text-secondary);
            min-width: 100px;
            text-align: right;
        }

        /* Question */
        .quiz-question {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 25px;
            padding: 25px;
            background: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-left: 3px solid var(--terminal-green);
            position: relative;
        }

        .question-number {
            color: var(--terminal-amber);
            font-size: 0.8rem;
            margin-bottom: 10px;
            display: block;
        }

        .question-topic {
            display: inline-block;
            padding: 3px 10px;
            background: rgba(0, 255, 65, 0.1);
            border: 1px solid rgba(0, 255, 65, 0.3);
            font-size: 0.75rem;
            color: var(--terminal-green);
            margin-bottom: 12px;
        }

        /* Options - Terminal Style */
        .quiz-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 25px;
        }

        .quiz-option {
            padding: 16px 20px;
            background: var(--bg-panel);
            border: 1px solid rgba(0, 255, 65, 0.15);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            position: relative;
            font-family: 'JetBrains Mono', monospace;
            color: var(--text-primary);
        }

        .quiz-option::before {
            content: '> ';
            color: var(--text-secondary);
        }

        .quiz-option:hover {
            border-color: var(--terminal-green);
            background: rgba(0, 255, 65, 0.08);
            padding-left: 28px;
        }

        .quiz-option.selected {
            background: rgba(0, 255, 65, 0.12);
            border-color: var(--terminal-green);
            box-shadow: 0 0 15px rgba(0, 255, 65, 0.15), inset 0 0 15px rgba(0, 255, 65, 0.05);
        }

        .quiz-option.selected::before {
            content: '[OK] ';
            color: var(--terminal-green);
        }

        /* Next Button */
        .next-btn {
            padding: 14px 45px;
            background: transparent;
            border: 1px solid var(--terminal-green);
            color: var(--terminal-green);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0.4;
            pointer-events: none;
            float: right;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
        }

        .next-btn.active {
            opacity: 1;
            pointer-events: auto;
        }

        .next-btn.active:hover {
            background: rgba(0, 255, 65, 0.1);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
        }

        .next-btn::before {
            content: '> ';
            color: var(--terminal-amber);
        }

        /* Worldview Container - Terminal Style Navigation */
        .worldview-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
            padding: 12px;
            background: var(--bg-panel);
            border: 1px solid var(--border-color);
            border-radius: 6px;
        }

        .worldview-nav-item {
            padding: 8px 16px;
            background: transparent;
            border: 1px solid rgba(0, 255, 65, 0.2);
            color: var(--text-secondary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 4px;
        }

        .worldview-nav-item:hover {
            border-color: var(--terminal-green);
            color: var(--terminal-green);
            background: rgba(0, 255, 65, 0.05);
        }

        .worldview-nav-item.active {
            border-color: var(--terminal-green);
            color: var(--terminal-green);
            background: rgba(0, 255, 65, 0.1);
            box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
        }

        .worldview-tab {
            display: none;
        }

        .worldview-tab.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Worldview Content */
        .worldview-content {
            max-height: calc(70vh - 80px);
            overflow-y: auto;
            padding: 20px;
            background: rgba(0, 20, 0, 0.3);
            border: 1px solid rgba(0, 255, 65, 0.2);
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .worldview-content::-webkit-scrollbar {
            width: 8px;
        }

        .worldview-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 4px;
        }

        .worldview-content::-webkit-scrollbar-thumb {
            background: var(--terminal-green-dim);
            border-radius: 4px;
        }

        .worldview-footer {
            display: flex;
            gap: 15px;
            justify-content: center;
            padding: 15px 0;
            border-top: 1px solid rgba(0, 255, 65, 0.15);
            position: sticky;
            bottom: 0;
            background: rgba(0, 15, 0, 0.95);
            margin: 0 -20px -20px;
            padding: 15px 20px;
        }

        .worldview-footer .next-btn {
            flex: 0 1 auto;
            max-width: 180px;
            margin: 0 auto;
            float: none;
            opacity: 1 !important;
            pointer-events: auto !important;
            text-align: center;
            display: inline-block;
        }

        #worldview-container {
            max-height: calc(100vh - 40px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .worldview-section {
            margin-bottom: 24px;
            padding-bottom: 24px;
            border-bottom: 1px solid rgba(0, 255, 65, 0.1);
        }

        .worldview-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .worldview-section h3 {
            color: var(--terminal-amber);
            font-size: 1.1rem;
            margin-bottom: 12px;
            letter-spacing: 2px;
        }

        .worldview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
        }

        .worldview-card {
            background: rgba(0, 20, 0, 0.5);
            border: 1px solid rgba(0, 255, 65, 0.2);
            border-radius: 6px;
            padding: 12px;
            transition: all 0.3s ease;
        }

        .worldview-card:hover {
            border-color: var(--terminal-green);
            background: rgba(0, 30, 0, 0.6);
        }

        .nation-card, .religion-card, .org-card {
            background: rgba(0, 20, 0, 0.5);
            border: 1px solid rgba(0, 255, 65, 0.2);
            border-radius: 6px;
            padding: 16px;
            margin-bottom: 16px;
        }

        .nation-info, .religion-info, .org-info {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
            font-size: 0.85rem;
        }

        .nation-label, .religion-label, .org-label {
            color: var(--terminal-amber);
            font-weight: 600;
            min-width: 60px;
        }

        .nation-value, .religion-value, .org-value {
            color: var(--text-primary);
        }

        .nation-detail, .religion-detail, .org-detail {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(0, 255, 65, 0.1);
        }

        .nation-detail p, .religion-detail p, .org-detail p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.5;
            margin-bottom: 6px;
        }

        .faction-detail {
            background: rgba(0, 20, 0, 0.3);
            border-left: 3px solid var(--terminal-green);
            padding: 16px;
            margin-bottom: 20px;
            border-radius: 0 6px 6px 0;
        }

        .faction-detail h4 {
            font-size: 1.1rem;
            margin-bottom: 12px;
        }

        .faction-detail .desc {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .info-row {
            display: flex;
            gap: 12px;
            margin-bottom: 8px;
            font-size: 0.85rem;
        }

        .info-label {
            color: var(--terminal-amber);
            font-weight: 600;
            min-width: 80px;
        }

        .info-value {
            color: var(--text-primary);
        }

        .faction-quote, .org-quote {
            margin-top: 12px;
            padding: 12px;
            background: rgba(0, 255, 65, 0.05);
            border-left: 3px solid var(--terminal-green);
            font-style: italic;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .event-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .event-item {
            display: flex;
            gap: 12px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            border-left: 3px solid var(--terminal-green);
        }

        .event-icon {
            width: 56px;
            height: 56px;
            flex-shrink: 0;
            margin-top: 2px;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(0, 255, 65, 0.2);
            background: rgba(0, 12, 18, 0.75);
            box-shadow: 0 0 12px rgba(0, 255, 65, 0.08);
        }

        .event-content {
            flex: 1;
        }

        .event-title {
            font-size: 1rem;
            color: var(--text-primary);
            margin-bottom: 6px;
            font-weight: 500;
        }

        .event-desc {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .event-involved {
            font-size: 0.8rem;
            color: var(--terminal-green-dim);
            margin-top: 6px;
        }

        .event-characters {
            font-size: 0.8rem;
            color: var(--terminal-amber);
            margin-top: 4px;
        }

        .worldview-card h4 {
            color: var(--terminal-green);
            font-size: 0.95rem;
            margin-bottom: 6px;
        }

        .worldview-card p {
            color: var(--text-secondary);
            font-size: 0.8rem;
            line-height: 1.5;
        }

        .worldview-card .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 8px;
        }

        .worldview-card .tag {
            background: rgba(0, 255, 65, 0.1);
            border: 1px solid rgba(0, 255, 65, 0.3);
            color: var(--terminal-green-dim);
            padding: 2px 6px;
            border-radius: 3px;
            font-size: 0.7rem;
        }

        /* Philosophy Question - Terminal Style */
        .philosophy-question {
            background: rgba(0, 20, 0, 0.4);
            border: 1px solid rgba(0, 255, 65, 0.2);
            border-radius: 6px;
            padding: 0;
            margin-bottom: 16px;
            overflow: hidden;
        }

        .philosophy-question:last-child {
            margin-bottom: 0;
        }

        .philosophy-summary {
            cursor: pointer;
            padding: 14px 16px;
            color: var(--terminal-amber);
            font-size: 1rem;
            font-weight: 600;
            list-style: none;
            display: flex;
            align-items: center;
            gap: 8px;
            border-bottom: 1px solid rgba(0, 255, 65, 0.1);
            transition: background 0.2s ease;
        }

        .philosophy-summary::-webkit-details-marker { display: none; }
        .philosophy-summary::before {
            content: '▶';
            font-size: 0.7rem;
            transition: transform 0.2s ease;
            color: var(--accent);
        }
        .philosophy-question[open] .philosophy-summary::before {
            transform: rotate(90deg);
        }
        .philosophy-summary:hover { background: rgba(0, 255, 65, 0.05); }

        .philosophy-index {
            color: var(--accent);
            font-weight: 700;
        }

        .philosophy-question .faction-views,
        .philosophy-question .philosophy-debate {
            padding: 16px;
        }

        .philosophy-question h4 {
            color: var(--terminal-amber);
            font-size: 1rem;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(0, 255, 65, 0.1);
        }

        .faction-views {
            margin-bottom: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .faction-view {
            background: rgba(0, 15, 0, 0.3);
            border: 1px solid rgba(0, 255, 65, 0.1);
            border-radius: 4px;
            padding: 8px 12px;
        }

        .faction-label {
            color: var(--terminal-amber);
            font-size: 0.75rem;
            font-weight: 600;
            margin-right: 6px;
        }

        .faction-text {
            color: var(--text-secondary);
            font-size: 0.8rem;
            line-height: 1.4;
        }

        .philosophy-debate {
            border-top: 1px solid rgba(0, 255, 65, 0.1);
            padding-top: 12px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }

        .debate-item {
            margin-bottom: 8px;
            font-size: 0.8rem;
        }

        .debate-item:last-child {
            margin-bottom: 0;
        }

        .debate-label {
            font-weight: 600;
            margin-right: 6px;
        }

        .debate-item.pro .debate-label {
            color: #10b981;
        }

        .debate-item.con .debate-label {
            color: #ef4444;
        }

        .debate-item.reality .debate-label {
            color: #f59e0b;
        }

        .debate-text {
            color: var(--text-secondary);
        }

        /* Matrix Grid - Terminal Style */
        .matrix-container {
            background: rgba(0, 20, 0, 0.4);
            border: 1px solid rgba(0, 255, 65, 0.2);
            border-radius: 6px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .matrix-grid {
            display: grid;
            grid-template-columns: 100px repeat(3, 1fr);
            gap: 8px;
            text-align: center;
        }

        .matrix-header {
            background: rgba(0, 255, 65, 0.1);
            padding: 10px;
            font-weight: 600;
            color: var(--terminal-green);
            border-radius: 4px;
        }

        .matrix-label {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .matrix-cell {
            background: rgba(0, 15, 0, 0.4);
            padding: 12px;
            border-radius: 4px;
            border: 1px solid rgba(0, 255, 65, 0.1);
            font-size: 0.9rem;
        }

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: rgba(0, 20, 0, 0.4);
            border: 1px solid rgba(0, 255, 65, 0.2);
            border-radius: 6px;
            padding: 16px;
            text-align: center;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--terminal-green);
            text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        /* Relation Network */
        .relation-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 12px;
        }

        .relation-card {
            background: rgba(0, 20, 0, 0.4);
            border: 1px solid rgba(0, 255, 65, 0.15);
            border-radius: 6px;
            padding: 12px;
        }

        .relation-card strong {
            color: var(--terminal-amber);
            font-size: 0.9rem;
        }

        .relation-card p {
            color: var(--text-secondary);
            font-size: 0.8rem;
            margin-top: 4px;
        }

        /* Character/Event Preview */
        .preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 16px;
        }

        .preview-card {
            background: rgba(0, 20, 0, 0.4);
            border: 1px solid rgba(0, 255, 65, 0.15);
            border-radius: 6px;
            padding: 16px;
        }

        .preview-portrait {
            width: 100%;
            aspect-ratio: 4 / 3;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid rgba(0, 255, 65, 0.16);
            background: rgba(0, 8, 12, 0.8);
            margin-bottom: 12px;
            box-shadow: 0 0 18px rgba(0, 255, 65, 0.08);
        }

        .preview-card h4 {
            color: var(--terminal-green);
            font-size: 0.95rem;
            margin-bottom: 8px;
        }

        .preview-card .rarity-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 3px;
            font-size: 0.7rem;
            margin-bottom: 8px;
        }

        .rarity-s { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
        .rarity-a { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
        .rarity-b { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }

        .preview-card p {
            color: var(--text-secondary);
            font-size: 0.8rem;
            line-height: 1.5;
        }

        .preview-meta {
            margin-top: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .preview-meta span {
            background: rgba(0, 255, 65, 0.05);
            border: 1px solid rgba(0, 255, 65, 0.15);
            padding: 2px 8px;
            border-radius: 3px;
            font-size: 0.7rem;
            color: var(--text-secondary);
        }

        /* Event List - Terminal Style */
        .event-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .event-item {
            display: flex;
            gap: 12px;
            background: rgba(0, 20, 0, 0.3);
            border: 1px solid rgba(0, 255, 65, 0.1);
            border-radius: 6px;
            padding: 14px;
            border-left: 3px solid var(--terminal-green);
            transition: all 0.3s ease;
        }

        .event-item:hover {
            background: rgba(0, 20, 0, 0.5);
            border-color: rgba(0, 255, 65, 0.3);
        }

        .event-icon {
            font-size: 1.5rem;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .event-content {
            flex: 1;
        }

        .event-title {
            color: var(--terminal-green);
            font-size: 0.95rem;
            margin: 4px 0;
            font-weight: 500;
        }

        .event-desc {
            color: var(--text-secondary);
            font-size: 0.8rem;
            line-height: 1.4;
        }

        .event-involved {
            color: var(--terminal-green-dim);
            font-size: 0.75rem;
            margin-top: 6px;
        }

        .event-characters {
            color: var(--terminal-amber);
            font-size: 0.75rem;
            margin-top: 4px;
        }

        /* Faction Detail Card */
        .faction-detail {
            background: rgba(0, 20, 0, 0.4);
            border: 1px solid rgba(0, 255, 65, 0.15);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 16px;
        }

        .faction-detail h4 {
            color: var(--terminal-green);
            font-size: 1.1rem;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .faction-detail .desc {
            color: var(--text-secondary);
            font-size: 0.85rem;
            line-height: 1.6;
            margin-bottom: 12px;
        }

        .faction-detail .info-row {
            display: flex;
            margin-bottom: 6px;
            font-size: 0.8rem;
        }

        .faction-detail .info-label {
            color: var(--terminal-amber);
            min-width: 80px;
        }

        .faction-detail .info-value {
            color: var(--text-secondary);
        }

        .faction-quote {
            font-style: italic;
            color: var(--terminal-green-dim);
            font-size: 0.85rem;
            padding: 10px;
            background: rgba(0, 255, 65, 0.05);
            border-left: 3px solid var(--terminal-green);
            margin-top: 12px;
        }

        /* Background Text */
        .bg-text {
            background: rgba(0, 20, 0, 0.3);
            border: 1px solid rgba(0, 255, 65, 0.15);
            border-radius: 6px;
            padding: 20px;
            margin-bottom: 20px;
            line-height: 1.8;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        .bg-text strong {
            color: var(--terminal-green);
        }

        @media (max-width: 768px) {
            .philosophy-debate {
                grid-template-columns: 1fr;
            }
            .matrix-grid {
                grid-template-columns: 50px repeat(3, 1fr);
                font-size: 0.8rem;
            }
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .worldview-nav {
                justify-content: flex-start;
                gap: 6px;
            }
            .worldview-nav-item {
                padding: 6px 10px;
                font-size: 0.72rem;
                flex: 0 0 auto;
            }
            .philosophy-summary {
                font-size: 0.88rem;
                padding: 12px;
            }
            .philosophy-question .faction-views,
            .philosophy-question .philosophy-debate {
                padding: 12px;
            }
        }

        /* Result Container - System Report Style */
        .result-container {
            animation: terminalBoot 0.8s ease;
        }

        .access-granted {
            text-align: center;
            font-size: 2.5rem;
            color: var(--terminal-green);
            text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
            margin-bottom: 10px;
            letter-spacing: 6px;
            animation: accessPulse 2s ease-in-out infinite;
        }

        @keyframes accessPulse {
            0%, 100% { text-shadow: 0 0 15px rgba(0, 255, 65, 0.6); }
            50% { text-shadow: 0 0 30px rgba(0, 255, 65, 0.9), 0 0 50px rgba(0, 255, 65, 0.4); }
        }

        .result-subtitle {
            text-align: center;
            color: var(--text-secondary);
            margin-bottom: 30px;
            font-size: 0.9rem;
            letter-spacing: 2px;
        }

        .result-mini-label {
            text-align: center;
            color: var(--terminal-amber);
            font-size: 0.78rem;
            letter-spacing: 2px;
            margin: 8px 0 14px;
        }

        .share-status {
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.8rem;
            margin-top: 14px;
            min-height: 20px;
        }

        /* System Report Box */
        .system-report {
            background: var(--bg-panel);
            border: 1px solid var(--border-color);
            padding: 20px;
            margin-bottom: 25px;
            position: relative;
        }

        .system-report::before {
            content: '=== SYSTEM REPORT ===';
            display: block;
            color: var(--terminal-amber);
            font-size: 0.8rem;
            margin-bottom: 15px;
            letter-spacing: 3px;
        }

        .report-line {
            display: block;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .report-line .label {
            color: var(--text-secondary);
        }

        .report-line .value {
            color: var(--terminal-green);
        }

        /* Faction Badge */
        .faction-badge {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 10px 25px;
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 20px;
            border: 1px solid;
            text-transform: uppercase;
            letter-spacing: 3px;
            animation: badgePulse 2s ease-in-out infinite;
            font-family: 'JetBrains Mono', monospace;
        }

        .faction-badge-icon {
            width: 34px;
            height: 34px;
            border: 1px solid currentColor;
            background: rgba(0, 0, 0, 0.25);
            padding: 4px;
            flex-shrink: 0;
        }

        .faction-badge-text {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        @keyframes badgePulse {
            0%, 100% { box-shadow: 0 0 10px currentColor; }
            50% { box-shadow: 0 0 20px currentColor, 0 0 40px currentColor; }
        }

        .faction-info {
            background: var(--bg-panel);
            padding: 25px;
            margin-bottom: 25px;
            border: 1px solid var(--border-color);
            border-left: 3px solid;
            position: relative;
        }

        .faction-info h3 {
            font-size: 1.3rem;
            margin-bottom: 12px;
            color: var(--text-primary);
            font-family: 'JetBrains Mono', monospace;
        }

        .faction-info p {
            color: var(--text-secondary);
            line-height: 1.7;
            font-size: 0.95rem;
        }

        .faction-tags {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 15px;
        }

        .faction-tag {
            padding: 6px 14px;
            background: rgba(0, 255, 65, 0.05);
            border: 1px solid rgba(0, 255, 65, 0.2);
            font-size: 0.8rem;
            font-family: 'JetBrains Mono', monospace;
        }

        .faction-tag.has-logo {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .faction-tag-icon {
            width: 18px;
            height: 18px;
            display: inline-block;
            flex-shrink: 0;
        }

        .faction-role-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border: 1px solid currentColor;
            background: rgba(255, 255, 255, 0.04);
            font-size: 0.72rem;
            letter-spacing: 1px;
            vertical-align: middle;
        }

        .faction-detail-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .faction-title-line {
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .faction-mark {
            width: 24px;
            height: 24px;
            display: inline-block;
            flex-shrink: 0;
        }

        .faction-mark-lg {
            width: 42px;
            height: 42px;
            border: 1px solid rgba(255, 255, 255, 0.14);
            background: rgba(0, 0, 0, 0.24);
            padding: 5px;
            display: inline-block;
            flex-shrink: 0;
        }

        .faction-inline {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .matrix-faction {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
            width: 100%;
        }

        .matrix-faction .faction-mark {
            width: 22px;
            height: 22px;
        }

        /* Character Card */
        .character-card {
            background: var(--bg-panel);
            padding: 30px;
            margin-bottom: 25px;
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .character-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, var(--terminal-green), var(--terminal-amber), var(--terminal-green));
        }

        .character-header {
            display: flex;
            align-items: center;
            gap: 25px;
            margin-bottom: 25px;
        }

        .character-avatar {
            width: 102px;
            height: 120px;
            background: var(--bg-black);
            border: 2px solid var(--terminal-green);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex-shrink: 0;
            box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
            border-radius: 18px;
            overflow: hidden;
        }

        .asset-fill {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

        .character-avatar .rarity {
            position: absolute;
            bottom: -8px;
            right: -8px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: bold;
            border: 2px solid var(--bg-black);
            font-family: 'JetBrains Mono', monospace;
        }

        .rarity-S { background: var(--terminal-amber); color: var(--bg-black); box-shadow: 0 0 10px rgba(255, 176, 0, 0.5); }
        .rarity-A { background: var(--terminal-green); color: var(--bg-black); box-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
        .rarity-B { background: var(--text-secondary); color: var(--bg-black); }

        .character-details h3 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--text-primary);
            font-family: 'JetBrains Mono', monospace;
        }

        .character-details .tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .tag {
            padding: 5px 14px;
            background: rgba(0, 255, 65, 0.05);
            border: 1px solid rgba(0, 255, 65, 0.2);
            font-size: 0.8rem;
            font-family: 'JetBrains Mono', monospace;
        }

        .tag.faction { border-color: var(--terminal-green); color: var(--terminal-green); }
        .tag.nation { border-color: var(--terminal-amber); color: var(--terminal-amber); }

        .character-story {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 255, 65, 0.15);
        }

        .character-story p {
            line-height: 1.7;
            color: var(--text-secondary);
            font-size: 0.95rem;
        }

        .quote {
            color: var(--terminal-amber);
            margin-top: 20px;
            padding: 20px;
            background: rgba(255, 176, 0, 0.05);
            border-left: 2px solid var(--terminal-amber);
            font-size: 1rem;
            line-height: 1.6;
            position: relative;
            font-style: italic;
        }

        .quote::before {
            content: '>';
            position: absolute;
            top: 10px;
            left: 10px;
            color: var(--terminal-amber);
            opacity: 0.5;
        }

        /* 专有名词高亮：已迁移至文件头部统一规范区，按类目分色 */

        /* Related Section */
        .related-section { margin-top: 30px; }
        .related-section h3 {
            margin-bottom: 20px;
            font-size: 1.1rem;
            color: var(--text-primary);
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 255, 65, 0.3);
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: 2px;
        }

        /* 结果页档案整合容器：把所在国家/派系/组织/宗教/事件整合成一个连贯的档案块 */
        .related-sections-group {
            margin-top: 24px;
            padding: 18px 20px 8px;
            background: linear-gradient(180deg, rgba(0, 30, 24, 0.45), rgba(0, 18, 15, 0.55));
            border: 1px solid rgba(0, 255, 65, 0.18);
            border-left: 3px solid var(--terminal-green);
            position: relative;
        }
        .related-sections-group::before {
            content: '[ 身份档案 ]';
            position: absolute;
            top: -8px;
            left: 14px;
            background: var(--bg-black);
            padding: 0 8px;
            font-size: 0.66rem;
            color: var(--terminal-green);
            letter-spacing: 2px;
            font-family: 'JetBrains Mono', monospace;
        }
        .related-sections-group .related-section {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px dashed rgba(0, 255, 65, 0.18);
        }
        .related-sections-group .related-section:first-child {
            margin-top: 4px;
            padding-top: 0;
            border-top: none;
        }
        .related-sections-group .related-section h3 {
            margin-bottom: 12px;
            padding-bottom: 6px;
            font-size: 0.92rem;
            letter-spacing: 1.5px;
            border-bottom: 1px solid rgba(0, 255, 65, 0.18);
            color: var(--terminal-green);
            opacity: 0.92;
        }
        .related-sections-group .related-card {
            background: rgba(0, 0, 0, 0.25);
            border-color: rgba(0, 255, 65, 0.1);
            padding: 14px 16px;
        }
        .related-sections-group .related-card:hover {
            border-color: rgba(0, 255, 65, 0.35);
        }

        .related-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 15px;
        }

        .related-card {
            background: var(--bg-panel);
            padding: 20px;
            border: 1px solid rgba(0, 255, 65, 0.15);
            transition: all 0.3s ease;
        }

        .related-card:hover {
            border-color: var(--terminal-green);
            box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
        }

        .related-card h4 {
            font-size: 1rem;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: 'JetBrains Mono', monospace;
            color: var(--terminal-green);
        }

        .related-card p {
            font-size: 0.85rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Pokedex Section */
        .pokedex-section {
            margin-top: 35px;
            background: var(--bg-panel);
            padding: 30px;
            border: 1px solid var(--border-color);
        }

        .pokedex-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .pokedex-header h3 {
            font-size: 1.2rem;
            color: var(--terminal-green);
            letter-spacing: 2px;
            font-family: 'JetBrains Mono', monospace;
        }

        .pokedex-stats {
            display: flex;
            gap: 25px;
        }

        .stat-item { text-align: center; }
        .stat-num {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--terminal-green);
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
            font-family: 'JetBrains Mono', monospace;
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 4px;
            font-family: 'JetBrains Mono', monospace;
        }

        .pokedex-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            gap: 10px;
        }

        .pokedex-item {
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            transition: all 0.3s ease;
            border: 1px solid rgba(0, 255, 65, 0.15);
            font-family: 'Noto Sans Symbols', 'Segoe UI Symbol', 'DejaVu Sans', sans-serif;
            cursor: pointer;
            overflow: hidden;
            border-radius: 12px;
        }

        .pokedex-item.collected {
            background: rgba(0, 255, 65, 0.1);
            border-color: var(--terminal-green);
            color: var(--terminal-green);
            box-shadow: 0 0 10px rgba(0, 255, 65, 0.15);
        }

        .pokedex-item.collected:hover {
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
        }

        .pokedex-item.uncollected {
            background: rgba(0, 255, 65, 0.02);
            border-color: rgba(0, 255, 65, 0.08);
            color: var(--text-dim);
        }

        /* Worldview Unlock */
        .worldview-unlock {
            margin-top: 25px;
            padding: 25px;
            background: rgba(0, 255, 65, 0.05);
            text-align: center;
            border: 1px solid var(--terminal-green);
            animation: unlockPulse 2s ease-in-out infinite;
        }

        @keyframes unlockPulse {
            0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 65, 0.2); }
            50% { box-shadow: 0 0 30px rgba(0, 255, 65, 0.4); }
        }

        .worldview-unlock h4 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: var(--terminal-green);
            font-family: 'JetBrains Mono', monospace;
        }

        .worldview-link {
            display: inline-block;
            padding: 12px 35px;
            background: transparent;
            border: 1px solid var(--terminal-green);
            color: var(--terminal-green);
            text-decoration: none;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 500;
            margin-top: 15px;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .worldview-link:hover {
            background: rgba(0, 255, 65, 0.1);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
        }

        /* Actions */
        .actions {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        .action-btn {
            padding: 14px 40px;
            border: 1px solid var(--terminal-green);
            background: transparent;
            color: var(--terminal-green);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .action-btn:hover {
            background: rgba(0, 255, 65, 0.1);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
            text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
        }

        .action-btn::before {
            content: '> ';
            color: var(--terminal-amber);
        }

        /* Secret Button - Hidden Egg */
        .secret-section {
            margin-top: 30px;
            text-align: center;
            display: none;
        }

        .secret-section.revealed {
            display: block;
            animation: secretReveal 1s ease forwards;
        }

        @keyframes secretReveal {
            0% { opacity: 0; transform: scale(0.8); }
            50% { transform: scale(1.05); }
            100% { opacity: 1; transform: scale(1); }
        }

        .secret-hint {
            color: var(--text-dim);
            font-size: 0.8rem;
            margin-bottom: 15px;
            cursor: pointer;
            transition: color 0.3s;
        }

        .secret-hint:hover {
            color: var(--terminal-amber);
        }

        .secret-btn {
            display: none;
            padding: 16px 50px;
            background: transparent;
            border: none;
            color: var(--terminal-cyan);
            font-family: 'JetBrains Mono', monospace;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 3px;
            text-shadow: 0 0 10px rgba(0,255,255,0.5);
        }

        .secret-btn.visible {
            display: inline-block;
            animation: secretGlow 2s ease-in-out infinite;
        }

        @keyframes secretGlow {
            0%, 100% { text-shadow: 0 0 10px rgba(0,255,255,0.5); }
            50% { text-shadow: 0 0 20px rgba(0,255,255,0.8), 0 0 30px rgba(0,255,255,0.4); }
        }

        .secret-btn:hover {
            background: rgba(0, 255, 255, 0.08);
            text-shadow: 0 0 14px rgba(0,255,255,0.7);
        }

        .secret-btn::before {
            content: '◇ ';
            color: var(--terminal-amber);
        }

        .secret-btn::after {
            content: ' ◇';
            color: var(--terminal-amber);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .modal-content {
            background: var(--bg-panel);
            padding: 30px;
            max-width: 550px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
            border: 1px solid var(--border-color);
            box-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
        }

        .auth-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            justify-content: center;
            align-items: center;
            z-index: 1001;
        }

        .auth-modal-content {
            background: var(--bg-panel);
            padding: 30px;
            max-width: 400px;
            width: 90%;
            border: 1px solid var(--border-color);
            box-shadow: 0 0 40px rgba(0, 255, 65, 0.2);
            text-align: center;
        }

        .auth-modal-content h3 {
            color: var(--text-primary);
            margin-bottom: 20px;
            font-size: 1.3rem;
        }

        .auth-input {
            width: 100%;
            padding: 12px;
            margin: 10px 0;
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            color: var(--text-primary);
            font-size: 0.95rem;
            box-sizing: border-box;
        }

        .auth-input:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
        }

        .auth-input::placeholder {
            color: var(--text-secondary);
        }

        .auth-submit {
            width: 100%;
            padding: 12px;
            margin: 15px 0;
            background: var(--accent-color);
            border: none;
            border-radius: 4px;
            color: #000;
            font-weight: bold;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .auth-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
        }

        .auth-error {
            color: #ff4444;
            font-size: 0.85rem;
            margin-bottom: 10px;
            min-height: 20px;
        }

        .auth-switch {
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .auth-switch a {
            color: var(--accent-color);
            cursor: pointer;
            text-decoration: underline;
        }

        .auth-switch a:hover {
            color: #88ffaa;
        }

        .modal-close {
            position: absolute;
            top: 12px;
            right: 18px;
            font-size: 1.8rem;
            cursor: pointer;
            color: var(--text-secondary);
            transition: color 0.3s;
            font-family: 'JetBrains Mono', monospace;
        }

        .modal-close:hover { color: var(--terminal-green); }

        .modal h4 {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--terminal-green);
            font-family: 'JetBrains Mono', monospace;
        }

        .modal p {
            line-height: 1.7;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* Detail Modal Styles */
        .detail-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(0, 255, 65, 0.15);
        }

        .detail-icon {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 255, 65, 0.1);
            border: 2px solid rgba(0, 255, 65, 0.3);
            border-radius: 16px;
            overflow: hidden;
        }

        .detail-title h4 {
            font-size: 1.3rem !important;
            margin-bottom: 8px !important;
        }

        .detail-section {
            margin-bottom: 16px;
        }

        .detail-section h5 {
            font-size: 0.85rem;
            color: var(--terminal-amber);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .detail-section p {
            line-height: 1.6;
        }

        .detail-meta {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 16px;
            padding: 12px;
            background: rgba(0, 20, 0, 0.4);
            border: 1px solid rgba(0, 255, 65, 0.1);
            border-radius: 6px;
        }

        .meta-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .meta-label {
            font-size: 0.7rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .meta-value {
            font-size: 0.9rem;
            color: var(--terminal-green);
        }

        .detail-quote {
            font-style: italic;
            padding: 12px 16px;
            background: rgba(0, 255, 65, 0.05);
            border-left: 3px solid var(--terminal-green);
            border-radius: 0 6px 6px 0;
            margin-top: 16px;
            color: var(--terminal-green-dim);
            font-size: 0.9rem;
        }

        .event-badge {
            display: inline-block;
            padding: 3px 10px;
            background: rgba(0, 255, 65, 0.15);
            border: 1px solid rgba(0, 255, 65, 0.3);
            border-radius: 4px;
            font-size: 0.75rem;
            color: var(--terminal-green);
        }

        /* Slide Animations */
        .slide-in {
            animation: slideIn 0.5s ease forwards;
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .slide-out {
            animation: slideOut 0.3s ease forwards;
        }

        @keyframes slideOut {
            from { opacity: 1; transform: translateX(0); }
            to { opacity: 0; transform: translateX(-20px); }
        }

        /* Typewriter Effect Helper */
        .typewriter-text {
            overflow: hidden;
            white-space: pre-wrap;
        }

        /* Glitch Text Effect for Terminal */
        .glitch-text {
            position: relative;
        }

        .glitch-text::before,
        .glitch-text::after {
            content: attr(data-text);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .glitch-text::before {
            animation: glitch-1 3s infinite linear alternate-reverse;
            color: var(--terminal-red);
            z-index: -1;
            opacity: 0.5;
        }

        .glitch-text::after {
            animation: glitch-2 4s infinite linear alternate-reverse;
            color: var(--terminal-cyan);
            z-index: -2;
            opacity: 0.5;
        }

        @keyframes glitch-1 {
            0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-1px, 0); }
            20% { clip-path: inset(30% 0 50% 0); transform: translate(1px, 0); }
            40% { clip-path: inset(60% 0 20% 0); transform: translate(-1px, 0); }
            60% { clip-path: inset(10% 0 70% 0); transform: translate(1px, 0); }
            80% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, 0); }
        }

        @keyframes glitch-2 {
            0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(1px, 0); }
            20% { clip-path: inset(50% 0 30% 0); transform: translate(-1px, 0); }
            40% { clip-path: inset(20% 0 60% 0); transform: translate(1px, 0); }
            60% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 0); }
            80% { clip-path: inset(5% 0 80% 0); transform: translate(1px, 0); }
        }

        /* Responsive - Mobile Optimization */
        @media (max-width: 768px) {
            .container { padding: 12px; }
            .home-page {
                justify-content: flex-start;
                padding-top: 14px;
                padding-bottom: 72px;
                min-height: 100vh;
                max-height: none;
                overflow-y: auto;
            }
            /* 移动端取消 absolute 定位，避免压住 terminal-header */
            #home-top-actions {
                position: static;
                top: auto;
                right: auto;
                justify-content: flex-start;
                margin-bottom: 10px;
                gap: 6px;
            }
            .home-title { font-size: 2rem; letter-spacing: 2px; margin-bottom: 8px; padding-bottom: 10px; }
            .home-title::after { width: 54px; }
            .home-subtitle { font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 18px; }
            .start-btn { padding: 12px 30px; font-size: 0.88rem; letter-spacing: 2px; }
            .terminal-header { font-size: 0.6rem; padding: 9px 10px; margin-bottom: 18px; line-height: 1.6; }
            .terminal-header::before { font-size: 0.56rem; top: -7px; left: 10px; }
            .terminal-header,
            .home-title,
            .home-subtitle,
            .home-actions {
                width: 100%;
            }
            /* 移动端 home-footer 保持 static，与桌面统一 */
            .home-footer {
                position: static;
                padding: 8px 0;
                gap: 6px;
            }
            #home-nav-actions {
                width: 100%;
                gap: 14px;
                padding-top: 12px;
            }
            #home-nav-actions::before { font-size: 0.6rem; top: -2px; }
            .home-footer-link {
                font-size: 0.82rem;
            }
            .home-meta { margin-bottom: 14px !important; font-size: 0.66rem !important; }

            .quiz-header { margin-bottom: 15px; padding-top: 10px; }
            .quiz-header h1 { font-size: 1.1rem; letter-spacing: 2px; }
            .quiz-header p { font-size: 0.7rem; }

            .quiz-progress {
                flex-direction: row;
                gap: 6px;
                padding: 8px 10px;
                margin-bottom: 15px;
            }
            .progress-text { font-size: 0.7rem; min-width: 50px; }
            .status-text { font-size: 0.65rem; min-width: 60px; }
            .progress-bar { margin: 0 6px; height: 3px; }

            .quiz-question {
                padding: 15px;
                margin-bottom: 12px;
                font-size: 0.9rem;
                line-height: 1.6;
            }
            .question-number { font-size: 0.7rem; margin-bottom: 6px; }
            .question-topic { font-size: 0.65rem; padding: 2px 8px; margin-bottom: 8px; }

            .quiz-options { gap: 6px; margin-bottom: 12px; }
            .quiz-option {
                padding: 12px 14px;
                font-size: 0.85rem;
            }

            /* 手机端 quiz-next-btn：居中显示，不吸底，稳定无位移无滚动条 */
            .quiz-next-btn {
                padding: 10px 25px;
                font-size: 0.8rem;
                margin: 0 auto;
                width: 100%;
                max-width: 160px;
                border-radius: 0;
            }

            .access-granted { font-size: 1.6rem; letter-spacing: 3px; }
            .faction-badge { font-size: 0.9rem; padding: 8px 18px; }
            .faction-info { padding: 18px; }
            .faction-info h3 { font-size: 1.1rem; }
            .faction-info p { font-size: 0.85rem; }
            .faction-tags { gap: 6px; }
            .faction-tag { font-size: 0.7rem; padding: 4px 10px; }

            .character-card { padding: 20px; }
            .character-header { flex-direction: column; text-align: center; gap: 15px; }
            .character-avatar { width: 84px; height: 96px; }
            .character-details h3 { font-size: 1.1rem; }
            .character-story p { font-size: 0.85rem; }
            .quote { font-size: 0.85rem; padding: 15px; }

            .pokedex-grid { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }
            .pokedex-item { font-size: 1rem; }
            .pokedex-section { padding: 20px; }
            .stat-num { font-size: 1.3rem; }
            .actions { gap: 10px; margin-top: 25px; flex-direction: column; }
            .action-btn { padding: 10px 20px; font-size: 0.8rem; width: 100%; max-width: none; text-align: center; }

            .related-cards { grid-template-columns: 1fr; }
            .related-section h3 { font-size: 1rem; }
            .worldview-nav {
                justify-content: flex-start;
                flex-wrap: nowrap;
                overflow-x: auto;
                padding-bottom: 4px;
                -ms-overflow-style: none;
                scrollbar-width: none;
            }
            .worldview-nav::-webkit-scrollbar {
                display: none;
            }
            .worldview-nav-item {
                flex: 0 0 auto;
            }
            .modal-content,
            .auth-modal-content {
                width: calc(100vw - 24px);
                max-width: none;
                max-height: 86vh;
                overflow-y: auto;
                padding: 18px;
            }
            #game-modal-content {
                max-width: none;
                padding: 10px;
            }
            #game-container {
                padding: 10px 8px calc(18px + env(safe-area-inset-bottom));
            }
            #home-top-actions {
                gap: 6px;
                max-width: 100%;
            }
            #user-info {
                gap: 6px;
                padding: 0;
            }
            #user-info #user-name {
                font-size: 0.82rem;
                width: auto;
                text-align: right;
            }
            #user-info .auth-btn {
                font-size: 0.82rem;
            }
            #home-top-actions .auth-btn {
                min-height: 30px;
                padding: 5px 8px;
                font-size: 0.65rem;
            }
            .world-situation-content {
                width: calc(100vw - 16px);
                max-height: calc(100vh - 16px);
                padding: 16px;
            }
            .world-situation-head {
                flex-direction: column;
            }
            .world-situation-actions {
                width: 100%;
                justify-content: flex-start;
            }
            .world-situation-status {
                font-size: 0.78rem;
            }
            .world-situation-frame {
                padding: 10px;
            }
            .world-situation-frame .section {
                padding: 16px;
            }
            .world-situation-frame .section-head {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }
            /* 手机端阵营派系分布：保持每行一个阵营 */
            .world-situation-frame .insight-list {
                grid-template-columns: 1fr;
            }
            .world-situation-frame .bloc-panel { padding: 10px; min-width: 0; overflow: hidden; }
            .world-situation-frame .bloc-logo { width: 30px; height: 30px; }
            .world-situation-frame .bloc-title { font-size: 0.9rem; margin-bottom: 1px; }
            .world-situation-frame .bloc-subtitle { font-size: 0.62rem; }
            .world-situation-frame .bloc-head-stats .big-num { font-size: 1.2rem; }
            .world-situation-frame .bloc-head-stats .big-unit { font-size: 0.62rem; }
            .world-situation-frame .bloc-head-stats .big-sep { margin: 0 3px; }
            .world-situation-frame .bloc-faction-grid { gap: 5px; }
            .world-situation-frame .faction-cell { padding: 6px 4px; }
            .world-situation-frame .faction-cell .faction-logo { width: 20px; height: 20px; }
            .world-situation-frame .faction-cell-name { font-size: 0.68rem; }
            .world-situation-frame .faction-cell-stats .fc-num { font-size: 0.8rem; }
            .world-situation-frame .faction-cell-stats .fc-unit { font-size: 0.54rem; }
            .world-situation-frame .meta { font-size: 0.62rem; }
        }

        @media (max-width: 480px) {
            .container { padding: 10px; }
            .home-page { padding-top: 12px; padding-bottom: 68px; }
            .home-title { font-size: 1.6rem; margin-bottom: 6px; padding-bottom: 8px; }
            .home-title::after { width: 48px; }
            .home-subtitle { font-size: 0.72rem; margin-bottom: 14px; }
            .terminal-header { font-size: 0.56rem; padding: 7px 8px; margin-bottom: 14px; line-height: 1.5; }
            .terminal-header::before { font-size: 0.52rem; top: -6px; left: 8px; }
            .start-btn { padding: 10px 24px; font-size: 0.82rem; letter-spacing: 1.5px; }
            #home-top-actions {
                margin-bottom: 8px;
                gap: 4px;
            }
            #home-nav-actions {
                gap: 12px;
                padding-top: 10px;
            }
            #home-nav-actions::before { font-size: 0.56rem; }
            .home-footer {
                padding: 8px 10px;
                gap: 5px;
            }
            .home-footer-link {
                font-size: 0.78rem;
            }
            .home-meta { margin-bottom: 10px !important; font-size: 0.62rem !important; }
            .terminal-header .prompt {
                display: inline-block;
                margin-bottom: 2px;
            }
            .world-situation-content {
                padding: 14px;
            }
            .world-situation-frame .meta,
            .world-situation-frame .bloc-subtitle,
            .world-situation-frame .faction-stats,
            .world-situation-frame .faction-role {
                font-size: 0.76rem;
            }
            .quiz-progress { flex-wrap: wrap; }
            .progress-text,
            .status-text { min-width: auto; }
            .access-granted { font-size: 1.35rem; letter-spacing: 2px; }
            .faction-badge { width: 100%; text-align: center; }
            .character-card,
            .faction-info,
            .pokedex-section,
            .modal-content {
                padding: 16px;
            }
        }

        /* 超小屏手机优化 (iPhone SE等) */
        @media (max-width: 375px) {
            .container { padding: 8px; }
            .home-page { padding-top: 10px; padding-bottom: 64px; }
            .home-title { font-size: 1.4rem; letter-spacing: 1px; margin-bottom: 5px; padding-bottom: 6px; }
            .home-title::after { width: 40px; }
            .home-subtitle { font-size: 0.66rem; margin-bottom: 12px; letter-spacing: 0.5px; }
            .terminal-header { font-size: 0.52rem; padding: 6px 7px; margin-bottom: 10px; line-height: 1.45; }
            .terminal-header::before { font-size: 0.48rem; top: -5px; left: 7px; }
            .start-btn { padding: 9px 22px; font-size: 0.78rem; letter-spacing: 1px; }
            #home-nav-actions { gap: 10px; padding-top: 8px; }
            #home-nav-actions::before { font-size: 0.52rem; top: -1px; }
            .home-footer { padding: 6px 8px; gap: 4px; }
            .home-footer-link { font-size: 0.72rem; }
            #home-top-actions { gap: 4px; margin-bottom: 6px; }
            #user-info { padding: 0; gap: 4px; }
            #user-info #user-name { font-size: 0.72rem; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
            #home-top-actions .auth-btn { font-size: 0.72rem; padding: 0; min-height: auto; }
            .home-meta { margin-bottom: 8px !important; font-size: 0.58rem !important; }

            .quiz-header h1 { font-size: 1rem; }
            .quiz-header p { font-size: 0.65rem; }
            .quiz-question { padding: 12px; font-size: 0.82rem; }
            .quiz-option { padding: 10px 12px; font-size: 0.78rem; }
            .progress-text { font-size: 0.65rem; }
            .status-text { font-size: 0.6rem; }

            .access-granted { font-size: 1.2rem; letter-spacing: 1px; }
            .faction-badge { font-size: 0.82rem; padding: 6px 14px; }
            .faction-info { padding: 14px; }
            .faction-info h3 { font-size: 1rem; }
            .faction-info p { font-size: 0.78rem; }
            .character-card { padding: 14px; }
            .character-avatar { width: 72px; height: 82px; }
            .character-details h3 { font-size: 1rem; }
            .character-story p { font-size: 0.78rem; }
            .quote { font-size: 0.78rem; padding: 12px; }

            .pokedex-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 4px; }
            .pokedex-item { font-size: 0.85rem; }
            .stat-num { font-size: 1.1rem; }
            .action-btn { padding: 8px 16px; font-size: 0.74rem; }

            .modal-content,
            .auth-modal-content { padding: 14px; }
            .world-situation-content { padding: 12px; }
            .world-situation-frame .meta,
            .world-situation-frame .bloc-subtitle,
            .world-situation-frame .faction-stats,
            .world-situation-frame .faction-role { font-size: 0.7rem; }
        }

        /* Scrollbar */
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-black); }
        ::-webkit-scrollbar-thumb { background: var(--terminal-green-dim); }
        ::-webkit-scrollbar-thumb:hover { background: var(--terminal-green); }

        /* 无障碍：减弱动画 */
        @media (prefers-reduced-motion: reduce) {
            body::before, body::after { animation: none !important; }
            .glitch-text { animation: none !important; }
            #matrix-canvas { opacity: 0.08 !important; }
            .cursor, .cursor-amber { animation: none !important; opacity: 1 !important; }
            * { scroll-behavior: auto !important; }
        }

        /* 防御性文本换行 - 防止长文本溢出 */
        .quiz-question, .quiz-option, .faction-info p, .character-story p, .quote,
        .world-situation-frame .bloc-subtitle, .world-situation-frame .faction-role,
        .world-situation-frame .meta, .world-situation-status {
            overflow-wrap: break-word;
            word-break: break-word;
        }

        /* 游戏选择界面 */
        .game-select-container {
            background: rgba(0, 20, 30, 0.95);
            border: 3px solid #00ffff;
            border-radius: 15px;
            padding: 20px;
            width: 100%;
            max-width: 400px;
        }
        .game-select-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .game-select-header h3 {
            color: #00ffff;
            font-size: 1.3rem;
            text-shadow: 0 0 10px #00ffff;
        }
        .game-close-btn {
            background: transparent;
            border: 2px solid #ff4444;
            color: #ff4444;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        .game-close-btn:hover {
            background: rgba(255, 68, 68, 0.2);
            box-shadow: 0 0 10px #ff4444;
        }
        .game-grid {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .game-card {
            background: rgba(0, 40, 50, 0.6);
            border: 2px solid;
            border-radius: 12px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .game-card:hover {
            transform: translateX(5px);
            box-shadow: 0 0 15px currentColor;
        }
        .game-icon {
            width: 52px;
            height: 52px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 4px;
        }
        .game-icon .asset-fill {
            object-fit: contain;
        }
        .game-name {
            font-size: 1.1rem;
            font-weight: bold;
        }
        .game-desc {
            font-size: 0.75rem;
            color: #888;
        }
        .auth-btn {
            padding: 10px 20px;
            font-size: 0.9rem;
            border: 2px solid;
            background: rgba(0, 30, 30, 0.8);
            color: #00ffff;
            cursor: pointer;
            border-radius: 6px;
            font-family: 'JetBrains Mono', monospace;
            margin: 5px;
            transition: all 0.2s;
        }
        .auth-btn:hover {
            box-shadow: 0 0 10px #00ffff;
        }
        .login-btn { border-color: #00ff41; color: #00ff41; }
        .register-btn { border-color: #00ffff; }
        .logout-btn { border-color: #ff4444; color: #ff4444; }
        #auth-buttons { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
        /* 访客档案区块：左上角 static，不再 absolute 浮动压住系统日志 */
        #home-top-actions {
            position: static;
            top: auto;
            right: auto;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            justify-content: flex-start;
            gap: 8px;
            margin-bottom: 16px;
            z-index: 5;
        }
        /* 访客档案：终端命令行风格，无圆角框 */
        #user-info {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0;
            border: none;
            background: transparent;
            border-radius: 0;
            color: var(--terminal-green);
            font-size: 0.78rem;
            letter-spacing: 1px;
        }
        #user-info::before {
            content: '> USER:';
            color: var(--terminal-amber);
            font-weight: 600;
            margin-right: 4px;
        }
        #user-info #user-name {
            color: var(--terminal-green);
            letter-spacing: 1px;
            white-space: nowrap;
            text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
        }
        #user-info .auth-btn {
            margin: 0;
            padding: 0;
            border: none;
            background: transparent;
            color: var(--terminal-green);
            font-size: 0.82rem;
            text-decoration: none;
            border-radius: 0;
            box-shadow: none;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        #user-info .auth-btn:hover {
            color: #d8fff6;
            text-shadow: 0 0 8px currentColor;
            box-shadow: none;
        }
        #home-top-actions .auth-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 2px 6px;
            font-size: 0.72rem;
            line-height: 1;
            letter-spacing: 1px;
            border: none;
            background: transparent;
            border-radius: 0;
        }
        .auth-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; }
        .auth-modal-content { background: rgba(0, 30, 50, 0.95); border: 2px solid #00ffff; border-radius: 12px; padding: 30px; width: 90%; max-width: 350px; }
        .auth-modal h3 { color: #00ffff; text-align: center; margin-bottom: 20px; }
        .auth-input { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #00ff41; background: rgba(0, 20, 0, 0.5); color: #00ff41; border-radius: 6px; font-family: 'JetBrains Mono', monospace; box-sizing: border-box; }
        .auth-input:focus { outline: none; box-shadow: 0 0 10px #00ff41; }
        .auth-submit { width: 100%; padding: 12px; border: 2px solid #00ff41; background: rgba(0, 50, 0, 0.5); color: #00ff41; cursor: pointer; border-radius: 6px; font-size: 1rem; transition: all 0.2s; }
        .auth-submit:hover { box-shadow: 0 0 15px #00ff41; }
        .auth-error { color: #ff4444; text-align: center; margin-bottom: 10px; font-size: 0.8rem; }
        .auth-switch { text-align: center; color: #888; margin-top: 10px; font-size: 0.8rem; }
        .auth-switch a { color: #00ffff; cursor: pointer; text-decoration: underline; }
        #world-situation-modal {
            z-index: 1600;
        }
        .world-situation-content {
            background: rgba(7, 18, 20, 0.96);
            border: 1px solid rgba(0, 255, 200, 0.25);
            box-shadow: 0 0 40px rgba(0, 255, 208, 0.12);
            width: min(1080px, calc(100vw - 32px));
            max-width: 1080px;
            max-height: calc(100vh - 32px);
            padding: 22px;
            position: relative;
            overflow: auto;
        }
        .world-situation-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 16px;
        }
        .world-situation-head h3 {
            color: #00ffff;
            font-size: 1.2rem;
            margin-bottom: 6px;
        }
        .world-situation-head p {
            color: var(--text-secondary);
            font-size: 0.82rem;
            line-height: 1.6;
        }
        .world-situation-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .world-situation-status {
            color: #8dded2;
            font-size: 0.82rem;
            min-height: 20px;
            margin-bottom: 12px;
        }
        .world-situation-frame {
            border: none;
            background: transparent;
            padding: 0;
            min-height: 320px;
            display: block;
        }
        .world-situation-report {
            display: none;
        }
        .world-situation-frame .section {
            border: none;
            background: transparent;
            padding: 0;
            margin-bottom: 24px;
        }
        .world-situation-frame .section:last-child {
            margin-bottom: 0;
        }
        .world-situation-frame .section h2 {
            color: #00ffd0;
            font-size: 1.05rem;
            margin-bottom: 14px;
        }
        .world-situation-frame .section-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            margin-bottom: 14px;
        }
        .world-situation-frame .section-head h2 {
            margin-bottom: 0;
        }
        .world-situation-frame .meta,
        .world-situation-frame .empty {
            color: #9ddbd2;
            font-size: 0.82rem;
            line-height: 1.6;
        }
        .world-situation-frame .empty {
            border: 1px dashed rgba(0, 255, 208, 0.2);
            padding: 18px;
            text-align: center;
        }
        /* ========== 阵营派系分布：每行一个阵营竖排（3行），内部3派系横排 ========== */
        .world-situation-frame .bloc-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .world-situation-frame .bloc-panel {
            border: 1px solid rgba(0, 255, 65, 0.18);
            background: rgba(4, 10, 12, 0.55);
            padding: 14px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            border-radius: 8px;
            min-width: 0;
            overflow: hidden;
        }
        .world-situation-frame .bloc-panel.left { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(4,10,12,0.55)); border-color: rgba(139,92,246,0.35); }
        .world-situation-frame .bloc-panel.neutral { background: linear-gradient(135deg, rgba(0,255,208,0.12), rgba(4,10,12,0.55)); border-color: rgba(0,255,208,0.35); }
        .world-situation-frame .bloc-panel.right { background: linear-gradient(135deg, rgba(255,138,91,0.12), rgba(4,10,12,0.55)); border-color: rgba(255,138,91,0.35); }
        /* 阵营头部：名称+大数字 */
        .world-situation-frame .bloc-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: nowrap;
        }
        .world-situation-frame .bloc-head-left {
            display: flex;
            gap: 10px;
            align-items: center;
            min-width: 0;
            flex: 1;
        }
        .world-situation-frame .bloc-logo {
            width: 40px;
            height: 40px;
            display: block;
            flex-shrink: 0;
        }
        .world-situation-frame .bloc-head-text {
            min-width: 0;
            overflow: hidden;
        }
        .world-situation-frame .bloc-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .world-situation-frame .bloc-subtitle {
            color: rgba(216, 255, 246, 0.7);
            font-size: 0.72rem;
            line-height: 1.3;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .world-situation-frame .bloc-head-stats {
            display: flex;
            align-items: baseline;
            gap: 2px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .world-situation-frame .bloc-head-stats .big-num {
            font-size: 1.5rem;
            font-weight: 700;
            color: #d8fff6;
            text-shadow: 0 0 8px currentColor;
            line-height: 1;
        }
        .world-situation-frame .bloc-head-stats .big-unit {
            font-size: 0.7rem;
            color: rgba(216,255,246,0.7);
            margin-left: 1px;
        }
        .world-situation-frame .bloc-head-stats .big-sep {
            color: rgba(216,255,246,0.3);
            margin: 0 4px;
        }
        /* 阵营与派系之间的对比进度条（恢复原始样式） */
        .world-situation-frame .bloc-summary {
            margin-top: 4px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }
        .world-situation-frame .bloc-comparison-bar {
            height: 12px;
            display: flex;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.05);
        }
        .world-situation-frame .bloc-comparison-segment {
            height: 100%;
            min-width: 2px;
            opacity: 0.1;
            filter: saturate(0.5) brightness(0.7);
        }
        .world-situation-frame .bloc-comparison-segment.active {
            opacity: 1;
            filter: saturate(1.15) brightness(1.12);
            box-shadow: 0 0 14px currentColor, inset 0 0 0 1px rgba(255,255,255,0.18);
        }
        /* 派系网格：3个小框横排 */
        .world-situation-frame .bloc-faction-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            min-width: 0;
        }
        .world-situation-frame .faction-cell {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 6px;
            padding: 8px 6px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            min-width: 0;
            overflow: hidden;
            text-align: center;
        }
        .world-situation-frame .faction-cell .faction-logo {
            width: 24px;
            height: 24px;
            display: block;
        }
        .world-situation-frame .faction-cell-name {
            font-size: 0.74rem;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100%;
            line-height: 1.2;
        }
        .world-situation-frame .faction-cell-stats {
            display: flex;
            align-items: baseline;
            gap: 1px;
            white-space: nowrap;
            line-height: 1;
        }
        .world-situation-frame .faction-cell-stats .fc-num {
            font-size: 0.9rem;
            font-weight: 700;
            color: #d8fff6;
        }
        .world-situation-frame .faction-cell-stats .fc-unit {
            font-size: 0.6rem;
            color: rgba(216,255,246,0.6);
        }
        .world-situation-frame .insight-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 12px;
        }
        .world-situation-frame .insight-item {
            border-left: 3px solid #8b5cf6;
            background: rgba(139, 92, 246, 0.08);
            padding: 14px;
            color: #ddd4ff;
            line-height: 1.7;
            border-radius: 0 6px 6px 0;
        }
        .world-situation-placeholder {
            color: #7acfc2;
            text-align: center;
            line-height: 1.8;
            font-size: 0.9rem;
            padding: 48px 20px;
        }
        #game-modal-content {
            width: 100%;
            max-width: 560px;
            padding: 20px;
            box-sizing: border-box;
            max-height: 100vh;
            overflow-y: auto;
        }
        #game-container {
            padding: 18px 14px calc(24px + env(safe-area-inset-bottom));
            box-sizing: border-box;
        }
