/* =====================================================================
   工具站 UI 重设计 v4 · ATLAS 28 设计基座
   ---------------------------------------------------------------------
   1. 仅作用于 .t28 容器，绝不外溢到线上已有页面；
   2. 字体层级 / 行距 / 分段 / 关键词强调在此统一升级，每页用变量覆盖色板；
   3. 深色由导航栏三态按钮控制（html[data-theme="dark"]），本文件负责变量翻转；
   4. 静态资源全部走 cdn_asset，图形用 CSS/SVG，无图片、无外部字体、无第三方 JS。
   ===================================================================== */

.t28 {
    /* ---- 色板（每页 CSS 覆盖，形成 14 套独立视觉） ---- */
    --t28-bg: #f7f8fa;
    --t28-surface: #ffffff;
    --t28-surface-2: #f1f3f7;
    --t28-ink: #18202c;
    --t28-sub: #4c5768;
    --t28-muted: #7d8899;
    --t28-line: #e2e7ef;
    --t28-accent: #2f6fdf;
    --t28-accent-2: #16a3a5;
    --t28-soft: #e9f0ff;
    --t28-on-accent: #ffffff;
    --t28-ok: #12805f;
    --t28-warn: #b3770b;
    --t28-danger: #c23b4b;
    --t28-ok-soft: #e3f5ed;
    --t28-warn-soft: #fdf2dc;
    --t28-danger-soft: #fdecef;

    /* ---- 字体层级（新：正文 16px / 行距 1.78 / 五级标题） ---- */
    --t28-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    --t28-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --t28-fs-xs: 12.5px;
    --t28-fs-sm: 14px;
    --t28-fs-base: 16px;
    --t28-fs-md: 18px;
    --t28-fs-lg: 22px;
    --t28-fs-xl: 29px;
    --t28-fs-hero: clamp(30px, 4.4vw, 46px);
    --t28-lh: 1.78;
    --t28-lh-tight: 1.3;
    --t28-radius: 18px;
    --t28-radius-sm: 10px;
    --t28-shadow: 0 8px 30px rgba(24, 32, 44, .07);
    --t28-shadow-lift: 0 16px 44px rgba(24, 32, 44, .13);
    --t28-maxw: 1080px;
    --t28-gap: 18px;

    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px 64px;
    background: var(--t28-bg);
    color: var(--t28-ink);
    font-family: var(--t28-font);
    font-size: var(--t28-fs-base);
    line-height: var(--t28-lh);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.t28 *, .t28 *::before, .t28 *::after { box-sizing: border-box; }
.t28 > * { max-width: 100%; }
.t28 p { margin: 0 0 14px; line-height: var(--t28-lh); }
.t28 b, .t28 strong { font-weight: 700; color: var(--t28-ink); }
.t28 a { color: var(--t28-accent); text-decoration: none; }
.t28 a:hover { text-decoration: underline; }
.t28 h1, .t28 h2, .t28 h3, .t28 h4 { margin: 0; font-weight: 750; line-height: var(--t28-lh-tight); letter-spacing: -.02em; }
.t28 h2 { font-size: var(--t28-fs-lg); }
.t28 h3 { font-size: var(--t28-fs-md); }
.t28 h4 { font-size: var(--t28-fs-base); }
.t28 small { font-size: var(--t28-fs-xs); }
.t28 ul, .t28 ol { margin: 0 0 14px; padding-left: 22px; }
.t28 li { margin-bottom: 7px; }
.t28 li::marker { color: var(--t28-accent); }
.t28 :focus-visible { outline: 3px solid var(--t28-accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 首屏：3 秒内讲清价值，操作入口就在首屏 ---------- */
.t28-inner { max-width: var(--t28-maxw); margin: 0 auto; }
.t28-hero { padding: 34px 0 26px; }
.t28-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: var(--t28-fs-xs); font-weight: 700; letter-spacing: .12em;
    color: var(--t28-accent); background: var(--t28-soft);
    border: 1px solid var(--t28-line); border-radius: 999px;
    padding: 5px 13px; margin-bottom: 16px;
}
.t28-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--t28-accent); font-style: normal; }
.t28-hero h1 { font-size: var(--t28-fs-hero); letter-spacing: -.035em; margin-bottom: 12px; }
.t28-hero h1 em { font-style: normal; color: var(--t28-accent); }
.t28-lead { font-size: var(--t28-fs-md); color: var(--t28-sub); line-height: 1.72; max-width: 760px; margin: 0 0 20px; }
.t28-lead b { color: var(--t28-ink); }
.t28-hero-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-size: var(--t28-fs-sm); color: var(--t28-muted); }
.t28-hero-stats span { display: inline-flex; align-items: center; gap: 7px; }
.t28-hero-stats b { color: var(--t28-accent); font-size: var(--t28-fs-md); }

/* ---------- 区块 / 卡片 ---------- */
.t28-sec { margin-top: 34px; }
.t28-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.t28-sec-head .idx { font-family: var(--t28-mono); font-size: var(--t28-fs-xs); color: var(--t28-accent); letter-spacing: .1em; }
.t28-sec-head .note { font-size: var(--t28-fs-sm); color: var(--t28-muted); }
.t28-panel {
    background: var(--t28-surface); border: 1px solid var(--t28-line);
    border-radius: var(--t28-radius); box-shadow: var(--t28-shadow);
    padding: 24px; margin-bottom: var(--t28-gap);
}
.t28-panel--flat { box-shadow: none; background: var(--t28-surface-2); }
.t28-panel-title { display: flex; align-items: center; gap: 10px; font-size: var(--t28-fs-md); margin-bottom: 6px; }
.t28-panel-sub { font-size: var(--t28-fs-sm); color: var(--t28-muted); margin-bottom: 18px; }
.t28-grid { display: grid; gap: var(--t28-gap); grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.t28-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t28-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t28-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t28-split { display: grid; gap: var(--t28-gap); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }

/* ---------- 表单控件 ---------- */
.t28-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.t28-field > label, .t28-label { font-size: var(--t28-fs-sm); font-weight: 700; color: var(--t28-sub); }
.t28-field .hint { font-size: var(--t28-fs-xs); color: var(--t28-muted); font-weight: 400; }
.t28-input, .t28-select, .t28-textarea {
    width: 100%; min-width: 0; padding: 11px 13px;
    font-family: inherit; font-size: var(--t28-fs-base); line-height: 1.5;
    color: var(--t28-ink); background: var(--t28-surface);
    border: 1.5px solid var(--t28-line); border-radius: var(--t28-radius-sm);
    transition: border-color .18s, box-shadow .18s;
}
.t28-textarea { min-height: 118px; resize: vertical; font-family: var(--t28-mono); font-size: var(--t28-fs-sm); line-height: 1.7; }
.t28-input:hover, .t28-select:hover, .t28-textarea:hover { border-color: var(--t28-accent); }
.t28-input:focus, .t28-select:focus, .t28-textarea:focus { outline: none; border-color: var(--t28-accent); box-shadow: 0 0 0 3px var(--t28-soft); }
.t28-input[aria-invalid="true"], .t28-textarea[aria-invalid="true"] { border-color: var(--t28-danger); background: var(--t28-danger-soft); }
.t28-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.t28-row > .t28-field { flex: 1 1 170px; }
.t28-checks { display: flex; flex-wrap: wrap; gap: 9px; }
.t28-check {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 8px 13px; font-size: var(--t28-fs-sm);
    border: 1.5px solid var(--t28-line); border-radius: 999px;
    background: var(--t28-surface); color: var(--t28-sub); user-select: none;
    transition: all .18s;
}
.t28-check:hover { border-color: var(--t28-accent); }
.t28-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t28-check:has(input:checked) { border-color: var(--t28-accent); background: var(--t28-soft); color: var(--t28-accent); font-weight: 700; }
.t28-check input:focus-visible + span { outline: 2px solid var(--t28-accent); outline-offset: 3px; }
.t28-radios { display: flex; flex-wrap: wrap; gap: 9px; }
.t28-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; min-height: 44px; cursor: pointer;
    font-family: inherit; font-size: var(--t28-fs-base); font-weight: 700;
    color: var(--t28-on-accent); background: var(--t28-accent);
    border: 1.5px solid transparent; border-radius: var(--t28-radius-sm);
    transition: transform .16s, box-shadow .16s, filter .16s;
}
.t28-btn:hover { transform: translateY(-2px); box-shadow: var(--t28-shadow-lift); filter: brightness(1.05); }
.t28-btn:active { transform: translateY(0); }
.t28-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.t28-btn--ghost { color: var(--t28-accent); background: transparent; border-color: var(--t28-accent); }
.t28-btn--soft { color: var(--t28-ink); background: var(--t28-surface-2); border-color: var(--t28-line); }
.t28-btn--sm { padding: 7px 14px; min-height: 36px; font-size: var(--t28-fs-sm); }
.t28-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- 结果 / 提示 / 徽章 ---------- */
.t28-result { margin-top: 18px; padding: 20px; border-radius: var(--t28-radius); border: 1.5px dashed var(--t28-line); background: var(--t28-surface-2); }
.t28-result[hidden] { display: none; }
.t28-result-title { font-size: var(--t28-fs-md); font-weight: 750; margin-bottom: 12px; }
.t28-note { font-size: var(--t28-fs-sm); color: var(--t28-sub); background: var(--t28-soft); border-left: 4px solid var(--t28-accent); padding: 11px 14px; border-radius: 0 8px 8px 0; margin: 14px 0; }
.t28-note--warn { background: var(--t28-warn-soft); border-left-color: var(--t28-warn); }
.t28-note--danger { background: var(--t28-danger-soft); border-left-color: var(--t28-danger); }
.t28-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: var(--t28-fs-xs); font-weight: 700; background: var(--t28-soft); color: var(--t28-accent); }
.t28-badge--ok { background: var(--t28-ok-soft); color: var(--t28-ok); }
.t28-badge--warn { background: var(--t28-warn-soft); color: var(--t28-warn); }
.t28-badge--danger { background: var(--t28-danger-soft); color: var(--t28-danger); }
.t28-kv { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: var(--t28-fs-sm); }
.t28-kv b { color: var(--t28-accent); }
.t28-err { color: var(--t28-danger); font-size: var(--t28-fs-sm); font-weight: 700; min-height: 20px; margin-top: 8px; }
.t28-muted { color: var(--t28-muted); }
.t28-mono { font-family: var(--t28-mono); font-size: var(--t28-fs-sm); }
.t28-divider { height: 1px; background: var(--t28-line); margin: 20px 0; border: 0; }

/* ---------- 表格（窄屏横向滚动，不撑破页面） ---------- */
.t28-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--t28-line); border-radius: var(--t28-radius-sm); }
.t28-table { width: 100%; border-collapse: collapse; font-size: var(--t28-fs-sm); min-width: 480px; }
.t28-table th, .t28-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--t28-line); vertical-align: top; }
.t28-table th { background: var(--t28-surface-2); font-weight: 700; color: var(--t28-sub); white-space: nowrap; }
.t28-table tr:last-child td { border-bottom: 0; }
.t28-table tbody tr:hover { background: var(--t28-soft); }
.t28-table tr.is-bad td { background: var(--t28-danger-soft); color: var(--t28-danger); }
.t28-table tr.is-good td:first-child { border-left: 3px solid var(--t28-ok); }
.t28-table caption { caption-side: bottom; padding: 9px 12px; font-size: var(--t28-fs-xs); color: var(--t28-muted); text-align: left; }

/* ---------- 结果弹窗：仅用户完成操作后由 JS 打开 ---------- */
.t28-modal {
    position: fixed; inset: 0; z-index: 10020; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(12, 18, 28, .58); backdrop-filter: blur(3px);
}
.t28-modal.is-open { display: flex; }
.t28-modal-box {
    width: min(560px, 100%); max-height: 84vh; overflow: auto;
    background: var(--t28-surface); color: var(--t28-ink);
    border: 1px solid var(--t28-line); border-radius: var(--t28-radius);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .3); padding: 26px;
}
.t28-modal-box h3 { font-size: var(--t28-fs-lg); margin-bottom: 8px; }
.t28-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- 深色：由导航栏 #themeToggle 控制，本文件只翻变量 ---------- */
:root[data-theme="dark"] .t28 {
    --t28-bg: #0d121b;
    --t28-surface: #151c28;
    --t28-surface-2: #1b2432;
    --t28-ink: #eaf0f8;
    --t28-sub: #b6c2d2;
    --t28-muted: #8a99ac;
    --t28-line: #2b3646;
    --t28-soft: #22314a;
    --t28-ok-soft: #16362c;
    --t28-warn-soft: #3a2e18;
    --t28-danger-soft: #3d2029;
    --t28-ok: #5fd3a6;
    --t28-warn: #f0bd63;
    --t28-danger: #ff8a99;
    --t28-shadow: 0 8px 30px rgba(0, 0, 0, .38);
    --t28-shadow-lift: 0 18px 46px rgba(0, 0, 0, .52);
    color-scheme: dark;
}
:root[data-theme="dark"] .t28 .t28-input,
:root[data-theme="dark"] .t28 .t28-select,
:root[data-theme="dark"] .t28 .t28-textarea { background: #101722; }
:root[data-theme="dark"] .t28 .t28-modal-box { background: #17202d; }

/* ---------- 阅读体验：正文行距、字号、分段、关键词加粗 ---------- */
.t28-prose { font-size: var(--t28-fs-base); line-height: 1.9; color: var(--t28-sub); }
.t28-prose p { margin-bottom: 15px; }
.t28-prose b { color: var(--t28-ink); }
.t28-prose h3 { margin: 22px 0 10px; color: var(--t28-ink); }
.t28-prose ul { padding-left: 20px; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .t28-split, .t28-grid--4, .t28-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .t28-panel { padding: 18px; }
}
@media (max-width: 520px) {
    .t28 { padding: 0 14px 48px; --t28-gap: 13px; --t28-radius: 14px; }
    .t28-hero { padding: 24px 0 18px; }
    .t28-hero h1 { font-size: clamp(26px, 8vw, 34px); }
    .t28-lead { font-size: var(--t28-fs-base); }
    .t28-grid--2 { grid-template-columns: minmax(0, 1fr); }
    .t28-row > .t28-field { flex-basis: 100%; }
    .t28-btn { width: 100%; }
    .t28-actions .t28-btn { flex: 1 1 100%; }
    .t28-panel { padding: 16px; }
    .t28-modal-box { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .t28 *, .t28 *::before, .t28 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 公共「下一步推荐」卡与底部套件在窄屏的页面级兜底。
   本文件只由本批 14 个新页加载，因此不会改动任何线上已有页面的表现。 */
@media (max-width: 640px) {
    .tool-rec { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px) !important; box-sizing: border-box; }
    .tool-rec-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .tool-rec-item { min-width: 0 !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
    .tool-rec-body, .tool-rec-body b, .tool-rec-body small {
        min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal;
    }
    .tskb-card { overflow-x: auto; }
    .tskb-legend { min-width: 0; width: 100%; table-layout: fixed; }
    .tskb-legend th, .tskb-legend td { overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
    .tskb-tabs { flex-wrap: wrap; }
}
