/* ==========================================================================
   S26 · 精品工具设计系统（26 个工具共用底座）
   配色：暖纸白 + 深墨绿 + 工具独立强调色；导航三态主题统一控制。
   每页在自身 CSS 中覆盖 --s26-brand / --s26-brand2 / --s26-motif。
   不依赖外部图片：所有装饰为 CSS/内联 SVG，天然免懒加载与压缩。
   ========================================================================== */
.s26 {
  --s26-brand: #0f766e;
  --s26-brand2: #b45309;
  --s26-motif: rgba(15, 118, 110, .09);
  --s26-bg: #f5f6f2;
  --s26-surface: #fffefa;
  --s26-surface2: #f1f3ee;
  --s26-ink: #14211d;
  --s26-sub: #4c5c55;
  --s26-muted: #7d8a84;
  --s26-line: #e1e6df;
  --s26-line2: #c9d2c9;
  --s26-soft: color-mix(in srgb, var(--s26-brand) 9%, #ffffff);
  --s26-soft2: color-mix(in srgb, var(--s26-brand2) 10%, #ffffff);
  --s26-ok: #15803d;
  --s26-warn: #b45309;
  --s26-bad: #b91c1c;
  --s26-shadow: 0 1px 2px rgba(20, 33, 29, .05), 0 12px 32px rgba(20, 33, 29, .055);
  --s26-shadow-lg: 0 24px 64px rgba(20, 33, 29, .11);
  --s26-r: 16px;
  --s26-rs: 10px;
  --s26-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --s26-mono: ui-monospace, SFMono-Regular, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  color: var(--s26-ink);
  background: linear-gradient(180deg, var(--s26-soft) 0, var(--s26-bg) 260px, var(--s26-bg) 100%);
  font-family: var(--s26-sans);
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  min-height: 70vh;
  padding: 0 0 64px;
}
[data-theme="dark"] .s26 {
  --s26-bg: #0e1513;
  --s26-surface: #161f1b;
  --s26-surface2: #1d2722;
  --s26-ink: #eaf1ec;
  --s26-sub: #adbcb4;
  --s26-muted: #829189;
  --s26-line: #2a3831;
  --s26-line2: #3b4d44;
  --s26-soft: color-mix(in srgb, var(--s26-brand) 20%, #161f1b);
  --s26-soft2: color-mix(in srgb, var(--s26-brand2) 18%, #161f1b);
  --s26-ok: #4ade80;
  --s26-warn: #fbbf24;
  --s26-bad: #f87171;
  --s26-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
  --s26-shadow-lg: 0 24px 64px rgba(0, 0, 0, .46);
  background: linear-gradient(180deg, var(--s26-soft) 0, var(--s26-bg) 260px, var(--s26-bg) 100%);
}
.s26 *, .s26 *::before, .s26 *::after { box-sizing: border-box; }
.s26 h1, .s26 h2, .s26 h3, .s26 h4, .s26 p, .s26 ul, .s26 ol, .s26 figure { margin: 0; }
.s26 ul, .s26 ol { padding-left: 1.25em; }
.s26 a { color: var(--s26-brand); text-decoration: none; }
.s26 a:hover { text-decoration: underline; }
.s26 button, .s26 input, .s26 select, .s26 textarea { font: inherit; color: inherit; }
.s26 [hidden] { display: none !important; }
.s26 :focus-visible { outline: 2px solid var(--s26-brand2); outline-offset: 2px; }
.s26-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Hero：首屏价值 ---------- */
.s26-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); align-items: center; gap: 40px; padding: 34px 0 26px; }
.s26-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--s26-brand); text-transform: uppercase; }
.s26-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--s26-brand); }
.s26-hero h1 { margin-top: 10px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.18; font-weight: 780; letter-spacing: -.02em; }
.s26-hero h1 em { display: block; margin-top: 6px; font-style: normal; font-size: .72em; font-weight: 650; letter-spacing: 0; color: var(--s26-brand); }
.s26-lede { margin-top: 12px; max-width: 760px; font-size: 15px; line-height: 1.8; color: var(--s26-sub); }
.s26-lede strong { color: var(--s26-ink); font-weight: 700; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--s26-brand) 22%, transparent) 0); }
.s26-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 12.5px; color: var(--s26-muted); }
.s26-trust span { display: inline-flex; align-items: center; gap: 6px; }
.s26-trust i { width: 6px; height: 6px; border-radius: 50%; background: var(--s26-brand); }
.s26-motif { position: relative; height: 190px; border-radius: var(--s26-r); background: radial-gradient(circle at 30% 25%, var(--s26-motif), transparent 68%), var(--s26-surface); border: 1px solid var(--s26-line); box-shadow: var(--s26-shadow); overflow: hidden; }
.s26-motif::after { content: attr(data-stamp); position: absolute; right: 14px; bottom: 10px; font: 700 10px/1 var(--s26-mono); letter-spacing: .18em; color: var(--s26-muted); opacity: .7; }

/* ---------- 操作台 ---------- */
.s26-console { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 18px; align-items: stretch; }
.s26-panel { background: var(--s26-surface); border: 1px solid var(--s26-line); border-radius: var(--s26-r); box-shadow: var(--s26-shadow); padding: 20px 22px; }
.s26-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.s26-panel-head h2, .s26-section-head h2 { font-size: 17px; font-weight: 740; letter-spacing: -.01em; }
.s26-panel-head p, .s26-section-head p { font-size: 12.5px; color: var(--s26-muted); }
.s26-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--s26-soft); color: var(--s26-brand); font-size: 11px; font-weight: 700; white-space: nowrap; }
.s26-tag.alt { background: var(--s26-soft2); color: var(--s26-brand2); }
.s26-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 14px; }
.s26-field { display: block; min-width: 0; }
.s26-field.wide { grid-column: 1 / -1; }
.s26-field > span { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 650; color: var(--s26-sub); }
.s26-field > span small { margin-left: 5px; font-weight: 450; color: var(--s26-muted); font-size: 11px; }
.s26-input-wrap { position: relative; display: flex; align-items: center; }
.s26-input-wrap em { position: absolute; right: 12px; font-style: normal; font-size: 12px; color: var(--s26-muted); pointer-events: none; }
.s26-field input[type="number"], .s26-field input[type="text"], .s26-field select, .s26-field textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--s26-line2); border-radius: var(--s26-rs);
  background: var(--s26-surface2); color: var(--s26-ink); font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.s26-field input[type="number"] { font-family: var(--s26-mono); font-variant-numeric: tabular-nums; padding-right: 48px; }
.s26-field textarea { min-height: 92px; resize: vertical; line-height: 1.65; }
.s26-field input:focus, .s26-field select:focus, .s26-field textarea:focus { outline: none; border-color: var(--s26-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--s26-brand) 15%, transparent); }
.s26-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.s26-seg button { padding: 7px 12px; border: 1px solid var(--s26-line2); border-radius: 999px; background: var(--s26-surface2); color: var(--s26-sub); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .15s; }
.s26-seg button:hover { border-color: var(--s26-brand); color: var(--s26-brand); }
.s26-seg button.on { background: var(--s26-brand); border-color: var(--s26-brand); color: #fff; }
[data-theme="dark"] .s26-seg button.on { color: #08110d; }
.s26-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--s26-line); }
.s26-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: var(--s26-rs); border: 1px solid transparent; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s; }
.s26-btn:active { transform: translateY(1px); }
.s26-btn.primary { background: var(--s26-brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--s26-brand) 25%, transparent); }
[data-theme="dark"] .s26-btn.primary { color: #07100c; }
.s26-btn.ghost { background: var(--s26-surface2); border-color: var(--s26-line2); color: var(--s26-sub); }
.s26-btn.ghost:hover { border-color: var(--s26-brand); color: var(--s26-brand); }
.s26-btn.ai { background: linear-gradient(135deg, var(--s26-brand2), var(--s26-brand)); color: #fff; }
.s26-btn[disabled] { opacity: .6; cursor: wait; }
.s26-error { margin-top: 10px; padding: 9px 12px; border-radius: var(--s26-rs); background: color-mix(in srgb, var(--s26-bad) 10%, var(--s26-surface)); color: var(--s26-bad); font-size: 13px; font-weight: 600; }

/* ---------- 结果 ---------- */
.s26-output { display: flex; flex-direction: column; }
.s26-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.s26-metric { position: relative; padding: 14px 15px 13px; border: 1px solid var(--s26-line); border-radius: var(--s26-rs); background: var(--s26-surface2); overflow: hidden; }
.s26-metric::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--s26-line2); }
.s26-metric.primary { background: var(--s26-soft); border-color: color-mix(in srgb, var(--s26-brand) 26%, var(--s26-line)); }
.s26-metric.primary::before { background: var(--s26-brand); }
.s26-metric.alt { background: var(--s26-soft2); }
.s26-metric.alt::before { background: var(--s26-brand2); }
.s26-metric.ok::before { background: var(--s26-ok); }
.s26-metric.bad::before { background: var(--s26-bad); }
.s26-metric span { display: block; font-size: 12px; color: var(--s26-sub); font-weight: 650; }
.s26-metric strong { display: block; margin-top: 3px; font-family: var(--s26-mono); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.02em; word-break: break-word; }
.s26-metric small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--s26-muted); }
.s26-chart { margin-top: 14px; display: grid; gap: 8px; }
.s26-bar-row { display: grid; grid-template-columns: 88px 1fr 76px; align-items: center; gap: 10px; font-size: 12px; }
.s26-bar-row > span { color: var(--s26-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s26-bar-track { height: 9px; border-radius: 999px; background: var(--s26-surface2); overflow: hidden; }
.s26-bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--s26-brand), var(--s26-brand2)); }
.s26-bar-row > b { text-align: right; font-family: var(--s26-mono); font-size: 11.5px; color: var(--s26-ink); }
.s26-notes { margin-top: 14px; display: grid; gap: 6px; }
.s26-notes li { list-style: none; padding: 8px 11px 8px 30px; position: relative; border-radius: 8px; background: var(--s26-surface2); color: var(--s26-sub); font-size: 12.5px; line-height: 1.65; }
.s26-notes li::before { content: "→"; position: absolute; left: 11px; color: var(--s26-brand); font-weight: 700; }
.s26-notes li.warn { background: color-mix(in srgb, var(--s26-warn) 10%, var(--s26-surface)); }
.s26-notes li.warn::before { content: "!"; color: var(--s26-warn); }
.s26-notes li.ok::before { content: "✓"; color: var(--s26-ok); }

/* ---------- 批量 / 表格 / 说明 ---------- */
.s26-block { margin-top: 18px; padding: 22px; background: var(--s26-surface); border: 1px solid var(--s26-line); border-radius: var(--s26-r); box-shadow: var(--s26-shadow); }
.s26-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.s26-batch textarea { width: 100%; min-height: 100px; padding: 11px 13px; border: 1px solid var(--s26-line2); border-radius: var(--s26-rs); background: var(--s26-surface2); font-family: var(--s26-mono); font-size: 13px; line-height: 1.7; resize: vertical; }
.s26-table-wrap { overflow-x: auto; border: 1px solid var(--s26-line); border-radius: var(--s26-rs); }
.s26-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.s26-table th, .s26-table td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--s26-line); }
.s26-table th { background: var(--s26-surface2); font-size: 12px; color: var(--s26-sub); font-weight: 700; white-space: nowrap; }
.s26-table td { font-variant-numeric: tabular-nums; }
.s26-table tbody tr:last-child td { border-bottom: 0; }
.s26-table .num { font-family: var(--s26-mono); text-align: right; }
.s26-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.s26-mini { padding: 15px; border: 1px solid var(--s26-line); border-radius: var(--s26-rs); background: var(--s26-surface2); }
.s26-mini b { display: block; font-size: 13.5px; }
.s26-mini p { margin-top: 5px; font-size: 12.5px; line-height: 1.7; color: var(--s26-sub); }
.s26-prose { display: grid; gap: 14px; max-width: 900px; }
.s26-prose h3 { font-size: 15px; font-weight: 730; color: var(--s26-ink); }
.s26-prose p { font-size: 13.5px; line-height: 1.95; color: var(--s26-sub); }
.s26-prose strong { color: var(--s26-ink); font-weight: 700; background: linear-gradient(transparent 64%, color-mix(in srgb, var(--s26-brand) 20%, transparent) 0); }
.s26-faq { display: grid; gap: 9px; }
.s26-faq details { border: 1px solid var(--s26-line); border-radius: var(--s26-rs); background: var(--s26-surface2); padding: 0 14px; }
.s26-faq summary { cursor: pointer; padding: 12px 0; font-size: 13.5px; font-weight: 700; list-style: none; }
.s26-faq summary::-webkit-details-marker { display: none; }
.s26-faq summary::after { content: "+"; float: right; color: var(--s26-brand); font-size: 17px; line-height: 1; }
.s26-faq details[open] summary::after { content: "−"; }
.s26-faq details p { padding: 0 0 13px; font-size: 13px; line-height: 1.9; color: var(--s26-sub); }
.s26-ai-box { margin-top: 14px; padding: 15px 16px; border: 1px solid color-mix(in srgb, var(--s26-brand2) 30%, var(--s26-line)); border-radius: var(--s26-rs); background: var(--s26-soft2); font-size: 13px; line-height: 1.9; white-space: pre-wrap; }
.s26-ai-box b { display: block; margin-bottom: 5px; color: var(--s26-brand2); font-size: 12px; letter-spacing: .08em; }
.s26-footnote { margin-top: 14px; font-size: 11.5px; line-height: 1.8; color: var(--s26-muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .s26-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 26px; }
  .s26-motif { height: 150px; }
  .s26-console { grid-template-columns: 1fr; }
  .s26-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .s26-shell { width: min(100% - 24px, 1180px); }
  .s26-fields { grid-template-columns: 1fr; }
  .s26-metrics { grid-template-columns: 1fr; }
  .s26-cards { grid-template-columns: 1fr; }
  .s26-panel, .s26-block { padding: 16px; }
  .s26-bar-row { grid-template-columns: 66px 1fr 62px; }
}
