

        :root {
            --vermilion: #c41e3a;
            --gold: #b8860b;
            --jade: #2e8b57;
            --ink: #1a1a1a;
            --ink-light: #4a4a4a;
            --paper: #f5f0e8;
            --paper-dark: #e8e0d0;
            --jade-light: #e8f4ed;
            --border: #d4c4a8;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        .container { max-width: 1200px; margin: 0 auto; padding: 2rem; }

        /* Navigation */
        .nav-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            margin-bottom: 1.5rem;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(201, 168, 76, 0.3);
        }
        .nav {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            padding: 0;
            border: none;
        }
        .nav a { color: var(--vermilion); text-decoration: none; font-size: 0.95rem; padding: 0.4rem 1rem; border-radius: 20px; transition: all 0.2s; }
        .nav a:hover { background: var(--vermilion); color: #fff; }
        .nav a.active { background: var(--vermilion); color: #fff; }

        /* Hero */
        .hero {
            text-align: center;
            padding: 4rem 0;
        }
        .hero h1 {
            font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive;
            font-size: 4rem;
            color: #b8860b;
            text-shadow: 0 0 30px rgba(184, 134, 11, 0.5);
            margin-bottom: 1rem;
        }
        .hero p {
            font-size: 1.3rem;
            color: rgba(245, 240, 232, 0.8);
            margin-bottom: 3rem;
        }

        /* Start Button */
        .start-btn {
            display: inline-block;
            padding: 1.2rem 3rem;
            font-size: 1.4rem;
            font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive;
            background: linear-gradient(135deg, var(--vermilion), #8b0000);
            color: #fff;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 8px 30px rgba(196, 30, 58, 0.4);
            transition: all 0.3s;
        }
        .start-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px rgba(196, 30, 58, 0.6);
        }

        /* Tools Grid */
        .tool-card {
            background: linear-gradient(145deg, rgba(45, 37, 32, 0.8), rgba(26, 21, 16, 0.9));
            border: 1px solid rgba(201, 168, 76, 0.3);
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s;
        }
        .tool-card:hover {
            transform: translateY(-5px);
            border-color: var(--gold);
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }
        .tool-card h3 {
            font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive;
            font-size: 2rem;
            color: var(--gold);
            margin-bottom: 0.5rem;
        }
        .tool-card p {
            color: rgba(245, 240, 232, 0.7);
            margin-bottom: 1.5rem;
        }
        .tool-card .emoji {
            font-size: 3rem;
            margin-bottom: 1rem;
        }
        .tool-link {
            display: inline-block;
            padding: 0.8rem 2rem;
            background: transparent;
            border: 1px solid var(--gold);
            color: var(--gold);
            text-decoration: none;
            border-radius: 25px;
            transition: all 0.3s;
        }
        .tool-link:hover {
            background: var(--gold);
            color: #1a1510;
        }

        /* Footer */
        .footer {
            text-align: center;
            padding: 3rem 0;
            margin-top: 4rem;
            border-top: 1px solid rgba(201, 168, 76, 0.2);
            color: rgba(245, 240, 232, 0.5);
            font-size: 0.9rem;
        }

        .start-dropdown {
            position: relative;
            display: inline-block;
        }
        .dropdown-content {
            display: none;
            position: absolute;
            background: rgba(26, 21, 16, 0.95);
            min-width: 200px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.4);
            border-radius: 16px;
            overflow: hidden;
            z-index: 100;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            margin-top: 10px;
        }
        .start-dropdown:hover .dropdown-content {
            display: block;
        }
        .dropdown-content a {
            display: block;
            padding: 1rem 1.5rem;
            color: #f5f0e8;
            text-decoration: none;
            font-size: 1.1rem;
            transition: background 0.2s;
            text-align: center;
        }
        .dropdown-content a:hover {
            background: var(--vermilion);
        }
    

/* Liuyao Original Styles */
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', 'PingFang SC', 'Microsoft YaHei', serif;
            background: var(--paper);
            color: var(--ink);
            min-height: 100vh;
            line-height: 1.7;
        }
        .container { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }
        @media (max-width: 600px) { .container { padding: 1rem; } }
        header { text-align: center; padding: 0.3rem 0 0.3rem; margin-bottom: 0.3rem; position: relative; }
        header::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 3px; background: linear-gradient(90deg, var(--vermilion), var(--gold)); border-radius: 2px; }
        .header-title { font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive; font-size: 2rem; color: var(--ink); letter-spacing: 0.15em; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }
        .header-subtitle { color: var(--ink-light); font-size: 0.9rem; margin-top: 0.3rem; letter-spacing: 0.05em; }
        .header-date { color: var(--vermilion); font-size: 0.85rem; margin-top: 0.5rem; letter-spacing: 0.1em; font-weight: 500; }
        .yehe-quote { background: linear-gradient(135deg, #fff 0%, var(--paper) 50%, #fff 100%); padding: 1.5rem 2rem; margin: 2rem 0; border-left: 4px solid var(--gold); border-right: 4px solid var(--gold); font-style: italic; color: var(--ink-light); text-align: center; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
        .card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 2.2rem; margin-bottom: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
        @media (max-width: 600px) { .card { padding: 1.5rem; border-radius: 12px; } }
        .card-title { font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive; font-size: 1.5rem; color: var(--ink); margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--vermilion); display: inline-block; }
        .steps { display: flex; justify-content: center; align-items: center; margin-bottom: 2.5rem; gap: 0.5rem; }
        @media (max-width: 600px) { .steps { margin-bottom: 1.5rem; } }
        .step { display: flex; flex-direction: column; align-items: center; color: var(--ink-light); padding: 0 1.2rem; transition: all 0.3s; }
        @media (max-width: 600px) { .step { padding: 0 0.6rem; } }
        .step-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; }
        @media (max-width: 600px) { .step-num { width: 30px; height: 30px; font-size: 0.85rem; } }
        .step div:last-child { font-size: 0.9rem; }
        @media (max-width: 600px) { .step div:last-child { font-size: 0.75rem; } }
        .step.active { color: var(--vermilion); }
        .step.active .step-num { border-color: var(--vermilion); background: var(--vermilion); color: #fff; box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3); }
        .step.completed { color: var(--jade); }
        .step.completed .step-num { border-color: var(--jade); background: var(--jade); color: #fff; }
        .step-line { width: 50px; height: 2px; background: var(--border); margin-bottom: 1.5rem; border-radius: 1px; }
        @media (max-width: 600px) { .step-line { width: 25px; margin-bottom: 1.2rem; } }
        .question-grid { width: 100%; }
        @media (max-width: 600px) { .question-grid { width: 100%; } }
        .question-item { background: var(--paper); border: 1px solid var(--border); border-radius: 4px; padding: 1.2rem 1rem; text-align: center; cursor: pointer; transition: all 0.3s; color: var(--ink); }
        .question-item:hover { border-color: var(--vermilion); background: #fff; }
        .question-item.selected { border-color: var(--vermilion); background: var(--vermilion); color: #fff; }
        .question-item .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
        .question-item .label { font-weight: 600; font-size: 1.1rem; }
        .question-item .yongshen { font-size: 0.8rem; margin-top: 0.3rem; color: var(--ink-light); }
        .question-item.selected .yongshen { color: rgba(255,255,255,0.8); }
        
        /* 八字输入区域 */
        .bazi-input-section input:focus, .bazi-input-section select:focus {
            outline: none; border-color: #f39c12; box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
        }
        /* 两级问卦类型系统 */
        .category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
        @media (max-width: 900px) { .category-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.8rem; } }
        @media (max-width: 600px) { .category-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.6rem; } }
        @media (max-width: 450px) { .category-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 0.5rem; } }
        .category-item { 
            background: linear-gradient(145deg, #ffffff, var(--paper)); 
            border: 1px solid var(--border); 
            border-radius: 12px; 
            padding: 1.4rem 1rem; 
            text-align: center; 
            cursor: pointer; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            position: relative;
            overflow: hidden;
        }
        .category-item::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--vermilion), var(--gold));
            opacity: 0;
            transition: opacity 0.3s;
        }
        .category-item:hover {
            border-color: var(--vermilion);
            background: linear-gradient(145deg, #fffaf8, #fff);
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(196, 30, 58, 0.15);
        }
        .category-item:hover::before { opacity: 1; }
        /* --- 选中态：暗红边框 + 金色光晕 + 太极勾 --- */
        .category-item.selected {
            border-color: var(--vermilion);
            border-width: 2px;
            background: linear-gradient(145deg, #fef9f5, #fce8d8);
            transform: translateY(-5px);
            box-shadow: 0 0 0 2px var(--vermilion), 0 0 20px rgba(196,30,58,0.15), 0 8px 24px rgba(184,134,11,0.12);
        }
        .category-item.selected::before { opacity: 1; background: linear-gradient(90deg, var(--vermilion), var(--gold), var(--vermilion)); }
        .category-item.selected .cat-name { color: var(--vermilion); }
        .category-item.selected .cat-yongshen { background: var(--vermilion); color: #fff; }
        .category-item.selected .cat-icon { transform: scale(1.15); }
        /* 太极勾选标记 */
        .category-item.selected::after {
            content: '☯';
            position: absolute;
            top: 6px;
            right: 8px;
            font-size: 0.9rem;
            color: var(--gold);
            opacity: 0.7;
            line-height: 1;
        }
        @media (max-width: 600px) { .category-item { padding: 1rem 0.6rem; border-radius: 10px; } }
        @media (max-width: 450px) { .category-item.selected::after { font-size: 0.75rem; top: 4px; right: 5px; } }
        .category-item .cat-icon { font-size: 2.4rem; margin-bottom: 0.6rem; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); transition: transform 0.3s; }
        @media (max-width: 900px) { .category-item .cat-icon { font-size: 2rem; } }
        @media (max-width: 600px) { .category-item .cat-icon { font-size: 1.6rem; margin-bottom: 0.4rem; } }
        @media (max-width: 450px) { .category-item .cat-icon { font-size: 1.4rem; } }
        .category-item .cat-name { font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.25rem; }
        @media (max-width: 600px) { .category-item .cat-name { font-size: 0.95rem; } }
        @media (max-width: 450px) { .category-item .cat-name { font-size: 0.85rem; } }
        .category-item .cat-yongshen { font-size: 0.8rem; margin-top: 0.25rem; color: var(--ink-light); background: var(--paper-dark); padding: 0.2rem 0.5rem; border-radius: 10px; display: inline-block; }
        @media (max-width: 600px) { .category-item .cat-yongshen { font-size: 0.7rem; padding: 0.15rem 0.4rem; } }
        /* pulsing提示动画 */
        @keyframes gentlePulse {
            0%, 100% { opacity: 0.65; }
            50% { opacity: 1; }
        }
        .cta-hint-pulse {
            animation: gentlePulse 2s ease-in-out infinite;
            border-color: var(--gold) !important;
        }
        /* 子类弹窗 */
        .overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 999; }
        .subcategory-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--paper); border-radius: 16px; padding: 1.8rem; width: 90%; max-width: 620px; max-height: 85vh; overflow-y: auto; z-index: 1000; box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
        @media (max-width: 500px) { .subcategory-panel { padding: 1.2rem; width: 95%; max-height: 80vh; border-radius: 12px; } }
        .subcategory-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--border); }
        .subcategory-header span { font-weight: 600; font-size: 1.15rem; color: var(--ink); }
        @media (max-width: 500px) { .subcategory-header span { font-size: 1rem; } }
        .close-btn { background: var(--paper-dark); border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-light); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
        .close-btn:hover { background: var(--vermilion); color: #fff; }
        .subcategory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
        @media (max-width: 500px) { .subcategory-grid { grid-template-columns: 1fr; gap: 0.6rem; } }
        .sub-item { background: linear-gradient(145deg, #ffffff, #fafafa); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
        @media (max-width: 500px) { .sub-item { padding: 0.9rem 0.8rem; border-radius: 8px; } }
        .sub-item:hover { border-color: var(--vermilion); background: linear-gradient(145deg, #fffaf8, #fff); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(196, 30, 58, 0.12); }
        .sub-item.selected { border-color: var(--vermilion); background: linear-gradient(145deg, var(--vermilion), #a01830); color: #fff; box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3); }
        .sub-item .sub-name { font-weight: 600; margin-bottom: 0.4rem; font-size: 1rem; }
        @media (max-width: 500px) { .sub-item .sub-name { font-size: 0.95rem; } }
        .sub-item .sub-detail { font-size: 0.85rem; color: var(--ink-light); line-height: 1.4; }
        @media (max-width: 500px) { .sub-item .sub-detail { font-size: 0.8rem; } }
        .sub-item.selected .sub-detail { color: rgba(255,255,255,0.85); }
        .coin-area { text-align: center; padding: 2.5rem 0; }
        .coin-row { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
        @media (max-width: 600px) { .coin-row { gap: 1.2rem; } }
        /* 乾隆通宝铜钱样式 */
        .coin { 
            width: 90px; 
            height: 90px; 
            border-radius: 50%; 
            background: linear-gradient(145deg, #9B8B7A 0%, #6B5344 40%, #5D4E37 70%, #7A6B5A 100%);
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            align-content: center;
            gap: 0;
            padding: 8px;
            box-sizing: border-box;
            color: #D4C4A8; 
            font-weight: bold; 
            box-shadow: 
                0 8px 25px rgba(0,0,0,0.45),
                inset 0 2px 6px rgba(255,255,255,0.15),
                inset 0 -3px 8px rgba(0,0,0,0.4),
                inset 2px 2px 4px rgba(139,115,85,0.3),
                inset -1px -1px 3px rgba(0,0,0,0.2);
            cursor: pointer; 
            user-select: none; 
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: 'Ma Shan Zheng', serif;
            position: relative;
            border: 4px solid #5D4E37;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }
        .coin { position: relative; }
        .coin-top { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 1.3rem; }
        .coin-bottom { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 1.3rem; }
        .coin-left { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 1.0rem; }
        .coin-right { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.0rem; }
        @media (max-width: 600px) { .coin { width: 72px; height: 72px; } .coin-top, .coin-bottom { font-size: 1.1rem; top: 8px; bottom: 8px; } .coin-left, .coin-right { font-size: 0.9rem; left: 6px; right: 6px; } }
        /* 铜钱方孔 */
        .coin::before {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            background: linear-gradient(135deg, #3D3428 0%, #2D2418 100%);
            border: 2px solid #5D4E37;
            border-radius: 3px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,115,85,0.3);
            z-index: 1;
        }
        @media (max-width: 600px) { .coin::before { width: 20px; height: 20px; } }

        /* ========== 移动端优化 ========== */
        @media (max-width: 768px) {
            .container { padding: 1rem; }
            
            /* 导航栏 - 桌面保持一行，手机分两行 */
            .nav-container {
                flex-direction: column;
                gap: 0;
                padding: 0.5rem 0;
                border-bottom: 1px solid rgba(201, 168, 76, 0.3);
            }
            .nav {
                gap: 0.3rem;
                padding: 0.3rem 0;
                border: none;
            }
            .nav a {
                font-size: 0.85rem;
                padding: 0.3rem 0.6rem;
                margin: 0.1rem;
            }
            
            /* 标题 */
            .hero h1 { font-size: 2.5rem; }
            .hero p { font-size: 1rem; }
            
            /* 工具卡片 */
            .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
            .tool-card { padding: 1.5rem 1rem; }
            .tool-card h3 { font-size: 1.5rem; }
            .tool-card .emoji { font-size: 2rem; }
            .tool-link { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
            
            /* 页脚 */
            .footer { padding: 2rem 1rem; font-size: 0.8rem; }
        }

        @media (max-width: 480px) {
            /* 导航栏 */
            .nav a {
                font-size: 0.75rem;
                padding: 0.2rem 0.4rem;
                margin: 0.05rem;
                border-radius: 12px;
            }
            
            /* 标题 */
            .hero h1 { font-size: 1.8rem; }
            .hero p { font-size: 0.85rem; margin-bottom: 1.5rem; }
            
            /* 按钮 */
            .start-btn {
                padding: 0.8rem 1.5rem;
                font-size: 1rem;
            }
            
            /* 步骤指示器 */
            .steps { margin-bottom: 1rem; gap: 0.2rem; }
            .step { padding: 0 0.3rem; }
            .step-num { width: 28px; height: 28px; font-size: 0.8rem; }
            .step div:last-child { font-size: 0.7rem; }
            .step-line { width: 20px; margin-bottom: 0.8rem; }
            
            /* 问题分类 */
            .question-item { padding: 0.8rem 0.5rem; }
            .question-item .icon { font-size: 1.4rem; }
            .question-item .label { font-size: 0.9rem; }
            .category-item { padding: 1rem 0.5rem; }
            .category-item .cat-icon { font-size: 1.6rem; }
            .category-item .cat-name { font-size: 0.85rem; }
            .category-item .cat-yongshen { font-size: 0.7rem; }
            
            /* 工具卡片 */
            .tools-grid { grid-template-columns: 1fr; gap: 0.8rem; }
            .tool-card { padding: 1.2rem 0.8rem; }
            .tool-card h3 { font-size: 1.3rem; }
            
            /* 结果面板 */
            .result-main { padding: 0.8rem; }
            .result-title { font-size: 1.1rem; }
            .shi-ying-row { gap: 0.2rem; }
            .coin { width: 55px; height: 55px; font-size: 1.3rem; }
            
            /* 分析区域 */
            .analysis-section { padding: 1rem; margin: 1rem 0; }
            .analysis-title { font-size: 0.95rem; }
            .analysis-content { font-size: 0.9rem; }
            
            /* 页脚 */
            .footer { padding: 1.5rem 0.5rem; font-size: 0.75rem; }
        }

        /* 触摸优化 */
        @media (hover: none) and (pointer: coarse) {
            .nav a,
            .tool-link,
            .start-btn,
            .question-item,
            .category-item,
            .coin {
                -webkit-tap-highlight-color: rgba(196, 30, 58, 0.2);
            }
            .coin:hover { transform: none; }
            .coin:active { transform: scale(0.92); }
        }
        /* 铜钱背面（满文） */
        .coin.yin {
            background: linear-gradient(145deg, #7A6B5A 0%, #5D4E37 40%, #4A3F2F 70%, #6B5D4D 100%);
            color: #B8A88A;
            border-color: #4A3F2F;
        }
        .coin.yin::before {
            background: #3D3428;
            border-color: #5D4E37;
        }
        .coin:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 35px rgba(0,0,0,0.4); }
        .coin:active { transform: scale(0.92); }
        .coin-tossing { animation: coinFlip 0.8s ease-in-out; }
        @keyframes coinFlip { 
            0% { transform: rotateY(0deg) scale(1) rotateX(0deg); } 
            25% { transform: rotateY(90deg) scale(1.1) rotateX(15deg); }
            50% { transform: rotateY(180deg) scale(1) rotateX(0deg); }
            75% { transform: rotateY(270deg) scale(1.1) rotateX(-15deg); }
            100% { transform: rotateY(360deg) scale(1) rotateX(0deg); } 
        }
        .coin-result { animation: resultPop 0.3s ease-out; }
        @keyframes resultPop {
            0% { transform: scale(1); }
            50% { transform: scale(1.15); }
            100% { transform: scale(1); }
        }
        .toss-result { font-size: 1.3rem; font-weight: 600; margin: 1rem 0; min-height: 2rem; }
        .toss-detail { font-size: 0.9rem; color: var(--ink-light); }
        .yao-progress { display: flex; justify-content: center; gap: 0.8rem; margin: 1.5rem 0; }
        .yao-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border); }
        .yao-dot.done { background: var(--jade); border-color: var(--jade); }
        .yao-dot.current { border-color: var(--vermilion); }
        .progress-text { text-align: center; color: var(--ink-light); font-size: 0.9rem; margin-top: 1rem; }
        .hexagram-result { text-align: center; padding: 1.5rem 0; }
        .hexagram-name { font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive; font-size: 2rem; color: var(--vermilion); margin-bottom: 1rem; }
        .hexagram-structures { display: flex; justify-content: center; gap: 3rem; margin: 1.5rem 0; }
        .gua-struct { text-align: center; }
        .gua-struct-title { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 0.5rem; }
        .gua-struct-lines { font-size: 2.5rem; letter-spacing: 0.2rem; line-height: 1.3; }
        .yao-lines { max-width: 500px; margin: 2rem auto; }
        .yao-line-row { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--paper-dark); }
        .yao-line-row:last-child { border-bottom: none; }
        .yao-pos { width: 70px; text-align: right; color: var(--ink); font-size: 1.1rem; font-weight: 600; }
        .yao-symbol { width: 70px; text-align: center; font-size: 1.4rem; }
        .yao-line-display { width: 100px; text-align: center; font-size: 1.3rem; letter-spacing: 0.2em; color: var(--ink); font-weight: 600; padding: 0.2rem 0; }
        .yao-line-display.yang { color: var(--ink); }
        .yao-line-display.yin { color: var(--ink-light); }
        .yao-line-display.dong { color: var(--vermilion); }
        .yao-line-symbol { width: 80px; height: 8px; background: var(--ink); border-radius: 3px; }
        .yao-line-symbol.broken { background: transparent; position: relative; }
        .yao-line-symbol.broken::before, .yao-line-symbol.broken::after { content: ''; position: absolute; top: 0; width: 45%; height: 100%; background: var(--ink); border-radius: 3px; }
        .yao-line-symbol.broken::before { left: 0; }
        .yao-line-symbol.broken::after { right: 0; }
        .yao-line-symbol.dong { background: var(--vermilion); }
        .yao-line-symbol.dong.broken::before, .yao-line-symbol.dong.broken::after { background: var(--vermilion); }
        .yao-yaoci { width: 220px; text-align: left; font-size: 1rem; color: var(--ink); padding-left: 0.5rem; line-height: 1.5; }
        .analysis-section { margin: 1.5rem 0; padding: 1.5rem; background: var(--paper); border-left: 3px solid var(--vermilion); }
        .analysis-title { font-weight: 700; color: var(--ink); margin-bottom: 0.8rem; font-size: 1.15rem; }
        .analysis-content { font-size: 1rem; line-height: 1.8; }
        .analysis-content p { margin-bottom: 0.5rem; }
        .analysis-content { color: var(--ink-light); line-height: 1.8; }
        .analysis-content .highlight { color: var(--vermilion); font-weight: 600; }
        .analysis-content .good { color: var(--jade); font-weight: 600; }
        .analysis-content .bad { color: #8b0000; font-weight: 600; }
        .final-verdict { background: var(--ink); color: #fff; padding: 2rem; border-radius: 4px; text-align: center; margin-top: 2rem; }
        .verdict-title { font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive; font-size: 1.2rem; opacity: 0.8; margin-bottom: 0.5rem; }
        .verdict-conclusion { font-size: 1.8rem; font-weight: 700; margin: 1rem 0; }
        .verdict-quote { font-style: italic; opacity: 0.9; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); }
        .btn { padding: 14px 36px; border-radius: 25px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; font-size: 1rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; gap: 0.5rem; }
        .btn-primary { background: linear-gradient(135deg, var(--vermilion), #a01830); color: #fff; box-shadow: 0 4px 15px rgba(196, 30, 58, 0.25); }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35); }
        .btn-primary:active { transform: translateY(0); }
        .btn-primary:disabled { background: var(--border); cursor: not-allowed; box-shadow: none; transform: none; }
        /* 确认问事通栏大按钮 */
        .confirm-cta {
            display: block !important;
            width: 100% !important;
            padding: 1.1rem 1.5rem !important;
            font-size: 1.25rem !important;
            font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive;
            letter-spacing: 0.1em;
            border-radius: 12px !important;
            background: linear-gradient(135deg, var(--vermilion), #8b0000) !important;
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
        }
        .confirm-cta:not(:disabled):hover {
            transform: translateY(-3px) !important;
            box-shadow: 0 10px 35px rgba(196, 30, 58, 0.45) !important;
        }
        .confirm-cta:disabled {
            background: linear-gradient(135deg, #ccc, #bbb) !important;
            color: #888 !important;
        }
        @media (max-width: 600px) {
            .confirm-cta { padding: 0.9rem 1rem !important; font-size: 1.1rem !important; }
        }
        .btn-secondary { background: var(--paper); color: var(--ink); border: 2px solid var(--border); }
        .btn-secondary:hover { background: var(--paper-dark); border-color: var(--ink-light); }
        .btn-row { text-align: center; margin-top: 1.5rem; }
        .hidden { display: none !important; }
        .spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #f39c12; border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 8px; }
        @keyframes spin { to { transform: rotate(360deg); } }
        footer { text-align: center; padding: 2rem 0; color: var(--ink-light); font-size: 0.85rem; border-top: 1px solid var(--border); margin-top: 2rem; }
        /* ========== 信息确认弹窗 ========== */
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
        .modal-box { background: #fff; border-radius: 20px; max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; animation: modalIn 0.3s ease-out; }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        .yao-history-line { padding: 3px 0; font-size: 1rem; color: var(--ink); letter-spacing: 0.1em; display: flex; align-items: center; gap: 6px; }
        .yao-history-label { font-size: 0.75rem; color: var(--ink-light); font-weight: 400; letter-spacing: 0; }
        @keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
        .modal-header { background: linear-gradient(135deg, var(--vermilion), #a01830); color: #fff; padding: 1.2rem 1.5rem; font-size: 1.15rem; font-weight: 600; text-align: center; font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive; letter-spacing: 0.05em; }
        .modal-body { padding: 1.5rem; color: var(--ink); }
        .modal-body > p:first-of-type { font-size: 1.05rem; margin-bottom: 0.8rem; color: var(--ink); }
        .confirm-list { list-style: none; padding: 0; margin: 0.8rem 0; }
        .confirm-list li { padding: 0.5rem 0; border-bottom: 1px dashed var(--border); font-size: 0.95rem; color: var(--ink); }
        .confirm-list li:last-child { border-bottom: none; }
        .modal-val { color: var(--vermilion); font-weight: 600; }
        .rule-disclaimer-mini { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; margin: 1rem 0; font-size: 0.88rem; color: var(--ink); }
        .rule-disclaimer-mini ul { margin: 0.5rem 0 0 0; padding-left: 1.2rem; line-height: 1.8; }
        .modal-warning { background: #fff3cd; border: 1px solid #ffc107; border-radius: 8px; padding: 0.7rem 1rem; font-size: 0.88rem; color: #856404; text-align: center; margin-top: 0.8rem; }
        .modal-footer { padding: 1rem 1.5rem 1.5rem; display: flex; gap: 1rem; justify-content: center; }
        .modal-footer .btn { padding: 12px 28px; font-size: 0.95rem; }
        /* ========== 分析规则声明区 ========== */
        .rule-disclaimer { background: linear-gradient(135deg, #fffef8, #fff9f0); border: 1px solid var(--gold); border-radius: 12px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 12px rgba(184, 134, 11, 0.1); }
        .rule-disclaimer h4 { font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'PingFang SC', 'Microsoft YaHei', cursive; font-size: 1.1rem; color: var(--gold); margin-bottom: 0.8rem; }
        .rule-disclaimer ul { margin: 0; padding-left: 1.3rem; line-height: 2; font-size: 0.9rem; color: var(--ink-light); }
        .rule-disclaimer .disclaimer { color: var(--vermilion); font-size: 0.88rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px dashed var(--border); }
        /* ========== 不确定标记 ========== */
        .mark-certain { color: var(--jade); font-weight: 600; }
        .mark-verify { color: #e67e22; font-weight: 600; }
        .mark-infer { color: #8e44ad; font-weight: 600; }
        .section-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 10px; font-size: 0.75rem; margin-left: 0.5rem; vertical-align: middle; }
        /* 全局颜色标记（增强卦象头部可见性）*/
        .good { color: var(--jade); font-weight: 600; }
        .bad { color: #8b0000; font-weight: 600; }
        .highlight { color: var(--vermilion); font-weight: 600; }
        .badge-certain { background: #e8f4ed; color: var(--jade); }
        .badge-verify { background: #fef3e2; color: #e67e22; }
        .badge-infer { background: #f3e8fd; color: #8e44ad; }
    
    


                    @keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
                
/* 2026-06-26 unified single-row navigation */
.nav-container { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: center; gap: 0 !important; }
.nav-container::-webkit-scrollbar { display: none; }
.nav { flex-wrap: nowrap !important; white-space: nowrap; align-items: center; gap: 0.35rem !important; }
.nav a { flex: 0 0 auto; font-size: clamp(0.72rem, 1.15vw, 0.9rem) !important; padding: 0.34rem 0.68rem !important; line-height: 1.2; }
@media (max-width: 768px) {
  .nav-container { flex-direction: row !important; justify-content: flex-start !important; padding: 0.5rem 0.25rem !important; }
  .nav { justify-content: flex-start !important; }
  .nav a { font-size: 0.76rem !important; padding: 0.3rem 0.52rem !important; margin: 0 !important; }
}
