/* ==========================================================================
   戒指手寸换算 · /tool/ring-size-converter
   依赖 atelier/base.css 的变量与基础组件
   ========================================================================== */

/* ---------------- Hero ---------------- */
.rs-hero {
    position: relative;
    padding: 46px 0 60px;
    background:
        radial-gradient(760px 380px at 82% -6%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 68%),
        var(--paper);
    overflow: hidden;
}

.rs-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: var(--line);
}

.hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 48px;
    margin-bottom: 34px;
}

.hero-title h1 {
    margin: 14px 0 0;
    font-size: clamp(30px, 1.35rem + 1.9vw, 46px);
    line-height: 1.16;
}

.h1-em {
    display: block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-size: 0.39em;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: var(--ink-3);
}

.hero-title .lede { margin-top: 16px; }

.hero-meta {
    display: grid;
    gap: 14px;
    padding-bottom: 6px;
    text-align: right;
}

.hero-meta div {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    font-size: 12.5px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
}

.hero-meta .num {
    font-size: 22px;
    color: var(--gold);
    line-height: 1;
}

/* ---------------- 计算台 ---------------- */
.calc-deck {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.calc-card {
    padding: 22px 22px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}

.calc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.calc-card-head h2 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-2);
}

.live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--ok);
}

.live-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 16%, transparent);
}

.calc-card .seg {
    display: flex;
    width: 100%;
    margin-bottom: 14px;
}

.calc-card .seg button {
    flex: 1 1 auto;
    padding: 8px 4px;
    font-size: 13px;
}

.calc-input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.calc-input-main {
    position: relative;
    flex: 1 1 auto;
}

.calc-input-main input {
    width: 100%;
    height: 58px;
    padding: 0 62px 0 16px;
    background: var(--card-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    font-family: var(--font-num);
    font-size: 26px;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.calc-input-main input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent);
}

.calc-input-main input.is-error { border-color: var(--err); }

.calc-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--ink-3);
    pointer-events: none;
}

.calc-input-row .btn {
    height: 58px;
    padding: 0 22px;
    flex: 0 0 auto;
}

.calc-hint {
    min-height: 20px;
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--ink-3);
}

.calc-hint.is-error { color: var(--err); }

.calc-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.calc-opts label {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

.calc-opts .input {
    height: 40px;
    font-size: 13.5px;
    background: var(--card-2);
    background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px;
}

.samples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.samples > span {
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    margin-right: 2px;
}

.samples button {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}

.samples button:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-soft);
}

/* ---------------- 结果证书 ---------------- */
.result-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 20px;
    border-radius: var(--r-lg);
    background: var(--cert-bg);
    color: var(--cert-ink);
    border: 1px solid var(--cert-line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.result-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(201, 162, 104, 0.16), transparent 58%),
        radial-gradient(80% 70% at 100% 100%, rgba(169, 103, 107, 0.1), transparent 60%);
    pointer-events: none;
}

.result-card > * { position: relative; }

.result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--cert-line);
}

.result-label {
    font-size: 11.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cert-dim);
}

.result-badge {
    padding: 3px 10px;
    border: 1px solid var(--cert-line);
    border-radius: 999px;
    font-size: 11.5px;
    color: #d9b27c;
}

.result-badge.is-warn {
    color: #e8bd7a;
    border-color: rgba(232, 189, 122, 0.45);
}

.result-body {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px 0 12px;
}

.result-hero {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.result-hero-num {
    font-size: clamp(58px, 4.2vw + 26px, 82px);
    line-height: 0.95;
    color: var(--cert-ink);
    letter-spacing: -0.02em;
}

.result-hero-unit {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--cert-dim);
}

.result-hero-sub {
    flex-basis: 100%;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--cert-dim);
    font-variant-numeric: tabular-nums;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin: 0;
}

.result-grid > div {
    padding-left: 10px;
    border-left: 1px solid var(--cert-line);
}

.result-grid dt {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--cert-dim);
    margin-bottom: 2px;
}

.result-grid dd {
    margin: 0;
    font-family: var(--font-num);
    font-size: 19px;
    font-variant-numeric: tabular-nums;
    color: var(--cert-ink);
    line-height: 1.3;
}

.result-fit {
    padding: 11px 13px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cert-line);
    font-size: 13px;
    line-height: 1.7;
    color: var(--cert-dim);
}

.result-fit b {
    color: var(--cert-ink);
    font-weight: 600;
}

.result-fit.is-warn {
    background: rgba(232, 189, 122, 0.1);
    border-color: rgba(232, 189, 122, 0.35);
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--cert-line);
}

.rc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 13px;
    border-radius: 7px;
    border: 1px solid var(--cert-line);
    font-size: 12.5px;
    color: var(--cert-ink);
    transition: background-color 0.16s ease, border-color 0.16s ease;
}

.rc-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(217, 178, 124, 0.5);
}

.rc-btn-solid {
    background: #d9b27c;
    border-color: #d9b27c;
    color: #1b1814;
    font-weight: 600;
}

.rc-btn-solid:hover {
    background: #e8c795;
    border-color: #e8c795;
}

.rc-spacer { margin-left: auto; }

.rc-src {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: pre;
}

/* ---------------- 三张解读卡 ---------------- */
.read-strip {
    padding: 0 0 64px;
}

.read-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.read-card {
    padding: 20px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.read-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.read-card h3::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    flex: 0 0 auto;
}

.read-card p {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

.read-card p b { color: var(--ink); }

/* ---------------- 通用区块头 ---------------- */
.rs-sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}

.rs-sec-head h2 {
    margin-top: 10px;
    font-size: clamp(23px, 1.1rem + 1vw, 31px);
}

.rs-sec-head .rs-sec-desc {
    max-width: 46ch;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--ink-3);
    text-align: right;
}

/* ---------------- 屏幕量内径 ---------------- */
.measure-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.measure-card {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.measure-card h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.measure-step {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.measure-card > p {
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--ink-2);
}

.calib-stage {
    display: grid;
    place-items: center;
    min-height: 96px;
    margin: 18px 0 14px;
    padding: 12px;
    background: var(--paper-2);
    border: 1px dashed var(--line-strong);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.calib-bar {
    position: relative;
    height: 46px;
    width: 204px;
    max-width: 100%;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: color-mix(in srgb, var(--gold) 8%, transparent);
    display: grid;
    place-items: center;
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.04em;
    transition: width 0.02s linear;
}

.calib-bar::before,
.calib-bar::after {
    content: "";
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 1px;
    background: var(--gold);
}

.calib-bar::before { left: -1px; }
.calib-bar::after { right: -1px; }

.range-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-row input[type="range"] {
    flex: 1 1 auto;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 999px;
    background: var(--line-strong);
    outline: none;
}

.range-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--card);
    box-shadow: 0 0 0 1px var(--gold);
    cursor: pointer;
}

.range-row input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--card);
    box-shadow: 0 0 0 1px var(--gold);
    cursor: pointer;
}

.range-val {
    flex: 0 0 auto;
    min-width: 78px;
    text-align: right;
    font-size: 12px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.ring-stage {
    display: grid;
    place-items: center;
    min-height: 250px;
    margin: 16px 0;
    padding: 16px;
    background: var(--paper-2);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.ring-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 1px color-mix(in srgb, var(--gold) 30%, transparent);
    position: relative;
    flex: 0 0 auto;
}

.ring-circle::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-num);
    font-size: 12px;
    color: var(--gold);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ring-tune {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ring-tune button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1;
    display: grid;
    place-items: center;
}

.ring-tune button:hover { border-color: var(--gold); color: var(--gold); }

.ring-tune output {
    min-width: 96px;
    text-align: center;
    font-family: var(--font-num);
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.ring-tune small {
    font-size: 11px;
    color: var(--ink-3);
    margin-left: 2px;
}

.measure-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 12.5px;
    line-height: 1.7;
}

.calib-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 0;
    font-size: 12px;
    color: var(--ink-3);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--line-strong);
}

.calib-reset:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ---------------- 对照表 ---------------- */
.chart-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.chart-search {
    position: relative;
    flex: 1 1 240px;
    max-width: 300px;
}

.chart-search input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 36px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--card);
    font-size: 13.5px;
}

.chart-search input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent);
}

.chart-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--ink-3);
}

.chart-count {
    font-size: 12.5px;
    color: var(--ink-3);
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card);
    overflow: auto;
    max-height: 540px;
    box-shadow: var(--shadow-sm);
}

.rs-table {
    min-width: 660px;
    font-size: 14px;
}

.rs-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 14px;
    background: var(--card-2);
    border-bottom: 1px solid var(--line-strong);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink-3);
    text-align: left;
    white-space: nowrap;
}

#chartTable { table-layout: fixed; }
#chartTable thead th:nth-child(1) { width: 15%; }
#chartTable thead th:nth-child(2) { width: 17%; }
#chartTable thead th:nth-child(3) { width: 18%; }
#chartTable thead th:nth-child(4) { width: 20%; }
#chartTable thead th:nth-child(5) { width: 18%; }
#chartTable thead th:nth-child(6) { width: 12%; }

.rs-table thead th:first-child { padding-left: 20px; }

.rs-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.rs-table tbody td:first-child {
    padding-left: 20px;
    color: var(--ink);
    font-weight: 600;
    font-family: var(--font-num);
    font-size: 15px;
}

.rs-table tbody tr {
    cursor: pointer;
    transition: background-color 0.14s ease;
}

.rs-table tbody tr:hover { background: var(--card-2); }
.rs-table tbody tr:last-child td { border-bottom: 0; }

.rs-table tbody tr.is-hit {
    background: var(--gold-soft);
    box-shadow: inset 3px 0 0 var(--gold);
}

.rs-table tbody tr.is-dim { opacity: 0.32; }

.rs-table .cell-em {
    color: var(--gold);
    font-weight: 600;
}

.rs-table .row-pick {
    opacity: 0.4;
    font-size: 11.5px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
    transition: opacity 0.14s ease, color 0.14s ease;
}

.rs-table tbody tr:hover .row-pick,
.rs-table tbody tr.is-hit .row-pick {
    opacity: 1;
    color: var(--gold);
}

.chart-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    align-items: center;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.7;
}

.chart-foot b { color: var(--ink-2); font-weight: 600; }

/* ---------------- 批量 ---------------- */
.batch-grid {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.batch-panel {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.batch-panel textarea {
    width: 100%;
    min-height: 208px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--card-2);
    font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13.5px;
    line-height: 2;
    resize: vertical;
}

.batch-panel textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 14%, transparent);
}

.batch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.batch-actions .btn { height: 38px; padding: 0 10px; font-size: 13px; }
.batch-actions .btn-main { grid-column: 1 / -1; height: 42px; font-size: 14px; }

.batch-legend {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.9;
    color: var(--ink-3);
}

.batch-legend code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--ink-2);
    white-space: nowrap;
}

.batch-result {
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--card);
    overflow: hidden;
}

.batch-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 260px;
    padding: 30px;
    text-align: center;
    color: var(--ink-3);
    font-size: 13.5px;
    line-height: 1.8;
}

.batch-empty svg { width: 30px; height: 30px; opacity: 0.5; }

.batch-result .table-wrap {
    border: 0;
    border-radius: 0;
    max-height: 420px;
    box-shadow: none;
}

.batch-result .rs-table { min-width: 640px; }
.batch-result .rs-table tbody tr { cursor: default; }

.batch-result .rs-table thead th:nth-child(1) { width: 44px; }
.batch-result .rs-table thead th:nth-child(2) { width: 24%; }
.batch-result .rs-table thead th:last-child { width: 26%; }

.tok {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--ink-3);
    white-space: normal;
}

.batch-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--card-2);
    font-size: 12.5px;
    color: var(--ink-3);
}

.batch-summary b { color: var(--ink); font-weight: 600; }
.batch-summary .bad { color: var(--err); }

tr.is-bad td { color: var(--err) !important; }
tr.is-bad { background: color-mix(in srgb, var(--err) 6%, transparent); }

.err-tip {
    display: block;
    font-size: 11.5px;
    color: var(--err);
    white-space: normal;
    line-height: 1.5;
    max-width: 220px;
}

/* ---------------- FAQ ---------------- */
.faq-wrap {
    max-width: 880px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 2px;
    cursor: pointer;
    list-style: none;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.6;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "";
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-right: 1.6px solid var(--gold);
    border-bottom: 1.6px solid var(--gold);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.faq-item .faq-a {
    padding: 0 2px 18px;
    font-size: 14px;
    line-height: 1.95;
    color: var(--ink-2);
    max-width: 72ch;
}

.faq-item .faq-a b { color: var(--ink); font-weight: 600; }

.faq-item .faq-a p + p { margin-top: 10px; }

/* ---------------- 长文 ---------------- */
.article {
    max-width: 748px;
}

.article h3 {
    margin: 42px 0 12px;
    font-size: 20px;
}

.article h3:first-child { margin-top: 0; }

.article p {
    margin: 0 0 21px;
    font-size: 15.5px;
    line-height: 2.02;
    color: var(--ink-2);
}

.article p b,
.article p strong {
    color: var(--ink);
    font-weight: 600;
}

.article .lead-para {
    font-size: 17px;
    line-height: 1.95;
    color: var(--ink);
}

.article-tip {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 2px solid var(--gold);
    background: var(--card-2);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-2);
}

.article-tip b { color: var(--ink); }

/* ---------------- 相关工具 ---------------- */
.rel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rel-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rel-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.rel-card .rel-kicker {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

.rel-card h3 {
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
}

.rel-card p {
    font-size: 13px;
    line-height: 1.75;
    color: var(--ink-3);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
    .calc-deck { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
    .result-body { grid-template-columns: 1fr; gap: 12px; }
    .result-hero-num { font-size: 56px; }
    .result-grid { grid-template-columns: repeat(4, 1fr); }
    .result-grid > div { padding-left: 8px; }
    .result-grid dd { font-size: 16px; }
}

@media (max-width: 900px) {
    .hero-head { grid-template-columns: 1fr; gap: 22px; }
    .hero-meta {
        grid-auto-flow: column;
        justify-content: flex-start;
        text-align: left;
        gap: 26px;
        padding: 0;
    }
    .hero-meta div { justify-content: flex-start; }
    .calc-deck { grid-template-columns: 1fr; }
    .result-body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); }
    .result-grid { grid-template-columns: 1fr 1fr; }
    .read-grid { grid-template-columns: 1fr; }
    .measure-grid { grid-template-columns: 1fr; }
    .batch-grid { grid-template-columns: 1fr; }
    .rel-grid { grid-template-columns: 1fr; }
    .rs-sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rs-sec-head .rs-sec-desc { text-align: left; }
}

/* 深色下强化分段控件的选中对比 */
[data-theme="dark"] .calc-card .seg button[aria-selected="true"] {
    background: var(--gold-soft);
    color: var(--gold);
}

.chart-scroll-tip {
    display: none;
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--ink-3);
}

@media (max-width: 720px) {
    .chart-scroll-tip { display: block; }
    .th-note { display: none; }

    /* 移动端收成 4 列：港版号 / 内径 / 美版 / 英版，周长可在换算器查看 */
    #chartTable { min-width: 0; }
    #chartTable thead th:nth-child(1) { width: 26%; }
    #chartTable thead th:nth-child(2) { width: 27%; }
    #chartTable thead th:nth-child(3) { width: 24%; }
    #chartTable thead th:nth-child(5) { width: 23%; }
    #chartTable th:nth-child(3),
    #chartTable td:nth-child(3),
    #chartTable th:nth-child(6),
    #chartTable td:nth-child(6) { display: none; }
    #chartTable thead th { padding: 10px 10px; }
    #chartTable tbody td { padding: 9px 10px; }
    #chartTable tbody td:first-child { padding-left: 14px; }
    .table-wrap { -webkit-overflow-scrolling: touch; }
}

@media (max-width: 560px) {
    .rs-hero { padding: 30px 0 40px; }
    .hero-title h1 { font-size: 28px; }
    .h1-em { font-size: 0.62em; }
    .hero-meta { gap: 16px; flex-wrap: wrap; }
    .hero-meta .num { font-size: 18px; }
    .calc-card { padding: 18px 16px; }
    .calc-card .seg button { font-size: 11.5px; padding: 8px 0; letter-spacing: -0.02em; }
    .calc-card .seg { gap: 2px; padding: 3px; }
    .calc-input-main input { height: 52px; font-size: 23px; }
    .calc-input-row .btn { height: 52px; padding: 0 14px; font-size: 14px; }
    .calc-opts { grid-template-columns: 1fr; }
    .result-card { padding: 20px 18px 16px; }
    .result-body { grid-template-columns: 1fr; }
    .result-hero-num { font-size: 54px; }
    .result-grid { grid-template-columns: 1fr 1fr; }
    .result-actions { flex-wrap: wrap; }
    .rc-spacer { margin-left: 0; }
    .measure-card { padding: 18px 16px; }
    .chart-count { margin-left: 0; }
    .article p { font-size: 15px; line-height: 1.95; }
}
