:root {
                /* Color System - Simplified and organized */

                --primary-light: #3b82f6;

                --secondary: #059669;
                --secondary-light: #10b981;

                --warning: #d97706;
                --primary: #6B4F4F;
                /* 深棕色 */
                --primary-dark: #483434;
                --accent: #B8860B;
                /* 暗金色 */
                --bg: #FAF3E0;
                /* 纸莎草白 */
                --surface: #FFFFFF;
                /* 卡片可保持白色以保证可读性，但边框用棕色 */
                --border: #DCD0C0;
                /* 柔和的边框色 */
                --text-primary: #3D2B1F;
                /* 接近黑色的深棕色 */
                --text-secondary: #5C4033;


                /* Surface Colors - Clear hierarchy */


                --surface-elevated: #f1f5f9;

                --border-strong: #cbd5e1;

                /* Text Colors - Consistent contrast */

                --text-muted: #64748b;
                --text-light: #94a3b8;

                /* Status Colors */
                --success: #059669;
                --success-bg: #ecfdf5;
                --error: #dc2626;
                --error-bg: #fef2f2;
                --info: #0ea5e9;
                --info-bg: #f0f9ff;

                /* Design Tokens */
                --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
                --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
                --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
                --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
                --radius: 8px;
                --radius-lg: 12px;
                --radius-xl: 16px;

                /* Navigator Dimensions */
                --nav-compact-width: auto;
                --nav-expanded-width: 240px;
                --nav-button-size: 48px;
                --nav-spacing: 4px;
                --nav-gap: 6px;
            }


/* Base Reset and Typography */
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }

            body {
                font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                background: var(--bg);
                color: var(--text-primary);
                line-height: 1.6;
                margin: 0 !important;
                padding: 0 !important;
            }

            .container {
                max-width: 1200px;
                margin: 0 auto;
                padding: 0 20px;
            }

            /* Hero Section */
            .hero {
                padding: 50px 24px;
                text-align: center;
                color: white;
                border-radius: var(--radius-xl);
                background: linear-gradient(135deg, rgba(30, 64, 175, 0.4) 0%, rgba(59, 130, 246, 0.3) 100%),
                    url('<?php echo esc_url($background_image_url); ?>') center/cover;
                box-shadow: var(--shadow-lg);
                margin-bottom: 32px;
                position: relative;
            }

            .hero-content {
                padding: 40px 24px;
                text-align: center;
            }

            .treasure-status {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                background: rgba(255, 255, 255, 0.95);
                color: var(--primary);
                padding: 8px 16px;
                border-radius: 20px;
                font-size: 14px;
                font-weight: 600;
                margin-bottom: 20px;
                box-shadow: var(--shadow);
            }

            .hero-title {
                font-size: clamp(28px, 5vw, 42px);
                font-weight: 800;
                margin-bottom: 16px;
                color: #ffffff;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            }

            .hero-subtitle {
                font-size: 18px;
                font-weight: 500;
                margin-bottom: 24px;
                color: rgba(255, 255, 255, 0.9);
                background: rgba(255, 255, 255, 0.1);
                padding: 12px 20px;
                border-radius: var(--radius);
                display: inline-block;
                backdrop-filter: blur(5px);
            }

            .user-info {
                background: rgba(255, 255, 255, 0.15);
                backdrop-filter: blur(10px);
                padding: 16px 20px;
                border-radius: var(--radius-lg);
                margin: 20px auto;
                max-width: 600px;
                font-weight: 500;
                border: 1px solid rgba(255, 255, 255, 0.2);
            }

            /* =================================================== */
            /* ===   版本1: 有自定义图片时的样式 (.hero-with-image) === */
            /* =================================================== */
            .hero-with-image {
                color: white;
                background-size: cover;
                background-position: center;
            }

            .hero-with-image .hero-title {
                color: #ffffff;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            }

            .hero-with-image .treasure-status,
            .hero-with-image .hero-subtitle,
            .hero-with-image .user-info,
            .hero-with-image .treasure-meta span,
            .hero-with-image .treasure-meta a {
                background: rgba(255, 255, 255, 0.15);
                backdrop-filter: blur(10px);
                border: 1px solid rgba(255, 255, 255, 0.2);
                color: rgba(255, 255, 255, 0.9);
            }

            .hero-with-image .treasure-meta a:hover {
                background: rgba(255, 255, 255, 0.3);
            }


            /* =================================================== */
            /* ===   版本2: 没有图片时的样式 (.hero-no-image)    === */
            /* =================================================== */
            .hero-no-image {
                color: #4a3728;
                /* 深棕色墨水文字 */
                background-color: #f4e4bc;
                /* 羊皮纸底色 */
                background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAMqADAAQAAAABAAAAMgAAAADdOa+FAAAAa0lEQVRoBe2SMRKAQAwD9f9P7gghpSgpvDGSxZ15jP1MRJv/9YQgZ4iQIUKIiwg5Q4QKIa4i5AwRKoS4iJAzRKgQ4iJCTtA/i5/aN3ySA3kGkOdA3kF+fghygpA/QpyA8E+IEyB+iJwg/yDECRB/iJwg/yDEDyG/gHwOkKcQfx/yD0iTJwNqAAAAAElFTkSuQmCC');
                border: 3px solid #6b4f3a;
            }

            .hero-no-image .hero-title {
                color: #9a2a2a;
                /* 暗红色墨水标题 */
                text-shadow: 1px 1px 2px rgba(107, 79, 58, 0.2);
            }

            .hero-no-image .treasure-status,
            .hero-no-image .hero-subtitle,
            .hero-no-image .user-info,
            .hero-no-image .treasure-meta span,
            .hero-no-image .treasure-meta a {
                background: rgba(210, 180, 140, 0.3);
                /* 烧焦的纸张颜色 */
                border: 1px dashed #6b4f3a;
                color: #4a3728;
                backdrop-filter: none;
                /* 移除毛玻璃效果 */
                border-radius: 4px;
            }

            .hero-no-image .treasure-meta a {
                text-decoration: none;
                /* 确保链接没有下划线 */
            }

            .hero-no-image .treasure-meta a:hover {
                background: rgba(210, 180, 140, 0.6);
            }

            .treasure-meta {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                margin-top: 16px;
                justify-content: center;
                font-size: 13px;
            }

            .treasure-meta span,
            .treasure-meta a {
                background: rgba(255, 255, 255, 0.2);
                padding: 4px 12px;
                border-radius: var(--radius);
                border: 1px solid rgba(255, 255, 255, 0.3);
                color: rgba(255, 255, 255, 0.9);
                text-decoration: none;
                transition: background-color 0.2s;
            }

            .treasure-meta a:hover {
                background: rgba(255, 255, 255, 0.3);
            }

            /* Quest Starter Section */
            .quest-starter {
                background: var(--surface);
                border: 2px solid var(--primary);
                border-radius: var(--radius-xl);
                padding: 32px;
                margin: 24px 0;
                text-align: center;
                box-shadow: var(--shadow-md);
            }

            .quest-starter-title {
                font-size: 24px;
                font-weight: 700;
                color: var(--text-primary);
                margin-bottom: 12px;
            }

            .quest-starter-desc {
                font-size: 16px;
                color: var(--text-secondary);
                margin-bottom: 24px;
                line-height: 1.5;
            }

            .quest-starter-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                padding: 16px 32px;
                font-size: 18px;
                font-weight: 700;
                background: var(--primary);
                color: white;
                border: none;
                border-radius: var(--radius-lg);
                cursor: pointer;
                box-shadow: var(--shadow);
                transition: all 0.2s ease;
                text-transform: none;
            }

            .quest-starter-btn:hover {
                background: var(--primary-dark);
                transform: translateY(-1px);
                box-shadow: var(--shadow-lg);
            }

            .quest-starter-meta {
                margin-top: 16px;
                font-size: 14px;
                color: var(--text-muted);
            }

            /* Quest Content - Hidden by default */
            .quest-content {
                display: none;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .quest-content.revealed {
                display: block;
                opacity: 1;
            }

            /* Quest Navigator - 轻量悬浮样式 */
            .quest-navigator {
                position: fixed;
                right: 4px;
                top: 50%;
                transform: translateY(-50%);
                width: auto;
                max-width: 90vw;
                background: transparent;
                padding: 4px;
                z-index: 1000;
                transition: all 0.3s ease;
                pointer-events: auto;
            }

            /* 展开状态 */
            .quest-navigator.expanded {
                width: 240px;
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(10px);
                border-radius: var(--radius-lg);
                padding: 16px;
                box-shadow: 0 4px 20px rgba(107, 79, 79, 0.15);
            }

            /* 折叠状态（隐藏到右侧，但保留折叠按钮） */
            .quest-navigator.collapsed {
                transform: translateX(calc(100% - 28px)) translateY(-50%);
            }

            /* 折叠时隐藏所有内容，只保留按钮 */
            .quest-navigator.collapsed .nav-header,
            .quest-navigator.collapsed .nav-steps,
            .quest-navigator.collapsed .nav-divider,
            .quest-navigator.collapsed .nav-shortcuts {
                display: none;
            }

            .nav-header {
                display: none;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 12px;
            }

            /* 展开时显示标题 */
            .quest-navigator.expanded .nav-header {
                display: flex;
            }

            .nav-title {
                font-size: 14px;
                font-weight: 600;
                color: var(--text-primary);
            }

            .progress-info {
                font-size: 11px;
                color: var(--text-muted);
            }

            .nav-steps {
                display: flex;
                flex-direction: column;
                gap: 8px;
            }

            /* 默认紧凑模式 - 只显示图标 */
            .nav-step {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0;
                padding: 8px;
                background: rgba(255, 255, 255, 0.9);
                border: none;
                border-radius: 50%;
                cursor: pointer;
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                position: relative;
                width: 48px;
                height: 48px;
            }

            /* 展开时显示完整布局 */
            .quest-navigator.expanded .nav-step {
                gap: 10px;
                padding: 10px 12px;
                border-radius: var(--radius);
                width: auto;
                height: auto;
                justify-content: flex-start;
                border: 1px solid var(--border);
                transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
            }

            .nav-step:hover {
                transform: scale(1.05);
                box-shadow: 0 2px 12px rgba(107, 79, 79, 0.2);
            }

            .quest-navigator.expanded .nav-step:hover {
                transform: translateX(-3px);
                background: #f0e9e1;
            }

            /* 已完成状态 */
            .nav-step.completed {
                background: var(--success);
            }

            .quest-navigator.expanded .nav-step.completed {
                background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
                border-left: 3px solid var(--success);
            }

            .nav-step.completed .step-icon {
                color: white;
            }

            .quest-navigator.expanded .nav-step.completed .step-icon {
                background: var(--success);
            }

            /* 进行中状态 */
            .nav-step.active {
                background: var(--accent);
                animation: pulse-mini 2s ease-in-out infinite;
            }

            .quest-navigator.expanded .nav-step.active {
                background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
                border-left: 3px solid var(--accent);
                animation: pulse 2s ease-in-out infinite;
            }

            .nav-step.active .step-icon {
                color: white;
                animation: bounce-mini 1s ease-in-out infinite;
            }

            .quest-navigator.expanded .nav-step.active .step-icon {
                background: var(--accent);
                animation: bounce 1s ease-in-out infinite;
            }

            /* 未完成状态 */
            .nav-step:not(.completed):not(.active) {
                opacity: 0.7;
                background: rgba(200, 200, 200, 0.5);
            }

            .quest-navigator.expanded .nav-step:not(.completed):not(.active) {
                opacity: 0.65;
                background: var(--surface);
            }

            .nav-step:not(.completed):not(.active):hover {
                opacity: 0.9;
            }

            /* 图标样式 */
            .step-icon {
                font-size: 24px;
                min-width: auto;
                height: auto;
                display: flex;
                align-items: center;
                justify-content: center;
                background: none;
                border-radius: 0;
                box-shadow: none;
            }

            .quest-navigator.expanded .step-icon {
                font-size: 20px;
                min-width: 28px;
                height: 28px;
                background: white;
                border-radius: 50%;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            }

            /* 文字内容 - 默认隐藏 */
            .step-title,
            .step-desc {
                display: none;
            }

            /* 展开时显示文字 */
            .quest-navigator.expanded .step-title {
                display: block;
                font-weight: 600;
                margin-bottom: 2px;
                font-size: 13px;
                color: var(--text-primary);
            }

            .quest-navigator.expanded .step-desc {
                display: block;
                font-size: 11px;
                opacity: 0.8;
                color: var(--text-secondary);
            }

            /* 脉冲动画 - 完整版 */
            @keyframes pulse {
                0%, 100% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.4); }
                50% { box-shadow: 0 0 0 10px rgba(184, 134, 11, 0); }
            }

            /* 脉冲动画 - 紧凑版 */
            @keyframes pulse-mini {
                0%, 100% { box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.5); }
                50% { box-shadow: 0 0 0 6px rgba(184, 134, 11, 0); }
            }

            /* 弹跳动画 - 完整版 */
            @keyframes bounce {
                0%, 100% { transform: translateY(0); }
                50% { transform: translateY(-3px); }
            }

            /* 弹跳动画 - 紧凑版 */
            @keyframes bounce-mini {
                0%, 100% { transform: scale(1); }
                50% { transform: scale(1.1); }
            }

            /* 折叠按钮 - 紧凑版 */
            .nav-toggle {
                position: absolute;
                left: -8px;
                top: 50%;
                transform: translateY(-50%);
                width: 20px;
                height: 36px;
                background: rgba(255, 255, 255, 0.95);
                border: 1.5px solid var(--primary);
                border-right: none;
                border-radius: 8px 0 0 8px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 10px;
                transition: all 0.3s ease;
                color: var(--primary);
                font-weight: bold;
                opacity: 0.7;
                z-index: 10;
                pointer-events: auto;
            }

            .nav-toggle:hover {
                background: var(--primary);
                color: white;
                opacity: 1;
                width: 24px;
            }

            /* 展开状态下的折叠按钮 */
            .quest-navigator.expanded .nav-toggle {
                opacity: 1;
                width: 24px;
                height: 40px;
            }

            /* 折叠状态下的按钮样式 */
            .quest-navigator.collapsed .nav-toggle {
                opacity: 1;
                left: 0;
                border-right: 1.5px solid var(--primary);
                border-radius: 8px;
                box-shadow: 0 2px 8px rgba(107, 79, 79, 0.2);
            }

            /* 快捷导航分割线 */
            .nav-divider {
                display: none;
                height: 1px;
                background: linear-gradient(90deg, transparent, var(--border), transparent);
                margin: 12px 0;
            }

            .quest-navigator.expanded .nav-divider {
                display: block;
            }

            /* 快捷导航按钮区域 */
            .nav-shortcuts {
                display: flex;
                flex-direction: column;
                gap: 6px;
                margin-top: 8px;
            }

            /* 单个快捷按钮 - 默认只显示图标 */
            .nav-shortcut {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 0;
                padding: 8px;
                background: rgba(255, 255, 255, 0.9);
                border: none;
                border-radius: 50%;
                text-decoration: none;
                color: var(--text-primary);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                cursor: pointer;
                width: 48px;
                height: 48px;
            }

            /* 展开时显示完整按钮 */
            .quest-navigator.expanded .nav-shortcut {
                gap: 8px;
                padding: 8px 10px;
                border-radius: var(--radius);
                width: auto;
                height: auto;
                justify-content: flex-start;
                background: rgba(255, 255, 255, 0.8);
                border: 1px solid var(--border);
                transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
            }

            .nav-shortcut:hover {
                transform: scale(1.05);
                box-shadow: 0 2px 12px rgba(59, 130, 246, 0.2);
            }

            .quest-navigator.expanded .nav-shortcut:hover {
                background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
                border-color: var(--primary-light);
                transform: translateX(-3px);
            }

            .shortcut-icon {
                font-size: 24px;
                min-width: auto;
                height: auto;
                display: flex;
                align-items: center;
                justify-content: center;
                background: none;
                border-radius: 0;
                box-shadow: none;
            }

            .quest-navigator.expanded .shortcut-icon {
                font-size: 18px;
                min-width: 24px;
                height: 24px;
                background: white;
                border-radius: 50%;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            }

            /* 文字默认隐藏 */
            .shortcut-text {
                display: none;
            }

            /* 展开时显示文字 */
            .quest-navigator.expanded .shortcut-text {
                display: block;
                font-size: 13px;
                font-weight: 600;
                white-space: nowrap;
            }

            /* Countdown Timer - 调整为固定底部右侧 */
            .countdown-compact {
                position: fixed;
                bottom: 20px;
                right: 20px;
                width: 280px;
                max-width: calc(100vw - 40px);
                background: linear-gradient(135deg, var(--accent) 0%, #ef4444 100%);
                color: white;
                padding: 12px 16px;
                border-radius: var(--radius);
                text-align: center;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
                z-index: 999;
                font-size: 14px;
            }

            .countdown-compact.urgent {
                border: 2px solid #fca5a5;
            }

            /* Layout Grid */
            .content-grid {
                display: grid;
                grid-template-columns: 1fr;
                gap: 24px;
            }

            @media (min-width: 1024px) {
                .content-grid {
                    grid-template-columns: 2fr 1fr;
                    gap: 32px;
                }
            }

            /* Card Components */
            .card {
                background: var(--surface);
                border: 1px solid var(--border);
                border-radius: var(--radius-lg);
                box-shadow: var(--shadow-sm);
                margin-bottom: 24px;
                transition: box-shadow 0.2s ease;
            }

            .card:hover {
                box-shadow: var(--shadow);
            }

            .card-content {
                padding: 24px;
            }

            .card-title {
                font-size: 20px;
                font-weight: 700;
                color: var(--text-primary);
                margin-bottom: 16px;
                border-left: 4px solid var(--primary);
                padding-left: 12px;
            }

            /* Button System */
            .btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                padding: 12px 24px;
                border: none;
                border-radius: var(--radius);
                font-weight: 600;
                cursor: pointer;
                transition: all 0.2s ease;
                text-decoration: none;
                font-size: 14px;
            }

            .btn:hover {
                transform: translateY(-1px);
                box-shadow: var(--shadow-md);
            }

            .btn-primary {
                background: var(--primary);
                color: white;
            }

            .btn-primary:hover {
                background: var(--primary-dark);
            }

            .btn-success {
                background: var(--success);
                color: white;
            }

            .btn-success:hover {
                background: #047857;
            }

            .btn-outline {
                background: transparent;
                border: 2px solid var(--primary);
                color: var(--primary);
            }

            .btn-outline:hover {
                background: var(--primary);
                color: white;
            }

            .btn-large {
                padding: 16px 32px;
                font-size: 18px;
                font-weight: 700;
            }

            .btn-group {
                display: flex;
                gap: 12px;
                flex-wrap: wrap;
                margin-top: 20px;
            }

            /* Clue System */
            .mystery-clues {
                background: var(--info-bg);
                border: 2px solid var(--info);
                border-radius: var(--radius-lg);
                padding: 20px;
                margin: 20px 0;
            }

            .clues-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin-bottom: 16px;
            }

            .clues-title {
                font-size: 18px;
                font-weight: 700;
                color: var(--text-primary);
                margin: 0;
            }

            .clues-viewers {
                background: rgba(14, 165, 233, 0.1);
                color: var(--info);
                padding: 4px 12px;
                border-radius: 16px;
                font-size: 12px;
                border: 1px solid rgba(14, 165, 233, 0.2);
            }

            .unlock-btn {
                width: 100%;
                margin: 16px 0;
                padding: 14px;
                font-size: 16px;
                background: var(--info);
                color: white;
                border: none;
                border-radius: var(--radius);
                cursor: pointer;
                font-weight: 600;
                transition: all 0.2s ease;
            }

            .unlock-btn:hover {
                background: #0284c7;
                transform: translateY(-1px);
            }

            .clues-locked {
                position: relative;
                background: var(--surface-elevated);
                padding: 32px;
                border-radius: var(--radius);
                text-align: center;
                cursor: pointer;
                transition: background-color 0.2s ease;
                border: 2px dashed var(--border-strong);
            }

            .clues-locked:hover {
                background: #f1f5f9;
            }

            .lock-icon {
                font-size: 48px;
                margin-bottom: 12px;
                opacity: 0.7;
            }

            .lock-title {
                font-size: 18px;
                font-weight: 600;
                margin-bottom: 6px;
                color: var(--text-primary);
            }

            .lock-desc {
                font-size: 14px;
                color: var(--text-muted);
            }

            .clues-preview {
                filter: blur(3px);
                pointer-events: none;
                font-family: monospace;
                line-height: 1.6;
                color: var(--text-muted);
                opacity: 0.6;
            }

            .clues-content {
                display: none;
            }

            .clues-content.revealed {
                display: block;
            }

            /* Rewards System */
            .rewards-showcase {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
                gap: 16px;
                margin: 20px 0;
            }

            .reward-item {
                text-align: center;
                padding: 16px;
                background: var(--surface-elevated);
                border: 1px solid var(--border);
                border-radius: var(--radius);
                transition: all 0.2s ease;
            }

            .reward-item:hover {
                border-color: var(--primary-light);
                box-shadow: var(--shadow);
            }

            .reward-icon {
                font-size: 36px;
                margin-bottom: 8px;
                display: block;
                opacity: 0.8;
            }

            .reward-item:hover .reward-icon {
                opacity: 1;
            }

            .reward-name {
                font-weight: 600;
                margin-bottom: 4px;
                color: var(--text-primary);
                font-size: 14px;
            }

            .reward-rarity {
                font-size: 11px;
                color: var(--text-muted);
                text-transform: uppercase;
                letter-spacing: 0.5px;
            }

            /* Map Container */
            .map-container {
                height: 350px;
                border-radius: var(--radius);
                overflow: hidden;
                box-shadow: var(--shadow);
                background: var(--surface-elevated);
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--text-muted);
                border: 2px solid var(--border);
            }

            .map-placeholder {
                text-align: center;
                padding: 40px 20px;
            }

            .map-icon {
                font-size: 48px;
                margin-bottom: 16px;
                opacity: 0.7;
            }

         
            /* Statistics Components */
            .stats-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 12px;
                margin: 16px 0;
            }

            .stat-card {
                text-align: center;
                padding: 16px 12px;
                background: var(--surface-elevated);
                border: 1px solid var(--border);
                border-radius: var(--radius);
            }

            .stat-number {
                font-size: 24px;
                font-weight: 800;
                color: var(--primary);
                display: block;
                margin-bottom: 4px;
            }

            .stat-label {
                font-size: 12px;
                color: var(--text-muted);
            }

            /* Leaderboard */
            .leaderboard-item {
                display: flex;
                align-items: center;
                padding: 12px 0;
                border-bottom: 1px solid var(--border);
            }

            .leaderboard-item:last-child {
                border-bottom: none;
            }

            .rank-number {
                width: 28px;
                height: 28px;
                background: var(--primary);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                font-weight: 700;
                margin-right: 12px;
                font-size: 14px;
            }

            .rank-number.first {
                background: #d97706;
            }

            .rank-number.second {
                background: #6b7280;
            }

            .rank-number.third {
                background: #a16207;
            }

            .player-info {
                flex: 1;
            }

            .player-name {
                font-weight: 600;
                color: var(--text-primary);
                font-size: 14px;
            }

            .completion-time {
                font-size: 12px;
                color: var(--text-muted);
            }

            /* Utility Components */
            #confetti-canvas {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                pointer-events: none;
                z-index: 9999;
            }

            .loading {
                position: relative;
                pointer-events: none;
            }

            .loading::after {
                content: "";
                position: absolute;
                top: 50%;
                left: 50%;
                width: 16px;
                height: 16px;
                margin: -8px 0 0 -8px;
                border: 2px solid rgba(255, 255, 255, 0.3);
                border-top: 2px solid white;
                border-radius: 50%;
                animation: spin 1s linear infinite;
            }

            @keyframes spin {
                0% {
                    transform: rotate(0deg);
                }

                100% {
                    transform: rotate(360deg);
                }
            }

            .notification {
                position: fixed;
                top: 20px;
                left: 50%;
                transform: translateX(-50%);
                padding: 12px 20px;
                border-radius: var(--radius);
                color: white;
                font-weight: 600;
                z-index: 1001;
                box-shadow: var(--shadow-lg);
                transition: all 0.3s ease;
            }

            .notification.success {
                background: var(--success);
            }

            .notification.error {
                background: var(--error);
            }

            .notification.info {
                background: var(--info);
            }

            /* Mobile Responsive Design */
            @media (max-width: 768px) {
                .container {
                    padding: 0 16px;
                }

                .hero-content {
                    padding: 24px 16px;
                }

                .quest-starter {
                    padding: 24px 16px;
                }

                .quest-starter-title {
                    font-size: 20px;
                }

                .quest-starter-btn {
                    width: 100%;
                    font-size: 16px;
                }

                /* Optimized Mobile Navigation - 轻量悬浮版（垂直居中）*/
                .quest-navigator {
                    right: 8px;
                    width: 60px;
                    padding: 6px;
                    top: 50%;
                    transform: translateY(-50%);
                }

                /* 移动端展开状态 */
                .quest-navigator.expanded {
                    width: 200px;
                    padding: 12px;
                }

                /* 移动端折叠（保留按钮，保持垂直居中） */
                .quest-navigator.collapsed {
                    transform: translateX(calc(100% - 22px)) translateY(-50%);
                }

                .nav-header {
                    margin-bottom: 8px;
                    flex-direction: column;
                    gap: 2px;
                }

                .nav-title {
                    font-size: 12px;
                    font-weight: 600;
                }

                .progress-info {
                    font-size: 10px;
                }

                .nav-steps {
                    gap: 6px;
                }

                /* 紧凑模式步骤 */
                .nav-step {
                    width: 40px;
                    height: 40px;
                    padding: 6px;
                }

                /* 展开模式步骤 */
                .quest-navigator.expanded .nav-step {
                    padding: 8px 10px;
                }

                .step-icon {
                    font-size: 20px;
                }

                .quest-navigator.expanded .step-icon {
                    font-size: 18px;
                    min-width: 24px;
                    height: 24px;
                }

                .quest-navigator.expanded .step-title {
                    font-size: 11px;
                }

                .quest-navigator.expanded .step-desc {
                    font-size: 9px;
                }

                .nav-toggle {
                    left: -6px;
                    width: 16px;
                    height: 32px;
                    font-size: 8px;
                }

                .quest-navigator.expanded .nav-toggle {
                    width: 20px;
                    height: 36px;
                    font-size: 10px;
                }

                /* 移动端折叠状态下的按钮 */
                .quest-navigator.collapsed .nav-toggle {
                    left: 0;
                    width: 18px;
                    height: 32px;
                }

                /* 移动端快捷按钮 - 紧凑模式 */
                .nav-shortcut {
                    width: 40px;
                    height: 40px;
                    padding: 6px;
                }

                /* 移动端展开模式 */
                .quest-navigator.expanded .nav-shortcut {
                    padding: 6px 8px;
                }

                .shortcut-icon {
                    font-size: 20px;
                }

                .quest-navigator.expanded .shortcut-icon {
                    font-size: 16px;
                    min-width: 20px;
                    height: 20px;
                }

                .quest-navigator.expanded .shortcut-text {
                    font-size: 11px;
                }

                /* 倒计时移动端 */
                .countdown-compact {
                    right: 8px;
                    bottom: 15px;
                    width: auto;
                    max-width: calc(100vw - 80px);
                    font-size: 11px;
                    padding: 8px 12px;
                }

                /* Mobile Card Optimization */
                .card {
                    margin-bottom: 16px;
                    border-radius: 8px;
                }

                .card-content {
                    padding: 16px;
                }

                .card-title {
                    font-size: 18px;
                    margin-bottom: 12px;
                }

                .btn-group {
                    flex-direction: column;
                }

                /* Mobile Rewards */
                .rewards-showcase {
                    grid-template-columns: repeat(4, 1fr);
                    gap: 8px;
                    margin: 16px 0;
                }

                .reward-item {
                    padding: 8px 4px;
                }

                .reward-icon {
                    font-size: 20px;
                    margin-bottom: 4px;
                }

                .reward-name {
                    font-size: 11px;
                }

                .reward-rarity {
                    font-size: 9px;
                }

                .modal {
                    padding: 24px;
                }
            }
            /* 为内容图片添加样式 */
.content-images-grid img:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* 加载状态样式 */
#check-location-btn.loading {
    position: relative;
    color: transparent;
}

#check-location-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 距离状态动画 */
#distance-status {
    transition: all 0.3s ease;
}

/* 解锁方法指示器 */
#unlock-method-indicator {
    border-left: 3px solid var(--success);
}

/* ===== 优化：提取内联样式为CSS类 ===== */

/* 探险者专享情报框 */
.explorer-exclusive-info {
    background: var(--info-bg);
    padding: 16px;
    border-radius: var(--radius);
    margin: 16px 0;
    border-left: 4px solid var(--info);
}

.explorer-exclusive-info strong {
    color: var(--info);
}

.explorer-exclusive-info-content {
    margin-top: 8px;
    line-height: 1.5;
}

/* 位置解锁提示框 */
.location-unlock-hint {
    background: var(--info-bg);
    border: 1px solid var(--info);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
    display: none;
}

.location-unlock-hint-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.location-unlock-hint-title {
    font-weight: 600;
    color: var(--info);
    margin-bottom: 4px;
}

.location-unlock-hint-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.location-unlock-hint-btn {
    margin-top: 12px;
}

.location-unlock-distance {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* 线索内容成功提示 */
.clues-success-banner {
    background: var(--success-bg);
    color: var(--success);
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    text-align: center;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

/* 内容图片网格 */
.content-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.content-images-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
}

/* 线索文字框 */
.clues-text-box {
    font-family: monospace;
    background: var(--surface-elevated);
    padding: 16px;
    border-radius: var(--radius);
    line-height: 1.6;
    border: 1px solid var(--border);
}

/* 解锁方法状态 */
.unlock-status-indicator {
    margin-top: 12px;
    padding: 8px;
    background: var(--surface-elevated);
    border-radius: var(--radius);
    font-size: 13px;
    text-align: center;
    color: var(--text-muted);
}

/* 用户状态卡片 */
.user-status-card {
    background: var(--success-bg);
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.user-status-title {
    color: var(--success);
    margin-bottom: 8px;
    font-size: 14px;
}

.user-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
}

/* 导航器首次访问脉冲动画 */
@keyframes navigator-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.quest-navigator.first-visit-hint {
    animation: navigator-pulse 2s ease-in-out 3;
}

/* 首次访问提示箭头 */
.navigator-first-hint {
    position: fixed;
    right: calc(var(--nav-compact-width) + var(--nav-spacing) + 80px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    animation: fadeInOut 4s ease-in-out;
    pointer-events: none;
}

.navigator-first-hint::after {
    content: '👉';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* 图片标题区域 */
.image-section-title {
    margin-bottom: 16px;
}

.image-section-title h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

/* 完成探险提示 */
.user-completed-badge {
    color: #10b981;
    margin-top: 8px;
    font-weight: 600;
}

/* 主要内容区域 */
.content-main {
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 奖励标题 */
.rewards-title {
    margin: 24px 0 12px 0;
    color: var(--text-primary);
}

/* 地图信息栏 */
.map-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 完成任务卡片 */
.victory-card {
    background: var(--success-bg);
    border: 2px solid var(--success);
    text-align: center;
}

.victory-title {
    color: var(--success);
    margin-bottom: 16px;
    font-size: 24px;
}

.victory-description {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .content-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .content-images-grid img {
        height: 100px;
    }

    .navigator-first-hint {
        right: 10px;
        left: 10px;
        top: auto;
        bottom: 100px;
        transform: none;
        text-align: center;
    }

    .navigator-first-hint::after {
        right: 50%;
        top: -30px;
        transform: translateX(50%) rotate(-90deg);
    }
}