/*
 * 退休测算的样式。公开页（retire.html）和产品里的「计划 → 退休测算」用同一份。
 * 全部规则套在 .rc 里（CSS 嵌套），类名不带前缀也不会和产品其他样式互相影响；弹窗 <dialog class="dlg"> 也要放在 .rc 里面。
 * 颜色、字号、圆角、间距取 css/v2/tokens.css。
 */

@keyframes rc-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rc-growx { from { transform: scaleX(0); } to { transform: none; } }
@keyframes rc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes rc-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rc-fade { from { opacity: 0; } to { opacity: 1; } }

.rc {

  /* 这一页自己的语义色：都指向 tokens 里已有的颜色 */
  --c-work: var(--accent);
  --c-retire: var(--chart-3);
  --c-pension: var(--chart-2);
  --c-save: var(--chart-3);
  --c-spend: var(--data-2);

  font-family: var(--font-body);
  font-size: var(--t-md);
  line-height: var(--lh-text);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;




  h1, h2, h3, p, ol, ul { margin: 0; }
  button { font: inherit; color: inherit; cursor: pointer; }
  i { font-style: normal; }
  .wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
  .ico { display: block; flex: none; }




  .enter { animation: rc-enter 220ms var(--ease) both; }
  .grow { transform-origin: left center; animation: rc-growx 520ms var(--ease) both; }

  /* 顶栏 */
  .top { position: sticky; top: 0; z-index: 5; border-bottom: 0.5px solid var(--line-strong); background: color-mix(in srgb, var(--bg-page) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); }
  .top-in { display: flex; align-items: center; gap: 8px; height: 48px; }
  .brand { font-size: var(--t-lg); font-weight: 600; }
  .proto { font-size: var(--t-xs); color: var(--text-3); border: 0.5px solid var(--line-strong); border-radius: 999px; padding: 0 8px; line-height: 20px; }
  .top-gap { flex: 1; }
  .link { background: none; border: 0; padding: 0; color: var(--accent); font-size: var(--t-sm); white-space: nowrap; }
  .link:hover { text-decoration: underline; }

  /* 按钮 */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
    min-height: var(--ctl-btn); padding: 0 16px; border-radius: var(--r-field);
    border: 0.5px solid var(--line-strong); background: var(--surface); font-size: var(--t-md); font-weight: 500;
    transition: background var(--motion) var(--ease), border-color var(--motion) var(--ease), transform var(--motion) var(--ease);
  }
  .btn:hover { background: var(--surface-2); border-color: var(--text-mute); }
  .btn:active { transform: scale(0.98); }
  .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
  .btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
  .btn.small { min-height: var(--ctl-compact); padding: 0 12px; font-size: var(--t-sm); }
  .btn.tint { background: var(--accent-lt); border-color: transparent; color: var(--accent-deep); }
  .btn.tint:hover { background: var(--accent-lt-2); border-color: transparent; }
  .btn:focus-visible, .chip:focus-visible, .pick:focus-visible, .link:focus-visible, .fact:focus-visible, .seg button:focus-visible, .goal:focus-visible, .tabs button:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
  }

  /* 输入 */
  .field { display: block; }
  .field + .field, .group + .field, .field + .group, .group + .group { margin-top: 22px; }
  .field-label { display: block; font-size: var(--t-md); font-weight: 500; margin-bottom: 6px; }
  .field-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .input-wrap {
    display: inline-flex; align-items: center; gap: 6px; width: 250px; max-width: 100%; height: 48px; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
    transition: border-color var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
  }
  .input-wrap.narrow { width: 132px; }
  .input-wrap.select { padding-right: 8px; }
  .input-wrap select { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0; font: inherit; font-size: 18px; font-weight: 600; color: var(--text-1); cursor: pointer; }
  .input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lt); }
  .input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0; font: inherit; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-1); }
  .unit { color: var(--text-3); flex: none; }
  .echo { color: var(--text-3); font-size: var(--t-sm); }
  .hint { display: block; margin-top: 6px; font-size: var(--t-sm); color: var(--text-3); max-width: 46em; }
  .error { margin-top: 12px; font-size: var(--t-sm); color: var(--danger); min-height: 1.6em; }
  /* 写在出错的那一项下面的错误 */
  .field-error { display: block; margin-top: 6px; font-size: var(--t-sm); color: var(--danger); }
  [aria-invalid="true"] { color: var(--danger) !important; }
  .input-wrap:has([aria-invalid="true"]) { border-color: var(--danger); }
  .dial { display: flex; align-items: center; gap: 16px; }
  .dial-step { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 22px; font-weight: 400; line-height: 1; }
  .dial-read { font-size: var(--t-lg); color: var(--text-2); min-width: 5.5em; text-align: center; }
  .dial-read b { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-1); font-variant-numeric: tabular-nums; margin-right: 4px; }
  .slider { display: block; width: 100%; max-width: 440px; height: 28px; margin-top: 16px; accent-color: var(--accent); cursor: pointer; }
  .slider-ends { display: flex; justify-content: space-between; max-width: 440px; font-size: var(--t-xs); color: var(--text-3); }
  .live { margin-top: 16px; min-height: 1.6em; color: var(--text-2); max-width: 34em; }
  .src { font-size: var(--t-xs) !important; color: var(--text-3) !important; }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    min-height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--t-md);
    transition: background var(--motion) var(--ease), border-color var(--motion) var(--ease);
  }
  .chip:hover { border-color: var(--accent); }
  .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
  .group-label { font-size: var(--t-md); font-weight: 500; margin-bottom: 8px; }

  .picks { display: grid; gap: 8px; }
  .pick {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left;
    min-height: 52px; padding: 8px 16px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--t-md);
    transition: background var(--motion) var(--ease), border-color var(--motion) var(--ease);
  }
  .pick:hover { border-color: var(--accent); }
  .pick[aria-pressed="true"] { background: var(--accent-lt); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .pick small { color: var(--text-3); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }

  .card { background: var(--surface); border-radius: var(--r-card); padding: var(--card-pad); border: 0.5px solid var(--line); box-shadow: 0 1px 2px rgba(40, 32, 16, 0.04); }

  /* 第一屏 */
  .intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; padding: 56px 0 72px; align-items: start; }
  .intro h1 { font-size: 36px; font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.01em; }
  .intro .lead { margin-top: 12px; font-size: var(--t-lg); color: var(--text-2); max-width: 34em; }
  .intro-main h2 { margin-top: 40px; font-size: var(--t-section); font-weight: 600; }
  .goals { display: grid; gap: 12px; margin-top: 16px; }
  .goal {
    display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; border-radius: var(--r-card);
    border: 0.5px solid var(--line-strong); background: var(--surface); box-shadow: 0 1px 2px rgba(40, 32, 16, 0.04);
    transition: border-color var(--motion) var(--ease), box-shadow var(--motion) var(--ease), transform var(--motion) var(--ease);
  }
  .goal:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(43, 87, 212, 0.12); transform: translateY(-1px); }
  .goal-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-lt); color: var(--accent-deep); }
  .goal-ico .ico { width: 24px; height: 24px; }
  .goal > b { flex: 1; min-width: 0; font-size: var(--t-section); font-weight: 600; }
  .goal-go { flex: none; color: var(--text-mute); transition: color var(--motion) var(--ease), transform var(--motion) var(--ease); }
  .goal:hover .goal-go { color: var(--accent); transform: translateX(3px); }
  .fine { margin-top: 24px; font-size: var(--t-sm); color: var(--text-3); max-width: 46em; }
  .intro-side { margin-top: 8px; padding: 24px; border-radius: var(--r-card); background: var(--fill-1); }
  .intro-side h2 { font-size: var(--t-md); font-weight: 600; color: var(--text-2); }
  .spec { margin: 8px 0 0; }
  .spec dt { margin-top: 14px; padding-top: 14px; border-top: 0.5px solid var(--line-strong); font-weight: 600; }
  .spec dt:first-child { margin-top: 0; padding-top: 6px; border-top: 0; }
  .spec dd { margin: 2px 0 0; color: var(--text-2); font-size: var(--t-sm); }

  /* 提问流程 */
  .ask { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding: 40px 0 72px; align-items: start; }
  .progress { display: flex; justify-content: space-between; font-size: var(--t-sm); color: var(--text-3); }
  .progress span:first-child { color: var(--accent-deep); font-weight: 500; }
  .bar { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
  .bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transition: width 320ms var(--ease); }
  .ask h1 { margin-top: 36px; font-size: 30px; font-weight: 700; line-height: var(--lh-tight); letter-spacing: -0.01em; }
  .ask .why { margin-top: 10px; color: var(--text-2); font-size: var(--t-lg); max-width: 34em; }
  .ask .body { margin-top: 28px; }
  .nav { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
  .nav .btn { min-height: 46px; }
  .nav .btn.primary { min-width: 128px; }
  .kbd-hint { margin-left: 8px; font-size: var(--t-xs); color: var(--text-mute); }
  .ask-side { position: sticky; top: 72px; padding: 24px; }
  .ask-side h2 { font-size: var(--t-md); font-weight: 600; color: var(--text-2); }
  .side-block { margin-top: 20px; padding-top: 20px; border-top: 0.5px solid var(--line); }
  .ask-side h2 + .side-block { border-top: 0; padding-top: 0; margin-top: 12px; }
  .side-block h3 { font-size: var(--t-lg); font-weight: 600; margin-bottom: 10px; }
  .side-block p { margin-top: 10px; font-size: var(--t-sm); color: var(--text-2); }
  .side-block p:empty { display: none; }
  .side-empty { margin-top: 12px; color: var(--text-3); }

  /* 时间线 */
  .tl { position: relative; padding: 44px 0 58px; }
  .tl-track { position: relative; height: 10px; border-radius: 5px; background: var(--fill-2); }
  .tl-track > i { position: absolute; top: 0; height: 100%; }
  .tl-work { background: var(--c-work); border-radius: 5px 0 0 5px; }
  .tl-retire { background: var(--c-retire); }
  .tl-long { background: repeating-linear-gradient(135deg, var(--c-retire) 0 3px, transparent 3px 6px); opacity: 0.55; border-radius: 0 5px 5px 0; }
  .tl-unknown { background: repeating-linear-gradient(135deg, var(--fill-3) 0 3px, transparent 3px 6px); border-radius: 5px; }
  .tl-track > .tl-tick { top: -4px; width: 2px; height: 18px; margin-left: -1px; background: var(--text-1); border-radius: 1px; }
  .tl-mark { position: absolute; transform: translateX(-50%); text-align: center; line-height: 1.3; }
  .tl-mark.above { top: 0; height: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
  .tl-mark.below { top: 62px; }
  .tl-mark.start { transform: none; text-align: left; align-items: flex-start; }
  .tl-mark.end { transform: translateX(-100%); text-align: right; align-items: flex-end; }
  .tl-mark b { font-size: var(--t-sm); font-weight: 600; white-space: nowrap; }
  .tl-mark small { display: block; font-size: var(--t-xs); color: var(--text-3); white-space: nowrap; }

  /* 分段条和图例 */
  .split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--fill-2); }
  .split > i { height: 100%; transition: width 320ms var(--ease); }
  .split > i + i { box-shadow: -1.5px 0 0 var(--surface); }
  .bar-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: var(--t-xs); color: var(--text-2); }
  .bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .bar-legend i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
  .bar-legend b { font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; }
  .c-spend { background: var(--c-spend); }
  .c-save { background: var(--c-save); }
  .c-pension { background: var(--c-pension); }
  .c-alloc0 { background: var(--chart-1); }
  .c-alloc1 { background: var(--chart-4); }
  .c-alloc2 { background: var(--chart-6); }
  .c-alloc3 { background: var(--data-2); }

  /* 结果页 */
  .result { padding: 20px 0 72px; }
  .result-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
  .jump { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-left: auto; font-size: var(--t-sm); color: var(--text-3); }
  .conds, .levers, .deep { scroll-margin-top: 72px; }
  .seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill-2); }
  .seg button { border: 0; background: none; min-height: 34px; padding: 0 16px; border-radius: 9px; font-size: var(--t-md); color: var(--text-2); transition: background var(--motion) var(--ease), color var(--motion) var(--ease); }
  .seg button:hover { color: var(--text-1); }
  .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text-1); font-weight: 600; box-shadow: var(--shadow-thumb); }
  .facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .facts-label { font-size: var(--t-sm); color: var(--text-3); margin-right: 4px; }
  .fact {
    border: 0.5px solid var(--line-strong); background: var(--surface); border-radius: 999px;
    min-height: 30px; padding: 0 12px; font-size: var(--t-sm); transition: border-color var(--motion) var(--ease), color var(--motion) var(--ease);
  }
  .fact:hover { border-color: var(--accent); color: var(--accent-deep); }

  .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 16px; padding: 32px; }
  .hero .kicker { font-size: var(--t-lg); color: var(--text-2); }
  .hero .answer { margin-top: 6px; font-size: 24px; font-weight: 600; line-height: var(--lh-tight); }
  .hero .answer b { font-size: 52px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0 6px; color: var(--accent-deep); white-space: nowrap; }
  .hero .sub { margin-top: 14px; font-size: var(--t-lg); color: var(--text-2); max-width: 36em; }
  .hero .sub strong { color: var(--text-1); font-weight: 600; }
  .verdict { display: inline-block; margin-left: 8px; padding: 0 12px; border-radius: 999px; font-size: var(--t-sm); font-weight: 600; line-height: 26px; vertical-align: middle; }
  .verdict.ok { background: var(--ok-bg); color: var(--ok); }
  .verdict.short { background: var(--warn-bg); color: var(--warn); }
  .changed { margin-top: 16px; padding: 8px 12px; border-radius: var(--r-item); background: var(--accent-lt); color: var(--accent-deep); font-size: var(--t-sm); display: inline-block; animation: rc-enter 260ms var(--ease) both; }
  .busy { opacity: 0.45; transition: opacity var(--motion) var(--ease); }
  .calc-steps { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; font-size: var(--t-md); color: var(--text-3); }
  .calc-steps li { display: flex; align-items: center; gap: 8px; padding-left: 22px; position: relative; transition: color 200ms var(--ease); }
  .calc-steps li .ico { position: absolute; left: 0; width: 16px; height: 16px; color: var(--ok); }
  .calc-steps li.done { color: var(--text-2); }
  .calc-steps li.now { color: var(--text-1); font-weight: 500; }
  .calc-steps li.now::before { content: ""; position: absolute; left: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: rc-fade 600ms var(--ease) infinite alternate; }
  .calc-note { margin-top: 12px; font-size: var(--t-sm); color: var(--text-3); }
  /* 图直接放在结果卡里，不再套一层带底色和边框的框（卡片不套卡片） */
  .hero-visual { min-width: 0; }
  .hero-visual:empty { display: none; }
  /* 没有配图的结论（例如养老金已经够花、不需要另外储蓄）：文字占满整行，不留空着的右半边 */
  .hero.solo { grid-template-columns: minmax(0, 1fr); }

  .hv-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 6.5em; align-items: center; gap: 12px; }
  .hv-row + .hv-row { margin-top: 14px; }
  .hv-label { font-size: var(--t-sm); color: var(--text-2); }
  .hv-value { font-size: var(--t-md); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
  .hv-track { position: relative; display: flex; height: 16px; border-radius: 8px; background: var(--fill-1); overflow: hidden; }
  .hv-track > i { height: 100%; flex: none; }
  .hv-more { background: repeating-linear-gradient(135deg, var(--c-save) 0 3px, transparent 3px 6px); opacity: 0.5; }
  .hv .bar-legend { margin-top: 16px; }
  .hv-need { position: relative; padding: 34px 0; }
  .hv-track.tall { overflow: visible; height: 14px; }
  .hv-track.tall > i { position: absolute; top: 0; }
  .hv-range { background: var(--accent-lt-2); border-radius: 7px; }
  .hv-track.tall > .hv-dot { top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface-2); }
  .hv-track.tall > .hv-flag { top: -8px; width: 3px; height: 30px; margin-left: -1.5px; border-radius: 2px; }
  .hv-flag.ok { background: var(--ok); }
  .hv-flag.short { background: var(--warn); }
  .hv-pin { position: absolute; transform: translateX(-50%); white-space: nowrap; font-size: var(--t-sm); }
  .hv-pin.above { top: 0; }
  .hv-pin.below { bottom: 0; }
  .hv-pin.left { transform: none; }
  .hv-pin.right { transform: translateX(-100%); }
  .hv-pin b { font-weight: 600; }

  .hero .note { margin-top: 12px; font-size: var(--t-sm); color: var(--text-3); max-width: 44em; }
  .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-section); margin-top: var(--gap-section); }
  .tile { padding: 20px; background: var(--surface); border-radius: var(--r-card); border: 0.5px solid var(--line); box-shadow: 0 1px 2px rgba(40, 32, 16, 0.04); }
  .tile-label { display: block; font-size: var(--t-sm); color: var(--text-2); }
  .tile-value { display: block; margin-top: 2px; font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
  .tile-value.ok { color: var(--ok); }
  .tile-value.short { color: var(--warn); }
  .tile p { margin-top: 6px; color: var(--text-2); font-size: var(--t-sm); }
  .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-section); margin-top: var(--gap-section); }
  .mini { padding: 20px; }
  .mini-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--fill-1); color: var(--c-pension); }
  .mini-num { display: block; height: 36px; font-size: 28px; font-weight: 700; line-height: 36px; letter-spacing: -0.01em; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
  .mini-num.small { font-size: var(--t-section); color: var(--text-1); }
  .mini h3 { margin-top: 10px; font-size: var(--t-md); font-weight: 600; }
  .mini p { margin-top: 6px; color: var(--text-2); font-size: var(--t-sm); }
  .assumed { display: block; margin-top: 8px; color: var(--warn); }

  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-section); margin-top: 44px; align-items: start; }
  .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .sec-title { font-size: 20px; font-weight: 600; }
  .sec-lead { margin-top: 4px; color: var(--text-2); font-size: var(--t-sm); }
  .count { font-size: var(--t-sm); color: var(--text-3); font-variant-numeric: tabular-nums; }
  .meter { height: 4px; margin-top: 12px; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
  .meter i { display: block; height: 100%; background: var(--ok); border-radius: 2px; transition: width 320ms var(--ease); }
  .rows { margin-top: var(--gap-title); padding: 4px var(--card-pad); }
  .row { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
  .row + .row { border-top: 0.5px solid var(--line); }
  .row-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--fill-1); color: var(--text-2); }
  .row.answered .row-ico { background: var(--ok-bg); color: var(--ok); }
  .row-main { flex: 1; min-width: 0; }
  .row-main b { display: block; font-weight: 500; }
  .row-main span { display: block; color: var(--text-2); font-size: var(--t-sm); }
  .row-main span.is-default { color: var(--text-3); }
  .row-res { text-align: right; white-space: nowrap; min-width: 8.5em; }
  .row-res b { display: block; font-weight: 600; font-variant-numeric: tabular-nums; }
  .row-res span { display: block; font-size: var(--t-sm); color: var(--text-3); }
  .row-res span.up { color: var(--ok); }
  .row-res span.down { color: var(--warn); }
  .lever-bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--fill-1); overflow: hidden; }
  .lever-bar i { display: block; height: 100%; border-radius: 2px; margin-left: auto; transform-origin: right center; }
  .lever-bar.up i { background: var(--ok); }
  .lever-bar.down i { background: var(--warn); }

  /* 往深处看 */
  .deep { margin-top: 48px; }
  .tabs { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; border: 0; background: none; padding: 8px 14px; border-radius: 10px 10px 0 0; font-size: var(--t-md); color: var(--text-2); border-bottom: 2px solid transparent; transition: color var(--motion) var(--ease), background var(--motion) var(--ease); }
  .tabs button:hover { color: var(--text-1); background: var(--fill-1); }
  .tabs button[aria-selected="true"] { color: var(--accent-deep); font-weight: 600; border-bottom-color: var(--accent); }
  .tab-body { margin-top: -0.5px; border-top-left-radius: 0; padding: 24px; min-height: 280px; }
  .tab-lead { color: var(--text-2); margin-bottom: 8px; max-width: 52em; }

  /* 图按容器的实际宽度画（calc-view.js 的 dims），字号写在 svg 上，这里不再缩放，也不横向滚动 */
  .chart svg { display: block; width: 100%; height: auto; overflow: visible; }
  .chart text { font-size: inherit; fill: var(--text-3); font-family: var(--font-body); }
  .chart .tick-now { fill: var(--accent-deep); font-weight: 700; }
  .chart .axis { stroke: var(--chart-axis); stroke-width: 1; }
  .chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
  .chart .band { fill: var(--accent-lt-2); }
  .chart .area { fill: var(--accent-lt); }
  .chart .median { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
  .chart .mark { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 3; }
  .chart .mark.answer { stroke: var(--accent-deep); stroke-width: 1.5; stroke-dasharray: none; }
  .chart .mark-label { fill: var(--text-2); }
  .chart .mark-label.answer { fill: var(--accent-deep); font-weight: 700; }
  .chart .target { stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 5 4; }
  .chart .cursor { stroke: var(--text-1); stroke-width: 1; pointer-events: none; }
  .chart .cursor[hidden] { display: none; }
  .chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2; pointer-events: none; }
  .chart .dot.ok { stroke: var(--ok); }
  .chart .dot.now { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
  .chart .dot.now.ok { fill: var(--ok); }
  .chart .hit { fill: transparent; cursor: pointer; }
  .chart .hit:hover { fill: var(--fill-1); }
  /* 直方图的柱子不叫 .bar：那是进度条的类名，它的高度会盖掉 SVG 上写的高度 */
  .chart .col { fill: var(--accent); }
  .chart .col.below { fill: var(--accent-lt-2); }
  .readout { margin-top: 10px; font-size: var(--t-sm); color: var(--text-2); min-height: 1.6em; max-width: 60em; }
  .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: var(--t-sm); color: var(--text-2); }
  .legend i { display: inline-block; width: 16px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
  .legend .l-median { height: 2.5px; background: var(--accent); }
  .legend .l-band { background: var(--accent-lt-2); }

  .ledger { margin-top: 12px; max-height: 460px; overflow: auto; border: 0.5px solid var(--line); border-radius: 12px; }
  .ledger table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--t-sm); }
  .ledger th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); text-align: right; font-weight: 500; color: var(--text-2); padding: 10px 14px; border-bottom: 0.5px solid var(--line-strong); white-space: nowrap; }
  .ledger th:first-child, .ledger td.age { text-align: left; }
  .ledger td { padding: 8px 14px; text-align: right; border-top: 0.5px solid var(--line); white-space: nowrap; }
  .ledger tr.retired td { background: var(--surface-2); }
  .ledger tr.turn td { border-top: 2px solid var(--c-retire); }
  .ledger tbody tr:hover td { background: var(--accent-lt); }
  .ledger .pos { color: var(--ok); }
  .ledger .neg { color: var(--warn); }
  .ledger .strong { font-weight: 600; }
  .tag { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--accent-lt); color: var(--accent-deep); font-size: var(--t-xs); line-height: 18px; }

  .how-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .how-body h3 { font-size: var(--t-md); font-weight: 600; }
  .how-body h3.gap { margin-top: 24px; }
  .how-body p, .how-body li { color: var(--text-2); }
  .how-body p { margin-top: 8px; }
  .how-body .chart { margin-top: 8px; }
  .how-body ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; }
  .how-body li + li { margin-top: 4px; }
  .steps { list-style: none; padding: 0; margin-top: 10px; counter-reset: s; }
  .steps li { position: relative; padding-left: 34px; counter-increment: s; }
  .steps li + li { margin-top: 10px; }
  .steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-lt); color: var(--accent-deep); font-size: var(--t-xs); font-weight: 600; display: grid; place-items: center; }
  .settings { list-style: none; padding: 0 !important; }
  .settings li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 0.5px solid var(--line); margin: 0 !important; }
  .lenses { margin-top: 12px; display: grid; gap: 10px; }
  .lens { display: grid; grid-template-columns: minmax(0, 1fr) 120px 3em; align-items: center; gap: 12px; font-size: var(--t-sm); color: var(--text-2); }
  .lens b { text-align: right; color: var(--text-1); font-variant-numeric: tabular-nums; }
  .lens-bar { display: block; height: 8px; border-radius: 4px; background: var(--fill-1); overflow: hidden; }
  .lens-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

  /* 正在算 */
  .sk { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--fill-1) 25%, var(--fill-2) 37%, var(--fill-1) 63%); background-size: 400% 100%; animation: rc-shimmer 1.4s ease infinite; }
  .sk.line { height: 14px; margin-top: 14px; max-width: 30em; }
  .sk.line.short { max-width: 18em; }
  .sk.block { height: 150px; border-radius: 12px; }
  .sk-chart .sk.block { height: 220px; }
  .sk-rows { padding: 6px 0 14px; }

  .foot { margin-top: 48px; font-size: var(--t-sm); color: var(--text-3); }
  .unavailable { padding: 56px 0; max-width: 40em; }
  .unavailable h1 { font-size: var(--t-title); }
  .unavailable p { margin-top: 12px; color: var(--text-2); }

  /* 弹窗 */


  .dlg { margin: auto; border: 0; border-radius: 20px; padding: 0; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow-pop); color: var(--text-1); background: var(--surface); }
  .dlg[open] { animation: rc-pop 200ms var(--ease) both; }
  .dlg::backdrop { background: rgba(30, 26, 16, 0.36); backdrop-filter: blur(2px); animation: rc-fade 200ms var(--ease) both; }
  .dlg form { padding: 28px; }
  .dlg h2 { font-size: var(--t-lead); font-weight: 600; line-height: var(--lh-tight); }
  .dlg .why { margin-top: 8px; color: var(--text-2); }
  .dlg .body { margin-top: 22px; }
  .dlg .nav { position: sticky; bottom: 0; margin: 20px -28px -28px; padding: 16px 28px; background: var(--surface); border-top: 0.5px solid var(--line); flex-wrap: wrap; }
  .dlg .nav .spacer { flex: 1; }
  .dlg .nav .btn.primary { min-width: 96px; }
  .dlg .error { margin-bottom: 0; }

  @media (max-width: 959px) {
    .intro, .ask, .hero, .cols, .how-body { grid-template-columns: minmax(0, 1fr); }
    .intro { gap: 32px; padding-top: 36px; }
    .ask { gap: 28px; padding-top: 28px; }
    .ask-side { position: static; }
    .trio, .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .cols { gap: 40px; }
    .hero { gap: 24px; }
    .kbd-hint { display: none; }
  }
  @media (max-width: 699px) {
    .wrap { padding: 0 16px; }
    .intro h1 { font-size: 28px; }
    .ask h1 { font-size: 24px; }
    .hero { padding: 20px; }
    .hero .answer { font-size: 20px; }
    .hero .answer b { font-size: 38px; margin: 0 4px; }
    .hv-row { grid-template-columns: minmax(0, 1fr) auto; }
    .hv-row .hv-track { grid-column: 1 / -1; order: 3; }
    .goal { padding: 14px; gap: 12px; }
    .goal-go { display: none; }
    .row.lever { flex-wrap: wrap; }
    .row.lever .row-main { flex-basis: 100%; }
    .row-res { text-align: left; flex: 1; }
    .lever-bar i { margin-left: 0; transform-origin: left center; }
    .seg { display: flex; width: 100%; }
    .seg button { flex: 1; padding: 0 6px; font-size: var(--t-sm); }
    .tab-body { padding: 16px; }
    .ledger th, .ledger td { padding: 8px 10px; }
    .how-body { gap: 24px; }
    .dlg form { padding: 20px; }
    .dlg .nav { margin: 16px -20px -20px; padding: 12px 20px; }
    .lens { grid-template-columns: minmax(0, 1fr) 64px 3em; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

  /* ---------- 第四版（2026-11-24）：条件清单、题目旁的可选项、法定退休年龄的标记 ---------- */
  .conds, .levers { margin-top: 44px; }
  /* 条件清单的每一栏是 details：宽的时候一直展开、标题不像按钮；窄的时候可以收起（见文件末尾的容器查询） */
  .conds-col > summary { list-style: none; pointer-events: none; display: flex; align-items: center; min-height: 44px; }
  .conds-col > summary h3 { flex: 1; }
  .conds-col > summary::-webkit-details-marker { display: none; }
  .conds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-section); margin-top: var(--gap-title); align-items: start; }
  .conds-col { padding: 20px var(--card-pad) 8px; }
  .conds-col h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--t-md); font-weight: 600; }
  .conds-lead { margin: 2px 0 8px; font-size: var(--t-sm); color: var(--text-3); }
  .cond { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 0; border-top: 0.5px solid var(--line); }
  .cond-label { grid-column: 1; font-size: var(--t-sm); color: var(--text-2); }
  .cond-value { grid-column: 1; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .cond-value small { display: block; margin-top: 2px; font-size: var(--t-xs); font-weight: 400; color: var(--text-3); }
  .cond-act { grid-column: 2; grid-row: 1 / span 2; }
  .cond.is-default .cond-value { font-weight: 400; color: var(--text-3); }
  .cond.is-result .cond-value { color: var(--accent-deep); font-weight: 700; }
  .cond-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-lt); color: var(--accent-deep); font-size: var(--t-xs); font-weight: 600; }
  .conds.busy .cond.is-result .cond-value { opacity: 0.5; }
  /* 「未填写时按默认值」末尾默认收起的「更多假设」：一行标题加一句「多数人不用改」，展开后是同样的条件行 */
  /* 弹窗里选了某一项才出现的一块（租房提取的金额、补偿金的工龄等），和上面的选项隔开 */
  .gap-top { margin-top: 22px; }
  .gap-top.small { margin-top: 10px; }
  .assume-fold { border-top: 0.5px solid var(--line); }
  .assume-fold > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 12px 0; min-height: 44px; list-style: none; cursor: pointer; }
  .assume-fold > summary::-webkit-details-marker { display: none; }
  .assume-fold > summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 9px; height: 9px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); margin-right: 4px; transition: transform var(--motion) var(--ease); }
  .assume-fold[open] > summary::after { transform: rotate(-135deg); }
  .assume-title { grid-column: 1; font-weight: 500; color: var(--accent-deep); }
  .assume-lead { grid-column: 1; font-size: var(--t-xs); color: var(--text-3); }

  .more-opts { display: grid; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 0.5px dashed var(--line-strong); }
  .more-label { font-size: var(--t-sm); color: var(--text-3); margin-right: 4px; }
  .more-opt { display: inline-flex; align-items: center; gap: 4px; min-height: var(--ctl-compact); padding: 0 12px; border: 0.5px solid var(--line-strong); border-radius: 999px; background: none; font-size: var(--t-sm); color: var(--text-2); cursor: pointer; }
  .more-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .more-now { font-size: var(--t-sm); color: var(--text-3); }
  .more-opt:hover { border-color: var(--accent); color: var(--accent-deep); }
  .more-opt.filled { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
  .more-opt .ico { width: 14px; height: 14px; }
  .more-opt:focus-visible, .slider-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  .slider-wrap { position: relative; max-width: 440px; }
  .slider-wrap.has-mark { padding-bottom: 26px; }
  .slider-mark { position: absolute; top: 46px; transform: translateX(-50%); padding: 2px 8px; border: 0; border-radius: 999px; background: var(--fill-1); font-size: var(--t-xs); color: var(--text-2); white-space: nowrap; cursor: pointer; }
  .slider-mark::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 8px; background: var(--text-3); }
  .slider-mark:hover { background: var(--accent-lt); color: var(--accent-deep); }
  .live.sub { margin-top: 6px; font-size: var(--t-sm); color: var(--text-3); }
  .live:empty { display: none; }
  /* 留好位置的几行：内容出来以后下面的按钮不往下跳 */
  .live.keep:empty { display: block; }
  .live.keep.two-lines { min-height: 3.2em; }
  .lump-head, .lump-row { display: grid; grid-template-columns: 64px 132px minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; align-items: start; }
  .lump-row[hidden] { display: none; }
  .lump-add { margin-top: 4px; }
  .lump-add[hidden] { display: none; }
  .lump-row .lump-no { padding-top: 14px; }
  .lump-head { font-size: var(--t-sm); color: var(--text-3); margin-bottom: 6px; }
  .lump-row { margin-bottom: 10px; }
  .lump-row .field { margin: 0; }
  .lump-no { font-size: var(--t-sm); color: var(--text-2); }
  .picks.one-col { grid-template-columns: 1fr; }
  .trust-lead { margin-top: 8px; color: var(--text-2); max-width: 46em; }
  .live + .field, .hint + .group, .field + .hint { margin-top: 22px; }
  .group + .hint { margin-top: 8px; }

  .pick .tag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--fill-2); font-size: var(--t-xs); font-style: normal; font-weight: 400; color: var(--text-2); }
  .quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 16px; }
  .quad .field + .field { margin-top: 0; }
  .quad[hidden] { display: none; }

  @media (max-width: 959px) {
    .conds-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  }
  @media (max-width: 699px) {
    .quad { grid-template-columns: minmax(0, 1fr); }
  }

  /* ---------- 第五版（2026-11-24）：首屏、两人并排、地区格子、比例条、加宽的弹窗 ---------- */

  /* 第一屏：三个问题是主角，横排三张；下面用三段话说明结果怎么来的 */
  .intro { display: block; padding: 56px 0 72px; }
  .intro .lead { max-width: none; }
  .goals { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-section); margin-top: 24px; }
  .goal { flex-direction: column; align-items: flex-start; gap: 0; padding: 24px; height: 100%; }
  .goal > b { flex: none; margin-top: 16px; font-size: 20px; line-height: var(--lh-tight); }
  .goal-text { margin-top: 8px; color: var(--text-2); font-size: var(--t-md); flex: 1; }
  .goal-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--accent); font-weight: 500; }
  .goal:hover .goal-go { transform: none; }
  .goal-go .ico { width: 16px; height: 16px; transition: transform var(--motion) var(--ease); }
  .goal:hover .goal-go .ico { transform: translateX(3px); }
  .fine { max-width: 60em; }
  .trust { margin-top: 48px; padding-top: 32px; border-top: 0.5px solid var(--line-strong); }
  .trust h2 { font-size: 20px; font-weight: 600; }
  .trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 16px; }
  .trust-grid h3 { font-size: var(--t-md); font-weight: 600; }
  .trust-grid p { margin-top: 6px; color: var(--text-2); }
  .trust .link { margin-top: 20px; font-size: var(--t-md); }
  .dlg .spec dt { font-size: var(--t-md); }
  .dlg .spec dd { font-size: var(--t-md); }

  /* 两个人并排填同样的内容 */
  .duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 22px; align-items: start; }
  .duo.single { grid-template-columns: minmax(0, 1fr); }
  .duo.single .duo-head { display: none; }
  .duo-col[hidden] { display: none; }
  .duo-head { font-size: var(--t-sm); font-weight: 600; color: var(--text-3); letter-spacing: 0.04em; margin-bottom: 10px; }
  .duo .input-wrap { width: 100%; max-width: 250px; }
  .duo .input-wrap.narrow { max-width: 132px; }
  .duo + .field { margin-top: 28px; }
  .field + .duo, .picker + .duo, .picker + .field { margin-top: 22px; }
  .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; align-items: start; }
  .two > * { margin-top: 0 !important; }
  .two.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
  .sub-sec { margin-top: 24px; padding-top: 20px; border-top: 0.5px solid var(--line); }

  /* 地区：点开是排成格子的全部地区 */
  .picker { position: relative; }
  .picker-btn { justify-content: space-between; cursor: pointer; font: inherit; }
  .picker-text { font-size: 18px; font-weight: 600; }
  .picker-text.empty { color: var(--text-3); font-weight: 400; }
  .picker-caret { flex: none; color: var(--text-3); transition: transform var(--motion) var(--ease); }
  .picker.open .picker-caret { transform: rotate(180deg); }
  .picker.open .picker-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lt); }
  .picker-pop { position: absolute; z-index: 6; left: 0; top: 82px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: min(520px, calc(100vw - 48px)); padding: 10px; border-radius: 14px; background: var(--surface); border: 0.5px solid var(--line-strong); box-shadow: var(--shadow-pop); animation: rc-pop 160ms var(--ease) both; }
  .picker-pop[hidden] { display: none; }
  .picker-opt { min-height: 38px; padding: 0 4px; border: 0; border-radius: 9px; background: none; font-size: var(--t-md); white-space: nowrap; }
  .picker-opt:hover { background: var(--fill-1); }
  .picker-opt[aria-selected="true"] { background: var(--accent); color: #fff; font-weight: 500; }
  .picker-opt:focus-visible, .picker-btn:focus-visible, .ratio-handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* 比例条 */
  .custom-box { margin-top: 16px; padding: 20px; border-radius: 14px; background: var(--surface-2); border: 0.5px solid var(--line); }
  .custom-box[hidden] { display: none; }
  .ratio-bar { position: relative; display: flex; height: 28px; border-radius: 8px; background: var(--fill-2); touch-action: none; }
  .ratio-bar > i { height: 100%; min-width: 0; }
  .ratio-bar > i:first-of-type { border-radius: 8px 0 0 8px; }
  .ratio-bar > i:last-of-type { border-radius: 0 8px 8px 0; }
  .ratio-handle { position: absolute; top: -5px; width: 18px; height: 38px; margin-left: -9px; padding: 0; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 1px 4px rgba(40, 32, 16, 0.22); cursor: ew-resize; touch-action: none; }
  .ratio-handle::before { content: ""; position: absolute; left: 50%; top: 11px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--text-mute); }
  .ratio-handle:hover, .ratio-handle.dragging { border-color: var(--accent); }
  .ratio-tip { margin-top: 12px; font-size: var(--t-sm); color: var(--text-3); }
  .ratio-sum { color: var(--danger); margin-left: 4px; }
  .ratio-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 14px; }
  .ratio-num { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ratio-name { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-md); }
  .ratio-name i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
  .ratio-num .input-wrap { width: 96px; height: 40px; }
  .ratio-num .input-wrap input { font-size: 17px; }

  /* 以后的收入：可以拖的折线 */
  .ipath { margin-top: 16px; }
  .ipath-svg { display: block; width: 100%; height: 250px; border-radius: 12px; background: var(--fill-1); touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
  .ipath-grid { stroke: var(--line); stroke-width: 1; }
  .ipath-tick { font-size: 12px; fill: var(--text-3); }
  .ipath-area { fill: var(--accent); opacity: 0.1; }
  .ipath-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
  .ipath-now { fill: var(--accent); }
  .ipath-val { font-size: 12px; font-weight: 600; fill: var(--text-2); pointer-events: none; }
  .ipath-pt { cursor: grab; outline: none; touch-action: none; }
  .ipath-hit { fill: transparent; }
  .ipath-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
  .ipath-pt:hover .ipath-dot, .ipath-pt:focus-visible .ipath-dot, .ipath.dragging .ipath-pt:focus .ipath-dot { fill: var(--accent); }
  .ipath-pt:focus-visible .ipath-hit { stroke: var(--accent); stroke-width: 2; }
  .ipath.dragging .ipath-svg, .ipath.dragging .ipath-pt { cursor: grabbing; }
  .ipath-rows { display: grid; gap: 8px; margin: 14px 0 12px; }
  .ipath-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .ipath-row .input-wrap { flex: 0 1 150px; min-width: 96px; height: 40px; }
  .ipath-row .input-wrap.narrow { flex: 0 0 88px; min-width: 0; }
  .ipath-row .input-wrap input { font-size: 17px; }
  .ipath-row.fixed { min-height: 40px; color: var(--text-2); font-size: var(--t-md); }
  .ipath-at { width: 96px; }
  .ipath-note { font-size: var(--t-sm); color: var(--text-3); }

  /* 养老金弹窗：先看到估出来的数 */
  .est-box { display: grid; gap: 2px; padding: 16px 20px; margin-bottom: 18px; border-radius: 14px; background: var(--accent-lt); }
  .est-box.off { background: var(--fill-1); opacity: 0.7; }
  .est-label { font-size: var(--t-sm); color: var(--text-2); }
  .est-value { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
  .est-box.off .est-value { color: var(--text-2); }
  .est-note { font-size: var(--t-sm); color: var(--text-2); }
  .fold { margin-top: 20px; border: 0.5px solid var(--line-strong); border-radius: 12px; padding: 0 16px; }
  .fold summary { padding: 12px 0; cursor: pointer; font-weight: 500; color: var(--accent-deep); }
  .fold[open] { padding-bottom: 16px; }
  .fold + .group { margin-top: 22px; }
  [data-est] + [data-own], [data-own] + .field, [data-est] + .field { margin-top: 22px; }

  .dlg.wide { width: min(760px, calc(100vw - 32px)); }

  @media (max-width: 959px) {
    .goals, .trust-grid { grid-template-columns: minmax(0, 1fr); }
    .trust-grid { gap: 20px; }
    .goal { padding: 18px; }
    .goal > b { margin-top: 12px; }
  }
  @media (max-width: 699px) {
    .duo, .two, .two.three, .ratio-nums { grid-template-columns: minmax(0, 1fr); }
    .picker-pop { grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
    .goal-go { display: inline-flex; }
  }

  .live + [data-spret] { margin-top: 22px; }
  .duo .echo { flex-basis: 100%; }
}

/* 产品里内容区比窗口窄（旁边有导航）：按容器自己的宽度再排一次，不只看窗口宽度 */
.rc { container: rc / inline-size; }
@container rc (max-width: 920px) {
  .rc .conds-grid, .rc .trust-grid, .rc .goals { grid-template-columns: minmax(0, 1fr); }
  .rc .conds-grid { gap: 12px; }
  .rc .how-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@container rc (max-width: 780px) {
  .rc .hero, .rc .ask { grid-template-columns: minmax(0, 1fr); }
  .rc .hero { gap: 24px; }
  .rc .ask { gap: 28px; }
  .rc .ask-side { position: static; }
}
@container rc (max-width: 600px) {
  .rc .conds-col > summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
  .rc .conds-col > summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); margin-right: 4px; transition: transform var(--motion) var(--ease); }
  .rc .conds-col[open] > summary::after { transform: rotate(-135deg); }
  .rc .conds-col > summary h3 { margin: 0; }
  /* 手机：上一步、下一步固定在屏幕底部，长的题目不用滚到底才能继续 */
  .rc .ask .nav { position: sticky; bottom: var(--rc-bottom, 0px); z-index: 2; margin: 20px 0 0; padding: 12px 0 calc(12px + var(--rc-safe, env(safe-area-inset-bottom, 0px))); background: var(--bg-page, var(--surface)); border-top: 0.5px solid var(--line); }
  .rc .ask .nav .btn { flex: 1; min-height: 48px; }
  .rc .ask .nav .btn.primary { flex: 2; }
  .rc .ask .nav .kbd-hint { display: none; }
  /* 选项卡片：名称一行，说明在下面，不挤成两栏 */
  .rc .pick { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; }
  .rc .more-opt { min-height: 40px; }
  /* 手机：第一屏三个问题排成紧凑的三行，一屏之内都看得到 */
  .rc .intro { padding: 28px 0 48px; }
  .rc .intro h1 { font-size: 28px; }
  .rc .goals { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .rc .goal { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; padding: 14px; height: auto; }
  .rc .goal .goal-ico { grid-row: 1 / span 2; }
  .rc .goal .goal-text { margin-top: 0; font-size: var(--t-sm); }
  .rc .goal .goal-go { display: none; }
  .rc .lump-head { display: none; }
  .rc .lump-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 12px; border-bottom: 0.5px solid var(--line); }
  .rc .lump-row .lump-no { padding-top: 0; }
  .rc .lump-row .input-wrap { width: 100%; }
  .rc .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* 产品里打开「隐藏金额」：这一页几乎每一处都是金额，整块收起，只留一句说明 */
.rc .rc-masked { display: none; margin-top: 24px; color: var(--text-2); }
html[data-amounts-hidden] .rc .rc-masked { display: block; }
html[data-amounts-hidden] .rc > [data-rc-app] { display: none; }

/* 点击区：看上去小的按钮和链接，用伪元素把可点的高度补到 --hit（和产品里 .v2-btn 的做法一样） */
.rc .btn.small, .rc .seg button, .rc .tabs button, .rc .link, .rc .chip, .rc .more-opt, .rc .picker-opt, .rc .slider-mark { position: relative; }
.rc .slider-mark { position: absolute; }
.rc .btn.small::after, .rc .seg button::after, .rc .tabs button::after, .rc .link::after, .rc .chip::after, .rc .more-opt::after, .rc .picker-opt::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, var(--hit)); transform: translateY(-50%);
}

/* 手机上四个页签排得下 */
@media (max-width: 699px) {
  .rc .tabs button { padding: 8px 9px; }
}
.rc [data-rc-app] { scroll-margin-top: 72px; }

/* 产品里手机底部有导航栏：固定在底部的「上一步、下一步」停在导航栏上面 */
.rc.v2-retire { --rc-bottom: calc(var(--tabbar-h, 0px) + env(safe-area-inset-bottom, 0px)); --rc-safe: 0px; }

/* ---------- 手机上每类元素的形态（2026-11-25，按 docs/handoffs/2026-11-04-v2-dev-guide.md 第 6.1 节） ---------- */

/* 储蓄可以按金额或按比例填：输入框旁边的切换（手机的数字键盘打不出「%」） */
.rc .unit-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill-2); }
.rc .unit-opt { position: relative; border: 0; background: none; min-height: 34px; padding: 0 14px; border-radius: 9px; font-size: var(--t-md); color: var(--text-2); }
.rc .unit-opt[aria-pressed="true"] { background: var(--surface); color: var(--text-1); font-weight: 600; box-shadow: var(--shadow-thumb); }
/* 一次性大额收支的「类型」：两个选项的分段控件，和上面的切换同一种样子，高度和旁边的输入框对齐 */
.rc .lump-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--fill-2); }
.rc .lump-kind { position: relative; flex: 1; border: 0; background: none; min-height: 42px; padding: 0 10px; border-radius: 9px; font-size: var(--t-md); color: var(--text-2); }
.rc .lump-kind[aria-pressed="true"] { background: var(--surface); color: var(--text-1); font-weight: 600; box-shadow: var(--shadow-thumb); }
.rc .lump-kind:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 一次性大额收支：宽的时候有表头，每格的标签只留给读屏软件 */
.rc .lump-row .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 手指操作：滑杆、滑杆上的「法定」标记、比例条的分界点，点击区补足 44px */
.rc .slider-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, var(--hit)); transform: translateY(-50%); }
.rc .ratio-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, var(--hit)); height: max(100%, var(--hit)); transform: translate(-50%, -50%); }
@media (pointer: coarse), (max-width: 699px) {
  .rc .slider { height: 44px; margin-top: 8px; }
  .rc .slider-mark { top: 52px; }
}
/* 输入框和下拉框撑满外框的高度：点外框的任何地方都落在框里 */
.rc .input-wrap > input, .rc .input-wrap > select { align-self: stretch; }
.rc .field-row:has(.unit-seg) .input-wrap { flex: 1 1 150px; width: auto; max-width: 250px; }
.rc .unit-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc .unit-opt::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, var(--hit)); transform: translateY(-50%); }

/* 弹窗的标题行：右上角的关闭 */
.rc .dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rc .dlg-head h2 { flex: 1; min-width: 0; }
.rc .dlg-x { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -2px -6px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--fill-1); color: var(--text-2); }
.rc .dlg-x:hover { background: var(--fill-2); color: var(--text-1); }
.rc .dlg-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc .dlg-x::after { content: ""; position: absolute; inset: calc((32px - max(var(--hit), 32px)) / 2); }
.rc .dlg .nav.guard { align-items: center; }
.rc .dlg .nav[hidden] { display: none; }
.rc .guard-text { font-weight: 500; }
.rc .btn.danger { color: var(--danger); }
.rc .dlg.confirm { width: min(420px, calc(100vw - 32px)); }

/* 选择面板的每个地区不小于 44px 高（手指点得准） */
@media (pointer: coarse), (max-width: 699px) {
  .rc .picker-opt { min-height: 44px; }
}
/* 手机上四列放不下「深圳（广东）」：允许折成两行 */
@media (max-width: 699px) {
  .rc .picker-opt { white-space: normal; line-height: 1.2; }
}

/* 逐年明细：宽的时候是表格，窄的时候每年两行（见 calc-view.js 的 ledgerTable） */
.rc .ledger-list { display: none; }
.rc .ledger-list ol { list-style: none; margin: 0; padding: 0; }
.rc .ly-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--surface-2); border-bottom: 0.5px solid var(--line-strong); font-size: var(--t-xs); color: var(--text-2); }
.rc .ledger-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 10px 12px; border-top: 0.5px solid var(--line); font-variant-numeric: tabular-nums; }
.rc .ledger-list li:first-child { border-top: 0; }
.rc .ledger-list li.retired { background: var(--surface-2); }
.rc .ledger-list li.turn { border-top: 2px solid var(--c-retire); }
.rc .ly-age { font-weight: 500; }
.rc .ly-wealth { font-weight: 600; text-align: right; }
.rc .ly-flow { font-size: var(--t-xs); color: var(--text-2); }
.rc .ly-low { font-size: var(--t-xs); color: var(--text-3); text-align: right; white-space: nowrap; }
.rc .ledger-list .pos { color: var(--ok); }
.rc .ledger-list .neg { color: var(--warn); }

/* 平板和手机：三个关键数字合成一张卡里的三行（名称在左、数字在右、说明在下），不拆成三张通栏卡 */
@container rc (max-width: 780px) {
  .rc .tiles { display: block; gap: 0; padding: 0 var(--card-pad); background: var(--surface); border-radius: var(--r-card); border: 0.5px solid var(--line); }
  .rc .tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 14px 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .rc .tile + .tile { border-top: 0.5px solid var(--line); }
  .rc .tile-label { font-size: var(--t-md); font-weight: 500; color: var(--text-1); }
  .rc .tile-value { margin-top: 0; font-size: 22px; text-align: right; white-space: nowrap; }
  .rc .tile p { grid-column: 1 / -1; margin-top: 4px; }
}

/* 手机（容器 600px 以下）：屏幕本身就是容器 */
@container rc (max-width: 600px) {
  /* 结果：去掉包着结论的卡片；数字在最上面，解释它的句子用正文字号放在下面 */
  .rc .hero { padding: 0; margin-top: 20px; background: none; border: 0; border-radius: 0; box-shadow: none; gap: 20px; }
  .rc .hero-text { display: flex; flex-direction: column; }
  .rc .hero .answer { order: -1; margin-top: 0; }
  .rc .hero .kicker { margin-top: 10px; font-size: var(--t-md); color: var(--text-2); }
  .rc .hero .sub { margin-top: 4px; font-size: var(--t-md); }
  .rc .hero .note { margin-top: 8px; }
  .rc .hero.loading .kicker { order: -2; margin-top: 0; }
  .rc .tiles { margin-top: 24px; }
  /* 详细分析的图直接放在页面上，图能用满屏宽 */
  .rc .tab-body { padding: 16px 0 0; background: none; border: 0; border-radius: 0; box-shadow: none; min-height: 0; }
  /* 逐年明细换成每年两行 */
  .rc .ledger table { display: none; }
  .rc .ledger-list { display: block; }
  /* 提问页：右边「你的情况」排到下面，不再包一张卡，用细线和上面分开 */
  .rc .ask-side { padding: 20px 0 0; background: none; border: 0; border-top: 0.5px solid var(--line-strong); border-radius: 0; box-shadow: none; }
  .rc .ask h1 { margin-top: 24px; }
  .rc .ask .why { margin-top: 6px; font-size: var(--t-md); }
  .rc .intro .lead { font-size: var(--t-md); }
  /* 第一屏的三个问题：一张卡里的三行 */
  .rc .goals { gap: 0; padding: 0 14px; background: var(--surface); border-radius: var(--r-card); border: 0.5px solid var(--line); }
  .rc .goal { padding: 14px 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .rc .goal + .goal { border-top: 0.5px solid var(--line); }
  .rc .goal:hover { box-shadow: none; transform: none; }
  /* 条件清单：点整行打开修改，行尾是「›」，不再每行一个「修改」按钮 */
  .rc .cond { position: relative; }
  /* 按钮的文字（「修改」「填写」）留给读屏软件，看上去只有行尾的「›」 */
  .rc .cond .cond-act .btn { position: static; display: block; min-height: 0; width: 20px; height: 24px; padding: 0; border: 0; background: none; overflow: hidden; white-space: nowrap; color: transparent; }
  .rc .cond .cond-act .btn::before { content: "›"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: var(--text-3); }
  .rc .cond .cond-act .btn::after { inset: 0; top: 0; height: auto; transform: none; }
  .rc .cond:has(.cond-act .btn):active { background: var(--fill-1); }
  /* 一次性大额收支：手机上没有表头，每格的标签显示在框上面 */
  .rc .lump-row .field-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: var(--t-sm); font-weight: 400; color: var(--text-2); margin-bottom: 4px; }
  .rc .lump-row .lump-no { font-weight: 600; color: var(--text-1); }
}

/* 手机上弹出的表单：从底部弹出的面板，主按钮在面板底部；简短的确认仍居中 */
@media (max-width: 699px) {
  .rc .dlg:not(.confirm) {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh;
    border-radius: 20px 20px 0 0;
  }
  .rc .dlg:not(.confirm)[open] { animation: rc-sheet-up 200ms var(--ease) both; }
  .rc .dlg:not(.confirm) .nav { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .rc .dlg:not(.confirm) .nav .btn { flex: 1; min-height: 48px; }
  .rc .dlg:not(.confirm) .nav .spacer { display: none; }
  /* 面板只留一种关闭方式：右上角的关闭。底部不再重复一个「取消」 */
  .rc .dlg:not(.confirm) .nav [data-cancel] { display: none; }
  .rc .dlg .nav.guard { flex-wrap: wrap; }
  .rc .dlg .nav.guard .guard-text { flex-basis: 100%; }
}
@keyframes rc-sheet-up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rc .dlg[open] { animation: none !important; } }

/* ---------- 两人一起算、各个可选项在手机上的形态（2026-11-25 第二轮） ---------- */

/* 女性多出来的「所在岗位」一组，和上面的性别选项分开，不贴在一起 */
.rc [data-track] > .group { margin-top: 16px; }
/* 一行说明下面紧接着一组选项（收入变化弹窗里的「储蓄怎么变」） */
.rc .live + .group { margin-top: 22px; }
/* 比例条下面接一个输入框（「现在的持仓」弹窗里的每年买入额） */
.rc .body > div + .field { margin-top: 22px; }
/* 只对鼠标说的话：触屏上不显示 */
@media (pointer: coarse) { .rc .mouse-only { display: none; } }

@container rc (max-width: 600px) {
  /* 两人一起算：手机上两个人上下排，「你」「配偶」是这一段的小标题，比下面「年龄」「性别」这些字段名醒目，配偶一段用细线和上面分开 */
  .rc .duo { gap: 0; }
  .rc .duo-head, .rc .sub-sec > .duo-head { font-size: var(--t-lg); font-weight: 600; color: var(--text-1); letter-spacing: 0; margin-bottom: 14px; }
  .rc .duo-col + .duo-col { margin-top: 24px; padding-top: 20px; border-top: 0.5px solid var(--line-strong); }

  /* 几个并列的选项（支出、资产配置、调整到的配置、行情假设）：合成一张内嵌分组列表，行间细线，选中的一行用蓝底，不用描边 */
  .rc .picks { gap: 0; background: var(--surface); border: 0.5px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; }
  .rc .pick { min-height: 52px; padding: 12px 16px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .rc .pick + .pick { border-top: 0.5px solid var(--line); }
  .rc .pick[aria-pressed="true"] { background: var(--accent-lt); border-color: var(--line); box-shadow: none; }
  .rc .pick[aria-pressed="true"] > span { color: var(--accent-deep); font-weight: 600; }
  .rc .pick:focus-visible { outline-offset: -2px; }
}

/* ---------- 弹出的面板（2026-11-26）：宽度按内容定，电脑上字段多的分两栏，只有中间一段滚动 ---------- */

/* 标题和底部按钮固定，中间的内容滚动：滚动条落在中间，不再切掉面板右边的两个圆角 */
.rc .dlg { overflow: hidden; }
.rc .dlg[open] { display: flex; flex-direction: column; }
.rc .dlg .dlg-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: 0; }
.rc .dlg .dlg-top { flex: none; padding: 28px 32px 0; }
.rc .dlg .dlg-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 32px 8px; }
.rc .dlg .dlg-scroll > .body { margin-top: 0; }
.rc .dlg .nav { position: static; flex: none; margin: 0; padding: 16px 32px; }
.rc .dlg.confirm .dlg-top { padding-bottom: 8px; }
.rc .dlg .dlg-scroll > .spec { margin-top: 0; }
.rc .dlg.size-sm { width: min(520px, calc(100vw - 32px)); }
.rc .dlg.size-md { width: min(720px, calc(100vw - 48px)); }
.rc .dlg.size-lg { width: min(1040px, calc(100vw - 64px)); }
.rc .dlg .why { max-width: 60em; }

/* 两栏：左边是主要的输入（或结果），右边是和它相关的另一组；窄的时候上下排 */
.rc .dcols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.rc .dcol > :first-child { margin-top: 0; }
.rc .col-title { font-size: var(--t-md); font-weight: 600; margin-bottom: 10px; }
.rc .col-title + .hint { margin-top: -4px; margin-bottom: 16px; }
@media (min-width: 900px) {
  .rc .dlg.size-lg .dcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .rc .dlg.size-lg .dcols.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .rc .dlg.size-lg .dcol:first-child { padding-right: 36px; }
  .rc .dlg.size-lg .dcol + .dcol { padding-left: 36px; border-left: 0.5px solid var(--line); }
  .rc .dlg.size-lg .dcol[hidden] + .dcol, .rc .dlg.size-lg .dcol:has(+ .dcol[hidden]) { border-left: 0; }
}
.rc .dcol[hidden] { display: none; }
.rc .dcol .two { gap: 20px 24px; }

/* 几个并列的选项排成卡片：名称一行，说明在下面；同一行的卡片一样高，名称和说明各自对齐 */
.rc .picks.cards { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.rc .picks.cards.c2 { --cols: 2; }
.rc .picks.cards.c3 { --cols: 3; }
.rc .picks.cards.c4 { --cols: 4; }
.rc .picks.cards .pick { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 14px 16px; height: 100%; }
.rc .picks.cards .pick > span { font-weight: 600; line-height: 1.4; }
.rc .picks.cards .pick small { line-height: 1.6; font-variant-numeric: normal; }
@media (max-width: 899px) {
  .rc .picks.cards.c3, .rc .picks.cards.c4 { --cols: 2; }
}
@container rc (max-width: 600px) {
  .rc .picks.cards { --cols: 1 !important; }
  .rc .picks.cards .pick { height: auto; }
}

/* 以后收入的走势：每个选项带一张小图，一眼看出是哪种 */
.rc .shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.rc .shape { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px 8px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--t-sm); line-height: 1.35; color: var(--text-2); text-align: center; transition: border-color var(--motion) var(--ease), background var(--motion) var(--ease); }
.rc .shape:hover { border-color: var(--accent); }
.rc .shape[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-lt); color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent); font-weight: 500; }
.rc .shape:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rc .shape-ico { display: block; width: 48px; height: 28px; }
.rc .shape-ico .shape-base { stroke: var(--line-strong); stroke-width: 1; }
.rc .shape-ico .shape-line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.rc .step-no { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: var(--accent-lt); color: var(--accent-deep); font-size: var(--t-xs); font-weight: 600; vertical-align: 1px; }
.rc .dcol .ipath { margin-top: 8px; }

/* 医保：按你的情况的一句话，和测算用的规则 */
.rc .est-text { font-size: var(--t-md); color: var(--text-1); line-height: 1.6; }
.rc .rules { margin: 0; padding-left: 1.2em; list-style: disc; color: var(--text-2); font-size: var(--t-sm); }
.rc .rules li + li { margin-top: 8px; }

/* 社保缴纳地：深圳和广东框在一起，深圳是广东下面的一项 */
.rc .picker-group { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.rc .picker-group .picker-opt { border-radius: 9px; }
.rc .picker-sub { color: var(--text-2); font-size: var(--t-sm); }
.rc .picker-sub::before { content: "›"; margin-right: 3px; color: var(--text-3); }
.rc .picker-sub[aria-selected="true"] { color: #fff; }
.rc .picker-sub[aria-selected="true"]::before { color: inherit; }

/* 可选项：小标题只写「可选」；填过的一项可以清除 */
.rc .more-label { font-weight: 600; color: var(--text-2); }
.rc .more-row.is-filled .more-now { color: var(--text-2); }
.rc .more-clear { position: relative; flex: none; border: 0; background: none; padding: 0 2px; font-size: var(--t-sm); color: var(--accent); cursor: pointer; }
.rc .more-clear:hover { text-decoration: underline; }
.rc .more-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rc .more-clear::after { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: max(100%, var(--hit)); transform: translateY(-50%); }

/* 收入那一题里的养老金：从几岁开始领（女性在这里选岗位），和按收入估算的金额 */
.rc .pen-sec .claim + .claim { margin-top: 18px; }
.rc .claim-who { font-weight: 600; margin-bottom: 8px; }
.rc .claim-line { margin-top: 0; color: var(--text-2); max-width: 40em; }
.rc .claim .group + .claim-line { margin-top: 12px; }
.rc .claim-line b { color: var(--text-1); font-weight: 600; }
.rc .pen-sec [data-pen] { margin-top: 12px; }

@media (max-width: 699px) {
  .rc .dlg .dlg-top { padding: 20px 20px 0; }
  .rc .dlg .dlg-scroll { padding: 18px 20px 8px; }
  .rc .dlg:not(.confirm) .nav { padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .rc .dlg.confirm .nav { padding: 12px 20px 16px; }
}

/* 以后收入的变化：第一步的几种走势排成一行；第二步图在左，转折点的数字和说明在右 */
.rc .ipath.side-by-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.rc .ipath.side-by-side .ipath-rows { margin-top: 14px; }
.rc .ipath-note-block { margin: 18px 0 4px; }
.rc .ipath-note-block .live:first-child { margin-top: 0; }
.rc .picker-group { background: var(--fill-1); }
@media (min-width: 900px) {
  .rc .dlg.size-lg .shapes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rc .dlg.size-lg .shape { flex-direction: row; justify-content: center; gap: 10px; padding: 8px 10px; text-align: left; }
  .rc .dlg.size-lg .shape-ico { width: 40px; height: 24px; }
  .rc .dlg.size-lg .ipath.side-by-side { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .rc .dlg.size-lg .ipath.side-by-side .ipath-side { padding-left: 32px; border-left: 0.5px solid var(--line); }
  .rc .dlg.size-lg .ipath.side-by-side .ipath-rows { margin-top: 0; }
}
.rc .stack > * + * { margin-top: 20px !important; }
.rc .def-tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: var(--fill-2); color: var(--text-2); font-size: var(--t-xs); font-style: normal; font-weight: 400; line-height: 18px; vertical-align: 1px; }

/* ---------- 结果页（2026-11-26）：结论、凭什么信（图）、改什么会变、用了哪些条件、明细和方法 ---------- */
/*
 * 颜色：本金 = 储蓄的青色，投资收益 = 浅蓝（「我的组合」那条线的颜色），养老金 = 橙，从资产取出 = 紫，
 * 工资支付的支出 = 灰；分位线是灰色虚线。都取 tokens 里已有的颜色，含义和提问页一致。
 */
.rc { --c-draw: var(--chart-4); --rc-pin-top: var(--p-nav-h, 0px); }
@media (max-width: 1023px) { .rc.v2-retire { --rc-pin-top: calc(var(--topbar-h, 44px) + env(safe-area-inset-top, 0px)); } }
@media (min-width: 1024px) { .rc.v2-retire { --rc-pin-top: 0px; } }

/* 重算：同一个节奏（0.4 到 0.9 秒）。变淡，上面一行写正在算，算完写变了多少；不重放出场动画，不快速闪动 */
.rc .busy { opacity: 0.55; transition: opacity 400ms var(--ease); }
.rc .result.settled .grow, .rc .result.settled .enter { animation: none; }
.rc .sk { animation-duration: 2.8s; }
@keyframes rc-breathe { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.rc .busy-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; animation: rc-breathe 1.8s ease-in-out infinite; }
.rc .res-status { margin-top: 12px; font-size: var(--t-sm); color: var(--accent-deep); }

/* 第一次出结果：右边的淡色走势随左边的步骤一段一段显出来 */
.rc .stage-vis { position: relative; height: 160px; overflow: hidden; border-radius: 12px; }
.rc .stage-vis svg { display: block; width: 100%; height: 100%; }
.rc .stage-band { fill: var(--accent-lt); }
.rc .stage-line { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0.45; }
.rc .stage-mask { position: absolute; top: 0; right: 0; bottom: 0; background: var(--surface); transition: left 700ms var(--ease); }

/* 结论：文字在左、示意在右；下面一句判定和三个关键数 */
.rc .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.rc .verdict-line { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-item); background: var(--accent-lt); color: var(--accent-deep); font-size: var(--t-md); line-height: 1.6; max-width: 46em; }
.rc .verdict-line.pending { background: var(--fill-1); color: var(--text-3); }
.rc .facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 0.5px solid var(--line); }
.rc .fact-cell { display: grid; align-content: start; gap: 2px; min-width: 0; }
.rc .fact-label { font-size: var(--t-sm); color: var(--text-2); }
.rc .fact-value { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.rc .fact-value.ok { color: var(--ok); }
.rc .fact-value.short { color: var(--warn); }
.rc .fact-note { font-size: var(--t-xs); color: var(--text-3); }
.rc .hero .note { margin-top: 14px; }

/* 图在主栏，调整方案在侧栏（跟着滚动吸附）；放不下两栏时排成一栏，调整方案在第一张图后面 */
.rc .res-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap-section); margin-top: var(--gap-section); }
@container rc (min-width: 980px) {
  .rc .res-body { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .rc .res-body > .fig { grid-column: 1; }
  .rc .res-body > .res-side { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--rc-pin-top, 0px) + 56px); align-self: start; }
}
.rc .fig { padding: 24px; min-width: 0; }
.rc .fig-title { font-size: var(--t-section); font-weight: 600; }
.rc .fig-lead { margin-top: 4px; color: var(--text-2); max-width: 52em; }
.rc .fig .chart, .rc .fig .sk-chart { margin-top: 14px; }
.rc .fig.flat { padding: 0; }
.rc .levers { margin-top: 0; padding: 20px; }
.rc .levers .sec-title { font-size: var(--t-section); }
.rc .lever-lead { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-item); background: var(--fill-1); font-size: var(--t-sm); color: var(--text-1); }
.rc .lever-rows { margin-top: 4px; }
.rc .res-side .row.lever { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; padding: 14px 0; }
.rc .res-side .row.lever .row-main { grid-column: 1 / -1; }
.rc .res-side .row.lever .row-res { text-align: left; min-width: 0; }
.rc .res-side .lever-bar i { margin-left: 0; transform-origin: left center; }
.rc .res-side .row.lever .btn { align-self: center; }
.rc .conds { margin-top: 44px; }

/* 最后：可以展开查阅的几块 */
.rc .ref { margin-top: 44px; display: grid; gap: 12px; scroll-margin-top: 72px; }
.rc .ref-fold { padding: 0 var(--card-pad); }
.rc .ref-fold > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 16px 0; min-height: 44px; list-style: none; cursor: pointer; }
.rc .ref-fold > summary::-webkit-details-marker { display: none; }
.rc .ref-fold > summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 9px; height: 9px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); margin-right: 4px; transition: transform var(--motion) var(--ease); }
.rc .ref-fold[open] > summary::after { transform: rotate(-135deg); }
.rc .ref-title { grid-column: 1; font-size: var(--t-md); font-weight: 600; }
.rc .ref-lead { grid-column: 1; font-size: var(--t-sm); color: var(--text-3); }
.rc .ref-body { padding: 4px 0 20px; }

/* 顶部吸附的窄栏：结论滚出屏幕以后出现 */
.rc .pin-wrap { position: sticky; top: var(--rc-pin-top, 0px); z-index: 4; height: 0; }
.rc .pin { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 0.5px solid var(--line-strong); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 4px 16px rgba(40, 32, 16, 0.08); font-size: var(--t-sm); color: var(--text-2); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 300ms var(--ease), transform 300ms var(--ease); }
.rc .pin b { color: var(--text-1); font-size: var(--t-md); }
.rc .pin.show { opacity: 1; transform: none; }

/* 图的颜色 */
.rc .chart .a-inv { fill: var(--c-save); opacity: 0.3; }
.rc .chart .a-gain { fill: var(--accent); opacity: 0.14; }
.rc .chart .q-line { fill: none; stroke: var(--data-2); stroke-width: 1.25; stroke-dasharray: 4 3; }
.rc .chart .median { stroke-width: 2; }
.rc .chart .f-inc { fill: var(--data-2); opacity: 0.55; }
.rc .chart .f-pen { fill: var(--c-pension); }
.rc .chart .f-draw { fill: var(--c-draw); opacity: 0.8; }
.rc .chart .f-save { fill: var(--c-save); }
.rc .chart .clip-tick { stroke: var(--text-1); stroke-width: 1.5; }
.rc .chart .spag { fill: none; stroke: var(--data-2); stroke-width: 1; opacity: 0.4; }
.rc .legend .l-inv { background: var(--c-save); opacity: 0.45; }
.rc .legend .l-gain { background: var(--accent); opacity: 0.22; }
.rc .legend .l-q { height: 0; border-top: 1.25px dashed var(--data-2); }
.rc .legend .l-f-inc { background: var(--data-2); opacity: 0.6; }
.rc .legend .l-f-pen { background: var(--c-pension); }
.rc .legend .l-f-draw { background: var(--c-draw); opacity: 0.85; }
.rc .legend .l-f-save { background: var(--c-save); }
.rc .legend .l-spag { height: 0; border-top: 1px solid var(--data-2); }
.rc .legend-note { color: var(--text-3); }

@container rc (max-width: 780px) {
  .rc .hero { grid-template-columns: minmax(0, 1fr); }
}
@container rc (max-width: 600px) {
  /* 手机：三个关键数是一张卡里的三行（名称在左、数在右、说明在下），图直接铺在页面上 */
  .rc .facts-row { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; border: 0.5px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
  .rc .fact-cell { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 12px 0; }
  .rc .fact-cell + .fact-cell { border-top: 0.5px solid var(--line); }
  .rc .fact-label { font-size: var(--t-md); font-weight: 500; color: var(--text-1); }
  .rc .fact-value { grid-column: 2; grid-row: 1; font-size: 20px; text-align: right; white-space: nowrap; }
  .rc .fact-note { grid-column: 1 / -1; }
  .rc .fig { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .rc .ref-fold { padding: 0 16px; }
}
.rc .stress-line { margin-top: 12px; font-size: var(--t-sm); color: var(--text-2); max-width: 52em; }
.rc .stress-line.pending { color: var(--text-3); }
.rc .stress-line .link { margin-left: 8px; }

/* ---------- 提问时的「你的情况」（2026-11-26）：最多三块，同一条年龄轴；手机上在题目上方收成一行摘要 ---------- */
@container rc (min-width: 781px) {
  .rc .ask > form { grid-column: 1; grid-row: 1; }
  .rc .ask > .ask-side { grid-column: 2; grid-row: 1; }
  .rc .side-fold > summary { display: none; }
}
.rc .ask-side[hidden] { display: none; }
.rc .side-fold > summary { list-style: none; }
.rc .side-fold > summary::-webkit-details-marker { display: none; }
.rc .side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rc .side-head h3 { margin: 0; font-size: var(--t-md); font-weight: 600; }
.rc .side-block .side-lead { margin-top: 0; font-size: var(--t-sm); color: var(--text-2); }
.rc .side-chart { margin-top: 8px; min-height: 120px; }
.rc .side-chart .legend { font-size: var(--t-xs); }
.rc .side-chart .sk-chart .sk.block { height: 160px; }
.rc .side-changed ul { list-style: none; margin: 8px 0 0; padding: 0; }
.rc .side-changed li + li { border-top: 0.5px solid var(--line); }
.rc .side-item { display: grid; width: 100%; gap: 2px; padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.rc .side-item b { font-size: var(--t-sm); font-weight: 500; color: var(--accent-deep); }
.rc .side-item span { font-size: var(--t-xs); color: var(--text-2); }
.rc .side-item:hover b { text-decoration: underline; }
.rc .side-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rc .side-changed h3 { font-size: var(--t-md); font-weight: 600; }
.rc .ask-side .tl { padding-top: 40px; padding-bottom: 54px; }
@container rc (max-width: 780px) {
  /* 手机和窄的容器：一行摘要，点开是同样的内容 */
  .rc .ask { gap: 16px; }
  .rc .ask-side { padding: 0 16px; background: var(--surface); border: 0.5px solid var(--line); border-radius: var(--r-card); box-shadow: none; margin-top: 16px; }
  .rc .side-fold > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 48px; padding: 10px 0; cursor: pointer; }
  .rc .side-fold > summary::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 8px; height: 8px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); margin-right: 4px; transition: transform var(--motion) var(--ease); }
  .rc .side-fold[open] > summary::after { transform: rotate(-135deg); }
  .rc .side-sum-title { font-size: var(--t-sm); font-weight: 600; color: var(--text-1); }
  .rc .side-brief { grid-column: 1; font-size: var(--t-sm); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rc .side-fold[open] .side-brief { white-space: normal; }
  .rc .side-body > h2 { display: none; }
  .rc .side-body { padding-bottom: 16px; }
  .rc .side-body > .side-block:first-of-type { margin-top: 4px; padding-top: 12px; border-top: 0.5px solid var(--line); }
}

/* ---------- 第一屏（2026-11-26）：三个问题，一个例子（和结果页同样的图），我们怎么计算（图跟着字走） ---------- */
.rc .intro-sec { margin-top: 56px; padding-top: 32px; border-top: 0.5px solid var(--line-strong); }
.rc .intro-sec h2 { font-size: 22px; font-weight: 600; }
.rc .intro-lead { margin-top: 8px; color: var(--text-2); max-width: 52em; }
.rc .demo-head { margin-top: 18px; }
.rc .demo-answer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rc .demo-answer span { color: var(--text-2); }
.rc .demo-answer b { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.rc .demo-answer small { font-size: var(--t-sm); color: var(--text-3); }
.rc .demo-answer .sk.line { width: 12em; margin-top: 0; }
.rc .intro-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-section); margin-top: 16px; }
.rc .intro-fig { margin: 0; padding: 20px; min-width: 0; }
.rc .intro-fig figcaption, .rc .lens-mini figcaption { display: grid; gap: 4px; }
.rc .intro-fig figcaption b, .rc .lens-mini figcaption b { font-size: var(--t-md); font-weight: 600; }
.rc .intro-fig figcaption span, .rc .lens-mini figcaption span { font-size: var(--t-sm); color: var(--text-2); }
.rc .intro-fig .chart, .rc .intro-fig .sk-chart { margin-top: 12px; }
.rc .intro .readout { display: none; }
.rc .how-steps { display: grid; gap: 36px; margin-top: 24px; }
.rc .how-step h3 { font-size: var(--t-lg); font-weight: 600; }
.rc .how-step > p { margin-top: 6px; color: var(--text-2); max-width: 52em; }
.rc .how-step .chart, .rc .how-step .sk-chart, .rc .how-step .net-bar { margin-top: 14px; }
.rc .net-bar { max-width: 720px; }
.rc .net-bar .split { height: 16px; border-radius: 8px; }
.rc .c-tax { background: var(--chart-5); }
.rc .c-si { background: var(--chart-6); }
.rc .c-hpf { background: var(--chart-1); opacity: 0.6; }
.rc .lens-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.rc .lens-mini { margin: 0; min-width: 0; display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 0; }
.rc .lens-minis { grid-template-rows: auto auto; }
.rc .lens-mini .chart { margin-top: 8px; }
.rc .intro-sec > .link { margin-top: 24px; font-size: var(--t-md); }
@container rc (max-width: 900px) {
  .rc .intro-grid.two, .rc .lens-minis { grid-template-columns: minmax(0, 1fr); }
}
@container rc (max-width: 600px) {
  .rc .intro-sec { margin-top: 40px; padding-top: 24px; }
  .rc .intro-fig { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .rc .demo-answer b { font-size: 26px; }
  .rc .how-steps { gap: 28px; }
}
.rc .how-step [data-intro-chart="spag"] { max-width: 880px; }
.rc .how-step .band { fill: var(--accent-lt); }

/* ---------- 2026-11-26 打磨：图的裁剪和标记、第一屏的排法 ---------- */
.rc .chart .a-post { fill: var(--accent); opacity: 0.07; }
.rc .chart .mark-label { paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.rc .intro .chart .mark-label { stroke: var(--surface); }
/* 「一个例子」的两张图卡片一样高 */
.rc .intro-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-section); margin-top: 16px; align-items: stretch; }
/* 「我们怎么计算」每一步同一种排法：电脑上说明在左、图在右，手机一栏 */
@container rc (min-width: 901px) {
  .rc .how-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); column-gap: 48px; align-items: start; }
  .rc .how-step > h3, .rc .how-step > p { grid-column: 1; }
  .rc .how-step > :not(h3):not(p) { grid-column: 2; grid-row: 1 / span 3; margin-top: 0 !important; }
  .rc .how-step [data-intro-chart="spag"] { max-width: none; }
  .rc .net-bar { max-width: none; padding-top: 8px; }
  .rc .lens-minis { margin-top: 0; }
}
@container rc (max-width: 900px) {
  .rc .intro-pair { grid-template-columns: minmax(0, 1fr); }
}
@container rc (max-width: 600px) {
  .rc .intro-fig { height: auto; }
}
/* 手机上弹出的面板一律占满屏宽（上面按尺寸定的宽度只用于电脑） */
@media (max-width: 699px) {
  .rc .dlg.size-sm:not(.confirm), .rc .dlg.size-md:not(.confirm), .rc .dlg.size-lg:not(.confirm) { width: 100%; max-width: 100%; }
}
/* 选项都很短的一组：窄的时候排成等宽的格子，不让最后一个单独换行 */
@container rc (max-width: 600px) {
  .rc .chips.even { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .rc .chips.even .chip { padding: 0 6px; }
}
@media (max-width: 699px) {
  .rc .dlg .chips.even { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .rc .dlg .chips.even .chip { padding: 0 6px; }
}
.rc .dcol > .sub-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rc .dcol .sub-sec { margin-top: 18px; padding-top: 16px; }
.rc .ref { grid-template-columns: minmax(0, 1fr); } .rc .ref-fold, .rc .ref-body { min-width: 0; }

/* 公开页：这一页的内容区是 1280 宽，页头页脚跟着放宽，左右边缘对齐。页头页脚的 HTML 全站相同（走查会比对），所以写在这份只有退休测算加载的样式里。 */
.p-nav > .p-wrap, .p-foot > .p-wrap { max-width: calc(1280px + var(--p-gutter) * 2); }

/* 结论块：有配图时，三个关键数放在配图下面，右栏不留空；窄到一栏时顺序是文字、关键数、配图。 */
.rc .hero:not(.solo):not(.loading) { grid-template-areas: "text visual" "text facts"; grid-template-rows: auto 1fr; align-items: start; row-gap: 24px; }
.rc .hero:not(.solo):not(.loading) > .hero-text { grid-area: text; }
.rc .hero:not(.solo):not(.loading) > .hero-visual { grid-area: visual; }
.rc .hero:not(.solo):not(.loading) > .facts-row { grid-area: facts; margin-top: 0; align-self: start; }
@container rc (max-width: 780px) {
  .rc .hero:not(.solo):not(.loading) { grid-template-areas: "text" "facts" "visual"; grid-template-rows: none; }
}

/* 2026-11-26 复查后：示例的构成、三种行情的解释、数字和单位不折行 */
.rc .demo-parts { margin-top: 6px; font-size: var(--t-sm); color: var(--text-2); max-width: 56em; }
.rc .lens-mini { grid-row: span 3; }
.rc .lens-minis { grid-template-rows: auto auto auto; }
.rc .lens-why { margin-top: 6px; font-size: var(--t-xs); color: var(--text-2); }
.rc .fact-value { white-space: nowrap; }
.rc .res-status .link { margin-left: 12px; }
/* 选项说明不在词中间折行（例如「存款」拆成两行），并占满整行宽度 */
.rc .pick > small { word-break: keep-all; overflow-wrap: anywhere; align-self: stretch; }
