/* ============================================================
   Toolhand — Bauhaus / neo-brutalist visual system
   几何色块 · 原色撞色 · 粗黑硬边 · 超大字重对比
   ============================================================ */

:root {
  --paper: #F3EFE4;
  --paper-2: #FFFDF7;
  --ink: #14130F;
  --ink-2: #3D3A30;
  --muted: #6C675B;
  --faint: #948E7E;

  --red: #E23D28;
  --blue: #1B4FD8;
  --yellow: #F5C518;
  --green: #0E7C46;

  --line: #14130F;
  --bw: 2.5px;
  --sh: 5px 5px 0 var(--ink);
  --sh-sm: 3px 3px 0 var(--ink);
  --radius: 0px;

  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(20, 19, 15, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--yellow); color: var(--ink); }

.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--bw) solid var(--ink);
}
.nav-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand {
  font-weight: 900; letter-spacing: -.03em; font-size: 19px;
  display: flex; align-items: center; gap: 10px;
  text-transform: none;
}
.brand .dot {
  width: 16px; height: 16px; background: var(--red);
  border: 2px solid var(--ink); flex: none;
  border-radius: 50% 50% 0 50%;
  transform: rotate(-8deg);
}
.nav-links { margin-left: auto; display: flex; gap: 4px; font-size: 14px; font-weight: 600; }
.nav-links a {
  padding: 4px 10px; border: 2px solid transparent;
  transition: background .12s, border-color .12s, transform .12s;
}
.nav-links a:hover { background: var(--yellow); border-color: var(--ink); transform: translate(-1px, -1px); }
.lang-switch {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  border: 2px solid var(--ink) !important; background: var(--blue); color: #fff;
  padding: 3px 9px !important;
}
.lang-switch:hover { background: var(--red) !important; }

/* ============ hero ============ */
.hero { padding: 60px 0 34px; position: relative; }
.hero::before, .hero::after {
  content: ''; position: absolute; pointer-events: none; z-index: 0;
}
.hero::before {
  width: 96px; height: 96px; right: 4px; top: 10px;
  background: var(--red); border: var(--bw) solid var(--ink);
  border-radius: 50%;
}
.hero::after {
  width: 78px; height: 78px; right: 74px; top: 92px;
  background: var(--blue);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.hero-top { display: flex; gap: 20px; align-items: flex-start; position: relative; z-index: 1; }
.avatar {
  width: 74px; height: 74px; flex: none; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  border: var(--bw) solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 26px; letter-spacing: -.03em;
  box-shadow: var(--sh-sm);
}

h1 {
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.02; margin: 0 0 4px;
  letter-spacing: -.038em; font-weight: 900;
  text-wrap: balance;
}
.hero .handle {
  color: var(--ink-2); font-family: var(--mono); font-size: 13px; font-weight: 500;
  display: inline-block; background: var(--paper-2);
  border: 2px solid var(--ink); padding: 1px 8px;
}
.hero .bio {
  color: var(--ink-2); margin: 14px 0 0; max-width: 620px;
  font-size: 15.5px; line-height: 1.7;
}
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px;
  border: 2px solid var(--ink); color: var(--ink); background: var(--paper-2);
  box-shadow: 2px 2px 0 var(--ink);
}
.badges .badge:nth-child(3n+1) { background: var(--yellow); }
.badges .badge:nth-child(3n+2) { background: #CFE0FF; }
.badge.accent {
  background: var(--red); border-color: var(--ink); color: #fff;
}

/* ============ dashboard / stats strip ============ */
.dash {
  margin: 30px 0 0; display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: var(--bw) solid var(--ink); background: var(--ink);
  box-shadow: var(--sh);
}
.dash-cell { background: var(--paper-2); padding: 14px 16px; border-right: var(--bw) solid var(--ink); }
.dash-cell:last-child { border-right: 0; }
.dash-cell:nth-child(4n+1) { background: var(--yellow); }
.dash-cell:nth-child(4n+3) { background: #CFE0FF; }
.dash-v { font-family: var(--mono); font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.dash-l { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 1px; }
.dash-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ============ section ============ */
.sec-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 58px 0 18px; padding-bottom: 9px;
  border-bottom: var(--bw) solid var(--ink);
}
h2 { font-size: 23px; margin: 0; font-weight: 900; letter-spacing: -.025em; }
.sec-head .count {
  font-size: 13px; font-weight: 700; font-family: var(--mono);
  background: var(--red); color: #fff; padding: 1px 8px;
  border: 2px solid var(--ink);
}

.search {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit; font-weight: 500;
  border: var(--bw) solid var(--ink); background: var(--paper-2); color: var(--ink);
  margin-bottom: 20px; box-shadow: var(--sh-sm);
}
.search:focus { outline: none; background: var(--yellow); box-shadow: var(--sh); }

/* ============ tool grid ============ */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  counter-reset: tile;
}
.tile {
  display: block; padding: 15px 16px 14px; background: var(--paper-2);
  border: var(--bw) solid var(--ink); box-shadow: var(--sh);
  transition: transform .12s, box-shadow .12s, background .12s;
  position: relative;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.grid .tile:nth-child(3n+1):hover { background: var(--yellow); }
.grid .tile:nth-child(3n+2):hover { background: #CFE0FF; }
.grid .tile:nth-child(3n+3):hover { background: #FFDCD5; }
.tile-n {
  font-weight: 700; font-size: 15.5px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px;
}
.tile::before {
  counter-increment: tile; content: counter(tile, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 11px; font-weight: 700;
  color: var(--ink); background: var(--yellow);
  border: 2px solid var(--ink); padding: 0 6px; margin-bottom: 9px;
  width: fit-content; line-height: 1.5;
}
.grid .tile:nth-child(3n+2)::before { background: #CFE0FF; }
.grid .tile:nth-child(3n+3)::before { background: #FFDCD5; }
.tile-n .arrow { margin-left: auto; color: var(--ink); font-size: 15px; font-weight: 700; }
.tile:hover .arrow { transform: translateX(3px); }
.tile-t { color: var(--ink-2); font-size: 13px; margin-top: 3px; line-height: 1.55; }

/* 吸顶搜索条：滚到工具区后随时可搜 */
.search-bar {
  position: sticky; top: 60px; z-index: 30;
  background: var(--paper); padding: 10px 0 10px;
  border-bottom: 2px solid transparent; transition: border-color .12s;
}
.search-bar.active { border-bottom-color: var(--ink); }
.search-bar .search { margin-bottom: 0; }
.search-count {
  display: inline-block; margin-top: 7px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--yellow); border: 2px solid var(--ink); padding: 0 8px;
}
.search-count:empty { display: none; }

/* 分类快捷入口 */
.cat-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.cat-pill {
  font-size: 12px; font-weight: 700; padding: 3px 9px;
  border: 2px solid var(--ink); background: var(--paper-2);
  box-shadow: 2px 2px 0 var(--ink); transition: transform .1s, box-shadow .1s;
}
.cat-pill b { font-family: var(--mono); margin-left: 2px; }
.cat-pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.cat-pill.c1 { background: var(--yellow); }
.cat-pill.c2 { background: #CFE0FF; }
.cat-pill.c3 { background: #FFDCD5; }
.cat-pill.c4 { background: #C9EBD6; }

.tool-group { margin-bottom: 28px; scroll-margin-top: 170px; }
.cat-dot {
  display: inline-block; width: 11px; height: 11px; margin-right: 7px;
  border: 2px solid var(--ink); border-radius: 50%;
}
.cat-dot.c1 { background: var(--red); }
.cat-dot.c2 { background: var(--blue); }
.cat-dot.c3 { background: var(--green); }
.cat-dot.c4 { background: var(--yellow); }

/* ============ tool page ============ */
.crumb { font-size: 13px; font-weight: 600; color: var(--muted); padding: 22px 0 0; }
.crumb a:hover { color: var(--red); background: var(--yellow); }
.tool-head { padding: 10px 0 22px; }
.tool-head h1 { font-size: clamp(26px, 4.4vw, 38px); }
.tool-desc { color: var(--ink-2); max-width: 680px; margin: 10px 0 0; font-size: 15px; }

.card {
  background: var(--paper-2); border: var(--bw) solid var(--ink);
  box-shadow: var(--sh); padding: 18px; margin-bottom: 18px;
}
.card-head {
  font-size: 12px; font-weight: 800; color: var(--ink);
  margin-bottom: 12px; letter-spacing: .06em; text-transform: uppercase;
  display: inline-block; background: var(--yellow);
  border: 2px solid var(--ink); padding: 1px 8px;
}

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; flex: 1; min-width: 120px; }
.lbl { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }

.ta {
  width: 100%; min-height: 130px; resize: vertical;
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  padding: 12px; border: var(--bw) solid var(--ink);
  background: var(--paper-2); color: var(--ink);
}
.ta:focus, .inp:focus { outline: none; border-color: var(--ink); background: #FFFCEC; box-shadow: var(--sh-sm); }
.inp {
  padding: 9px 11px; font-size: 14px; font-family: inherit;
  border: var(--bw) solid var(--ink); background: var(--paper-2); color: var(--ink);
}
.inp.short { width: 92px; }
.inp.mono { font-family: var(--mono); font-size: 13px; }
select.inp { width: 100%; }
input[type=range] { accent-color: var(--red); flex: 1; }
input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }

.checks { display: flex; flex-wrap: wrap; gap: 16px; margin: 4px 0 14px; font-size: 14px; color: var(--ink-2); }
.checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ops { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  padding: 8px 15px; font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
  border: var(--bw) solid var(--ink); background: var(--paper-2); color: var(--ink);
  box-shadow: var(--sh-sm); transition: transform .1s, box-shadow .1s, background .1s;
}
.btn:hover { background: var(--yellow); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--yellow); }
.btn-primary:hover { background: var(--red); color: #fff; }
.btn-secondary { background: var(--paper-2); color: var(--ink); }
.btn-secondary:hover { background: var(--blue); color: #fff; }
.btn-ghost { border-color: transparent; box-shadow: none; color: var(--muted); padding: 4px 8px; font-size: 13px; }
.btn-ghost:hover { color: var(--red); background: transparent; box-shadow: none; transform: none; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.out-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.out-head .btn { margin-left: auto; }
.ok { color: var(--green); font-size: 13px; font-weight: 700; }
.err { color: var(--red); font-size: 13px; font-weight: 600; word-break: break-all; }
.muted { color: var(--muted); font-size: 13px; }

.pre {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  background: var(--paper-2); border: var(--bw) solid var(--ink);
  padding: 12px; margin: 0; overflow: auto; max-height: 420px; white-space: pre;
}
.pre.wrap { white-space: pre-wrap; word-break: break-word; }
mark { background: var(--yellow); border-radius: 0; padding: 0 2px; }

.mono { font-family: var(--mono); }
.big { font-size: 32px; font-weight: 900; letter-spacing: -.03em; }
.now { display: flex; align-items: baseline; gap: 8px; }
.pat { display: flex; align-items: center; gap: 6px; }
.slash { color: var(--faint); font-size: 18px; }
.pat .inp:first-of-type { flex: 1; }

.swatch { height: 76px; border: var(--bw) solid var(--ink); margin-top: 12px; }
.picker { width: 54px; height: 40px; padding: 2px; border: var(--bw) solid var(--ink); background: #fff; }
.color-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 2px solid var(--ink); }
.color-row:last-child { border-bottom: 0; }
.color-row .muted { width: 54px; flex: none; font-size: 12px; font-weight: 700; }
.color-row code { flex: 1; font-size: 13px; }

.pw-list { display: flex; flex-direction: column; gap: 8px; }
.pw-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--paper-2); border: 2px solid var(--ink);
}
.pw-item code { flex: 1; font-size: 13px; word-break: break-all; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.stat { background: var(--paper-2); border: 2px solid var(--ink); padding: 12px; }
.stat:nth-child(3n+1) { background: var(--yellow); }
.stat:nth-child(3n+2) { background: #CFE0FF; }
.stat-v { font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.stat-l { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 2px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.tbl th {
  text-align: left; font-weight: 800; color: var(--ink); font-size: 12px;
  padding: 7px 8px; border-bottom: var(--bw) solid var(--ink);
  background: var(--yellow); text-transform: uppercase; letter-spacing: .04em;
}
.tbl td { padding: 7px 8px; border-bottom: 1.5px solid rgba(20,19,15,.22); vertical-align: top; }
.tbl .num { font-family: var(--mono); font-weight: 700; color: var(--ink-2); width: 60px; }

/* 文本对比 */
.diff {
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  border: var(--bw) solid var(--ink); overflow: hidden; margin-top: 10px;
}
.diff > div { padding: 3px 10px; white-space: pre-wrap; word-break: break-all; border-bottom: 1px solid rgba(20,19,15,.18); }
.diff > div:last-child { border-bottom: 0; }
.d-add { background: #C7EFD8; color: #0A5C33; font-weight: 600; }
.d-del { background: #FFDCD5; color: #A32A17; font-weight: 600; }
.d-eq { color: var(--muted); }

/* Markdown 预览 */
.mdview { font-size: 15px; line-height: 1.75; }
.mdview h1, .mdview h2, .mdview h3, .mdview h4, .mdview h5, .mdview h6 {
  margin: 18px 0 8px; line-height: 1.25; font-weight: 900; letter-spacing: -.02em;
}
.mdview h2 { border-bottom: var(--bw) solid var(--ink); padding-bottom: 4px; }
.mdview p { margin: 8px 0; }
.mdview code { font-family: var(--mono); background: var(--yellow); padding: 1px 5px; font-size: 13px; }
.mdview pre { background: var(--paper-2); border: 2px solid var(--ink); padding: 12px; overflow: auto; }
.mdview pre code { background: none; padding: 0; }
.mdview blockquote {
  margin: 8px 0; padding-left: 12px; border-left: 5px solid var(--red); color: var(--ink-2); font-weight: 500;
}
.mdview ul, .mdview ol { margin: 8px 0; padding-left: 22px; }
.mdview li { margin: 3px 0; }
.mdview hr { border: 0; border-top: var(--bw) solid var(--ink); margin: 16px 0; }
.mdview table { margin-top: 8px; }

.preview { margin-top: 12px; }
.preview img { max-width: 100%; border: var(--bw) solid var(--ink); display: block; }
.qr-box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 80px; }
.qr-box canvas { border: var(--bw) solid var(--ink); }

/* ============ pro / 订阅 ============ */
.pro {
  border: var(--bw) solid var(--ink); background: var(--blue); color: #fff;
  box-shadow: var(--sh); padding: 22px; margin: 8px 0 34px;
}
.pro h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.pro .price { font-family: var(--mono); color: var(--yellow); font-weight: 700; }
.pro ul { margin: 10px 0 16px; padding-left: 18px; color: #fff; font-size: 14px; }
.pro ul li { margin: 3px 0; }
.pro .btn { background: var(--yellow); }
.pro .btn-primary { background: var(--yellow); color: var(--ink); }
.pro .btn-primary:hover { background: var(--red); color: #fff; }

.limit {
  display: none; margin: 10px 0 0; padding: 10px 12px; font-size: 13px; font-weight: 600;
  border: var(--bw) solid var(--ink); background: var(--yellow); color: var(--ink);
}
.limit.show { display: block; }

/* ============ footer ============ */
.footer {
  border-top: var(--bw) solid var(--ink); margin-top: 64px;
  padding: 26px 0 44px; color: var(--muted); font-size: 13px;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px;
  background: linear-gradient(90deg, var(--red) 0 33.33%, var(--yellow) 33.33% 66.66%, var(--blue) 66.66% 100%);
  border-bottom: var(--bw) solid var(--ink);
}
.footer a { color: var(--ink-2); font-weight: 600; }
.footer a:hover { background: var(--yellow); }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 10px; }

/* ============ toast ============ */
#toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px);
  background: var(--ink); color: var(--yellow); font-weight: 700;
  border: var(--bw) solid var(--ink); box-shadow: var(--sh);
  padding: 10px 20px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .18s; z-index: 100;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 对比页 ============ */
.tldr {
  background: var(--yellow); border: var(--bw) solid var(--ink);
  box-shadow: var(--sh); padding: 20px 22px; margin: 0 0 30px;
}
.tldr-h {
  font-size: 11px; font-weight: 800; color: var(--ink);
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px;
  display: inline-block; background: var(--ink); color: var(--yellow); padding: 1px 8px;
}
.tldr p { margin: 0; font-size: 16px; line-height: 1.7; font-weight: 500; }

.cmp-sec { margin-bottom: 34px; }
.cmp-sec h2 { font-size: 20px; margin: 0 0 10px; }
.cmp-sec p { margin: 0 0 14px; color: var(--ink-2); }

.tbl.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl.cmp th {
  background: var(--ink); color: var(--paper); text-align: left; font-weight: 800;
  padding: 10px 12px; border-bottom: var(--bw) solid var(--ink);
  text-transform: uppercase; font-size: 12px; letter-spacing: .04em;
}
.tbl.cmp td { padding: 10px 12px; border-bottom: 1.5px solid rgba(20,19,15,.22); vertical-align: top; }
.tbl.cmp .dimc { color: var(--ink); font-weight: 700; width: 22%; font-size: 13px; }
.tbl.cmp tbody tr:hover { background: var(--yellow); }

.pick { margin: 0; padding-left: 20px; }
.pick li { margin: 7px 0; color: var(--ink-2); }
.pick strong { font-weight: 800; background: var(--yellow); padding: 0 2px; }

.faq { border-bottom: 2px solid var(--ink); padding: 14px 0; }
.faq:last-child { border-bottom: 0; }
.faq h3 { font-size: 15.5px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.faq p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ============ 商店：付费产品卡片 ============ */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 16px; }
.prod {
  position: relative; background: var(--paper-2);
  border: var(--bw) solid var(--ink); box-shadow: var(--sh);
  padding: 20px 16px 16px; display: flex; flex-direction: column;
  transition: transform .12s, box-shadow .12s;
}
.prod:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.prod-badge {
  position: absolute; top: -12px; right: 10px;
  background: var(--red); color: #fff; font-weight: 800;
  font-size: 11px; padding: 3px 9px;
  border: 2px solid var(--ink); letter-spacing: .02em;
}
.prod-emoji {
  font-size: 28px; line-height: 1; margin-bottom: 10px;
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  background: var(--yellow); border: 2px solid var(--ink);
}
.prods .prod:nth-child(3n+2) .prod-emoji { background: #CFE0FF; }
.prods .prod:nth-child(3n+3) .prod-emoji { background: #FFDCD5; }
.prod-name { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.015em; }
.prod-tag { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.prod-list { margin: 0 0 14px; padding-left: 18px; flex: 1; }
.prod-list li { font-size: 13px; color: var(--ink-2); margin: 4px 0; }
.prod-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-price { font-size: 23px; font-weight: 900; letter-spacing: -.03em; }
.prod-was { font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 500; text-decoration: line-through; }

/* 邮件订阅 */
.sub { margin: 48px 0 0; }
.sub-in {
  background: var(--ink); border: var(--bw) solid var(--ink);
  box-shadow: var(--sh); padding: 28px 22px; text-align: center; color: var(--paper);
}
.sub-h { font-size: 20px; font-weight: 900; margin-bottom: 6px; letter-spacing: -.025em; color: var(--yellow); }
.sub-d { margin: 0 0 18px; font-size: 14px; color: #D8D2C4; }
.sub-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.sub-input {
  flex: 1; padding: 10px 12px; font-size: 14px; font-weight: 500;
  border: var(--bw) solid var(--paper); background: var(--paper); color: var(--ink);
  font-family: inherit;
}
.sub-input:focus { outline: none; background: var(--yellow); }
.sub-proof { margin-top: 12px; font-size: 12px; color: #B8B2A4; }

/* 商店分组 */
.store-group { margin-bottom: 34px; }
.store-group:last-child { margin-bottom: 0; }
.store-gh {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 14px; padding-bottom: 7px; border-bottom: var(--bw) solid var(--ink);
}
.store-gh h3 { font-size: 17px; font-weight: 900; margin: 0; letter-spacing: -.02em; }
.store-gh .count { font-size: 12px; font-weight: 700; font-family: var(--mono); color: var(--muted); }

/* PayPal 发货说明 */
.pay-note {
  background: var(--paper-2); border: var(--bw) solid var(--ink);
  border-left: 10px solid var(--red); box-shadow: var(--sh-sm);
  padding: 14px 16px; margin: 0 0 24px;
}
.pay-h { font-size: 13px; font-weight: 800; margin-bottom: 8px; letter-spacing: .01em; }
.pay-steps { margin: 0; padding-left: 20px; }
.pay-steps li { font-size: 13px; color: var(--ink-2); margin: 3px 0; }
.pay-mut { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.pay-mut b { color: var(--ink); font-weight: 800; }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .hero::before, .hero::after { display: none; }
}
@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .hero { padding: 38px 0 26px; }
  .nav-links { display: none; }
  .tbl.cmp { font-size: 13px; }
  .tbl.cmp th, .tbl.cmp td { padding: 8px; }
  .tbl.cmp .dimc { width: 30%; }
  .prods { grid-template-columns: 1fr; }
  .sub-form { flex-direction: column; }
  .store-gh h3 { font-size: 15px; }
  .tile, .prod, .card { box-shadow: var(--sh-sm); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============ 微信 / 支付宝收款码弹窗 ============ */
.qr-modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(20,19,15,.78); align-items: center; justify-content: center; padding: 20px; }
.qr-modal:target { display: flex; }
.qr-box {
  position: relative; background: var(--paper-2); border: var(--bw) solid var(--ink);
  box-shadow: var(--sh); padding: 26px 24px 22px; max-width: 380px; width: 100%;
}
.qr-close {
  position: absolute; top: 8px; right: 12px; font-size: 26px; font-weight: 800; line-height: 1;
  color: var(--muted);
}
.qr-close:hover { color: var(--red); }
.qr-title { font-size: 17px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 18px; }
.qr-tabs { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.qr-tab { text-align: center; }
.qr-tab img {
  width: 140px; height: 140px; object-fit: contain; display: block;
  border: var(--bw) solid var(--ink); background: #fff; margin-bottom: 8px;
}
.qr-tab span { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.qr-hint { margin: 18px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.55; }
@media (max-width: 640px) {
  .qr-tab img { width: 120px; height: 120px; }
  .qr-tabs { gap: 12px; }
}
