/* =====================================================================
   T73 · 工具站精品工具批 73–86 · 设计基座
   ---------------------------------------------------------------------
   · 命名空间 .t73，所有样式严格限定在工具容器内，绝不影响线上已有页面；
   · 每个工具在自己的 {slug}.css 中覆盖 --a-* 色板变量与 --a-font-display，
     并追加专属视觉母题模块，做到一工具一色板一版式；
   · 主题由导航 #themeToggle 控制（localStorage.theme: auto/light/dark），
     本文件只做变量翻转，auto 跟随系统由布局内联脚本完成；
   · 图形用 CSS / inline SVG 绘制，零图片依赖；静态资源走 cdn_asset()。
   ===================================================================== */

.t73 {
    /* 默认色板（各工具页覆盖） */
    --a-bg: #eef2f5;
    --a-bg2: #e2e9ee;
    --a-surface: #ffffff;
    --a-surface2: #f6f9fb;
    --a-ink: #12202b;
    --a-sub: #3c4d59;
    --a-muted: #7b8b97;
    --a-line: #d8e1e7;
    --a-line2: #b7c5ce;
    --a-ac: #157f74;
    --a-ac2: #2f6fb0;
    --a-tint: #dceed0;
    --a-on: #ffffff;
    --a-ok: #167a55;
    --a-okt: #dcf2e8;
    --a-warn: #a8660a;
    --a-warnt: #fbefd6;
    --a-bad: #c0392b;
    --a-badt: #f9e5e2;
    --a-grid: rgba(21, 127, 116, .06);

    --a-font: "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    --a-font-display: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
    --a-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
    --a-xs: 12px; --a-sm: 13.5px; --a-base: 16px; --a-md: 18px;
    --a-lg: 22px; --a-xl: 29px; --a-hero: clamp(30px, 4.8vw, 50px);
    --a-lh: 1.78; --a-lht: 1.25;
    --a-r: 16px; --a-rs: 10px;
    --a-sh: 0 1px 2px rgba(18,32,43,.05), 0 12px 30px rgba(18,32,43,.07);
    --a-shl: 0 18px 46px rgba(18,32,43,.15);
    --a-max: 1160px;

    box-sizing: border-box; width: 100%; margin: 0 auto; padding: 0 24px 72px;
    background:
        linear-gradient(var(--a-grid) 1px, transparent 1px) 0 0 / 100% 32px,
        radial-gradient(720px 300px at 92% -120px, var(--a-tint), transparent 70%),
        var(--a-bg);
    color: var(--a-ink); font-family: var(--a-font); font-size: var(--a-base);
    line-height: var(--a-lh); -webkit-font-smoothing: antialiased;
    font-variant-numeric: tabular-nums; overflow-x: clip;
}
.t73 *, .t73 *::before, .t73 *::after { box-sizing: border-box; }
.t73 p { margin: 0 0 14px; line-height: var(--a-lh); }
.t73 p:last-child { margin-bottom: 0; }
.t73 b, .t73 strong { font-weight: 750; color: var(--a-ink); }
.t73 a { color: var(--a-ac); text-decoration: none; border-bottom: 1px solid currentColor; }
.t73 a:hover { opacity: .78; }
.t73 h1, .t73 h2, .t73 h3, .t73 h4 { margin: 0; font-weight: 800; line-height: var(--a-lht); letter-spacing: -.02em; }
.t73 h1, .t73 h2, .t73 h3 { font-family: var(--a-font-display); }
.t73 h2 { font-size: var(--a-lg); } .t73 h3 { font-size: var(--a-md); } .t73 h4 { font-size: var(--a-base); }
.t73 small { font-size: var(--a-xs); }
.t73 ul, .t73 ol { margin: 0 0 14px; padding-left: 22px; }
.t73 li { margin-bottom: 6px; } .t73 li::marker { color: var(--a-ac); font-weight: 800; }
.t73 :focus-visible { outline: 3px solid var(--a-ac); outline-offset: 3px; border-radius: 5px; }
.t73 [hidden] { display: none !important; }

/* 顶部色条 / 容器 */
.a-top { height: 5px; border-radius: 0 0 5px 5px; max-width: var(--a-max); margin: 0 auto;
    background: linear-gradient(90deg, var(--a-ac), var(--a-ac2), var(--a-ac)); }
.a-inner { max-width: var(--a-max); margin: 0 auto; }

/* 首屏 */
.a-hero { padding: 40px 0 22px; display: grid; gap: 22px; align-items: center;
    grid-template-columns: minmax(0, 1fr) auto; }
.a-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
    font-family: var(--a-mono); font-size: var(--a-xs); font-weight: 700; letter-spacing: .12em;
    color: var(--a-ac); text-transform: uppercase; }
.a-eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--a-ac); border-radius: 2px; }
.a-hero h1 { font-size: var(--a-hero); letter-spacing: -.045em; margin-bottom: 12px; }
.a-hero h1 em { font-style: normal; color: var(--a-ac); }
.a-lead { font-size: var(--a-md); line-height: 1.72; color: var(--a-sub); max-width: 780px; }
.a-lead b { color: var(--a-ink); background: linear-gradient(transparent 62%, var(--a-tint) 62%); }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 15px; font-size: var(--a-sm); color: var(--a-muted); }
.a-chips b { color: var(--a-ac); font-family: var(--a-mono); font-size: var(--a-md); }
.a-hero-art { justify-self: end; }

/* 区块 */
.a-sec { margin-top: 38px; }
.a-sec-h { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
    padding-bottom: 11px; margin-bottom: 18px; border-bottom: 1px solid var(--a-line2); }
.a-sec-h .idx { font-family: var(--a-mono); font-size: var(--a-xs); font-weight: 700;
    color: var(--a-ac); letter-spacing: .1em; white-space: nowrap; }
.a-sec-h h2 { flex: 1 1 auto; } .a-sec-h .note { font-size: var(--a-sm); color: var(--a-muted); }
.a-sec-lead { font-size: var(--a-base); color: var(--a-sub); max-width: 860px; margin: -4px 0 18px; }

/* 面板 / 工作台 */
.a-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-r);
    box-shadow: var(--a-sh); padding: 24px; margin-bottom: var(--a-gap, 18px); }
.a-card--flat { box-shadow: none; background: var(--a-surface2); }
.a-card--tint { background: var(--a-tint); border-color: transparent; box-shadow: none; }
.a-card-t { display: flex; align-items: center; gap: 10px; font-size: var(--a-md); font-weight: 800; margin-bottom: 6px; }
.a-card-s { color: var(--a-muted); font-size: var(--a-sm); margin-bottom: 18px; }
.a-desk { display: grid; gap: var(--a-gap, 18px); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
.a-desk-side { min-width: 0; }
.a-tag { display: inline-block; font-family: var(--a-mono); font-size: var(--a-xs); font-weight: 700;
    letter-spacing: .08em; color: var(--a-ac); background: var(--a-tint); border-radius: 6px;
    padding: 4px 10px; margin-bottom: 10px; }

/* 表单 */
.a-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.a-field { display: flex; flex-direction: column; gap: 6px; }
.a-field label { font-size: var(--a-sm); font-weight: 700; color: var(--a-sub); }
.a-hint { font-size: var(--a-xs); color: var(--a-muted); line-height: 1.6; }
.a-input, .a-select, .a-textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--a-line2);
    border-radius: var(--a-rs); background: var(--a-surface); color: var(--a-ink);
    font-family: var(--a-font); font-size: var(--a-base); line-height: 1.6; transition: border-color .16s, box-shadow .16s; }
.a-input:focus, .a-select:focus, .a-textarea:focus { outline: none; border-color: var(--a-ac); box-shadow: 0 0 0 3px var(--a-tint); }
.a-textarea { min-height: 130px; resize: vertical; font-family: var(--a-mono); font-size: var(--a-sm); }
.a-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 18px; border: 1.5px solid var(--a-ac); border-radius: var(--a-rs);
    background: var(--a-ac); color: var(--a-on); font-family: var(--a-font);
    font-size: var(--a-sm); font-weight: 750; cursor: pointer; transition: transform .14s, filter .14s, background .14s; }
.a-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.a-btn:active { transform: translateY(0); }
.a-btn--soft { background: var(--a-tint); color: var(--a-ac); border-color: transparent; }
.a-btn--ghost { background: transparent; color: var(--a-ac); }
.a-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.a-err { color: var(--a-bad); font-size: var(--a-sm); margin-top: 12px; min-height: 1em; }

/* 结果 / 读数 / 提示 */
.a-result { margin-top: 16px; padding: 18px; border-radius: var(--a-rs);
    background: var(--a-surface2); border: 1px solid var(--a-line); font-size: var(--a-sm); line-height: 1.8; }
.a-result b { color: var(--a-ac); }
.a-reads { display: flex; flex-wrap: wrap; gap: 12px; }
.a-read { flex: 1 1 150px; min-width: 132px; padding: 15px 16px; border-radius: var(--a-rs);
    background: var(--a-surface2); border: 1px solid var(--a-line); }
.a-read .k { display: block; font-size: var(--a-xs); color: var(--a-muted); margin-bottom: 5px; letter-spacing: .04em; }
.a-read .v { display: block; font-family: var(--a-mono); font-size: var(--a-lg); font-weight: 800;
    color: var(--a-ink); line-height: 1.2; }
.a-read .v.ac { color: var(--a-ac); } .a-read .u { font-size: var(--a-xs); color: var(--a-muted); font-weight: 500; }
.a-note { padding: 10px 13px; border-radius: var(--a-rs); background: var(--a-surface2);
    border: 1px solid var(--a-line); font-size: var(--a-sm); color: var(--a-sub); margin: 10px 0; }
.a-note--warn { background: var(--a-warnt); border-color: var(--a-warn); color: var(--a-warn); }
.a-note--ok { background: var(--a-okt); border-color: var(--a-ok); color: var(--a-ok); }
.a-note--danger { background: var(--a-badt); border-color: var(--a-bad); color: var(--a-bad); }

/* 选项 / 分段 / 仪表 */
.a-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.a-opt { position: relative; display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 12px 13px;
    border: 1.5px solid var(--a-line2); border-radius: var(--a-rs); background: var(--a-surface);
    font-size: var(--a-sm); line-height: 1.6; transition: all .15s; }
.a-opt:hover { border-color: var(--a-ac); }
.a-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a-opt:has(input:checked) { border-color: var(--a-ac); background: var(--a-tint); }
.a-opt-txt b { display: block; } .a-opt-txt small { display: block; color: var(--a-muted); font-size: var(--a-xs); font-weight: 400; margin-top: 2px; }
.a-seg { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--a-line2); border-radius: var(--a-rs); overflow: hidden; }
.a-seg button { padding: 8px 15px; border: none; background: var(--a-surface); color: var(--a-sub);
    font-family: var(--a-font); font-size: var(--a-sm); cursor: pointer; border-right: 1px solid var(--a-line); }
.a-seg button:last-child { border-right: none; }
.a-seg button.active { background: var(--a-ac); color: var(--a-on); font-weight: 750; }
.a-meter { height: 10px; border-radius: 6px; background: var(--a-line); overflow: hidden; margin: 8px 0; }
.a-meter > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--a-ac), var(--a-ac2)); transition: width .4s; }

/* 表格 */
.a-table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--a-line); border-radius: var(--a-rs); }
.a-table { width: 100%; border-collapse: collapse; font-size: var(--a-sm); line-height: 1.65; }
.a-table th, .a-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--a-line); white-space: nowrap; }
.a-table thead th { background: var(--a-surface2); color: var(--a-sub); font-weight: 750; position: sticky; top: 0; }
.a-table tbody tr:last-child td { border-bottom: none; }
.a-table tbody tr:hover { background: var(--a-surface2); }
.a-table .is-bad td { background: var(--a-badt); color: var(--a-bad); }
.a-table .hi { color: var(--a-ac); font-weight: 800; }

/* FAQ 折叠 */
.a-faq { display: grid; gap: 10px; }
.a-faq details { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-rs); padding: 0 16px; }
.a-faq summary { cursor: pointer; font-weight: 750; font-size: var(--a-base); padding: 14px 0; list-style: none; }
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::after { content: "+"; float: right; color: var(--a-ac); font-size: 20px; line-height: 1; }
.a-faq details[open] summary::after { content: "−"; }
.a-faq details p { color: var(--a-sub); padding-bottom: 14px; margin: 0; font-size: var(--a-sm); }

/* 弹窗 / Toast */
.has-t73-page .tskb { max-width: var(--a-max, 1160px); margin: 0 auto; }
.a-modal { position: fixed; inset: 0; z-index: 10030; display: none; align-items: center; justify-content: center;
    background: rgba(10,16,22,.55); padding: 20px; }
.a-modal.is-open { display: flex; }
.a-modal-card { width: min(560px, 100%); max-height: 86vh; overflow: auto; background: var(--a-surface);
    border-radius: var(--a-r); box-shadow: var(--a-shl); padding: 26px; }
.a-modal-card h3 { margin-bottom: 12px; }
.a-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* 主题翻转（导航 #themeToggle 写 <html data-theme>） */
:root[data-theme="dark"] .t73 {
    --a-bg: #0c1116; --a-bg2: #111922; --a-surface: #161f28; --a-surface2: #1c2732;
    --a-ink: #eef3f7; --a-sub: #b7c4d0; --a-muted: #8291a0;
    --a-line: #2a3744; --a-line2: #3a4a59;
    --a-ac: #4fd1c5; --a-ac2: #7c9cff; --a-tint: #123038; --a-on: #08252a;
    --a-ok: #4dd4a0; --a-okt: #11342a; --a-warn: #f0bc5a; --a-warnt: #3a2d14;
    --a-bad: #ff7b6b; --a-badt: #3a201e; --a-grid: rgba(79,209,197,.05);
    --a-sh: 0 1px 2px rgba(0,0,0,.3), 0 12px 30px rgba(0,0,0,.35);
    --a-shl: 0 18px 46px rgba(0,0,0,.55);
}

@media (max-width: 860px) {
    .a-hero { grid-template-columns: 1fr; }
    .a-hero-art { justify-self: start; }
    .a-desk { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .t73 { padding: 0 16px 56px; }
    .a-hero { padding: 28px 0 18px; }
    .a-card { padding: 18px; }
    .a-read { flex-basis: 120px; }
}
@media (prefers-reduced-motion: reduce) {
    .t73 *, .t73 *::before, .t73 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
