/* ============================================================
   AIPPXP.CN — app.css（2026-09 改版）
   适用于：新首页、/tools/* 工具页、/en/* /zh/* 信任页。
   不影响旧页面（旧页面只加载 style.css）。
   设计要求：浅灰背景 / 白色卡片 / 深色正文 / 蓝-蓝紫强调色。
   ============================================================ */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --ink: #1c2333;
  --ink-2: #4a5468;
  --ink-3: #7a8499;
  --line: #e3e7ef;
  --line-2: #d5dae6;
  --accent: #3d4ee0;
  --accent-2: #6a5cff;
  --accent-soft: #eef0ff;
  --accent-ink: #2c39b8;
  --ok: #0f8a4d;
  --ok-soft: #e8f7ef;
  --warn: #b06000;
  --warn-soft: #fff4e0;
  --err: #c62f3b;
  --err-soft: #fdecee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 28, 55, .05), 0 8px 24px -12px rgba(20, 28, 55, .12);
  --shadow-lift: 0 2px 4px rgba(20, 28, 55, .06), 0 16px 32px -16px rgba(20, 28, 55, .22);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 基础（覆盖 style.css 的深色主题） ---------- */
body.nb {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
body.nb::before { display: none; }
body.nb a { color: var(--accent-ink); text-decoration: none; }
body.nb a:hover { text-decoration: underline; }
body.nb :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
body.nb main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (prefers-reduced-motion: reduce) {
  body.nb * { animation: none !important; transition: none !important; }
}

/* ---------- 顶部导航 ---------- */
.nb-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nb-head-in {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  height: 60px; display: flex; align-items: center; gap: 18px;
}
.nb-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; color: var(--ink); font-size: 17px; letter-spacing: .2px;
  white-space: nowrap;
}
.nb-brand:hover { text-decoration: none; }
.nb-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0;
}
.nb-logo i { font-style: normal; opacity: .85; margin-left: 1px; }
.nb-brand small { color: var(--ink-3); font-weight: 600; font-size: 11px; display: block; line-height: 1; letter-spacing: 1.2px; }
.nb-nav { display: flex; gap: 4px; margin-left: 6px; }
.nb-nav a {
  color: var(--ink-2); font-weight: 600; font-size: 14.5px;
  padding: 7px 12px; border-radius: 9px;
}
.nb-nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nb-nav a.on { color: var(--accent-ink); background: var(--accent-soft); }
.nb-head-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }

.nb-lang {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.nb-lang:hover { border-color: var(--accent); color: var(--accent-ink); }
.nb-lang b { color: var(--accent-ink); font-weight: 700; }
.nb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14.5px;
  padding: 9px 16px; line-height: 1.2; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.nb-btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(61, 78, 224, .7); }
.nb-btn-primary:hover { background: #3342c9; text-decoration: none; }
.nb-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.nb-btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink-2); }
.nb-btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }
.nb-btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.nb-btn-soft:hover { background: #e2e6ff; text-decoration: none; }
.nb-btn-danger { background: var(--err-soft); color: var(--err); }
.nb-btn-sm { padding: 6px 12px; font-size: 13.5px; border-radius: 9px; }
.nb-btn-lg { padding: 12px 22px; font-size: 15.5px; border-radius: 12px; }
.nb-user {
  position: relative; display: none; align-items: center;
}
.nb-user.show { display: inline-flex; }
.nb-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; cursor: pointer;
  border: 1px solid var(--line-2);
}
.nb-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lift);
  min-width: 230px; padding: 6px; display: none; z-index: 60;
}
.nb-user.open .nb-menu { display: block; }
.nb-menu-header { padding: 9px 11px 7px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.nb-menu-header b { display: block; font-size: 14px; color: var(--ink); word-break: break-all; }
.nb-menu-header small { color: var(--ink-3); font-size: 12px; }
.nb-menu button, .nb-menu a {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  font: inherit; font-size: 14px; color: var(--ink-2);
  padding: 9px 11px; border-radius: 8px; cursor: pointer;
}
.nb-menu button:hover, .nb-menu a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nb-menu .nb-menu-danger { color: var(--err); }

/* ---------- 首页：介绍条 ---------- */
.nb-intro { padding: 34px 0 8px; }
.nb-intro h1 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.25; margin: 0 0 8px; letter-spacing: -.3px; }
.nb-intro h1 span { color: var(--accent); }
.nb-intro p { color: var(--ink-2); margin: 0 0 14px; font-size: 15.5px; max-width: 640px; }
.nb-intro-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nb-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-3); font-size: 13.5px; margin-left: auto; }
.nb-stats b { color: var(--ink); font-size: 15px; }

/* ---------- 区块头 ---------- */
.nb-sec { padding: 26px 0 8px; }
.nb-sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.nb-sec-head h2 { font-size: 21px; margin: 0; letter-spacing: -.2px; }
.nb-sec-head p { margin: 0; color: var(--ink-3); font-size: 14px; }
.nb-sec-head .more { margin-left: auto; color: var(--accent-ink); font-weight: 600; font-size: 14px; white-space: nowrap; }

/* ---------- 工具卡片 ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lift);
  border-color: #c9d0ff; text-decoration: none;
}
.tool-ico {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
}
.tool-ico svg { width: 22px; height: 22px; }
.tool-card h3 { margin: 0; font-size: 15.5px; color: var(--ink); }
.tool-card p { margin: 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.55; flex: 1; }
.tool-card .tool-go { color: var(--accent-ink); font-weight: 700; font-size: 13.5px; }
.tool-badge {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .4px;
  color: var(--warn); background: var(--warn-soft);
  padding: 2px 8px; border-radius: 999px;
}
.nb-strip {
  margin-top: 14px; background: var(--surface); border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--ink-2); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.nb-strip b { color: var(--ink); }

/* ---------- 分类入口块 ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 15px; display: flex; flex-direction: column; gap: 3px;
  transition: border-color .15s, box-shadow .15s;
}
.cat-tile:hover { border-color: #c9d0ff; box-shadow: var(--shadow); text-decoration: none; }
.cat-tile b { color: var(--ink); font-size: 14.5px; }
.cat-tile small { color: var(--ink-3); font-size: 12.5px; }
.cat-tile em { font-style: normal; color: var(--accent-ink); font-weight: 700; font-size: 12.5px; margin-top: 6px; }

/* ---------- 旧卡片组件在新页面中的浅色化 ---------- */
body.nb .section-banner { border-radius: var(--radius); overflow: hidden; margin: 0 0 16px; border: 1px solid var(--line); }
body.nb .section-banner img { display: block; width: 100%; max-height: 210px; object-fit: cover; }
body.nb .home-head { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 14px; }
body.nb .home-head .bar { display: none; }
body.nb .home-head h2 { font-size: 20px; margin: 0; color: var(--ink); }
body.nb .home-head h2 small { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
body.nb .home-head .more { margin-left: auto; font-weight: 600; font-size: 14px; }
body.nb .cards, body.nb .content-grid { gap: 14px; }
body.nb .content-grid { display: block; max-width: none; margin: 0; }
body.nb .card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
body.nb .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #c9d0ff; }
body.nb .card-art { min-height: 130px; }
body.nb .card-art.card-img { background: var(--surface-2); }
body.nb .card-art.card-img img { object-fit: cover; }
body.nb .card-art:not(.card-img) { background: linear-gradient(135deg, #eef0ff, #f6f0ff); }
body.nb .card-art span { color: var(--accent-ink); }
body.nb .card-art b { color: var(--ink-2); }
body.nb .card-copy { background: var(--surface); border-top: 1px solid var(--line); }
body.nb .card-copy .eyebrow { color: var(--ink-3); background: none; padding: 0; font-size: 11.5px; letter-spacing: .5px; }
body.nb .card h3 { color: var(--ink); font-size: 15px; line-height: 1.45; }
body.nb .card p { color: var(--ink-3); font-size: 13px; }
body.nb .card-foot { color: var(--ink-3); border-top: 1px solid var(--line); font-size: 12px; }
body.nb .card-foot span { color: var(--accent-ink); }
body.nb .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); }
body.nb .c-views { color: var(--ink-3); }

/* ---------- 页脚 ---------- */
.nb-foot { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; }
.nb-foot-in {
  max-width: 1120px; margin: 0 auto; padding: 30px 20px 26px;
  display: flex; flex-wrap: wrap; gap: 18px 40px;
}
.nb-foot-brand { max-width: 320px; }
.nb-foot-brand b { color: var(--ink); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.nb-foot-brand p { color: var(--ink-3); font-size: 13px; margin: 8px 0 0; }
.nb-foot-col { display: flex; flex-direction: column; gap: 7px; }
.nb-foot-col b { color: var(--ink-2); font-size: 13px; letter-spacing: .3px; }
.nb-foot-col a { color: var(--ink-3); font-size: 13.5px; }
.nb-foot-col a:hover { color: var(--accent-ink); }
.nb-foot-base {
  border-top: 1px solid var(--line); padding: 14px 20px;
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
  color: var(--ink-3); font-size: 12.5px;
}
.nb-foot-base span { margin-left: auto; }

/* ---------- 工具页 ---------- */
.nb-crumbs { padding: 18px 0 0; color: var(--ink-3); font-size: 13px; }
.nb-crumbs a { color: var(--ink-3); }
.tool-hero { padding: 16px 0 4px; }
.tool-hero h1 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 6px; letter-spacing: -.3px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-hero .tool-ico { width: 40px; height: 40px; }
.tool-hero p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 720px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tool-tag {
  font-size: 12.5px; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}
.tool-layout { display: grid; grid-template-columns: 380px 1fr; gap: 18px; padding: 16px 0 8px; align-items: start; }
.tool-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  display: flex; flex-direction: column; gap: 15px;
}
.tool-stage {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; min-height: 300px;
  display: flex; flex-direction: column; gap: 14px;
}
.tool-panel h2, .tool-stage h2 { font-size: 15.5px; margin: 0; color: var(--ink); }
.tool-panel .nb-btn-lg { width: 100%; }

/* 文件选择 */
.dropzone {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 26px 16px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-ico { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.dropzone b { display: block; color: var(--ink); font-size: 14.5px; }
.dropzone small { color: var(--ink-3); font-size: 12.5px; display: block; margin-top: 4px; }
.file-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px;
}
.file-chip .fc-name { font-weight: 700; color: var(--ink); word-break: break-all; }
.file-chip .fc-meta { color: var(--ink-3); font-size: 12.5px; }
.file-chip .fc-x {
  margin-left: auto; border: 0; background: none; cursor: pointer;
  color: var(--ink-3); font-size: 16px; padding: 2px 6px; border-radius: 6px;
}
.file-chip .fc-x:hover { background: var(--err-soft); color: var(--err); }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field .hint { color: var(--ink-3); font-size: 12.5px; }
.field input[type="number"], .field input[type="text"], .field input[type="email"],
.field input[type="url"], .field select, .field textarea {
  font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 9px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent);
}
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-val { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }

/* 状态 */
.state { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; display: none; gap: 10px; align-items: flex-start; line-height: 1.55; }
.state.show { display: flex; }
.state-err { background: var(--err-soft); color: var(--err); border: 1px solid #f6c9ce; }
.state-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfe8d2; }
.state-info { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #d9deff; }
.state-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #f3ddba; }
.spinner {
  width: 16px; height: 16px; flex: none; margin-top: 2px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: nb-spin .8s linear infinite; opacity: .8;
}
@keyframes nb-spin { to { transform: rotate(360deg); } }
.progress-track { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s; border-radius: 999px; }
.progress-note { font-size: 12.5px; color: var(--ink-3); }

/* 结果 */
.result-box { display: none; flex-direction: column; gap: 12px; }
.result-box.show { display: flex; }
.result-media { display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; min-height: 120px; }
.result-media img { max-width: 100%; max-height: 380px; border-radius: 8px; box-shadow: var(--shadow); }
.result-media audio, .result-media video { width: 100%; }
.result-media textarea {
  width: 100%; min-height: 220px; font: 13px/1.6 ui-monospace, Consolas, "Courier New", monospace;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px; resize: vertical;
  background: var(--surface); color: var(--ink); white-space: pre;
}
.result-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; color: var(--ink-2); }
.result-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 步骤 / FAQ / 相关工具 */
.tool-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 0 8px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.info-card h2 { font-size: 15.5px; margin: 0 0 12px; }
.info-card ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 8px; }
.info-card details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.info-card details + details { margin-top: 8px; }
.info-card summary {
  cursor: pointer; font-weight: 700; font-size: 14px; color: var(--ink);
  padding: 11px 14px; list-style: none; position: relative; padding-right: 34px;
}
.info-card summary::-webkit-details-marker { display: none; }
.info-card summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--accent-ink); font-weight: 700; font-size: 16px;
}
.info-card details[open] summary::after { content: "–"; }
.info-card details .faq-a { padding: 0 14px 12px; color: var(--ink-2); font-size: 13.5px; line-height: 1.65; }
.related-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 10px; }
.related-row a {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.related-row a:hover { border-color: var(--accent); color: var(--accent-ink); text-decoration: none; }

/* 裁剪器 */
.crop-wrap { position: relative; background: #202636; border-radius: var(--radius-sm); overflow: hidden; touch-action: none; user-select: none; }
.crop-wrap canvas { display: block; max-width: 100%; margin: 0 auto; }
.crop-box { position: absolute; border: 1.5px solid #fff; box-shadow: 0 0 0 9999px rgba(10, 14, 25, .62); cursor: move; }
.crop-box .grip { position: absolute; width: 14px; height: 14px; background: #fff; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.crop-box .g-se { right: -7px; bottom: -7px; cursor: nwse-resize; }
.crop-box .g-nw { left: -7px; top: -7px; cursor: nwse-resize; }

/* ---------- 登录弹窗 ---------- */
.nb-modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(18, 23, 40, .55); backdrop-filter: blur(3px);
}
.nb-modal.show { display: flex; }
.nb-modal-card {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lift);
  width: 100%; max-width: 400px; padding: 24px; position: relative;
  max-height: 90vh; overflow: auto;
}
.nb-modal-card h3 { margin: 0 0 4px; font-size: 19px; }
.nb-modal-card .nb-modal-sub { color: var(--ink-3); font-size: 13.5px; margin: 0 0 16px; }
.nb-modal-x {
  position: absolute; right: 12px; top: 12px; border: 0; background: none;
  font-size: 20px; color: var(--ink-3); cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.nb-modal-x:hover { background: var(--surface-2); color: var(--ink); }
.nb-modal .field { margin-bottom: 12px; }
.nb-modal .nb-btn { width: 100%; justify-content: center; }
.nb-modal-note { color: var(--ink-3); font-size: 12.5px; margin: 12px 0 0; line-height: 1.55; }
.nb-code-row { display: flex; gap: 8px; }
.nb-code-row input { letter-spacing: 6px; font-size: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.nb-code-row .nb-btn { flex: none; }
.nb-alt { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 14px; }
.nb-alt button { background: none; border: 0; color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

/* ---------- Toast ---------- */
.nb-toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.nb-toast {
  background: #232b40; color: #fff; font-size: 13.5px;
  border-radius: 10px; padding: 10px 16px; box-shadow: var(--shadow-lift);
  animation: nb-toast-in .2s ease-out; max-width: 86vw;
}
.nb-toast.err { background: var(--err); }
@keyframes nb-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 信任页（about/privacy/terms/contact） ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 30px 20px 10px; }
.legal h1 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 6px; letter-spacing: -.3px; }
.legal .legal-updated { color: var(--ink-3); font-size: 13px; margin-bottom: 22px; }
.legal h2 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.legal ul, .legal ol { padding-left: 22px; margin: 8px 0; }
.legal .callout {
  background: var(--accent-soft); border: 1px solid #d9deff; border-radius: var(--radius-sm);
  padding: 12px 16px; color: var(--accent-ink); font-size: 14px; margin: 14px 0;
}
.legal table { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 10px 0; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; color: var(--ink-2); }
.legal th { background: var(--surface-2); color: var(--ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  body.nb .grid4 { grid-template-columns: repeat(2, 1fr); }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-info { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nb-head-in { height: 54px; gap: 10px; padding: 0 14px; }
  .nb-nav { display: none; }
  .nb-brand small { display: none; }
  body.nb main { padding: 0 14px; }
  .nb-intro { padding-top: 22px; }
  .nb-stats { margin-left: 0; }
  .tools-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tiles { grid-template-columns: 1fr 1fr; }
  body.nb .grid4 { grid-template-columns: 1fr 1fr; }
  body.nb .section-banner img { max-height: 120px; }
  .nb-foot-in { flex-direction: column; gap: 22px; }
  .tool-hero h1 { font-size: 21px; }
  .result-actions .nb-btn { flex: 1 1 auto; }
}
@media (max-width: 430px) {
  .tools-grid, body.nb .grid4 { grid-template-columns: 1fr; }
  .tool-card { flex-direction: row; align-items: flex-start; }
  .tool-card .tool-body { flex: 1; }
}
