  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: var(--figma-text-p-normal-font-family);
    font-weight: var(--figma-text-p-normal-font-weight);
    min-height: 100vh;
    overflow-x: hidden;
  }

  .scroll {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 90px 30px 80px;
  }

  /* 首页：Figma Frame 56:2 的品牌与起卦表单 */
  .header { display: grid; justify-items: center; margin-bottom: 76px; }

  .brand-logo { position: relative; width: 120px; height: 90.68px; }
  .brand-logo img { position: absolute; display: block; }
  .brand-logo-left { left: 0; top: 0; width: 28.13px; height: 77.22px; }
  .brand-logo-middle { left: 32.15px; top: 4.16px; width: 50.22px; height: 65.9px; }
  .brand-logo-right { left: 84.99px; top: 1.56px; width: 35.01px; height: 89.12px; }

  .brand-tagline {
    margin-top: 14px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1px;
  }

  /* INPUT */
  .question-section { margin-bottom: 40px; }

  .question-input {
    width: 100%;
    border: 1px solid transparent;
    font-family: var(--figma-text-p-normal-font-family);
    font-weight: 400;
    border-radius: var(--figma-fill-in-field-corner-radius);
    font-size: 16px;
    min-height: 200px;
    padding: 22px 26px;
    outline: none;
    resize: none;
    line-height: 1.7;
  }

  .home-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 224px));
    align-items: start;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
  }

  .home-control { min-width: 0; }
  .home-control-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 15px;
    letter-spacing: 1px;
  }

  .control-help-wrap {
    position: relative;
  }
  .control-help {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    background: transparent;
    border: var(--figma-text-info-supplementary-stroke-weight) solid;
    border-radius: 50%;
    color: inherit;
    cursor: help;
    font-family: var(--figma-text-info-supplementary-font-family);
    font-weight: var(--figma-text-info-supplementary-font-weight);
    font-size: var(--figma-text-info-supplementary-font-size);
    letter-spacing: var(--figma-text-info-supplementary-letter-spacing-web);
    line-height: 1;
    padding: 0;
    position: relative;
  }
  /* 可见圆圈只有 18px，手指点不准；透明伪元素把点击区四周各扩 13px 到 44px。 */
  .control-help::after {
    content: '';
    position: absolute;
    inset: -13px;
  }
  .control-help:focus-visible {
    outline: 2px solid var(--figma-base-colours-yellow-02);
    outline-offset: 2px;
  }
  .control-tooltip {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 10px);
    left: 50%;
    width: min(280px, calc(100vw - 40px));
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--home-surface-stroke, var(--figma-fill-in-field-stroke-normal));
    border-radius: var(--figma-fill-in-field-corner-radius);
    background: var(--home-surface, var(--figma-fill-in-field-fill));
    box-shadow: 0 1px 2px var(--figma-fill-in-field-drop-shadow), inset 0 -2px 8px var(--figma-fill-in-field-inner-glow);
    color: var(--home-ink, var(--figma-text-title-info-colour-normal));
    font-family: var(--figma-text-p-normal-font-family);
    font-size: var(--figma-text-p-normal-font-size);
    font-weight: var(--figma-text-p-normal-font-weight);
    letter-spacing: var(--figma-text-p-normal-letter-spacing);
    line-height: var(--figma-text-p-normal-line-height-normal);
    text-align: left;
    transform: translateX(-50%);
  }

  .select-wrap { position: relative; }
  .select-wrap::after {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 12px;
    height: 7px;
    background: url('../assets/figma/homepage/dropdown-chevron.svg') center / 12px 7px no-repeat;
    content: '';
    pointer-events: none;
    transform: translateY(-50%);
  }

  .category-select {
    width: 100%;
    appearance: none;
    border-radius: var(--figma-button-drop-down-corner-radius);
    cursor: pointer;
    font-family: var(--figma-text-p-normal-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    padding: 16px 38px 16px 12px;
  }

  .category-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-radius: var(--figma-button-drop-down-corner-radius);
    cursor: pointer;
    font: 400 16px/1.2 var(--figma-text-p-normal-font-family);
    padding: 16px 38px 16px 12px;
    text-align: left;
  }
  .category-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .category-listbox {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--figma-button-drop-down-corner-radius);
    padding: 4px;
    transform-origin: top center;
  }
  .category-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    font: 400 15px/1.25 var(--figma-text-p-normal-font-family);
    padding: 8px 10px;
    text-align: left;
  }
  .category-option:hover,
  .category-option:focus-visible { outline: none; }

  .reading-type { border: 0; padding: 0; }
  .reading-type .home-control-label { float: none; width: 100%; }
  .reading-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--figma-min-touch-target);
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: var(--figma-button-radio-button-corner-radius);
    font-size: 16px;
    letter-spacing: 1px;
  }
  .reading-option input { margin: 0; }
  .reading-option[aria-disabled='true'] { opacity: 0.55; }
  .reading-option small { margin-left: auto; font-size: 11px; letter-spacing: 0; }

  /* BUTTONS */
  .start-btn {
    width: 100%;
    border-radius: var(--figma-button-action-corner-radius);
    font-family: var(--figma-text-p-normal-font-family);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 1px;
    min-height: 80px;
    padding: 16px 12px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
  }

  @media (hover: hover) and (pointer: fine) {
    .start-btn:hover { opacity: 0.85; }
  }
  .start-btn:active { transform: scale(0.99); }
  .start-btn:disabled { opacity: 0.4; cursor: not-allowed; }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  @keyframes slideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* RESULT AREA */
  .result-area { display: none; }
  .result-area.active { display: block; }

  @media (max-width: 759px) {
    .hexagram-row { flex-direction: column; align-items: stretch; }
    .arrow { transform: rotate(90deg); align-self: center; }
    .scroll { padding: 64px 20px 56px; }
    .header { margin-bottom: 52px; }
    .brand-logo { transform: scale(0.88); transform-origin: bottom center; margin-bottom: -14px; }
    .brand-tagline { font-size: 20px; }
    .home-controls { grid-template-columns: minmax(0, 320px); gap: 24px; margin-top: 28px; }
    .start-btn { grid-row: 3; }
  }

  /* === Figma 56:2 首页：固定设计 token，不继承旧主题 === */
  body:not(.result) {
    --home-background: var(--figma-background-fill);
    --home-ink: var(--figma-text-title-info-colour-normal);
    --home-placeholder: var(--figma-text-placeholder-colour-placeholder);
    --home-surface: var(--figma-fill-in-field-fill);
    --home-surface-stroke: var(--figma-fill-in-field-stroke-normal);
    --home-dropdown: var(--figma-button-drop-down-fill-selected);
    --home-dropdown-yet: var(--figma-button-drop-down-fill-yet);
    --home-selected: var(--figma-button-radio-button-selected-fill);
    --home-selected-stroke: var(--figma-button-radio-button-selected-stroke);
    --home-selected-dot: var(--figma-button-radio-button-selected-circle-fill);
    --home-disabled: var(--figma-button-radio-button-unavailable-fill);
    --home-disabled-text: var(--figma-text-button-unavailable-colour-normal);
    --home-action: var(--figma-button-action-fill);
    --home-action-stroke: var(--figma-button-action-stroke);
    background: var(--home-background);
    color: var(--home-ink);
  }
  body:not(.result) .scroll {
    width: 720px;
    max-width: calc(100% - 40px);
    padding: 80px 0 80px;
  }
  body:not(.result) .header { margin-bottom: 49px; }
  body:not(.result) .brand-logo { filter: none; }
  body:not(.result) .brand-tagline,
  body:not(.result) .home-control-label,
  body:not(.result) .category-trigger,
  body:not(.result) .category-option,
  body:not(.result) .reading-option,
  body:not(.result) .start-btn {
    font-family: 'Fusion Pixel 12px Prop zh_hans', 'Noto Sans SC', sans-serif;
    font-weight: 400;
  }
  body:not(.result) .brand-tagline {
    margin-top: -1px;
    color: var(--home-ink);
    font-family: var(--figma-text-title-tagline-font-family);
    font-size: var(--figma-text-title-tagline-font-size);
    letter-spacing: var(--figma-text-title-info-letter-spacing);
  }
  body:not(.result) .question-input {
    background: var(--home-surface);
    border-color: var(--home-surface-stroke);
    border-radius: var(--figma-fill-in-field-corner-radius);
    box-shadow: 0 1px 2px var(--figma-fill-in-field-drop-shadow), inset 0 -2px 8px var(--figma-fill-in-field-inner-glow);
    color: var(--home-ink);
    font-family: var(--figma-text-placeholder-font-family);
    font-size: var(--figma-text-placeholder-font-size);
    font-weight: var(--figma-text-placeholder-font-weight);
    line-height: var(--figma-text-placeholder-line-height);
    height: 200px;
    min-height: 200px;
    padding: 22px 26px;
  }
  body:not(.result) .question-input::placeholder { color: var(--home-placeholder); opacity: 1; }
  /* 焦点态属于输入框材质本身：保留外部投影，在边框内侧补一圈焦点色。
     这样键盘焦点仍有 2px 可见宽度，也不会在投影外再套出第三道框。 */
  body:not(.result) .question-input:focus {
    border-color: var(--figma-base-colours-yellow-02);
    box-shadow:
      0 1px 2px var(--figma-fill-in-field-drop-shadow),
      inset 0 0 0 1px var(--figma-base-colours-yellow-02),
      inset 0 -2px 8px var(--figma-fill-in-field-inner-glow);
  }
  body:not(.result) .question-input:focus-visible { outline: none; }
  @media (forced-colors: active) {
    body:not(.result) .question-input:focus-visible {
      outline: 2px solid Highlight;
      outline-offset: -3px;
    }
  }
  body:not(.result) .home-controls { gap: 24px; margin-top: 43px; }
  body:not(.result) .home-control-label {
    color: var(--home-ink);
    font-size: 16px;
    line-height: 1;
    margin-bottom: 16px;
  }
  body:not(.result) .control-help {
    border-color: var(--figma-text-info-supplementary-colour-passive);
    color: var(--figma-text-info-supplementary-colour-passive);
  }
  /* Figma button anatomy: fill layer (carries the stroke) → content → effect layer.
     Stroke and effect are both inset box-shadows sharing the host's own box (no
     border-box/radius juggling needed); since ::after always paints after ::before,
     the effect band naturally draws over the stroke where they overlap — matching
     how Figma bakes a shape's stroke and effects onto the same rendered layer. */
  body:not(.result) .category-trigger,
  body:not(.result) .category-option,
  body:not(.result) .reading-option,
  body:not(.result) .home-controls > .start-btn {
    background: transparent;
    border: 0;
    box-shadow: none;
    position: relative;
  }
  body:not(.result) .category-trigger::before,
  body:not(.result) .category-trigger::after,
  body:not(.result) .category-option::before,
  body:not(.result) .category-option::after,
  body:not(.result) .reading-option::before,
  body:not(.result) .reading-option::after,
  body:not(.result) .home-controls > .start-btn::before,
  body:not(.result) .home-controls > .start-btn::after {
    border-radius: inherit;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
  }
  body:not(.result) .category-trigger {
    border-radius: var(--figma-button-drop-down-corner-radius);
    color: var(--figma-text-button-normal-colour-normal);
    font-family: var(--figma-text-button-normal-font-family);
    font-size: var(--figma-text-button-normal-font-size);
    min-height: 48px;
    padding: var(--figma-button-drop-down-padding-tb) 38px var(--figma-button-drop-down-padding-tb) var(--figma-button-drop-down-padding-lr);
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
  body:not(.result) .category-trigger::before { background: var(--figma-button-drop-down-fill-selected); box-shadow: inset 0 0 0 var(--figma-button-drop-down-stroke-weight) var(--figma-button-drop-down-stroke); }
  body:not(.result) .category-trigger::after { box-shadow: inset 0 2px 0 var(--figma-button-drop-down-inner-glow), inset 0 -2px 0 var(--figma-button-drop-down-inner-shadow); }
  body:not(.result) .category-trigger:focus-visible {
    outline: 2px solid var(--figma-base-colours-yellow-02);
    outline-offset: -2px;
  }
  body:not(.result) .category-trigger > span,
  body:not(.result) .category-option > span {
    letter-spacing: var(--figma-text-button-normal-letter-spacing);
    position: relative;
    text-shadow: 0 1px 1px var(--figma-text-button-normal-drop-shadow), 0 -1px 1px var(--figma-text-button-normal-outer-glow);
    z-index: 1;
  }
  body:not(.result) .category-listbox:not([hidden]) {
    display: grid;
    opacity: 0;
    transform: scale(.96) translateY(-4px);
    transform-origin: top center;
    transition: opacity 150ms cubic-bezier(.16, 1, .3, 1), transform 180ms cubic-bezier(.16, 1, .3, 1);
    grid-template-columns: repeat(2, 224px);
    gap: 2px;
    width: 450px;
    max-height: none;
    overflow: visible;
    background: var(--home-dropdown-yet);
    border: 1px solid var(--home-surface-stroke);
    box-shadow: none;
    padding: 0;
  }
  body:not(.result) .category-listbox.is-open {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  body:not(.result) .category-listbox {
    display: none;
  }

  body:not(.result) .category-option {
    min-height: 48px;
    justify-content: space-between;
    border-radius: var(--figma-button-drop-down-corner-radius);
    color: var(--figma-text-button-normal-colour-normal);
    font-size: var(--figma-text-button-normal-font-size);
    font-weight: 400;
    padding: var(--figma-button-drop-down-padding-tb) var(--figma-button-drop-down-padding-lr);
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
  body:not(.result) .category-option::before { background: var(--figma-button-drop-down-fill-yet); box-shadow: inset 0 0 0 var(--figma-button-drop-down-stroke-weight) var(--figma-button-drop-down-stroke); }
  body:not(.result) .category-option:hover::before,
  body:not(.result) .category-option:focus-visible::before,
  body:not(.result) .category-option.is-selected::before { background: var(--figma-button-drop-down-fill-selecting); }
  /* 无障碍复盘发现：主 main.css 里通用的 .category-option:focus-visible{outline:none}
     还生效着，唯一的替代视觉是上面这行背景色切换，但两个背景色实测对比度只有
     ~1.4:1，方向键在选项间移动时基本看不出焦点位置；这里补一圈真正可见的描边。 */
  body:not(.result) .category-option:focus-visible { outline: 2px solid var(--figma-base-colours-yellow-02); outline-offset: -2px; }
  body:not(.result) .select-wrap::after { filter: none; }
  body:not(.result) .select-wrap:has(.category-trigger[aria-expanded='true'])::after { transform: translateY(-50%) rotate(180deg); }
  body:not(.result) .reading-option {
    border-radius: var(--figma-button-radio-button-corner-radius);
    color: var(--home-disabled-text);
    font-size: 18px;
    min-height: 48px;
    margin-bottom: 8px;
    opacity: 1;
    padding: 16px 12px;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
  body:not(.result) .reading-option::before { background: var(--figma-button-radio-button-unavailable-fill); }
  /* 暂不可选：整格灰掉，只留一圈描边当「空位」，不给底色、不给文字凸起效果——
     原先的石灰底＋墨棕像素字＋文字阴影，看起来跟可按的键一样（用户实机反馈）。 */
  body:not(.result) .reading-option[aria-disabled='true'] { cursor: not-allowed; }
  body:not(.result) .reading-option[aria-disabled='true']::before { background: transparent; box-shadow: inset 0 0 0 var(--figma-button-radio-button-stroke-weight) var(--figma-button-radio-button-unavailable-stroke); }
  body:not(.result) .reading-option.selected {
    color: var(--home-ink);
  }
  body:not(.result) .reading-option.selected::before { background: var(--figma-button-radio-button-selected-fill); box-shadow: inset 0 0 0 var(--figma-button-radio-button-stroke-weight) var(--figma-button-radio-button-selected-stroke); }
  /* Figma 82:113: stroke sits on ::before (fill), effect on ::after — ::after paints last, so it draws over the stroke where the two overlap. */
  body:not(.result) .reading-option.selected::after {
    box-shadow: inset 0 2px 0 var(--figma-button-radio-button-selected-inner-shadow), inset 0 -2px 0 var(--figma-button-radio-button-selected-inner-glow);
  }
  /* Figma 56:19: the text effect belongs to the text layer, not its button shell. */
  body:not(.result) .reading-option > span {
    color: var(--figma-text-button-normal-colour-normal);
    font-family: var(--figma-text-button-normal-font-family);
    font-size: var(--figma-text-button-normal-font-size);
    font-weight: var(--figma-text-button-normal-font-weight);
    letter-spacing: var(--figma-text-button-normal-letter-spacing);
    position: relative;
    text-shadow: 0 1px 1px var(--figma-text-button-normal-drop-shadow), 0 -1px 1px var(--figma-text-button-normal-outer-glow);
    z-index: 1;
  }
  body:not(.result) .reading-option[aria-disabled='true'] > span { color: var(--figma-text-button-unavailable-colour-normal); text-shadow: none; }
  body:not(.result) .reading-option input {
    appearance: none;
    width: 12px;
    height: 12px;
    border: var(--figma-button-radio-button-unavailable-circle-stroke-weight) solid var(--figma-button-radio-button-unavailable-circle-stroke);
    border-radius: 50%;
    background: transparent;
    position: relative;
    z-index: 1;
  }
  body:not(.result) .reading-option.selected input {
    background: var(--figma-button-radio-button-selected-circle-fill);
    border-color: var(--figma-button-radio-button-selected-circle-stroke);
    box-shadow: 0 -2px 2px var(--figma-button-radio-button-selected-circle-glow), 0 2px 2px var(--figma-button-radio-button-selected-circle-shadow);
  }
  body:not(.result) .reading-option:has(input:focus-visible) {
    outline: 2px solid var(--figma-base-colours-yellow-02);
    outline-offset: -2px;
  }
  body:not(.result) .reading-option input:focus-visible { outline: none; }
  /* 小注只出现在暂不可选的选项上，跟着禁用态一起灰掉，不用（已加深的）辅助字色 */
  body:not(.result) .reading-option small {
    color: var(--figma-text-button-unavailable-colour-normal);
    font-family: var(--figma-text-info-supplementary-font-family);
    font-weight: var(--figma-text-info-supplementary-font-weight);
    font-size: var(--figma-text-info-supplementary-font-size);
    letter-spacing: var(--figma-text-info-supplementary-letter-spacing-web);
    position: relative;
    z-index: 1;
  }
  body:not(.result) .home-controls > .start-btn {
    border-radius: var(--figma-button-action-corner-radius);
    font-family: 'Fusion Pixel 12px Prop zh_hans', 'Noto Sans SC', sans-serif;
    transition: opacity 0.2s, transform 0.1s;
    color: var(--figma-text-button-action-colour-white);
    font-size: var(--figma-text-button-action-font-size);
    margin-top: 32px;
    min-height: 80px;
  }
  body:not(.result) .home-controls > .start-btn:focus-visible {
    outline: 2px solid var(--figma-base-colours-yellow-02);
    outline-offset: -2px;
  }
  /* Y2K 视觉确认后接入：主按钮叠一层青→紫→粉→金的流光，跟设计稿的
     fill/stroke token 分两层背景叠加（overlay 混合），不改变原有描边与
     内发光层级；同款流光也用在结果页「重新起占」（见 result-redesign.css），
     两处共用 css/ui-components.css 里的材质与 @keyframes y2k-chromatic-flow。 */
  /* 主按钮键面、标签和流光由 ui-components.css 唯一持有。 */

  @media (forced-colors: active) {
    body:not(.result) .category-trigger:focus-visible,
    body:not(.result) .reading-option:has(input:focus-visible),
    body:not(.result) .home-controls > .start-btn:focus-visible {
      outline-color: Highlight;
    }
  }



  /* 720px 三栏加页面安全边距需要至少 760px 视口；更窄时直接进入完整单栏态，
     避免 521–759px 之间把占问类型和「暂不可选」挤成多行、破坏三组控件对齐。 */
  @media (max-width: 759px) {
    body:not(.result) .scroll { width: auto; max-width: none; padding: 51px 20px 42px; }
    body:not(.result) .header { margin-bottom: 33px; }
    body:not(.result) .brand-logo { transform: scale(0.67); transform-origin: top center; margin-bottom: -38px; }
    /* Figma node 55:515（node 58:85）原稿手机标语是 18px；2026-09-26 手机层级
       critique 发现 18px 标语跟单选项一样大、标签只小 2px，整页像同一个音量在说话，
       改回 24px（12 的倍数，像素字不糊），跟 18px 选项、12px 标签拉开三级。 */
    body:not(.result) .brand-tagline { margin-top: 15px; font-size: 24px; }
    /* node 58:87/58:88：输入框内边距按 Fill Question 外框与占位文字的绝对坐标差
       换算(top 199→211=12px, left 25→35=10px)，比桌面版 22px/26px 更紧凑。 */
    body:not(.result) .question-input { height: 120px; min-height: 120px; padding: 12px 10px; }
    /* 输入框、选择控件、开始按钮共用同一条中轴：原先 330 → 224 → 320 三种宽度
       交错（224 是桌面三栏的栏宽，单栏后成了孤零零的窄柱），纵向读起来像三块
       拼上去的。统一跟输入框同宽，窄于 370px 的手机再随视口收窄。 */
    body:not(.result) .question-section { width: min(330px, 100%); margin: 0 auto; }
    body:not(.result) .home-controls { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 40px; }
    /* 标签是「这一组在选什么」的提示，不是内容：退到 12px 像素字原生字号与说明色，
       让下面的控件本身成为视觉重点。 */
    body:not(.result) .home-control-label { position: relative; color: var(--figma-text-p-normal-colour-description); font-size: 12px; margin-bottom: 12px; }
    /* 说明浮层原本以 18px 的 i 按钮为中心、固定 280px 宽：i 在标签右半边，375px 屏
       浮层右缘只离屏幕 4px，320px 屏直接顶出视口、整页被撑宽到 343px 可左右滑。
       手机上改以整条标签（与控件栏同宽）为定位基准，浮层跟控件栏等宽、左右对齐。 */
    body:not(.result) .control-help-wrap { position: static; }
    body:not(.result) .control-tooltip { width: 100%; }
    /* 解卦类型改横排三格分段按钮：两个「暂不可选」原本各占 56px 一整行，把开始
       按钮挤到首屏折叠线上。窄格里放不下单选圆点，改由整格填色表示选中。 */
    body:not(.result) .reading-type { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    body:not(.result) .reading-option { flex-direction: column; justify-content: center; gap: 6px; min-height: 64px; margin-bottom: 0; padding: 12px 4px; text-align: center; }
    /* 圆点只做视觉隐藏：radio 本身仍在无障碍树里，读屏照常读到「单选、已选中」。 */
    body:not(.result) .reading-option input { position: absolute; opacity: 0; pointer-events: none; }
    body:not(.result) .reading-option small { margin-left: 0; }
    /* 桌面版展开态规则写的是 body:not(.result) .category-listbox:not([hidden])，
       比这里少写的 :not([hidden]) 让它的选择器权重更高——这条本该覆盖桌面两栏
       布局的规则实际从没生效过，移动端点开"占问类型"下拉一直还是两栏 450px
       宽，在窄屏上被裁切/伸到视口外。选择器补上 :not([hidden]) 才能真正压过去，
       变成一条垂直单栏列表。 */
    /* 桌面展开态在 :not([hidden]) 里写的是 overflow: visible（横纵两轴都不裁切，
       因为桌面两栏 11 项一屏放得下不用滚动）；这里只重设 overflow-y 的话，
       CSS 会把没被重设的 overflow-x 也跟着从 visible 强制变成 auto（两轴其中
       一个非 visible 时另一个不能保持 visible 的规范行为），横向意外多出一条
       可滑动的轴。显式补 overflow-x: hidden 才能真正压住。 */
    /* 往下开(沿用基础规则的 top: calc(100% + 8px)，不再翻到 bottom 往上开)：
       往上开会正好盖住用户可能还在回看的占问文本框，往下开只会盖到下面的
       解卦类型/按钮，且列表本来就有 max-height + 内部滚动兜底(用户实测反馈)。 */
    body:not(.result) .category-listbox:not([hidden]) { grid-template-columns: minmax(0, 1fr); width: 100%; max-height: 380px; overflow-y: auto; overflow-x: hidden; }
    /* 开始摇掷按钮铺满与输入框同宽的控件列；不贴底(会被输入焦点时弹出的虚拟
       键盘遮挡/顶飞)，仍留在文档流里跟随内容滚动。 */
    /* 按钮与上方"解卦类型"选项列表至少留 40px：grid gap 已经是 30px，
       margin-top 再补 10px 凑够(用户实测反馈原先的 -26px 挤得太紧,几乎贴在一起)。 */
    body:not(.result) .home-controls > .start-btn { width: 100%; justify-self: center; margin-top: 10px; }
  }
