
        /* 优先本机宋体字体，避免国内网络阻塞第三方字体请求。 */

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        /* 统一按钮基础样式，可点击元素全部使用 button 以支持键盘与读屏 */
        button {
            font: inherit;
            color: inherit;
            background: none;
            border: none;
            cursor: pointer;
            user-select: none;
            /* 去掉移动端双击缩放判定带来的点击延迟 */
            touch-action: manipulation;
        }
        button:focus-visible {
            outline: 2px solid #a63a2b;
            outline-offset: 2px;
        }
        /* 请求中的按钮统一给出「不可再点」的视觉反馈，避免重复提交 */
        button:disabled {
            opacity: .55;
            cursor: not-allowed;
        }
        /* 轻量按压反馈：只改透明度，不触发重排，列表与导航也有即时响应 */
        .top-nav button:active,
        .dir-qlist button:active,
        .sheet-tabs button:active,
        .ux-drawer-header button:active,
        .timeline-node:active {
            opacity: .6;
        }

        body {
            background-color: #f4f1ea; /* 宣纸底色 */
            color: #2c2a29;
            /* 禁止滚动到边界后的横向链式滚动（overscroll glow / 返回手势辅助触发） */
            overscroll-behavior-x: none;
            /* Google Fonts 加载失败时回退到系统宋体 */
            font-family: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
            /* 关掉安卓 Chrome 的字体放大/文字缩放：否则手机上所有字被撑到 1.2 倍，
               只有定高元素（按钮、卡片边框）不变，整页比例就和桌面走样 */
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
            width: 100%;
            height: 100vh;
            height: 100dvh; /* 移动端排除地址栏高度 */
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        /* 手机外壳容器 (模拟原生APP竖屏) */
        .phone-container {
            width: 100%;
            height: 100%;
            max-width: 430px;
            max-height: 932px;
            background: #f7f4ed;
            position: relative;
            overflow: hidden;
            /* 壳层不该被横向推走：clip 连程序化滚动都不给（不支持时退回 hidden）。 */
            overflow: clip;
            display: flex;
            flex-direction: column;
            box-shadow: 0 20px 40px rgba(0,0,0,0.05);
        }

        @media (min-width: 480px) {
            .phone-container {
                height: 88vh;
                border-radius: 40px;
                border: 8px solid #e3decb;
            }
        }

        /* 顶栏单字导航：悬浮于视口之上，不挤占扉页的垂直居中 */
        .top-nav {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: calc(44px + env(safe-area-inset-top, 0px));
            padding-top: env(safe-area-inset-top, 0px);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            z-index: 10;
            background: #f7f4ed; /* 实心纸底：滚动时不再把下方卡片透出一半 */
            opacity: 0;
            pointer-events: none; /* 隐藏时不可误触 */
            transition: opacity 0.6s ease;
        }
        .top-nav.visible {
            opacity: 1;
            pointer-events: auto;
        }
        .top-nav button {
            position: relative;
            width: 44px; /* 触控热区 ≥ 44px */
            height: 44px;
            font-size: 15px;
            color: #8c857b;
            transition: color 0.3s;
        }
        .top-nav button.active {
            color: #a63a2b; /* 朱砂红 */
            font-weight: 500;
        }
        .top-nav button::after {
            content: '';
            position: absolute;
            bottom: 6px;
            left: 50%;
            width: 4px;
            height: 4px;
            background-color: #a63a2b;
            border-radius: 50%;
            transform: translateX(-50%) scale(0);
            transition: transform 0.3s;
        }
        .top-nav button.active::after {
            transform: translateX(-50%) scale(1);
        }

        /* 左右滑动视口 */
        /* 每屏占满容器宽度，按整屏 100% 平移，避免 16.6666% 的累积误差 */
        .viewport {
            flex: 1;
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        }
        /* 只在翻页瞬间提升为合成层，翻完立即释放，避免 9 屏内容长期占用显存 */
        .viewport.is-sliding {
            will-change: transform;
        }
        /* 仿真卷边翻页落定时直接对齐真实页，避免二次平移回弹 */
        .viewport.is-curl-instant {
            transition: none !important;
        }
        /* 手指/鼠标拖曳卷边翻书期间禁止意外划选文字 */
        .phone-container.is-curling {
            user-select: none;
            -webkit-user-select: none;
        }

        /* 宣纸仿真卷边翻书舞台（位于顶栏下方、视口上方，松手即销毁零常驻显存） */
        .curl-stage {
            position: absolute;
            z-index: 8;
            overflow: hidden;
            pointer-events: none;
            background: #f7f4ed;
            contain: layout paint size;
        }
        .curl-layer {
            position: absolute;
            inset: 0;
            overflow: hidden;
            background: #f7f4ed;
        }
        .curl-layer .page {
            scrollbar-width: none;
        }
        .curl-layer .page::-webkit-scrollbar {
            display: none;
        }
        .curl-layer.curl-bottom {
            z-index: 1;
        }
        .curl-layer.curl-top {
            z-index: 2;
            will-change: clip-path;
        }
        .curl-canvas {
            position: absolute;
            inset: 0;
            z-index: 3;
            pointer-events: none;
        }

        .page {
            flex: 0 0 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            justify-content: safe center; /* 内容超高时从顶部排起，不被裁切 */
            align-items: center;
            padding: calc(72px + env(safe-area-inset-top, 0px)) 30px calc(40px + env(safe-area-inset-bottom, 0px));
            overflow-y: auto;
            position: relative;
            /* 惯性滚动与滚动链隔离：页面内滚到底不再带动外层或触发浏览器手势 */
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
            touch-action: pan-y pinch-zoom;
        }
        .page[hidden] { display: none !important; }
        .page.page-cover {
            display: block;
            padding: 0;
            overflow: hidden;
            /* 只更换封面，其他六页继续沿用宣纸色。 */
            background:
                radial-gradient(ellipse 76% 43% at 50% 24%, rgba(35,58,99,.25) 0%, rgba(9,18,36,.08) 59%, transparent 100%),
                linear-gradient(180deg, #03060c 0%, #070e1b 44%, #03060d 100%);
        }

        /* 柱位小标：年 月 日 时 */
        .pillar-label {
            display: block;
            font-size: 11px;
            font-weight: 400;
            color: #b3ab9e;
            letter-spacing: 2px;
            margin-bottom: 6px;
        }

        /* --- 第 0 屏：扉页（初始八字录入） --- */
        .page-cover .cover-title {
            position: relative;
            font-size: 20px;
            font-weight: 400;
            letter-spacing: .3em;
            line-height: 2;
            padding-left: .3em;
            color: #e9eff9;
            text-shadow: 0 0 20px rgba(207,228,255,.18);
            margin: 0 0 26px;
        }
        .page-cover .cover-title span { display: block; }
        .page-cover .cover-title span + span {
            margin-top: 0;
            font-size: 20px;
            letter-spacing: .3em;
            color: #e9eff9;
        }
        .cover-copy {
            position: absolute;
            left: 0;
            right: 0;
            top: 58.5%;
            transform: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0 30px;
            text-align: center;
        }
        .cover-actions {
            position: relative;
            width: 100%;
            max-width: 240px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        /* 入场动画结束前，标题与按键隐藏 */
        .intro-pending .cover-copy {
            opacity: 0;
            pointer-events: none;
        }
        .app-ready .cover-copy {
            animation: fade-up 0.8s ease both;
        }
        @keyframes fade-up {
            from { opacity: 0; transform: translateY(8px); }
            to   { opacity: 1; transform: none; }
        }
        @keyframes spin {
            to { rotate: 360deg; }
        }
        @keyframes breathe {
            0%, 100% { scale: 1; }
            50%      { scale: 1.03; }
        }
        /* 双鱼汇合时的光晕停顿 */
        .taiji.merged {
            animation: merge-pulse 1.4s ease-out;
        }
        @keyframes merge-pulse {
            0%   { scale: 1;    box-shadow: 0 0 0 0 var(--glow); }
            35%  { scale: 1.06; box-shadow: 0 0 28px 7px var(--glow); }
            100% { scale: 1;    box-shadow: 0 0 0 0 transparent; }
        }

        /* 深空封面的文字与操作层：朱砂印章式，不用胶囊。 */
        .page-cover .cover-actions .start-btn {
            background: #8b3023;
            color: #f8efe6;
            border: 1px solid #8b3023;
            border-radius: 2px;
            box-shadow: 0 6px 24px rgba(110,30,22,.22), inset 0 0 0 2px #8b3023, inset 0 0 0 3px rgba(255,236,224,.16);
            width: 220px;
            height: 48px;
            padding: 0;
            font-size: 15px;
            letter-spacing: .32em;
            padding-left: .32em;
        }
        .page-cover .cover-actions .start-btn:hover { background: #98372a; border-color:#98372a; }
        .page-cover .cover-actions .start-btn:active { background: #7a2a1f; transform: none; }
        .page-cover .load-old { color: #b8c5d9; margin-top: 17px; letter-spacing:.16em; border-bottom:1px solid rgba(184,197,217,.35); padding: 0 0 3px; }
        .page-cover .load-old:hover { color: #f8d1c1; }
        .page-cover .cover-dl-link { color: rgba(184,197,217,.68); margin-top: 14px; font-size: 11px; letter-spacing: .14em; text-decoration: none; transition: color .25s; }
        .page-cover .cover-dl-link:hover { color: #f8d1c1; }
        @media (display-mode: standalone) { .page-cover .cover-dl-link { display: none; } }
        /* 印「象」居中置顶，尺寸沿用原右上角小印的 24px，不抢「观象问策」的风头 */
        .cover-brand{position:absolute;top:calc(44px + env(safe-area-inset-top, 0px));left:0;right:0;text-align:center;font-size:12px;letter-spacing:.34em;padding-left:.34em;color:#dbe4f2;z-index:5;text-shadow:0 1px 12px rgba(4,10,20,.65);font-family:"Noto Serif SC","Songti SC",STSong,serif}
        /* 朱砂印：篆盖式方印，居中于「观象问策」之上；印面为小篆「策」（内联 SVG） */
        .cover-seal{position:absolute;top:calc(12px + env(safe-area-inset-top, 0px));left:0;right:0;margin:0 auto;width:24px;height:24px;background:rgba(139,48,35,.58);display:flex;align-items:center;justify-content:center;z-index:5;border-radius:1px;outline:1px solid rgba(255,250,240,.14);outline-offset:-2px;box-shadow:0 2px 10px rgba(4,10,20,.4)}
        .cover-seal .seal-glyph{display:block;width:20px;height:20px;overflow:visible;fill:#e3d4c9;stroke:#e3d4c9;stroke-width:8;stroke-linejoin:round;stroke-linecap:round}
        .page-cover .taiji {
            filter: drop-shadow(0 0 1.2px rgba(241,247,255,.98)) drop-shadow(0 0 13px rgba(200,222,255,.30));
        }
        .page-cover .fish .body { stroke: rgba(239,246,255,.86); stroke-width: 1; }

        /* --- 生辰输入底部抽屉 --- */
        .sheet-mask {
            position: absolute;
            inset: 0;
            z-index: 20;
            background: rgba(44, 42, 41, 0.25);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.35s, visibility 0s 0.35s;
        }
        .sheet {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 21;
            padding: 12px 30px calc(32px + env(safe-area-inset-bottom, 0px));
            background: #fbf8f1;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.06);
            transform: translateY(105%);
            visibility: hidden; /* 关闭时移出 Tab 顺序 */
            transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s 0.4s;
        }
        .sheet-mask.open,
        .sheet.open {
            visibility: visible;
            transition-delay: 0s;
        }
        .sheet-mask.open { opacity: 1; }
        .sheet.open { transform: none; }
        .sheet-handle {
            width: 36px;
            height: 4px;
            margin: 0 auto 18px;
            border-radius: 2px;
            background: #dcd6c8;
        }
        .sheet-tabs {
            display: flex;
            justify-content: center;
            gap: 28px;
            margin-bottom: 20px;
        }
        .sheet-tabs button {
            padding: 6px 2px;
            font-size: 15px;
            letter-spacing: 4px;
            color: #8c857b;
            border-bottom: 1px solid transparent;
            transition: color 0.3s, border-color 0.3s;
        }
        .sheet-tabs button[aria-selected="true"] {
            color: #a63a2b;
            border-color: #a63a2b;
        }
        .field {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            border-bottom: 1px solid #ece7db;
            font-size: 14px;
            color: #8c857b;
        }
        .field input,
        .field select {
            font: inherit;
            font-size: 15px;
            color: #2c2a29;
            background: transparent;
            border: none;
            text-align: right;
            outline: none;
        }
        .field input:focus-visible,
        .field select:focus-visible {
            outline: 2px solid #a63a2b;
            outline-offset: 2px;
        }
        .sheet .gender-select {
            margin: 18px 0 22px;
        }
        .gender-select {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
            font-size: 14px;
            color: #8c857b;
        }
        .gender-select button {
            padding: 6px 4px;
            color: #8c857b;
            transition: color 0.3s;
        }
        .gender-select button.active {
            color: #a63a2b;
            font-weight: 600;
        }
        .gender-select .dot {
            align-self: center;
            color: #dcd6c8;
        }
        .start-btn {
            background: #a63a2b;
            color: #f7f4ed;
            border: none;
            width: 100%;
            padding: 14px;
            font-size: 15px;
            letter-spacing: 4px;
            border-radius: 6px;
            transition: background 0.3s, transform 0.15s;
        }
        .start-btn:hover {
            background: #94331f;
        }
        .start-btn:active {
            background: #8b3023;
            transform: scale(0.98);
        }
        .load-old {
            margin-top: 12px;
            padding: 8px 12px;
            font-size: 12px;
            color: #8c857b;
            letter-spacing: 1px;
            transition: color 0.3s;
        }
        .load-old:hover {
            color: #a63a2b;
        }

        /* --- 第 1 屏：盘 (原局与流年引动) --- */
        .card-main {
            background: #fff;
            border: 1px solid #e3decb;
            border-radius: 12px;
            padding: 30px 20px;
            width: 100%;
            max-width: 320px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.02);
            margin-bottom: 20px;
        }
        .pillars-row {
            display: flex;
            justify-content: space-around;
            font-size: 26px;
            font-weight: 500;
            margin-bottom: 20px;
        }
        /* 一柱 = 天干在上、地支在下 */
        .pillar-col {
            display: flex;
            flex-direction: column;
            align-items: center;
            line-height: 1.5;
        }
        .pillar-col > span {
            display: block;
        }
        .highlight-box {
            display: inline-block;
            border: 1px solid #a63a2b;
            padding: 0 4px;
            border-radius: 4px;
            color: #a63a2b;
        }

        /* --- 扉页：太极阴阳鱼 --- */
        .cover-canvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        .taiji-wrap {
            position: absolute;
            left: 50%;
            top: var(--taiji-top, 27%);
            /* 与星系同一正视角度：不做纵向压缩，太极是正圆 */
            transform: translate(-50%, -50%);
            margin: 0;
            /* 保持封面原有排版占位，让主体缩小但文字/按钮不跟着跳位 */
            width: 160px;
            height: 160px;
            display: grid;
            place-items: center;
            flex-shrink: 0;
        }
        .taiji {
            /* 配色由 JS 按色板写入 */
            --yin: #2c2a29;
            --yang: #fbf8f1;
            --line: #2c2a29;
            position: relative;
            display: block;
            /* 融合终态缩至 60px，让星系成为主体；入场半鱼独立放大飞入 */
            width: 60px;
            height: 60px;
            border-radius: 50%;
        }
        .taiji-spin {
            position: absolute;
            inset: 0;
        }
        .fish {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            overflow: visible;
        }
        .fish .body,
        .fish .eye {
            transition: fill 0.6s ease, stroke 0.6s ease;
        }
        .fish .body {
            stroke: var(--line);
            stroke-width: 0.8;
        }
        .fish-yin .body,
        .fish-yang .eye {
            fill: var(--yin);
        }
        .fish-yang .body,
        .fish-yin .eye {
            fill: var(--yang);
        }
        /* 入场期间鱼的位移与透明度由 JS 逐帧写入内联样式 */
        .intro-pending .fish {
            opacity: 0;
            will-change: transform, opacity;
            transform-origin: 50% 50%;
        }
        /* 入场结束后：缓慢自转 + 呼吸，生生不息 */
        .app-ready .taiji {
            animation: breathe 6s ease-in-out infinite;
        }
        .app-ready .taiji-spin {
            animation: spin 80s linear infinite;
        }
        @media (prefers-reduced-motion: reduce) {
            .app-ready .taiji, .app-ready .taiji-spin { animation: none; }
        }
        .action-tags {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 30px;
        }
        .tag {
            background: #f0ece1;
            padding: 6px 12px;
            font-size: 12px;
            border-radius: 20px;
            color: #5c554b;
        }
        .tag.red {
            background: #fbeee8;
            color: #a63a2b;
        }
        .timeline-bar {
            width: 100%;
            max-width: 320px;
            height: 2px;
            background: #dcd6c8;
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .liunian {
            font-size: 12px;
            color: #8c857b;
            border-top: 1px solid #f0ece1;
            padding-top: 12px;
            letter-spacing: 1px;
        }
        /* 节点本体 8px，外层按钮提供 32px 触控热区 */
        .timeline-node {
            position: relative;
            width: 32px;
            height: 32px;
            margin: 0 -12px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .timeline-node::before {
            content: '';
            width: 8px;
            height: 8px;
            background: #8c857b;
            border-radius: 50%;
            transition: background 0.3s, transform 0.3s;
        }
        .timeline-node.active::before {
            background: #a63a2b;
            transform: scale(1.4);
        }
        .timeline-node .year {
            position: absolute;
            top: 30px;
            font-size: 10px;
            color: #b3ab9e;
            white-space: nowrap;
        }
        .timeline-node.active .year {
            color: #a63a2b;
        }

        /* --- 第 2 屏：验 (过往经历回测) --- */
        .verify-card {
            background: #fff;
            border: 1px solid #e3decb;
            border-radius: 12px;
            padding: 30px 24px;
            width: 100%;
            max-width: 320px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.02);
            text-align: center;
        }
        .verify-steps {
            font-size: 11px;
            color: #8c857b;
            margin-bottom: 24px;
            letter-spacing: 1px;
        }
        .verify-question {
            font-size: 18px;
            font-weight: 500;
            line-height: 1.6;
            margin-bottom: 30px;
            color: #2c2a29;
        }
        .verify-btn {
            display: block;
            width: 100%;
            padding: 12px;
            background: transparent;
            border: 1px solid #dcd6c8;
            border-radius: 6px;
            font-size: 14px;
            color: #5c554b;
            margin-bottom: 12px;
            transition: background 0.2s, border-color 0.2s, color 0.2s;
        }
        .verify-btn:hover {
            border-color: #a63a2b;
            color: #a63a2b;
        }
        /* 选中态由点击决定，而非写死在第一个按钮上 */
        .verify-btn.selected {
            background: #a63a2b;
            border-color: #a63a2b;
            color: #f7f4ed;
        }
        .progress-box {
            margin-top: 30px;
            text-align: left;
            font-size: 12px;
            color: #8c857b;
        }
        .progress-line {
            width: 100%;
            height: 3px;
            background: #eae5d8;
            border-radius: 2px;
            margin-top: 6px;
            overflow: hidden;
        }
        .progress-fill {
            height: 100%;
            background: #a63a2b;
            transition: width 0.5s ease;
        }

        /* --- 第 3 屏：问 (开口问策与古籍溯源) --- */
        .qa-card {
            width: 100%;
            max-width: 320px;
            text-align: left;
        }
        .process-line-mini {
            text-align: center;
            font-size: 11px;
            color: #8c857b;
            margin-bottom: 30px;
            letter-spacing: 1px;
        }
        .qa-title {
            font-size: 22px;
            font-weight: 500;
            margin-bottom: 24px;
            text-align: center;
        }
        .qa-answer {
            font-size: 14px;
            line-height: 1.8;
            color: #4a453e;
            margin-bottom: 16px;
            position: relative;
        }
        .seal-btn {
            display: inline-block;
            background: #fbeee8;
            color: #a63a2b;
            font-size: 10px;
            padding: 1px 4px;
            border-radius: 2px;
            margin-left: 6px;
            vertical-align: middle;
            transition: background 0.2s;
        }
        .seal-btn:hover,
        .seal-btn[aria-expanded="true"] {
            background: #a63a2b;
            color: #f7f4ed;
        }
        /* 古籍出处：点击「典」展开 */
        .qa-source {
            display: none;
            margin-top: 8px;
            padding: 8px 12px;
            border-left: 2px solid #a63a2b;
            background: #faf7f0;
            font-size: 12px;
            color: #8c857b;
            line-height: 1.7;
        }
        .qa-source.open {
            display: block;
        }

        /* --- 第 4 屏：合 (盲派合婚) --- */
        .match-card {
            width: 100%;
            max-width: 320px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .match-box-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }
        .match-subbox {
            flex: 1;
            background: #fff;
            border: 1px solid #e3decb;
            padding: 16px;
            text-align: center;
            border-radius: 8px;
            font-size: 13px;
            color: #5c554b;
        }
        .score-box {
            background: #fff;
            border: 1px solid #e3decb;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
        }
        .match-arrow {
            display: flex;
            align-items: center;
            color: #a63a2b;
        }
        .score-num {
            font-size: 28px;
            font-weight: 600;
            color: #a63a2b;
            margin-bottom: 4px;
        }
        .score-label {
            font-size: 12px;
            color: #8c857b;
            letter-spacing: 4px;
            margin-bottom: 14px;
        }
        .score-bar {
            height: 2px;
            background: #f0ece1;
        }
        .score-bar-fill {
            height: 100%;
            background: #a63a2b;
        }

        /* --- 第 5 屏：藏 (档案与多术数预留) --- */
        .vault-card {
            width: 100%;
            max-width: 320px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .profile-row {
            background: #fff;
            border: 1px solid #e3decb;
            padding: 16px;
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
        }
        .plugins-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }
        .plugin-cell {
            background: #fff;
            border: 1px solid #e3decb;
            padding: 24px 10px;
            text-align: center;
            border-radius: 8px;
            font-size: 14px;
            color: #5c554b;
            transition: border-color 0.3s, color 0.3s;
        }
        .plugin-cell small {
            display: block;
            margin-top: 6px;
            font-size: 10px;
            color: #b3ab9e;
            letter-spacing: 1px;
        }
        .plugin-cell:hover {
            border-color: #a63a2b;
            color: #a63a2b;
        }
        .profile-status {
            color: #a63a2b;
            font-size: 12px;
        }

        /* 独立录入页面：不使用抽屉，防止小屏、短屏溢出；内容由页面自身滚动 */
        .page.page-birth {
            justify-content: flex-start;
            align-items: center;
            padding: 24px 24px 32px;
            overflow-y: auto;
            overscroll-behavior: contain;
            scroll-padding-top: 12px;
            background: #f7f4ed;
        }
        .birth-heading {
            width: 100%;
            max-width: 382px;
            display: grid;
            grid-template-columns: 40px 1fr 40px;
            align-items: center;
            text-align: center;
            padding: 6px 0 19px;
            border-bottom: 1px solid #e3decb;
            flex-shrink: 0;
        }
        .birth-heading h2 { font-size: 20px; letter-spacing: 6px; font-weight: 500; }
        .birth-heading small { display:block; margin-top: 7px; color:#6d655c; font-size:11px; letter-spacing:2px; }
        .birth-heading button { font-size:23px; text-align:left; min-width:40px; min-height:40px; color:#a63a2b; }
        .birth-form { width:100%; max-width:382px; padding:20px 1px 6px; flex-shrink:0; }
        .birth-form .sheet-tabs { margin-bottom:16px; }
        .birth-form [data-panel] { width:100%; }
        .birth-form [data-panel][hidden] { display:none; }
        .birth-form .field { gap:12px; padding:13px 0; font-size:13px; min-width:0; }
        .birth-form .field input, .birth-form .field select {
            max-width:61%; min-width:0; text-align:right; color:#2c2a29;
            font-size:13px; font-family:inherit; 
        }
        .birth-form .gender-select { margin:15px 0 10px; }
        .birth-subnote { font-size:11px; line-height:1.75; color:#998d82; margin:8px 0 11px; }
        .birth-check { display:flex; align-items:center; gap:8px; font-size:12px; color:#716960; padding-top:13px; cursor:pointer; }
        .birth-check input { accent-color:#a63a2b; width:15px; height:15px; flex-shrink:0; }
        .birth-footer { padding:18px 0 0; }
        .birth-error { font-size:12px; line-height:1.7; color:#a63a2b; background:#f9eeea; border:1px solid rgba(166,58,43,.35); padding:9px 11px; margin:0 0 12px; }
        .birth-error[hidden] { display:none; }
        .birth-footer p { font-size:11px; color:#9e9487; line-height:1.8; margin-bottom:15px; }
        .birth-footer .start-btn { min-height:48px; }
        .page.page-birth .birth-form input:focus-visible,
        .page.page-birth .birth-form select:focus-visible {outline:2px solid #a63a2b;outline-offset:2px;}
        @media(max-height:650px) { .page.page-birth { padding-top:10px; padding-bottom:16px; } .birth-form .field { padding:10px 0; } }

        /* 系统开启「减少动态效果」时关闭过渡与循环动画 */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                transition-duration: 0.01ms !important;
                animation-duration: 0.01ms !important;
                animation-delay: 0s !important;
                /* 无限循环动画在极短时长下反而疯狂重绘，这里直接收敛为一次 */
                animation-iteration-count: 1 !important;
                scroll-behavior: auto !important;
            }
        }

.yixue-interpretation-view .yixue-interpretation-result{font-weight:600;color:var(--ink)}
.yixue-interpretation-view h4{margin:1em 0 .35em;font-size:1em}
.yixue-interpretation-view ul{margin:.35em 0 .75em;padding-inline-start:1.35em}
.yixue-interpretation-view li+li{margin-top:.35em}
.yixue-interpretation-view details{margin-top:.75em}
.yixue-interpretation-view summary{cursor:pointer}
.yixue-interpretation-meta{overflow-wrap:anywhere;font-size:.85em;color:var(--ink-3)}
