
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@600;700;900&display=swap');

        :root {
            /* 东方玄学 · 暗金 / 朱砂红 */
            --bg-deep:   #0b0d16;
            --gold:      #C9A24B;
            --gold-2:    #E6C46A;
            --cinnabar:  #E0533D;
            --cinnabar-2:#C8412B;
            --violet:    #7c5cd6;
            /* 兼容旧变量名：brand=暗金, primary=暗金, cta=朱砂红 */
            --brand:    #C9A24B;
            --brand-2:  #E6C46A;
            --brand-3:  #7c5cd6;
            --primary:  #C9A24B;
            --primary-2:#7c5cd6;
            --cta:      #E0533D;
            --cta-2:    #C8412B;
            /* 文字（浅色） */
            --ink:   #ECE8F2;
            --ink-2: #C9C2DA;
            --ink-3: #9A92AE;
            /* 线条与玻璃（暗） */
            --line:        rgba(201,162,75,0.25);
            --glass:        rgba(24,22,38,0.55);
            --glass-strong: rgba(28,26,44,0.82);
            --glass-border: rgba(201,162,75,0.30);
            /* 圆角与阴影 */
            --radius:    18px;
            --radius-sm: 12px;
            --shadow:    0 12px 38px rgba(0,0,0,0.45);
            --shadow-lg: 0 22px 60px rgba(0,0,0,0.55);
            /* 国风衬线 */
            --serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            color: var(--ink);
            background: var(--bg-deep);
            min-height: 100vh;
            padding: 24px 16px;
            position: relative;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* 多层暗色宇宙背景 + 紫/金/朱砂光晕 */
        body::before {
            content: "";
            position: fixed;
            inset: 0;
            z-index: -2;
            background:
                radial-gradient(1000px 700px at 12% -5%, rgba(124,92,214,0.22), transparent 55%),
                radial-gradient(900px 700px at 100% 8%, rgba(201,162,75,0.16), transparent 50%),
                radial-gradient(1000px 800px at 50% 110%, rgba(224,83,61,0.12), transparent 55%),
                linear-gradient(160deg, #0b0d16 0%, #14101f 50%, #0b0d16 100%);
        }

        /* 旋转罗盘水印，营造玄学氛围与景深 */
        body::after {
            content: "";
            position: fixed;
            z-index: -1;
            inset: -20%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23C9A24B' stroke-width='1.4'%3E%3Ccircle cx='100' cy='100' r='95'/%3E%3Ccircle cx='100' cy='100' r='78'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='20'/%3E%3C/g%3E%3Cg stroke='%23C9A24B' stroke-width='2'%3E%3Cline x1='100' y1='5' x2='100' y2='22'/%3E%3Cline x1='100' y1='178' x2='100' y2='195'/%3E%3Cline x1='5' y1='100' x2='22' y2='100'/%3E%3Cline x1='178' y1='100' x2='195' y2='100'/%3E%3Cline x1='33' y1='33' x2='46' y2='46'/%3E%3Cline x1='154' y1='154' x2='167' y2='167'/%3E%3Cline x1='167' y1='33' x2='154' y2='46'/%3E%3Cline x1='46' y1='154' x2='33' y2='167'/%3E%3C/g%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: min(120vh, 1100px);
            opacity: 0.06;
            animation: spin 120s linear infinite;
        }

        .container {
            max-width: 860px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        header {
            background: linear-gradient(135deg, rgba(18,16,28,0.92), rgba(28,22,44,0.88));
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid var(--glass-border);
            border-bottom: 1px solid rgba(201,162,75,0.25);
            color: var(--ink);
            padding: 24px 28px;
            border-radius: var(--radius) var(--radius) 0 0;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: var(--shadow-lg);
        }

        header h1 {
            font-family: var(--serif);
            font-size: 26px;
            font-weight: 700;
            letter-spacing: 4px;
            background: linear-gradient(135deg, var(--gold-2), var(--gold));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .card {
            background: var(--glass);
            backdrop-filter: blur(18px) saturate(120%);
            -webkit-backdrop-filter: blur(18px) saturate(120%);
            border: 1px solid var(--glass-border);
            padding: 30px;
            border-radius: var(--radius);
            margin-bottom: 20px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
        }

        /* 顶部金色高光反射 */
        .card::before {
            content: "";
            position: absolute;
            left: 0; right: 0; top: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(230,196,106,0.55), transparent);
        }

        /* 落地页：仅三个测算按钮 */
        .landing-card { margin-top: 16px; text-align: center; }
        .landing-title {
            font-family: var(--serif);
            font-size: 24px; font-weight: 700; letter-spacing: 3px;
            color: var(--ink); margin-bottom: 6px;
        }
        .landing-sub { color: var(--ink-3); margin-bottom: 24px; font-size: 14px; }
        .module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
        .module-tile {
            display: flex; flex-direction: column; align-items: center; gap: 12px;
            padding: 30px 16px; border-radius: var(--radius);
            background: linear-gradient(135deg, rgba(201,162,75,0.10), rgba(124,92,214,0.10));
            border: 1px solid var(--glass-border);
            cursor: pointer; color: var(--ink); font-family: inherit;
            transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
        }
        .module-tile:hover {
            transform: translateY(-4px); box-shadow: var(--shadow-lg);
            border-color: rgba(201,162,75,0.55);
            background: linear-gradient(135deg, rgba(201,162,75,0.18), rgba(124,92,214,0.16));
        }
        .module-tile .ico { width: 52px; height: 52px; color: var(--gold); }
        .module-tile .mt-title {
            font-family: var(--serif);
            font-size: 22px; font-weight: 700; letter-spacing: 2px;
            color: var(--gold-2);
        }
        .module-tile .mt-sub { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

        /* 落地页三张模块卡：选中态金色描边脉冲（点击后短暂高亮，返回首页时标记上次所选） */
        @keyframes tile-pulse {
            0%, 100% { border-color: rgba(201,162,75,0.65);
                box-shadow: 0 0 0 1px rgba(201,162,75,0.45), 0 0 18px rgba(201,162,75,0.22); }
            50%      { border-color: rgba(201,162,75,1);
                box-shadow: 0 0 0 2px rgba(201,162,75,0.9), 0 0 28px rgba(201,162,75,0.5); }
        }
        .module-tile.active {
            border-color: rgba(201,162,75,0.95);
            background: linear-gradient(135deg, rgba(201,162,75,0.24), rgba(124,92,214,0.2));
            animation: tile-pulse 1.8s ease-in-out infinite;
        }
        .module-tile.active .mt-title { color: var(--gold); text-shadow: 0 0 12px rgba(230,196,106,0.5); }

        /* 落地页图标动画 */
        .sun-rays { transform-box: fill-box; transform-origin: center; animation: icon-spin 14s linear infinite; }
        .moon     { transform-box: fill-box; transform-origin: center; animation: icon-float 4s ease-in-out infinite; }
        .star     { transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 2px #E6C46A); animation: icon-twinkle 2.4s ease-in-out infinite; }
        .star:nth-child(2) { animation-delay: .34s; }
        .star:nth-child(3) { animation-delay: .68s; }
        .star:nth-child(4) { animation-delay: 1.02s; }
        .star:nth-child(5) { animation-delay: 1.36s; }
        .star:nth-child(6) { animation-delay: 1.7s; }
        .star:nth-child(7) { animation-delay: 2.04s; }
        .coin { transform-box: fill-box; transform-origin: center; animation: icon-coin 1.6s ease-in-out infinite; }
        .coin2 { animation-delay: .22s; }
        .coin3 { animation-delay: .44s; }
        @keyframes icon-spin   { to { transform: rotate(360deg); } }
        @keyframes icon-float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
        /* 北斗：放大脉冲 + 明暗，明显"眨眼" */
        @keyframes icon-twinkle{ 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(1.9); } }
        /* 铜钱：上下颠动（像摇卦）+ 轻微倾斜，圆片旋转本身看不见 */
        @keyframes icon-coin   { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(6deg); } }
        @media (prefers-reduced-motion: reduce) {
            .sun-rays, .moon, .star, .coin { animation: none !important; }
        }
        #formCard { margin-top: 16px; }
        .back-link {
            background: none; border: none; color: var(--ink-3);
            font-size: 14px; cursor: pointer; padding: 0; margin-bottom: 14px;
            font-family: inherit; transition: color 0.2s;
        }
        .back-link:hover { color: var(--gold); }
        @media (max-width: 768px) { .module-grid { grid-template-columns: 1fr; } }

        .form-title {
            font-family: var(--serif);
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--ink);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        label {
            font-size: 14px;
            color: var(--ink-3);
            margin-bottom: 6px;
            font-weight: 500;
        }

        select, input {
            padding: 12px 14px;
            border: 1px solid rgba(201,162,75,0.25);
            border-radius: var(--radius-sm);
            font-size: 16px;
            background: rgba(12,11,20,0.6);
            color: var(--ink);
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        select:focus, input:focus {
            outline: none;
            border-color: var(--gold);
            animation: input-breathe 2.6s ease-in-out infinite;
        }

        @keyframes input-breathe {
            0%, 100% { box-shadow: 0 0 0 3px rgba(201,162,75,0.16); }
            50%      { box-shadow: 0 0 0 4px rgba(201,162,75,0.32); }
        }

        .submit-btn {
            width: 100%;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            padding: 15px;
            background: linear-gradient(135deg, #a8442f, #823022);
            color: #f3ece2;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 10px;
            box-shadow: 0 5px 14px rgba(95,35,25,0.30);
            transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
        }

        /* 提交按钮：罗盘指针图标（白色描边，悬停轻转，呼应玄学主题） */
        .submit-btn::before {
            content: "";
            width: 22px; height: 22px; flex: 0 0 auto;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4'/%3E%3C/svg%3E") no-repeat center / contain;
            transition: transform 0.4s ease;
        }
        .submit-btn:hover::before { transform: rotate(90deg); }

        .submit-btn:hover {
            filter: brightness(1.10);
            transform: translateY(-1px);
            box-shadow: 0 7px 18px rgba(95,35,25,0.38);
        }

        .submit-btn:disabled {
            background: #3a3550;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .loading {
            text-align: center;
            padding: 40px 20px;
        }

        .loading-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            position: relative;
        }

        .loading-icon .ring {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            border-radius: 50%;
            border: 3px solid transparent;
        }

        .loading-icon .ring-outer {
            border-top-color: var(--gold);
            border-right-color: var(--gold);
            animation: spin 1.2s linear infinite;
        }

        .loading-icon .ring-inner {
            top: 12px; left: 12px;
            width: 56px; height: 56px;
            border-bottom-color: var(--cinnabar);
            border-left-color: var(--cinnabar);
            animation: spin 0.8s linear infinite reverse;
        }

        .loading-icon .dot {
            position: absolute;
            top: 50%; left: 50%;
            width: 10px; height: 10px;
            margin: -5px 0 0 -5px;
            background: var(--gold);
            border-radius: 50%;
            animation: pulse 1.2s ease-in-out infinite;
        }

        .loading-text {
            font-size: 18px;
            color: var(--gold-2);
            font-weight: 600;
            margin-bottom: 8px;
            animation: fadeInOut 2s ease-in-out infinite;
        }

        .loading-subtext {
            font-size: 14px;
            color: var(--ink-3);
        }

        .loading-dots::after {
            content: '';
            animation: dots 1.5s steps(4, end) infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.4); opacity: 0.6; }
        }

        @keyframes fadeInOut {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        @keyframes dots {
            0% { content: ''; }
            25% { content: '.'; }
            50% { content: '..'; }
            75% { content: '...'; }
        }

        .error {
            background: rgba(220,38,38,0.12);
            color: #ff9a8f;
            padding: 15px;
            border: 1px solid rgba(220,38,38,0.40);
            border-radius: var(--radius-sm);
            margin-bottom: 20px;
        }

        .result-item {
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(201,162,75,0.18);
            padding: 15px;
            border-radius: var(--radius-sm);
            margin-bottom: 15px;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
        }
        .result-item:hover {
            border-color: rgba(201,162,75,0.38);
            background: rgba(201,162,75,0.06);
            box-shadow: 0 6px 18px rgba(0,0,0,0.28);
        }

        .result-title {
            font-weight: 700;
            color: var(--gold-2);
            margin-bottom: 8px;
            font-size: 17px;
            padding-left: 12px;
            border-left: 3px solid var(--gold);
            line-height: 1.3;
        }

        .result-content {
            color: var(--ink-2);
            line-height: 1.6;
        }

        .lunar-date {
            background: rgba(201,162,75,0.10);
            border: 1px solid rgba(201,162,75,0.25);
            padding: 15px;
            border-radius: var(--radius-sm);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            color: var(--gold-2);
        }

        .lunar-date svg {
            width: 24px;
            height: 24px;
            margin-right: 10px;
            flex-shrink: 0;
        }

        .year-section {
            margin-bottom: 30px;
        }

        .year-header {
            background: rgba(201,162,75,0.10);
            border: 1px solid rgba(201,162,75,0.25);
            padding: 12px;
            border-radius: var(--radius-sm);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            color: var(--gold-2);
        }

        .year-header svg {
            width: 20px;
            height: 20px;
            margin-right: 10px;
            flex-shrink: 0;
        }

        .pay-prompt {
            background: rgba(140,185,175,0.08);
            border: 1px solid rgba(140,185,175,0.30);
            color: #cfe0db;
            padding: 15px;
            border-radius: var(--radius-sm);
            text-align: center;
            margin: 20px 0;
        }

        .pay-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #3e6b62, #2c4d47);
            color: #eaf1ec;
            border: 1.5px solid rgba(140,185,175,0.30);
            border-radius: var(--radius-sm);
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 10px;
            box-shadow: 0 5px 14px rgba(30,60,55,0.30);
            transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
        }

        .pay-btn:hover {
            filter: brightness(1.10);
            transform: translateY(-1px);
            box-shadow: 0 7px 18px rgba(30,60,55,0.38);
        }

        /* 支付按钮价签：柔化、不再刺眼（低对比更松弛，避免大金字唤起警惕） */
        .pay-btn .pay-price {
            font-size: 1.14em;
            font-weight: 700;
            letter-spacing: 0.3px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.25);
            margin-right: 3px;
        }

        /* 重新测算操作条：结果展示时吸底，玻璃质感 + 暗金描边，便于随时重测 */
        .recalc-bar {
            position: sticky;
            bottom: 14px;
            z-index: 60;
            display: flex;
            gap: 12px;
            justify-content: center;
            align-items: stretch;
            margin-top: 22px;
            padding: 12px 14px;
            background: var(--glass-strong);
            backdrop-filter: blur(16px) saturate(120%);
            -webkit-backdrop-filter: blur(16px) saturate(120%);
            border: 1px solid var(--glass-border);
            border-top: 1px solid rgba(201,162,75,0.45);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
        }
        .recalc-bar .recalc-btn {
            flex: 1 1 auto;
            max-width: 320px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 20px;
            background: linear-gradient(135deg, rgba(201,162,75,0.20), rgba(201,162,75,0.08));
            color: var(--gold);
            border: 1.5px solid var(--gold);
            border-radius: var(--radius-sm);
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(201,162,75,0.15);
            transition: transform 0.15s, box-shadow 0.2s, background 0.2s, filter 0.2s;
        }
        .recalc-bar .recalc-btn:hover {
            background: linear-gradient(135deg, rgba(201,162,75,0.32), rgba(201,162,75,0.14));
            transform: translateY(-2px);
            box-shadow: 0 10px 24px rgba(201,162,75,0.28);
        }
        .recalc-bar .recalc-btn .rb-ico {
            font-size: 18px;
            line-height: 1;
            display: inline-block;
            transition: transform 0.45s ease;
        }
        .recalc-bar .recalc-btn:hover .rb-ico { transform: rotate(180deg); }
        .recalc-bar .recalc-home {
            flex: 0 0 auto;
            padding: 14px 22px;
            background: rgba(255,255,255,0.05);
            color: var(--ink-2);
            border: 1px solid rgba(201,162,75,0.30);
            border-radius: var(--radius-sm);
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.15s, border-color 0.2s, color 0.2s, background 0.2s;
        }
        .recalc-bar .recalc-home:hover {
            color: var(--gold-2);
            border-color: rgba(201,162,75,0.55);
            background: rgba(201,162,75,0.10);
            transform: translateY(-2px);
        }

        footer {
            text-align: center;
            padding: 20px;
            background: transparent;
            margin-top: 20px;
        }

        footer a {
            color: rgba(201,162,75,0.45);
            text-decoration: none;
            font-size: 14px;
            transition: color 0.2s;
        }

        footer a:hover {
            color: var(--gold);
        }

        .back-to-top {
            display: none;
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, var(--brand-2), var(--brand));
            color: #1a1206;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            font-size: 22px;
            box-shadow: var(--shadow-lg);
            transition: transform 0.2s;
        }

        .back-to-top.show {
            display: block;
        }

        .back-to-top:hover {
            transform: translateY(-2px);
        }

        /* 验证码区域样式 */
        .verify-section {
            background: rgba(201,162,75,0.08);
            border: 2px dashed rgba(201,162,75,0.45);
            border-radius: var(--radius);
            padding: 22px;
            margin: 20px 0;
            text-align: center;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }

        .verify-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--gold-2);
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .qr-container {
            background: #fff;
            padding: 14px;
            border-radius: var(--radius-sm);
            display: inline-block;
            margin-bottom: 15px;
            border: 2px solid var(--gold);
            box-shadow: 0 0 0 4px rgba(201,162,75,0.12), 0 8px 30px rgba(0,0,0,0.55);
            position: relative;
        }
        /* 二维码卡：四角金标 + 轻呼吸光，强化「支付/扫码区」的存在感 */
        .qr-container::before {
            content: "微信扫码";
            position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
            background: linear-gradient(135deg, var(--gold), var(--gold-2));
            color: #1a1206; font-size: 12px; font-weight: 700; letter-spacing: 1px;
            padding: 3px 12px; border-radius: 20px; white-space: nowrap;
            box-shadow: 0 4px 12px rgba(201,162,75,0.4);
        }
        .qr-container::after {
            content: ""; position: absolute; inset: -2px; border-radius: inherit;
            border: 2px solid rgba(201,162,75,0.35);
            animation: qr-glow 2.4s ease-in-out infinite; pointer-events: none;
        }
        @keyframes qr-glow {
            0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,75,0.0); }
            50%      { box-shadow: 0 0 14px 2px rgba(201,162,75,0.35); }
        }

        .qr-container img {
            max-width: 200px;
            height: auto;
            display: block;
        }

        .verify-input-group {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .verify-input {
            padding: 12px 15px;
            border: 2px solid rgba(201,162,75,0.45);
            border-radius: var(--radius-sm);
            font-size: 16px;
            width: 180px;
            text-align: center;
            background: rgba(12,11,20,0.6);
            color: var(--ink);
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .verify-input:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 5px rgba(201,162,75,0.45);
        }

        .verify-btn {
            padding: 12px 25px;
            background: linear-gradient(135deg, #a8442f, #823022);
            color: #f3ece2;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 16px;
            cursor: pointer;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(95,35,25,0.28);
            transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
        }

        .verify-btn:hover {
            filter: brightness(1.10);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(95,35,25,0.34);
        }

        .verify-btn:disabled {
            background: #cbd5e1;
            cursor: not-allowed;
            transform: none;
        }

        .verify-success {
            color: #4ade80;
            font-weight: 700;
            margin-top: 10px;
        }

        .verify-error {
            color: #ff7a6b;
            font-weight: 700;
            margin-top: 10px;
        }

        .hidden-content {
            display: none;
        }

        .hidden-content.show {
            display: block;
        }

        /* ===== 测算类型切换（数字测算 / 八字 / 六爻 共用同一套生辰输入）===== */
        .mod-switch {
            display: flex;
            gap: 10px;
        }

        .mod-btn {
            flex: 1;
            padding: 12px 8px;
            border: 1.5px solid rgba(201,162,75,0.30);
            background: rgba(18,16,28,0.6);
            color: var(--ink-2);
            border-radius: var(--radius-sm);
            font-size: 16px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
        }

        .mod-btn:hover {
            border-color: rgba(201,162,75,0.60);
            color: var(--gold-2);
        }

        .mod-btn.active {
            background: linear-gradient(135deg, var(--brand-2), var(--brand));
            border-color: transparent;
            color: #1a1206;
            font-weight: 700;
            box-shadow: 0 6px 16px rgba(94,53,177,0.25);
        }

        .mod-desc {
            font-size: 13px;
            color: var(--ink-3);
            line-height: 1.6;
            margin: -6px 0 16px;
        }

        /* ===== 八字结果样式 ===== */
        .summary-line {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 18px;
            color: var(--ink);
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 12px;
        }
        .summary-line .sx { color: var(--brand-2); }
        .summary-line .bz { color: var(--gold); letter-spacing: 4px; font-family: var(--serif); }
        .summary-line .qy { color: var(--ink-3); font-size: 13px; font-weight: 500; }

        .result-block { margin-bottom: 16px; }
        .result-block h3 { color: var(--gold); font-family: var(--serif); font-size: 16px; margin-bottom: 8px; }
        .result-block .content {
            line-height: 1.7;
            font-size: 14px;
            color: var(--ink-2);
            white-space: pre-wrap;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(201,162,75,0.18);
            border-radius: var(--radius-sm);
            padding: 12px 14px;
        }

        .dayun-list {
            max-height: 360px;
            overflow-y: auto;
            border: 1px solid rgba(201,162,75,0.20);
            border-radius: var(--radius-sm);
            padding: 10px;
            background: rgba(255,255,255,0.03);
        }
        .dayun-item {
            padding: 8px 0;
            border-bottom: 1px solid rgba(201,162,75,0.12);
            font-size: 13px;
            line-height: 1.6;
        }
        .dayun-item:last-child { border-bottom: none; }
        .dayun-item code {
            background: rgba(201,162,75,0.14);
            color: var(--gold-2);
            padding: 2px 6px;
            border-radius: 4px;
            margin-right: 6px;
        }
        .empty { text-align: center; color: var(--ink-3); padding: 40px 0; }

        /* ===== 六爻结果样式 ===== */
        .meta { color: var(--ink-3); font-size: 13px; margin-bottom: 16px; }

        .gua-info {
            display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
            background: rgba(255,255,255,0.04);
            border: 1px solid rgba(201,162,75,0.18);
            border-radius: var(--radius-sm);
            padding: 14px;
            margin-bottom: 18px;
            font-size: 14px;
        }
        .gua-info b { color: var(--brand); }

        .gua-display { display: flex; gap: 36px; flex-wrap: wrap; justify-content: space-around; margin-bottom: 18px; }
        .gua-box { text-align: center; }
        .gua-box h4 { color: var(--gold); font-family: var(--serif); margin-bottom: 10px; font-size: 15px; }
        .yao {
            display: flex; align-items: center; gap: 10px; padding: 3px 4px;
            font-size: 14px; justify-content: flex-end;
        }
        .yao .pos { width: 34px; color: var(--ink-3); font-size: 12px; text-align: right; }
        .yao .bar { width: 70px; display: flex; gap: 4px; justify-content: center; }
        .yao .bar .seg { height: 10px; background: #8b8499; border-radius: 2px; }
        .yao .bar .seg.full { width: 70px; }
        .yao .bar .seg.half { width: 33px; }
        .yao .lq { width: 34px; color: var(--brand); font-weight: 700; }
        .yao .dz { width: 18px; }
        .yao .tags { width: 60px; text-align: left; font-size: 12px; color: #ff7a6b; }
        .yao.dong { background: rgba(224,83,61,0.12); border-radius: 4px; }
        .yao.dong .pos { color: #f0a99c; font-weight: 700; }
        .gua-explain { margin-top: 14px; padding: 14px 16px; background: rgba(201,162,75,0.12); border: 1px solid rgba(201,162,75,0.45); border-radius: 8px; }
        .gua-explain-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
        .gua-explain-name { font-size: 18px; font-weight: 700; color: #e8d0a0; }
        .gua-explain-level { font-size: 13px; padding: 2px 10px; border: 1px solid; border-radius: 10px; }
        .gua-explain-text { font-size: 16px; line-height: 1.8; color: #f0e6d2; }
        .gua-explain-note { margin-top: 8px; font-size: 13px; color: #c4bba8; border-top: 1px dashed rgba(201,162,75,0.35); padding-top: 6px; }

        .ly-table { width: 100%; border-collapse: collapse; font-size: 14px; }
        .ly-table th, .ly-table td { border: 1px solid rgba(201,162,75,0.18); padding: 10px 8px; text-align: left; vertical-align: top; }
        .ly-table th { background: linear-gradient(135deg, #8a6f2e, #6b5220); color: #f3ece2; }
        .ly-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
        .jie { color: #4ade80; font-weight: 700; }
        .xiong { color: #ff7a6b; font-weight: 700; }
        .ping { color: #f0b35a; font-weight: 700; }
        .analysis { color: var(--ink-3); font-size: 12px; line-height: 1.6; }
        .ly-table tr.mhl { background: rgba(224,83,61,0.14) !important; box-shadow: inset 3px 0 0 var(--cta); }
        .ly-table tr.mhl td { font-weight: 500; }

        /* 键盘可见焦点 */
        :focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr 1fr;
            }

            .result-item {
                flex: 1 1 calc(50% - 10px);
            }

            header {
                flex-direction: column;
                gap: 10px;
                align-items: center;
                text-align: center;
            }

            header > div {
                width: 100%;
                text-align: center;
            }

            .mod-btn { font-size: 15px; padding: 12px 4px; }
        }

        @media (max-width: 480px) {
            .form-row { grid-template-columns: 1fr; }
            .gua-info { grid-template-columns: 1fr; }
            .card { padding: 22px 18px; }
            .recalc-bar { flex-direction: column; }
            .recalc-bar .recalc-btn,
            .recalc-bar .recalc-home { width: 100%; max-width: none; }
            .mod-switch { flex-direction: column; gap: 10px; }
            .mod-btn { font-size: 15px; padding: 13px 8px; }
        }

        /* 尊重「减少动态效果」偏好 */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.001ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.001ms !important;
            }
        }
    