/* ======================================================================
 * 05 · 拇外翻自查 —— 「足部角度尺」杂志式编辑设计
 * 配色：藕玫瑰 × 象牙白 × 淡金；字体：衬线大标题 / 细体小标 / 等宽角度
 * 布局：首屏右侧角度尺 + 实时旋转 SVG，控制台鞋型卡片 + 表单
 * ====================================================================== */
.hc13.bun {
    --hc-ink: #332329; --hc-muted: #857078; --hc-paper: #fffdfc;
    --hc-soft: #f9f1ee; --hc-line: #eadfdc; --hc-accent: #a34f62;
    --hc-accent-2: #c9a26b; --hc-warn: #a52f38; --hc-shadow: 0 16px 40px rgba(96, 48, 58, .10);
    background: radial-gradient(900px 420px at 88% -8%, #f7e7e4 0%, transparent 60%), #fffaf8;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.84;
}
:root[data-theme="dark"] .hc13.bun {
    --hc-ink: #f5e9e9; --hc-muted: #bda5ab; --hc-paper: #1e1719;
    --hc-soft: #2a2023; --hc-line: #3e3034; --hc-accent: #eda6b7;
    --hc-accent-2: #e3c18f; --hc-warn: #ff9ba3; --hc-shadow: 0 16px 40px rgba(0, 0, 0, .44);
    background: radial-gradient(900px 420px at 88% -8%, #38232a 0%, transparent 60%), #160f11;
}
.bun .hc-wrap { padding-bottom: 56px; }
.bun .hc-crumb { padding: 18px 0 8px; }
.bun strong, .bun b { color: var(--hc-accent); }
.bun h1, .bun h2, .bun h3, .bun .bun-ruler-num b { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; }
.bun .hc-kw, .bun .bun-ruler-label, .bun .bun-sec-head i, .bun .bun-console-head i,
.bun .bun-stats b { font-family: "SFMono-Regular", Consolas, monospace; }

/* ---- 首屏 ---- */
.bun-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .82fr); gap: 44px; align-items: start; padding: 32px 0 30px; }
.bun-hero .hc-kw { color: var(--hc-accent); font-size: 11px; letter-spacing: 3px; }
.bun-hero h1 { margin: 16px 0 18px; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.26; font-weight: 800; }
.bun-hero h1 em { display: block; font-style: normal; font-size: .44em; font-weight: 500; color: var(--hc-accent-2); margin-top: 14px; letter-spacing: 1px; }
.bun-lede { margin: 0; max-width: 58ch; font-size: 15.5px; line-height: 1.95; }
.bun-hero-ops { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.bun-cta { padding: 12px 26px; border-radius: 2px; background: var(--hc-accent); color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: 1px; }
.bun-cta--ghost { background: transparent; color: var(--hc-accent); border: 1px solid var(--hc-accent); }
.bun-hero-note { margin: 0; font-size: 12px; color: var(--hc-muted); }
.bun-ruler { padding: 22px 24px 18px; background: var(--hc-paper); border: 1px solid var(--hc-line); border-radius: 2px 2px 22px 2px; box-shadow: var(--hc-shadow); text-align: center; }
.bun-ruler-label { display: block; font-size: 10.5px; letter-spacing: 2.4px; color: var(--hc-muted); }
.bun-ruler-num { margin: 6px 0 0; line-height: 1; }
.bun-ruler-num b { font-size: 50px; color: var(--hc-accent); }
.bun-ruler-num span { font-size: 18px; color: var(--hc-muted); margin-left: 4px; }
.bun-foot { display: block; width: 100%; max-width: 240px; margin: 4px auto; }
.bun-foot-base { fill: var(--hc-soft); stroke: var(--hc-line); stroke-width: 2; }
.bun-toes { fill: none; stroke: var(--hc-line); stroke-width: 3; stroke-linecap: round; }
.bun-bigtoe { fill: color-mix(in srgb, var(--hc-accent) 32%, var(--hc-paper)); stroke: var(--hc-accent); stroke-width: 2.5; }
.bun-guide { stroke: var(--hc-accent-2); stroke-width: 2; stroke-dasharray: 4 5; }
.bun-joint { fill: var(--hc-accent-2); opacity: .8; }
.bun-range { display: flex; align-items: center; gap: 10px; font: 11px "SFMono-Regular", Consolas, monospace; color: var(--hc-muted); }
.bun-range input { flex: 1; accent-color: var(--hc-accent); }
.bun-band { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--hc-line); font-size: 12px; line-height: 1.7; color: var(--hc-muted); }
.bun-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; padding: 12px 0; border-block: 1px solid var(--hc-line); }
.bun-strip span { font-size: 12.5px; color: var(--hc-muted); }
.bun-strip span:first-child { color: var(--hc-accent); font-weight: 700; }

/* ---- 控制台 ---- */
.bun-console { background: var(--hc-paper); border: 1px solid var(--hc-line); border-radius: 4px 4px 20px 20px; overflow: hidden; }
.bun-console-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; padding: 20px 26px; border-bottom: 1px solid var(--hc-line); }
.bun-console-head h2 { margin: 0; font-size: 21px; }
.bun-console-head i { font-style: normal; color: var(--hc-accent); font-size: 12px; margin-right: 8px; }
.bun-console-head p { margin: 0; font-size: 12.5px; color: var(--hc-muted); }
.bun-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr); }
.bun-shoebox { padding: 22px 24px; border-right: 1px solid var(--hc-line); background: var(--hc-soft); }
.bun-shoebox h3 { margin: 0 0 10px; font-size: 15px; }
.bun-shoebox h3:not(:first-child) { margin-top: 22px; }
.bun-shoes { display: flex; flex-wrap: wrap; gap: 7px; }
.bun-shoes input, .bun-fieldset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bun-shoes label span, .bun-fieldset label span { display: inline-block; padding: 7px 13px; border: 1px solid var(--hc-line); border-radius: 999px; font-size: 12.5px; cursor: pointer; background: var(--hc-paper); }
.bun-shoes input:checked + span, .bun-fieldset input:checked + span { background: var(--hc-accent); border-color: var(--hc-accent); color: #fff; font-weight: 650; }
.bun-shoes input:focus-visible + span, .bun-fieldset input:focus-visible + span { outline: 3px solid var(--hc-accent-2); outline-offset: 2px; }
.bun-form { padding: 22px 26px 26px; }
.bun-fieldset { border: 0; border-bottom: 1px solid var(--hc-line); padding: 0 0 14px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.bun-fieldset legend { width: 100%; padding-bottom: 8px; font-size: 13.5px; font-weight: 700; }
.bun-fieldset legend small { font-weight: 400; color: var(--hc-muted); }
.bun-fieldset--alert { padding: 12px; border: 1px dashed color-mix(in srgb, var(--hc-warn) 45%, var(--hc-line)); border-radius: 10px; background: color-mix(in srgb, var(--hc-warn) 4%, transparent); }
.bun-fieldset--alert input:checked + span { background: var(--hc-warn); border-color: var(--hc-warn); }
.bun-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.bun-nums label { font-size: 13px; font-weight: 700; }
.bun-nums label small { font-weight: 400; color: var(--hc-muted); }
.bun-nums .hc-input { margin-top: 6px; }
.bun-batch { border-top: 1px solid var(--hc-line); }
.bun-batch summary { padding: 14px 26px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--hc-accent); }
.bun-batch summary span { font-size: 12px; font-weight: 400; color: var(--hc-muted); margin-left: 8px; }
.bun-batch-in { padding: 0 26px 22px; }
.bun-batch-in > label { display: block; font-size: 12.5px; color: var(--hc-muted); margin-bottom: 8px; }
.bun-batch-in .hc-actions { margin: 12px 0; }

/* ---- 结果 ---- */
.bun-result { margin-top: 44px; }
.bun-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--hc-ink); }
.bun-sec-head i { font-style: normal; color: var(--hc-accent); font-size: 12px; }
.bun-sec-head h2 { margin: 0; font-size: 23px; }
.bun-sec-head small { margin-left: auto; color: var(--hc-muted); font-size: 12px; }
.bun-empty { padding: 26px; border: 1px dashed var(--hc-line); border-radius: 10px; color: var(--hc-muted); background: var(--hc-paper); }
.bun-verdict { padding: 16px 20px; margin-bottom: 16px; border-left: 4px solid var(--hc-accent); background: var(--hc-soft); font-size: 14.5px; line-height: 1.9; }
.bun-verdict.is-urgent { background: color-mix(in srgb, var(--hc-warn) 9%, var(--hc-paper)); border-left-color: var(--hc-warn); color: var(--hc-warn); }
.bun-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.bun-stats > div { padding: 16px; border: 1px solid var(--hc-line); border-radius: 10px; background: var(--hc-paper); }
.bun-stats span { display: block; font-size: 11.5px; color: var(--hc-muted); }
.bun-stats b { font-size: 24px; color: var(--hc-accent); }
.bun-stats em { font-size: 11px; font-style: normal; color: var(--hc-muted); margin-left: 4px; }
.bun-band-card { padding: 16px 20px; margin-bottom: 16px; border-radius: 10px; background: var(--hc-soft); font-size: 14px; line-height: 1.9; }
.bun-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bun-card { padding: 20px 22px; border: 1px solid var(--hc-line); border-radius: 10px; background: var(--hc-paper); }
.bun-card h3 { margin: 0 0 10px; font-size: 17px; }
.bun-card ol, .bun-card ul { margin: 0; padding-left: 20px; }
.bun-card li { margin-bottom: 8px; font-size: 13.5px; line-height: 1.85; }
.bun-disclaim { margin: 18px 0 0; padding: 14px 18px; border-left: 3px solid var(--hc-line); color: var(--hc-muted); font-size: 13px; line-height: 1.9; }
.bun-result .hc-actions { margin-top: 14px; }

/* ---- 阅读 ---- */
.bun-reading { margin-top: 48px; }
.bun-subh { margin: 22px 0 10px; font-size: 17px; }
.bun-faq details { padding: 13px 0; border-bottom: 1px solid var(--hc-line); }
.bun-faq summary { cursor: pointer; font-size: 15px; font-weight: 700; }
.bun-faq details > div { padding: 10px 0 4px; font-size: 14px; line-height: 1.9; }
.bun-related { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--hc-line); font-size: 13px; }
.bun-related > span { color: var(--hc-muted); }
.bun-related a { padding: 6px 14px; border: 1px solid var(--hc-line); border-radius: 999px; color: var(--hc-accent); }

@media (max-width: 900px) {
    .bun-hero, .bun-grid, .bun-cols { grid-template-columns: 1fr; }
    .bun-shoebox { border-right: 0; border-bottom: 1px solid var(--hc-line); }
}
@media (max-width: 640px) {
    .bun-nums, .bun-stats { grid-template-columns: repeat(2, 1fr); }
    .bun-console-head, .bun-shoebox, .bun-form, .bun-batch-in { padding-inline: 16px; }
}
