﻿        /* 基础样式保持不变 */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }
        
        :root {
            --primary-color: #3498db;
            --primary-hover: #2980b9;
            --secondary-color: #2ecc71;
            --secondary-hover: #27ae60;
            --accent-color: #e74c3c;
            --accent-hover: #c0392b;
            --bg-color: #f5f7f9;
            --card-bg: #ffffff;
            --text-color: #333333;
            --text-secondary: #666666;
            --border-color: #e0e0e0;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
            --border-radius: 8px;
            --transition: all 0.3s ease;
        }
        
        body {
            background: linear-gradient(135deg, var(--bg-color) 0%, #e4efe9 100%);
            color: var(--text-color);
            line-height: 1.6;
            padding: 0;
            min-height: 100vh;
            transition: var(--transition);
            padding-bottom: env(safe-area-inset-bottom);
        }
        
        /* 护眼模式样式 - 优化为各种绿色 */
        body.eye-protection-mode {
            background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
            color: #2e7d32;
        }
        body.eye-protection-mode .container {
            background: #f1f8e9;
            box-shadow: 0 10px 30px rgba(46, 125, 50, 0.1);
        }
        body.eye-protection-mode header {
            border-bottom-color: #4caf50;
        }
        body.eye-protection-mode h1 {
            color: #2e7d32;
        }
        body.eye-protection-mode .description {
            color: #4caf50;
        }
        body.eye-protection-mode .section {
            background: #e8f5e9;
            box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
        }
        body.eye-protection-mode .question-container {
            background: #f1f8e9;
            box-shadow: 0 4px 10px rgba(76, 175, 80, 0.08);
        }
        body.eye-protection-mode .option {
            background: #e8f5e9;
        }
        body.eye-protection-mode .option:hover {
            background: #c8e6c9;
        }
        body.eye-protection-mode .stats-bar {
            background: #e8f5e9;
            box-shadow: 0 2px 5px rgba(76, 175, 80, 0.05);
        }
        body.eye-protection-mode .stat-number {
            color: #2e7d32;
        }
        body.eye-protection-mode .stat-label {
            color: #4caf50;
        }
        body.eye-protection-mode .section-title {
            color: #2e7d32;
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode button {
            background: #4caf50;
        }
        body.eye-protection-mode button:hover {
            background: #388e3c;
        }
        body.eye-protection-mode .option.selected {
            background: #c8e6c9;
            border-color: #4caf50;
        }
        body.eye-protection-mode .progress-bar {
            background: linear-gradient(90deg, #4caf50 0%, #2e7d32 100%);
        }
        body.eye-protection-mode .submit-btn {
            background: #388e3c;
        }
        body.eye-protection-mode .submit-btn:hover {
            background: #2e7d32;
        }
        body.eye-protection-mode .next-btn {
            background: #388e3c;
        }
        body.eye-protection-mode .next-btn:hover {
            background: #2e7d32;
        }
        body.eye-protection-mode .prev-btn {
            background: #388e3c;
        }
        body.eye-protection-mode .prev-btn:hover {
            background: #2e7d32;
        }
        body.eye-protection-mode .show-answer {
            background: #388e3c;
        }
        body.eye-protection-mode .show-answer:hover {
            background: #2e7d32;
        }
        body.eye-protection-mode .toggle-wrong-btn {
            background: #d32f2f;
        }
        body.eye-protection-mode .toggle-wrong-btn:hover {
            background: #c62828;
        }
        body.eye-protection-mode .eye-protection-btn {
            background: #2e7d32;
        }
        body.eye-protection-mode .eye-protection-btn:hover {
            background: #1b5e20;
        }
        
        /* 深色模式样式 */
        body.dark-mode {
            background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
            color: #e0e0e0;
        }
        body.dark-mode .container {
            background: #2a2a2a;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        body.dark-mode header {
            border-bottom-color: #444;
        }
        body.dark-mode h1 {
            color: #e0e0e0;
        }
        body.dark-mode .description {
            color: #b0b0b0;
        }
        body.dark-mode .section {
            background: #2a2a2a;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        body.dark-mode .question-container {
            background: #2a2a2a;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            border-color: #444;
        }
        body.dark-mode .option {
            background: #333;
            color: #e0e0e0;
        }
        body.dark-mode .option:hover {
            background: #444;
            border-color: rgba(52, 152, 219, 0.5);
        }
        body.dark-mode .option.selected {
            background: #1a237e;
            border-color: #3949ab;
        }
        body.dark-mode .option.correct {
            background: #1b5e20;
            border-color: #388e3c;
        }
        body.dark-mode .option.incorrect {
            background: #b71c1c;
            border-color: #d32f2f;
        }
        body.dark-mode .stats-bar {
            background: #333;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            border-color: #444;
        }
        body.dark-mode .stat-number {
            color: #3498db;
        }
        body.dark-mode .stat-label {
            color: #b0b0b0;
        }
        body.dark-mode .section-title {
            color: #3498db;
            border-bottom-color: #444;
        }
        body.dark-mode button {
            background: #3498db;
        }
        body.dark-mode button:hover {
            background: #2980b9;
        }
        body.dark-mode .answer-feedback.correct {
            background: #1b5e20;
            color: #c8e6c9;
            border-color: #388e3c;
        }
        body.dark-mode .answer-feedback.incorrect {
            background: #b71c1c;
            color: #ffcdd2;
            border-color: #d32f2f;
        }
        body.dark-mode .progress-bar {
            background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
        }
        body.dark-mode .submit-btn {
            background: #27ae60;
        }
        body.dark-mode .submit-btn:hover {
            background: #229954;
        }
        body.dark-mode .next-btn {
            background: #27ae60;
        }
        body.dark-mode .next-btn:hover {
            background: #229954;
        }
        body.dark-mode .prev-btn {
            background: #27ae60;
        }
        body.dark-mode .prev-btn:hover {
            background: #229954;
        }
        body.dark-mode .show-answer {
            background: #27ae60;
        }
        body.dark-mode .show-answer:hover {
            background: #229954;
        }
        body.dark-mode .toggle-wrong-btn {
            background: #e74c3c;
        }
        body.dark-mode .toggle-wrong-btn:hover {
            background: #c0392b;
        }
        body.dark-mode footer {
            background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
            border-top-color: #444;
            color: #b0b0b0;
        }
        body.dark-mode footer a {
            color: #3498db;
        }
        body.dark-mode footer a:hover {
            color: #2980b9;
        }
        body.dark-mode .progress-container {
            background: #444;
        }
        body.dark-mode .settings-menu {
            background: #2a2a2a;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            border-color: #444;
        }
        body.dark-mode .settings-menu li {
            color: #e0e0e0;
        }
        body.dark-mode .settings-menu li:hover {
            background: #333;
        }
        body.dark-mode .menu-divider {
            border-top-color: #444;
        }
        body.dark-mode .search-wrapper {
            background-color: #333;
            border-color: #555;
        }
        body.dark-mode .search-wrapper:focus-within {
            background-color: #333;
            border-color: #3498db;
        }
        body.dark-mode .search-input {
            color: #e0e0e0;
        }
        body.dark-mode .search-input::placeholder {
            color: #b0b0b0;
        }
        body.dark-mode .search-btn {
            color: #e0e0e0;
        }
        body.dark-mode .jump-controls label {
            color: #3498db;
        }
        body.dark-mode .jump-controls select,
        body.dark-mode .jump-controls input {
            background: #333;
            border-color: #555;
            color: #e0e0e0;
        }
        body.dark-mode .search-controls label {
            color: #3498db;
        }
        body.dark-mode .search-controls input {
            background: #333;
            border-color: #555;
            color: #e0e0e0;
        }
        body.dark-mode .setting-control label {
            color: #3498db;
        }
        body.dark-mode .setting-control select {
            background: #333;
            border-color: #555;
            color: #e0e0e0;
        }
        body.dark-mode .setting-control .value-display {
            color: #e0e0e0;
        }
        body.dark-mode .status-output {
            background: #333;
            border-color: #555;
            color: #e0e0e0;
        }
        body.dark-mode .search-results {
            background: #333;
            border-color: #555;
        }
        body.dark-mode .search-result-item {
            color: #e0e0e0;
            border-bottom-color: #444;
        }
        body.dark-mode .search-result-item:hover {
            background: #444;
        }
        body.dark-mode .wrong-questions-list {
            background: #333;
            border-color: #555;
        }
        body.dark-mode .feature-item {
            background: #333;
            border-left-color: #3498db;
        }
        body.dark-mode .feature-item h3 {
            color: #3498db;
        }
        body.dark-mode .feature-item p {
            color: #b0b0b0;
        }
        body.dark-mode .preview-area {
            background: #333;
            color: #e0e0e0;
        }
        body.dark-mode .stats-content {
            background: #333;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }
        body.dark-mode .stat-card {
            background: #333;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
        body.dark-mode .stat-card h3 {
            color: #3498db;
        }
        body.dark-mode .stat-card .stat-value {
            color: #e0e0e0;
        }
        body.dark-mode .stat-card .stat-desc {
            color: #b0b0b0;
        }
        body.dark-mode .page-btn {
            background: #3498db;
        }
        body.dark-mode .page-btn.active {
            background: #2980b9;
        }
        body.dark-mode .page-btn:hover {
            background: #2980b9;
        }
        body.dark-mode .completion-message {
            color: #27ae60;
        }
        body.dark-mode .bili-header {
            background: #2a2a2a;
            border-bottom-color: #444;
        }
        body.dark-mode .site-title {
            color: #e0e0e0;
        }
        body.dark-mode .bili-filter-bar {
            background: rgba(42, 42, 42, 0.9);
            border-bottom-color: #444;
        }
        body.dark-mode .filter-tab {
            background: #333;
            color: #e0e0e0;
            border-color: #555;
        }
        body.dark-mode .filter-tab:hover {
            background: #444;
        }
        body.dark-mode .filter-tab.active {
            background: #3498db;
            color: white;
        }
        body.dark-mode .filter-scroll::-webkit-scrollbar-track {
            background: #444;
        }
        body.dark-mode .filter-scroll::-webkit-scrollbar-thumb {
            background: #666;
        }
        body.dark-mode .filter-scroll::-webkit-scrollbar-thumb:hover {
            background: #777;
        }
        body.dark-mode .question-content {
            color: #e0e0e0;
        }
        
        body.eye-protection-mode .page-btn {
            background: #4caf50;
        }
        body.eye-protection-mode .bili-header {
            background: #f1f8e9;
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode .site-title {
            color: #2e7d32;
        }
        body.eye-protection-mode .bili-filter-bar {
            background: rgba(241, 248, 233, 0.9);
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode .filter-tab {
            background: #e8f5e9;
            color: #2e7d32;
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .filter-tab:hover {
            background: #c8e6c9;
        }
        body.eye-protection-mode .filter-tab.active {
            background: #4caf50;
            color: white;
        }
        body.eye-protection-mode .filter-scroll::-webkit-scrollbar-track {
            background: #c8e6c9;
        }
        body.eye-protection-mode .filter-scroll::-webkit-scrollbar-thumb {
            background: #4caf50;
        }
        body.eye-protection-mode .filter-scroll::-webkit-scrollbar-thumb:hover {
            background: #388e3c;
        }
        body.eye-protection-mode .search-wrapper {
            background-color: #e8f5e9;
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .search-wrapper:focus-within {
            background-color: #e8f5e9;
            border-color: #4caf50;
        }
        body.eye-protection-mode .search-input {
            color: #2e7d32;
        }
        body.eye-protection-mode .search-input::placeholder {
            color: #4caf50;
        }
        body.eye-protection-mode .search-btn {
            color: #2e7d32;
        }
        body.eye-protection-mode .settings-menu {
            background: #f1f8e9;
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .settings-menu li {
            color: #2e7d32;
        }
        body.eye-protection-mode .settings-menu li:hover {
            background: #c8e6c9;
        }
        body.eye-protection-mode .menu-divider {
            border-top-color: #c8e6c9;
        }
        body.eye-protection-mode .page-btn.active {
            background: #388e3c;
        }
        body.eye-protection-mode .page-btn:hover {
            background: #388e3c;
        }
        body.eye-protection-mode .settings-content {
            background: #e8f5e9;
        }
        body.eye-protection-mode .settings-section h2 {
            color: #2e7d32;
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode .feature-item {
            background: #f1f8e9;
            border-left-color: #4caf50;
        }
        body.eye-protection-mode .feature-item h3 {
            color: #2e7d32;
        }
        body.eye-protection-mode .feature-item p {
            color: #4caf50;
        }
        body.eye-protection-mode .setting-control label {
            color: #2e7d32;
        }
        body.eye-protection-mode .preview-area {
            background: #f1f8e9;
        }
        body.eye-protection-mode .stats-content {
            background: #e8f5e9;
        }
        body.eye-protection-mode .stat-card {
            background: #f1f8e9;
        }
        body.eye-protection-mode .stat-card h3 {
            color: #2e7d32;
        }
        body.eye-protection-mode .stat-card .stat-value {
            color: #2e7d32;
        }
        body.eye-protection-mode .stat-card .stat-desc {
            color: #4caf50;
        }
        body.eye-protection-mode .history-section h2 {
            color: #2e7d32;
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode .history-list {
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .history-item {
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode .history-date {
            color: #2e7d32;
        }
        body.eye-protection-mode .history-stat-value {
            color: #2e7d32;
        }
        body.eye-protection-mode .history-stat-label {
            color: #4caf50;
        }
        body.eye-protection-mode .reset-stats-btn {
            background: #d32f2f;
        }
        body.eye-protection-mode .reset-stats-btn:hover {
            background: #c62828;
        }
        body.eye-protection-mode .wrong-questions-panel {
            background: #e8f5e9;
        }
        body.eye-protection-mode .wrong-questions-panel h2 {
            color: #d32f2f;
        }
        body.eye-protection-mode .wrong-questions-list {
            background: #f1f8e9;
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .wrong-question-item {
            background: #ffebee;
        }
        body.eye-protection-mode .wrong-question-item:hover {
            background: #ffcdd2;
        }
        body.eye-protection-mode .wrong-question-type {
            color: #4caf50;
        }
        body.eye-protection-mode .wrong-question-delete {
            color: #d32f2f;
        }
        body.eye-protection-mode .wrong-question-delete:hover {
            background: #d32f2f;
            color: white;
        }
        body.eye-protection-mode .delete-wrong-btn {
            background: #d32f2f;
        }
        body.eye-protection-mode .delete-wrong-btn:hover {
            background: #c62828;
        }
        body.eye-protection-mode .practice-wrong-btn {
            background: #388e3c;
        }
        body.eye-protection-mode .practice-wrong-btn:hover {
            background: #2e7d32;
        }
        body.eye-protection-mode .status-output {
            background: #f1f8e9;
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .search-results {
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .search-result-item {
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode .search-result-item:hover {
            background: #e8f5e9;
        }
        body.eye-protection-mode .jump-controls label {
            color: #2e7d32;
        }
        body.eye-protection-mode .jump-controls select,
        body.eye-protection-mode .jump-controls input {
            background: #f1f8e9;
            border-color: #c8e6c9;
            color: #2e7d32;
        }
        body.eye-protection-mode .search-controls label {
            color: #2e7d32;
        }
        body.eye-protection-mode .search-controls input {
            background: #f1f8e9;
            border-color: #c8e6c9;
            color: #2e7d32;
        }
        body.eye-protection-mode .completion-message {
            color: #388e3c;
        }
        body.eye-protection-mode .answer-feedback.correct {
            background: #e8f5e9;
            color: #2e7d32;
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .answer-feedback.incorrect {
            background: #ffebee;
            color: #d32f2f;
            border-color: #ffcdd2;
        }
        body.eye-protection-mode .option.correct {
            background: #e8f5e9;
            border-color: #4caf50;
        }
        body.eye-protection-mode .option.incorrect {
            background: #ffebee;
            border-color: #d32f2f;
        }
        body.eye-protection-mode .directory-content {
            background: #e8f5e9;
        }
        body.eye-protection-mode .directory-tabs {
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode .directory-tab.active {
            border-bottom-color: #4caf50;
            color: #2e7d32;
        }
        body.eye-protection-mode .question-item {
            background: #f1f8e9;
        }
        body.eye-protection-mode .question-item:hover {
            background: #e8f5e9;
        }
        body.eye-protection-mode .question-item.answered-correct {
            background: #e8f5e9;
        }
        body.eye-protection-mode .question-item.answered-wrong {
            background: #ffebee;
        }
        body.eye-protection-mode .wrong-page-content {
            background: #e8f5e9;
        }
        body.eye-protection-mode .wrong-tabs {
            border-bottom-color: #c8e6c9;
        }
        body.eye-protection-mode .wrong-tab.active {
            border-bottom-color: #d32f2f;
            color: #d32f2f;
        }
        body.eye-protection-mode .history-wrong-section {
            border-top-color: #c8e6c9;
        }
        body.eye-protection-mode .history-wrong-list {
            background: #f1f8e9;
            border-color: #c8e6c9;
        }
        body.eye-protection-mode .history-wrong-item {
            background: #e8f5e9;
        }
        body.eye-protection-mode .history-wrong-number {
            color: #d32f2f;
        }
        body.eye-protection-mode .history-wrong-type {
            color: #4caf50;
        }
        body.eye-protection-mode .history-wrong-date {
            color: #4caf50;
        }
        body.eye-protection-mode .clear-history-btn {
            background: #4caf50;
        }
        body.eye-protection-mode .clear-history-btn:hover {
            background: #388e3c;
        }
        body.eye-protection-mode .instructions-section {
            border-top-color: #c8e6c9;
        }
        body.eye-protection-mode .instructions-content {
            background: #f1f8e9;
        }
        body.eye-protection-mode .instructions-content h4 {
            color: #2e7d32;
        }
        body.eye-protection-mode .json-example {
            background: #e8f5e9;
        }
        


        /* 自定义题库按钮样式 */
        .custom-bank-btn {
            background: #3498db;
        }
        .custom-bank-btn:hover {
            background: #2980b9;
        }
 


        /* 容器样式 */
        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: var(--card-bg);
            border-radius: 12px;
            box-shadow: var(--shadow-md);
            padding: 0;
            position: relative;
            overflow: hidden;
            transition: var(--transition);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        /* 主要内容区域 */
        .main-content {
            flex: 1;
            padding: 30px;
        }
        
        /* 按钮通用样式 */
        button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: var(--transition);
            box-shadow: var(--shadow-sm);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        button:hover {
            background: var(--primary-hover);
            box-shadow: var(--shadow-md);
            transform: translateY(-1px);
        }
        
        button:active {
            transform: translateY(0);
        }
        
        button:disabled {
            background: #cccccc;
            cursor: not-allowed;
            transform: none;
        }
        
        /* 次要按钮样式 */
        .btn-secondary {
            background: #f0f0f0;
            color: var(--text-color);
        }
        
        .btn-secondary:hover {
            background: #e0e0e0;
        }
        
        /* 危险按钮样式 */
        .btn-danger {
            background: var(--accent-color);
        }
        
        .btn-danger:hover {
            background: var(--accent-hover);
        }
        
        /* 成功按钮样式 */
        .btn-success {
            background: var(--secondary-color);
        }
        
        .btn-success:hover {
            background: var(--secondary-hover);
        }
        /* 新头部样式 */
        .bili-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
            padding: 0 24px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
        }
        .header-left {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .site-title {
            font-size: 22px;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: 1px;
            cursor: pointer;
            transition: var(--transition);
        }
        .header-center {
            flex: 1;
            display: flex;
            justify-content: center;
            margin: 0 20px;
        }
        .search-wrapper {
            width: 100%;
            max-width: 520px;
            display: flex;
            align-items: center;
            background-color: #f8f9fa;
            border-radius: 24px;
            border: 1px solid var(--border-color);
            transition: var(--transition);
            padding: 2px 4px 2px 16px;
        }
        .search-wrapper:focus-within {
            background-color: var(--card-bg);
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }
        .search-input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 10px 0;
            font-size: 14px;
            outline: none;
            color: var(--text-color);
        }
        .search-input::placeholder {
            color: var(--text-secondary);
        }
        .search-btn {
            background: transparent;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            color: var(--text-secondary);
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: none;
        }
        .search-btn:hover {
            background-color: var(--border-color);
            color: var(--primary-color);
            transform: none;
        }
        .header-right {
            flex-shrink: 0;
            position: relative;
        }
        .avatar-wrapper {
            position: relative;
            width: 48px;
            height: 48px;
            cursor: pointer;
        }
        .user-avatar {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(145deg, #9c6ade, #7b4bcb);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.2s;
            background-size: cover;
        }
        .watch-icon {
            position: absolute;
            bottom: -2px;
            right: -6px;
            background-color: var(--card-bg, #ffffff);
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
            border: 1.5px solid var(--border-color, #dee2e6);
            cursor: pointer;
            transition: all 0.2s ease;
            color: var(--text-secondary, #7f8c8d);
            font-size: 11px;
            z-index: 10;
        }
        .watch-icon i {
            font-size: 11px;
        }
        .watch-icon:hover {
            background-color: var(--gradient-start, #3498db);
            color: white;
            transform: scale(1.1);
            border-color: var(--gradient-start, #3498db);
        }
        .settings-menu {
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            width: 240px;
            background: var(--card-bg, #ffffff);
            border-radius: 16px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            padding: 8px 0;
            list-style: none;
            z-index: 200;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
            border: 1px solid var(--border-color, #dee2e6);
        }
        .settings-menu.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .settings-menu li {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            font-size: 14px;
            color: var(--text-primary, #333);
            cursor: pointer;
            transition: background 0.15s;
        }
        .settings-menu li i {
            width: 20px;
            font-size: 16px;
            color: var(--text-secondary, #7f8c8d);
            text-align: center;
        }
        .settings-menu li:hover {
            background-color: var(--hover-bg, #f8f9fa);
        }
        .menu-divider {
            height: 1px;
            background-color: var(--border-color, #dee2e6);
            margin: 6px 0;
        }
        
        .settings-btn {
            background: #3498db;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        .settings-btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(0,0,0,0.15);
        }
@media (max-width: 768px) {
    /* 原有样式保留 … */

    /* 修复设置按钮与搜索按钮重叠 */
    .header-center {
        min-width: 0;          /* 允许收缩 */
        overflow: hidden;      /* 防止内容溢出 */
    }
    .header-right {
        flex-shrink: 0;        /* 固定右侧区域宽度，不被压缩 */
        margin-left: 8px;      /* 与搜索区域保持间距 */
    }
    .settings-btn {
        padding: 6px 12px;     /* 适当减小内边距，更适配移动端 */
        font-size: 14px;
        white-space: nowrap;
    }
}@media (max-width: 480px) {
    .settings-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        font-size: 0;               /* 隐藏文字 */
        background: transparent;
        box-shadow: none;
        border: none;
    }
    .settings-btn::before {
        content: "⚙️";
        font-size: 24px;
        display: inline-block;
    }
}@media (max-width: 768px) {
    /* 保证搜索区域可收缩，但按钮始终可见 */
    .search-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        min-width: 0;          /* 允许整体收缩 */
    }
    .search-input {
        flex: 1;
        min-width: 0;          /* 输入框可收缩，为按钮留出固定空间 */
        font-size: 14px;
    }
    .search-btn {
        flex-shrink: 0;        /* 按钮宽度固定，不被压缩 */
        width: 36px;
        height: 36px;
        font-size: 18px;
        padding: 0;
    }

    /* 确保右侧设置按钮不挤压搜索区域 */
    .header-right {
        flex-shrink: 0;
        margin-left: 8px;
    }
    .settings-btn {
        padding: 6px 12px;
        font-size: 14px;
        white-space: nowrap;
    }
}
        /* 移动端调整 */
        @media (max-width: 768px) {
            .bili-header {
                padding: 0 12px !important;
                height: 56px !important;
            }
            .site-title {
                font-size: 18px !important;
                white-space: nowrap;
            }
            .header-center {
                margin: 0 8px !important;
                flex: 1 !important;
                min-width: 0 !important;
            }
            .search-wrapper {
                max-width: none !important;
                width: 100% !important;
                padding: 2px 4px 2px 12px !important;
            }
            .search-input {
                font-size: 13px !important;
                padding: 8px 0 !important;
            }
            .search-btn {
                width: 36px !important;
                height: 36px !important;
                flex-shrink: 0 !important;
            }
            .avatar-wrapper {
                width: 40px !important;
                height: 40px !important;
            }
        }
        
        /* 原header样式保持不变，但在移动端隐藏 */
        header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #ff0000;
            position: relative;
        }
        @media (max-width: 768px) {
            header {
                display: none;
            }
        }
        h1 { color: #2c3e50; margin-bottom: 10px; font-size: 32px; }
        .description { color: #7f8c8d; font-size: 16px; max-width: 600px; margin: 0 auto; }
        /* 统计栏样式 */
        .stats-bar {
            display: flex;
            justify-content: space-between;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            padding: 20px;
            border-radius: var(--border-radius);
            margin-bottom: 25px;
            box-shadow: var(--shadow-md);
            transition: var(--transition);
            border: 1px solid var(--border-color);
        }
        
        .stats-bar:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }
        
        .stat-item {
            text-align: center;
            flex: 1;
            padding: 15px;
            transition: var(--transition);
        }
        
        .stat-item:hover {
            transform: scale(1.05);
        }
        
        .stat-number {
            font-size: 28px;
            font-weight: bold;
            color: var(--primary-color);
            transition: var(--transition);
            display: block;
        }
        
        .stat-label {
            font-size: 14px;
            color: var(--text-secondary);
            margin-top: 5px;
            display: block;
        }
        
        /* 题目容器样式 */
        .question-container {
            min-height: 200px;
            padding: 30px;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-md);
            margin-bottom: 25px;
            position: relative;
            transition: var(--transition);
            border: 1px solid var(--border-color);
        }
        
        .question-container:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
        }
        
        .question-number-prefix {
            font-weight: bold;
            color: var(--primary-color);
            font-size: 18px;
            margin-right: 10px;
        }
        
        .question-content {
            font-size: 20px;
            margin-bottom: 25px;
            font-weight: 500;
            line-height: 1.6;
            color: var(--text-color);
        }
        
        .question-image-container {
            margin: 20px 0;
            text-align: center;
            display: none;
        }
        
        .question-image {
            max-width: 100%;
            max-height: 300px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-md);
            border: 1px solid var(--border-color);
            transition: var(--transition);
        }
        
        .question-image:hover {
            box-shadow: var(--shadow-lg);
            transform: scale(1.02);
        }
        
        /* 选项样式 */
        .options {
            margin: 25px 0;
        }
        
        .option {
            padding: 18px 20px;
            margin: 12px 0;
            background: #f8f9fa;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid transparent;
            -webkit-user-select: none;
            user-select: none;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        
        .option:hover {
            background: #e3f2fd;
            transform: translateX(8px);
            border-color: rgba(52, 152, 219, 0.3);
        }
        
        .option.selected {
            background: #e3f2fd;
            border-color: var(--primary-color);
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
        }
        
        .option.correct {
            background: #e8f5e8;
            border-color: var(--secondary-color);
            box-shadow: 0 2px 8px rgba(46, 204, 113, 0.2);
        }
        
        .option.incorrect {
            background: #ffebee;
            border-color: var(--accent-color);
            box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
        }
        
        /* 答案反馈样式 */
        .answer-feedback {
            padding: 18px;
            border-radius: var(--border-radius);
            margin-top: 25px;
            display: none;
            font-weight: 600;
            transition: var(--transition);
            border: 1px solid transparent;
        }
        
        .answer-feedback.correct {
            background: #e8f5e8;
            color: #2e7d32;
            border-color: var(--secondary-color);
            box-shadow: 0 2px 8px rgba(46, 204, 113, 0.1);
        }
        
        .answer-feedback.incorrect {
            background: #ffebee;
            color: #c62828;
            border-color: var(--accent-color);
            box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
        }
        
        /* 控件样式 */
        .controls {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        /* 进度条样式 */
        .progress-container {
            background: #f0f0f0;
            border-radius: 20px;
            height: 12px;
            margin: 25px 0;
            overflow: hidden;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 20px;
            width: 0%;
            transition: width 0.5s ease-in-out, background 0.3s;
            box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
        }
        /* 页脚样式 */
        footer {
            text-align: center;
            margin-top: 40px;
            color: var(--text-secondary);
            font-size: 14px;
            padding: 30px 20px;
            border-top: 1px solid var(--border-color);
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 0 0 var(--border-radius) var(--border-radius);
            transition: var(--transition);
        }
        
        footer:hover {
            box-shadow: var(--shadow-md);
        }
        
        footer a {
            color: var(--primary-color);
            text-decoration: none;
            transition: var(--transition);
            margin: 0 10px;
        }
        
        footer a:hover {
            color: var(--primary-hover);
            text-decoration: underline;
        }
        .completion-message { color: #28a745; font-weight: bold; text-align: center; margin-top: 10px; display: none; }
        
        /* ==================== 原子岛 Toast 样式 ==================== */
        #toast-container {
            position: fixed;
            top: 20px;
            left: 0;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            z-index: 9998;
            pointer-events: none;
        }
        .toast {
            pointer-events: auto;
            background: var(--toast-bg, rgba(255, 255, 255, 0.9));
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 30px;
            padding: 12px 20px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            min-width: 280px;
            max-width: 380px;
            font-size: 15px;
            color: var(--text-primary, #333);
            border: 1px solid rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 10px;
            animation: atomFadeIn 0.3s ease;
            transition: transform 0.2s;
        }
        .toast:hover { transform: translateY(-2px); }
        .toast-close {
            margin-left: auto;
            cursor: pointer;
            font-size: 18px;
            color: var(--text-secondary, #7f8c8d);
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s;
        }
        .toast-close:hover { background-color: rgba(0, 0, 0, 0.1); color: var(--text-primary, #333); }
        .toast-icon { font-size: 22px; line-height: 1; }
        .toast::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            width: 100%;
            background: linear-gradient(90deg, var(--gradient-start, #3498db), var(--gradient-end, #2ecc71));
            animation: toastProgress 3s ease forwards;
        }
        .toast.success::after { background: linear-gradient(90deg, var(--success-color, #28a745), #30b850); }
        .toast.error::after { background: linear-gradient(90deg, var(--danger-color, #dc3545), #ff2d20); }
        .toast.warning::after { background: linear-gradient(90deg, var(--warning, #ff9500), #ff8c00); }
        @keyframes atomFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes toastProgress {
            from { width: 100%; }
            to { width: 0%; }
        }
        
        /* 主题变量 */
        :root {
            --toast-bg: rgba(255, 255, 255, 0.9);
            --success-color: #28a745;
            --danger-color: #dc3545;
            --warning: #ff9500;
        }
        
        body.dark-mode {
            --toast-bg: rgba(44, 46, 48, 0.9);
            --text-primary: #e0e0e0;
            --text-secondary: #b0b0b0;
        }
        
        body.eye-protection-mode {
            --toast-bg: rgba(232, 243, 233, 0.9);
            --text-primary: #2e7d32;
            --text-secondary: #4caf50;
        }
        .mode-controls { display: flex; justify-content: space-between; margin-bottom: 20px; gap: 10px; }
        .mode-btn { flex: 1; text-align: center; }
        .mode-btn.active { background: #2980b9; box-shadow: 0 0 0 2px white, 0 0 0 4px #2980b9; }
        
        /* B站风格筛选栏 */
        .bili-filter-bar {
            background: #ffffff;
            border-bottom: 1px solid #dee2e6;
            padding: 0 24px;
            position: sticky;
            top: 0;
            z-index: 99;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.9);
            transition: opacity 0.2s;
        }
        
        .filter-dropdown {
            position: relative;
            display: inline-block;
        }
        
        .filter-dropdown-content {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 150px;
            box-shadow: 0 8px 16px rgba(0,0,0,0.1);
            border-radius: 8px;
            z-index: 100;
            margin-top: 4px;
            border: 1px solid #dee2e6;
        }
        
        .filter-dropdown-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.2s;
            border-radius: 8px;
            margin: 2px;
        }
        
        .filter-dropdown-item:hover {
            background: #f8f9fa;
        }
        
        body.dark-mode .filter-dropdown-content {
            background: #2a2a2a;
            border-color: #444;
        }
        
        body.dark-mode .filter-dropdown-item {
            color: #e0e0e0;
        }
        
        body.dark-mode .filter-dropdown-item:hover {
            background: #333;
        }
        
        body.eye-protection-mode .filter-dropdown-content {
            background: #f1f8e9;
            border-color: #c8e6c9;
        }
        
        body.eye-protection-mode .filter-dropdown-item {
            color: #2e7d32;
        }
        
        body.eye-protection-mode .filter-dropdown-item:hover {
            background: #c8e6c9;
        }
        
        /* 移动端调整sticky top值 */
        @media (max-width: 768px) {
            .bili-filter-bar {
                top: 0;
            }
        }
        .filter-scroll {
            overflow-x: auto;
            overflow-y: hidden;
            white-space: nowrap;
            scrollbar-width: thin;
            -webkit-overflow-scrolling: touch;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 0;
        }
        .filter-scroll::-webkit-scrollbar {
            height: 4px;
        }
        .filter-scroll::-webkit-scrollbar-track {
            background: #dee2e6;
            border-radius: 4px;
        }
        .filter-scroll::-webkit-scrollbar-thumb {
            background: #3498db;
            border-radius: 4px;
        }
        .filter-tab {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            color: #7f8c8d;
            background: transparent;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .filter-tab:hover {
            background-color: #f8f9fa;
            color: #2c3e50;
        }
        .filter-tab.active {
            background: #3498db;
            color: white;
            box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
        }
        .filter-right-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-left: auto;
            flex-shrink: 0;
            padding-left: 16px;
        }
        .view-toggle {
            display: flex;
            background: #f8f9fa;
            border-radius: 30px;
            border: 1px solid #dee2e6;
            overflow: hidden;
        }
        .view-toggle-btn {
            padding: 8px 14px;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 16px;
            color: #7f8c8d;
            transition: all 0.2s;
        }
        .view-toggle-btn.active {
            background: #3498db;
            color: white;
        }
        .view-toggle-btn:hover:not(.active) {
            background-color: #dee2e6;
            color: #2c3e50;
        }
        .advanced-filter-btn {
            background: #3498db;
            color: white;
            border: none;
            border-radius: 30px;
            padding: 8px 18px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .advanced-filter-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
        }
        .status-output { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; margin-bottom: 20px; font-size: 16px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
        .jump-controls { display: flex; align-items: center; margin-top: 15px; gap: 10px; flex-wrap: wrap; }
        .jump-controls label { font-weight: bold; color: #3498db; }
        .jump-controls select { padding: 8px 12px; border-radius: 6px; border: 1px solid #ddd; font-size: 14px; min-width: 80px; }
        .jump-controls input { padding: 8px 12px; border-radius: 6px; border: 1px solid #ddd; font-size: 14px; min-width: 80px; }
        .jump-controls button { padding: 8px 16px; font-size: 14px; }
        .search-controls { display: flex; align-items: center; margin-top: 15px; gap: 10px; flex-wrap: wrap; }
        .search-controls label { font-weight: bold; color: #3498db; }
        .search-controls input { padding: 8px 12px; border-radius: 6px; border: 1px solid #ddd; font-size: 14px; flex: 1; min-width: 150px; -webkit-appearance: none; }
        .search-controls button { padding: 8px 16px; font-size: 14px; }
        .search-results { margin-top: 10px; max-height: 150px; overflow-y: auto; border: 1px solid #ddd; border-radius: 6px; display: none; }
        .search-result-item { padding: 8px 12px; border-bottom: 1px solid #eee; cursor: pointer; transition: background 0.2s; }
        .search-result-item:hover { background: #f0f8ff; }
        .wrong-questions-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin: 15px 0; max-height: 200px; overflow-y: auto; padding: 10px; background: #fff; border-radius: 8px; border: 1px solid #dee2e6; }
        .wrong-question-item { padding: 8px; background: #f8d7da; border-radius: 5px; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60px; }
        .wrong-question-item:hover { background: #f1b0b7; transform: scale(1.05); }
        .wrong-question-number { font-weight: bold; margin-bottom: 5px; }
        .wrong-question-type { font-size: 12px; color: #6c757d; margin-bottom: 5px; }
        .wrong-question-delete { position: absolute; top: 2px; right: 5px; background: transparent; border: none; color: #dc3545; font-size: 14px; cursor: pointer; padding: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s; }
        .wrong-question-delete:hover { background: #dc3545; color: white; transform: scale(1.1); }
        .wrong-controls { display: flex; justify-content: space-between; margin-top: 15px; gap: 10px; }
        .delete-wrong-btn { background: #dc3545; }
        .delete-wrong-btn:hover { background: #c82333; }
        .wrong-questions-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 600px; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); padding: 25px; z-index: 1000; display: none; }
        .wrong-questions-panel .close-btn { position: absolute; top: 15px; right: 15px; background: #6c757d; width: 30px; height:30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; padding: 0; }
        .wrong-questions-panel .close-btn:hover { background: #5a6268; }
        .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; display: none; }
        .toggle-wrong-btn { background: #dc3545; margin-top: 10px; padding: 12px 24px; font-size: 16px; }
        .toggle-wrong-btn:hover { background: #c82333; }
        .eye-protection-btn { background: #4caf50; margin-top: 10px; }
        .eye-protection-btn:hover { background: #388e3c; }
        .page-navigation { display: flex; justify-content: center; margin-bottom: 20px; gap: 10px; }
        .page-btn { padding: 10px 20px; background: #3498db; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; transition: all 0.3s; }
        .page-btn.active { background: #2980b9; box-shadow: 0 0 0 2px white, 0 0 0 4px #2980b9; }
        .page-btn:hover { background: #2980b9; }
        .settings-page { display: none; }
        .quiz-page { display: none; }
        .stats-page { display: none; }
        .directory-page { display: none; }
        .wrong-page { display: none; }
        .settings-content { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); margin-bottom: 20px; }
        .settings-section { margin-bottom: 25px; }
        .settings-section h2 { color: #3498db; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
        .settings-section ul, .settings-section ol { margin-left: 20px; margin-bottom: 15px; }
        .settings-section li { margin-bottom: 8px; line-height: 1.5; }
        .feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin-top: 15px; }
        .feature-item { background: #f8f9fa; padding: 15px; border-radius: 8px; border-left: 4px solid #3498db; }
        .feature-item h3 { color: #3498db; margin-bottom: 8px; font-size: 16px; }
        .feature-item p { color: #666; font-size: 14px; line-height: 1.4; }
        .setting-control { margin-bottom: 20px; }
        .setting-control label { display: block; margin-bottom: 8px; font-weight: bold; color: #3498db; }
        .setting-control input[type="range"] { width: 100%; margin-bottom: 10px; background: #4caf50; }
        .setting-control .value-display { text-align: center; font-weight: bold; color: #2c3e50; }
        .dark-mode .setting-control .value-display { color: #ffffff; }
        .setting-control select { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #ddd; font-size: 16px; }
        .setting-control .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
        .setting-control .checkbox-item { display: flex; align-items: center; gap: 10px; }
        .setting-control .checkbox-item input[type="checkbox"] { width: 18px; height: 18px; }
        .preview-area { margin-top: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px; text-align: center; }
        .preview-button { margin: 10px; padding: 10px 20px; }
        .stats-content { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); margin-bottom: 20px; }
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
        .stat-card { background: #f8f9fa; padding: 20px; border-radius: 10px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s; }
        .stat-card:hover { transform: translateY(-5px); }
        .stat-card h3 { color: #3498db; margin-bottom: 10px; font-size: 16px; }
        .stat-card .stat-value { font-size: 24px; font-weight: bold; color: #2c3e50; }
        .stat-card .stat-desc { font-size: 14px; color: #7f8c8d; margin-top: 5px; }
        .history-section { margin-top: 30px; }
        .history-section h2 { color: #3498db; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
        .history-list { max-height: 300px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; }
        .history-item { padding: 10px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
        .history-item:last-child { border-bottom: none; }
        .history-date { font-weight: bold; color: #2c3e50; }
        .history-stats { display: flex; gap: 15px; }
        .history-stat { text-align: center; }
        .history-stat-value { font-weight: bold; color: #3498db; }
        .history-stat-label { font-size: 12px; color: #7f8c8d; }
        .reset-stats-btn { background: #dc3545; margin-top: 20px; }
        .reset-stats-btn:hover { background: #c82333; }
        .directory-content { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); margin-bottom: 20px; }
        .directory-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #ddd; }
        .directory-tab { padding: 10px 20px; cursor: pointer; border-bottom: 2px solid transparent; }
        .directory-tab.active { border-bottom-color: #3498db; color: #3498db; font-weight: bold; }
        .directory-section { display: none; }
        .directory-section.active { display: block; }
        .question-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
        .question-item { padding: 10px; background: #f8f9fa; border-radius: 5px; text-align: center; cursor: pointer; transition: all 0.2s; }
        .question-item:hover { background: #e9ecef; transform: scale(1.05); }
        .question-item.answered-correct { background: #d4edda; }
        .question-item.answered-wrong { background: #f8d7da; }
        .wrong-page-content { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.06); margin-bottom: 20px; }
        .wrong-tabs { display: flex; margin-bottom: 20px; border-bottom: 1px solid #ddd; }
        .wrong-tab { padding: 10px 20px; cursor: pointer; border-bottom: 2px solid transparent; }
        .wrong-tab.active { border-bottom-color: #dc3545; color: #dc3545; font-weight: bold; }
        .wrong-section { display: none; }
        .wrong-section.active { display: block; }
        .history-wrong-section { margin-top: 30px; padding-top: 20px; border-top: 2px solid #dee2e6; }
        .history-wrong-section h3 { color: #dc3545; margin-bottom: 15px; }
        .history-wrong-list { max-height: 200px; overflow-y: auto; border: 1px solid #dee2e6; border-radius: 8px; padding: 10px; background: #f8f9fa; }
        .history-wrong-item { padding: 8px; margin-bottom: 5px; background: #fff; border-radius: 5px; display: flex; justify-content: space-between; align-items: center; }
        .history-wrong-info { display: flex; align-items: center; gap: 10px; }
        .history-wrong-number { font-weight: bold; color: #dc3545; }
        .history-wrong-type { font-size: 12px; color: #6c757d; }
        .history-wrong-date { font-size: 12px; color: #6c757d; }
        .clear-history-btn { background: #6c757d; margin-top: 10px; }
        .clear-history-btn:hover { background: #5a6268; }
        .instructions-section { margin-top: 30px; padding-top: 20px; border-top: 2px solid #dee2e6; }
        .instructions-content { background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 15px; }
        .instructions-content h4 { color: #3498db; margin-bottom: 10px; }
        .instructions-content ul { margin-left: 20px; margin-bottom: 15px; }
        .instructions-content li { margin-bottom: 8px; line-height: 1.5; }
        .json-example { background: #e9ecef; padding: 15px; border-radius: 6px; font-family: monospace; font-size: 14px; overflow-x: auto; margin-bottom: 15px; }
        .fill-input-container { margin: 20px 0; }
        .fill-inputs-container { display: flex; flex-direction: column; gap: 15px; margin: 20px 0; }
        .fill-input-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
        .fill-input-label { min-width: 30px; font-weight: bold; color: #3498db; font-size: 18px; }
        .fill-input { flex: 1; padding: 15px; font-size: 18px; border: 2px solid #ddd; border-radius: 8px; background: #f9f9f9; transition: all 0.3s; font-family: 'Microsoft YaHei', sans-serif; }
        .fill-input:focus { outline: none; border-color: #3498db; background: white; box-shadow: 0 0 0 3px rgba(52,152,219,0.2); }
        .fill-input.correct { border-color: #28a745; background: #d4edda; }
        .fill-input.incorrect { border-color: #dc3545; background: #f8d7da; }
        .fill-instruction { font-size: 14px; color: #666; margin-bottom: 10px; padding: 8px; background: #f8f9fa; border-radius: 6px; border-left: 3px solid #3498db; }
        body.dark-mode .fill-input { background: #3a3a3a; border-color: #555; color: #e0e0e0; }
        body.dark-mode .fill-input:focus { border-color: #4dabf7; background: #2d2d2d; }
        body.dark-mode .fill-input.correct { border-color: #28a745; background: #2d4a2d; }
        body.dark-mode .fill-input.incorrect { border-color: #dc3545; background: #4a2d2d; }
        body.eye-protection-mode .fill-input { background: #f1f8e9; border-color: #c8e6c9; color: #2e7d32; }
        body.eye-protection-mode .fill-input:focus { border-color: #4caf50; background: #e8f5e9; }
        body.eye-protection-mode .fill-input.correct { border-color: #4caf50; background: #e8f5e9; }
        body.eye-protection-mode .fill-input.incorrect { border-color: #d32f2f; background: #ffebee; }
        @supports (-webkit-touch-callout: none) {
            body { -webkit-overflow-scrolling: touch; }
            .container { padding: 20px 15px; }
            button, .option { cursor: default; }
            .option:active { background: #d6e9ff; transform: translateX(5px); }
            button:active { transform: scale(0.98); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        }
        /* 响应式布局优化 */
        @media (max-width: 768px) {
            body {
                font-size: 16px;
                overflow-x: hidden;
            }
            
            .container {
                padding: 15px;
                border-radius: 10px;
            }
            
            .page-navigation {
                flex-wrap: wrap;
                gap: 8px;
            }
            
            .page-btn {
                flex: 1 1 calc(33.333% - 8px);
                padding: 8px 12px;
                font-size: 14px;
                text-align: center;
            }
            
            header h1 {
                font-size: 24px;
                margin-bottom: 8px;
            }
            
            .stats-bar {
                flex-wrap: wrap;
                gap: 10px;
                padding: 10px;
            }
            
            .stat-item {
                flex: 1 1 calc(50% - 10px);
                padding: 8px;
            }
            
            .stat-number {
                font-size: 20px;
            }
            
            .stat-label {
                font-size: 12px;
            }
            
            .mode-controls {
                flex-wrap: wrap;
                gap: 8px;
                margin-bottom: 15px;
            }
            
            .mode-btn {
                flex: 1 1 calc(50% - 8px);
                padding: 10px 12px;
                font-size: 14px;
                text-align: center;
            }
            
            .section {
                padding: 20px;
                margin-bottom: 25px;
            }
            
            .section-title {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
                margin-bottom: 15px;
            }
            
            .section-title h2 {
                font-size: 18px;
            }
            
            .question-container {
                padding: 20px;
                min-height: 180px;
            }
            
            .question-number {
                width: 40px;
                height: 40px;
                font-size: 18px;
                top: -10px;
                left: -10px;
            }
            
            .question-content {
                font-size: 18px;
                margin-bottom: 15px;
                line-height: 1.4;
            }
            
            .options {
                margin: 15px 0;
            }
            
            .option {
                padding: 12px;
                margin: 8px 0;
                font-size: 14px;
            }
            
            .controls {
                flex-wrap: wrap;
                gap: 8px;
                margin-top: 15px;
            }
            
            .controls .btn {
                flex: 1 1 calc(50% - 8px);
                padding: 10px 16px;
                font-size: 14px;
                text-align: center;
            }
            
            .jump-controls,
            .search-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
                margin-top: 12px;
            }
            
            .jump-controls label,
            .search-controls label {
                font-size: 14px;
            }
            
            .jump-controls select,
            .jump-controls input,
            .search-controls input {
                width: 100%;
                padding: 10px;
                font-size: 14px;
            }
            
            .fill-inputs-container {
                gap: 12px;
                margin: 15px 0;
            }
            
            .fill-input-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 5px;
                margin-bottom: 8px;
            }
            
            .fill-input-label {
                min-width: 25px;
                font-size: 16px;
            }
            
            .fill-input {
                width: 100%;
                padding: 12px;
                font-size: 16px;
            }
            
            .fill-instruction {
                font-size: 13px;
                padding: 6px;
                margin-bottom: 8px;
            }
            
            .answer-feedback {
                padding: 12px;
                font-size: 14px;
                margin-top: 15px;
            }
            
            .completion-message {
                font-size: 16px;
                padding: 12px;
                margin-top: 8px;
            }
            
            .search-results {
                max-height: 120px;
                margin-top: 8px;
            }
            
            .search-result-item {
                padding: 8px 10px;
                font-size: 13px;
            }
            
            .wrong-questions-list {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
                gap: 8px;
                max-height: 150px;
                padding: 8px;
            }
            
            .wrong-question-item {
                padding: 6px;
                min-height: 50px;
            }
            
            .status-output {
                padding: 12px;
                font-size: 14px;
                min-height: 50px;
                margin-bottom: 15px;
            }
            
            footer {
                margin-top: 30px;
                padding-top: 15px;
                font-size: 12px;
            }
        }
        
        /* 小屏幕设备优化 */
        @media (max-width: 480px) {
            .page-btn {
                flex: 1 1 100%;
            }
            
            .mode-btn {
                flex: 1 1 100%;
            }
            
            .stat-item {
                flex: 1 1 100%;
            }
            
            .controls .btn {
                flex: 1 1 100%;
            }
            
            header h1 {
                font-size: 20px;
            }
            
            .question-content {
                font-size: 16px;
            }
            
            .option {
                font-size: 13px;
                padding: 10px;
            }
            
            .fill-input {
                font-size: 14px;
                padding: 10px;
            }
            
            .fill-input-label {
                font-size: 14px;
            }
            
            .answer-feedback {
                font-size: 13px;
                padding: 10px;
            }
            
            .completion-message {
                font-size: 14px;
                padding: 10px;
            }
            
            .search-result-item {
                font-size: 12px;
                padding: 6px 8px;
            }
        }
        
        /* 横屏模式优化 */
        @media (max-height: 500px) and (orientation: landscape) {
            .container {
                padding: 10px;
            }
            
            .section {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .question-container {
                padding: 15px;
                min-height: 150px;
            }
            
            .controls {
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .controls .btn {
                flex: 1 1 calc(25% - 8px);
            }
        }
        @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3),
               only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2),
               only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3),
               only screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3),
               only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) {
            body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
        }

/* 题库选择弹窗 */
.bank-selector-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1000;
    align-items: center; justify-content: center;
}
.bank-selector-modal {
    background: #fff; border-radius: 16px; padding: 0; max-width: 400px; width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2); overflow: hidden;
}
.bank-selector-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #e8e8e8;
}
.bank-selector-header h3 { font-size: 17px; color: #333; margin: 0; }
.bank-selector-desc {
    padding: 12px 20px; font-size: 13px; color: #888;
    border-bottom: 1px solid #f0f0f0;
}
.bank-file-list { max-height: 350px; overflow-y: auto; padding: 8px; }
.bank-select-item {
    padding: 14px 16px; cursor: pointer; border-radius: 8px;
    font-size: 14px; color: #333; transition: background 0.15s;
    border: 1px solid #f0f0f0; margin-bottom: 6px;
}
.bank-select-item:hover { background: #f0f8ff; border-color: #3498db; }
.bank-select-item:active { background: #e3f2fd; }
