/* ChineseAisle — calm paper UI, aisle-first mobile */
:root {
  --bg: #f7f4ef;
  --bg-card: #ffffff;
  --bg-soft: #efeae2;
  --bg-buy: #e8f5ee;
  --bg-skip: #f8ecec;
  --border: #e2d9cc;
  --border-strong: #cfc3b2;
  --text: #1c1916;
  --text-muted: #5c534a;
  --accent: #b33a2b;
  --accent-dim: rgba(179, 58, 43, 0.1);
  --accent-ink: #8f2c21;
  --good: #1f7a4d;
  --good-dim: rgba(31, 122, 77, 0.12);
  --warn: #9a6b12;
  --warn-dim: rgba(154, 107, 18, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --tap: 44px;
  --max: 720px;
  --shadow: 0 1px 2px rgba(28, 25, 22, 0.04), 0 8px 24px rgba(28, 25, 22, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.wrap { width: min(var(--max), 100% - 1.5rem); margin-inline: auto; }
.wrap-wide { width: min(960px, 100% - 1.5rem); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0; min-height: var(--tap);
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -0.02em;
}
.brand:hover { color: inherit; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 800;
}
.brand-text { font-size: 1.05rem; }

.nav-toggle {
  appearance: none; border: 1px solid var(--border-strong);
  background: var(--bg-card); border-radius: var(--radius-sm);
  min-width: var(--tap); min-height: var(--tap);
  font-size: 1.15rem; cursor: pointer; color: var(--text);
}
.site-nav {
  display: none; flex-direction: column; gap: 0.15rem;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 0.5rem 0.75rem 0.85rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none; color: var(--text);
  padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); font-weight: 500;
}
.site-nav a:hover, .site-nav a.is-active { background: var(--bg-soft); color: var(--accent-ink); }

@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .header-inner { position: relative; }
  .site-nav {
    display: flex; flex-direction: row; align-items: center; gap: 0.15rem;
    position: static; border: 0; padding: 0; background: transparent;
  }
  .site-nav a { padding: 0.45rem 0.65rem; font-size: 0.92rem; }
}

main { padding: 1.5rem 0 3.5rem; }
.hero { padding: 1.25rem 0 0.5rem; }
.hero h1 {
  margin: 0 0 0.65rem; font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.18; letter-spacing: -0.03em; font-weight: 750;
}
.lede { font-size: 1.08rem; color: var(--text-muted); margin: 0 0 1.25rem; max-width: 38rem; }
.trust-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem;
  margin: 0 0 1.5rem; padding: 0; list-style: none;
}
.trust-bar li {
  font-size: 0.82rem; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35rem 0.75rem;
}

.task-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
  margin: 1.25rem 0 2rem;
}
@media (min-width: 640px) {
  .task-grid { grid-template-columns: repeat(3, 1fr); }
}
.task-card {
  display: flex; flex-direction: column; gap: 0.45rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.1rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
  min-height: 8.5rem;
}
.task-card:hover { border-color: var(--border-strong); text-decoration: none; color: inherit; }
.task-card .kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.task-card h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.02em; }
.task-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; flex: 1; }
.task-card .go { font-weight: 600; color: var(--accent-ink); font-size: 0.92rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1rem 0 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm); font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }
.btn-ghost { background: transparent; color: var(--accent-ink); border-color: var(--border); }

.card-grid {
  display: grid; gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.15rem;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { border-color: var(--border-strong); text-decoration: none; color: inherit; }
.card h2, .card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.card .solve { margin-top: 0.55rem; font-size: 0.85rem; font-weight: 600; color: var(--good); }

.section { margin: 2rem 0; }
.section h2 { margin: 0 0 0.75rem; font-size: 1.35rem; letter-spacing: -0.02em; }
.h-sm { font-size: 1.05rem; margin: 0 0 0.5rem; }

.meta-bar {
  font-size: 0.88rem; color: var(--text-muted);
  margin: 0 0 1rem; padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.job-line {
  font-size: 1.05rem; color: var(--text-muted); margin: 0 0 0.85rem;
}

.quick {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  margin: 0 0 1.25rem; box-shadow: var(--shadow);
}
.quick h2 { margin: 0 0 0.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.quick ul { margin: 0; padding-left: 1.15rem; }
.quick li { margin: 0.35rem 0; }

.callout {
  border-radius: var(--radius); padding: 0.9rem 1rem; margin: 1rem 0;
  border: 1px solid var(--border);
}
.callout-rule { background: var(--warn-dim); border-color: #e2d0a8; }
.callout-buy { background: var(--bg-buy); border-color: #b7dcc8; }
.callout-skip { background: var(--bg-skip); border-color: #e4c4c4; }
.callout-info { background: var(--bg-soft); }

.article-layout {
  display: grid; gap: 1.5rem;
}
@media (min-width: 900px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
  }
  .toc-slot { order: 2; }
  .article-body { order: 1; }
}
.toc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  font-size: 0.9rem;
}
@media (min-width: 900px) {
  .toc { position: sticky; top: 4.5rem; }
}
.toc-label { margin: 0 0 0.4rem; font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin: 0.3rem 0; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--accent-ink); }

.article-body h2 {
  margin: 1.75rem 0 0.65rem; font-size: 1.3rem; letter-spacing: -0.02em;
  scroll-margin-top: 5rem;
}
.article-body h3 { margin: 1.15rem 0 0.45rem; font-size: 1.08rem; scroll-margin-top: 5rem; }
.article-body p { margin: 0 0 0.85rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.article-body li { margin: 0.3rem 0; }

.cjk {
  font-weight: 600;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", var(--font);
}

table.compare {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.25rem;
  font-size: 0.95rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
table.compare th, table.compare td {
  text-align: left; padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
table.compare th { background: var(--bg-soft); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
table.compare tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  table.compare { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

.buy-skip {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 1rem 0;
}
@media (min-width: 560px) { .buy-skip { grid-template-columns: 1fr 1fr; } }
.buy-skip > div { border-radius: var(--radius); padding: 1rem; border: 1px solid var(--border); }
.buy-skip .buy { background: var(--bg-buy); border-color: #b7dcc8; }
.buy-skip .skip { background: var(--bg-skip); border-color: #e4c4c4; }
.buy-skip h3 { margin: 0 0 0.45rem; font-size: 1rem; }
.buy-skip ul { margin: 0; padding-left: 1.1rem; }

.faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin: 0.5rem 0; padding: 0.75rem 0.9rem;
}
.faq summary { cursor: pointer; font-weight: 650; }
.faq details p { margin: 0.55rem 0 0; color: var(--text-muted); }

.disclaimer {
  margin-top: 2rem; padding: 1rem; background: var(--bg-soft);
  border-radius: var(--radius); font-size: 0.9rem; color: var(--text-muted);
}
.disclaimer h2 { color: var(--text); }

.cta-band {
  margin: 1.5rem 0; padding: 1.15rem 1.2rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.cta-band p { margin: 0 0 0.75rem; }

/* Checklist */
.checklist-chrome {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  justify-content: space-between; margin: 0 0 1rem;
}
.checklist-hint { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.checklist-actions button {
  appearance: none; border: 1px solid var(--border-strong);
  background: var(--bg-card); border-radius: var(--radius-sm);
  min-height: 40px; padding: 0.4rem 0.8rem; font-weight: 600; cursor: pointer;
  font-family: inherit; font-size: 0.9rem;
}
.checklist-group {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 0 0 1rem; overflow: hidden;
}
.checklist-group h2 {
  margin: 0; padding: 0.85rem 1rem; font-size: 1.05rem;
  background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.checklist-item {
  display: grid; grid-template-columns: var(--tap) 1fr;
  gap: 0.35rem 0.65rem; align-items: start;
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border);
  min-height: var(--tap);
}
.checklist-item:last-child { border-bottom: 0; }
.checklist-item input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; accent-color: var(--good);
  cursor: pointer;
}
.checklist-item.is-checked .item-title { text-decoration: line-through; color: var(--text-muted); }
.item-title { font-weight: 650; margin: 0; }
.item-meta { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--text-muted); }
.item-cjk { color: var(--accent-ink); font-weight: 600; }

.persona-grid {
  display: grid; gap: 0.75rem; margin: 1rem 0 1.5rem;
}
.persona {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.05rem 1.1rem;
}
.persona:hover { border-color: var(--border-strong); text-decoration: none; color: inherit; }
.persona strong { display: block; margin-bottom: 0.25rem; font-size: 1.05rem; }
.persona span { color: var(--text-muted); font-size: 0.95rem; }

.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-soft);
  padding: 2rem 0 2.5rem; font-size: 0.92rem; color: var(--text-muted);
}
.footer-inner > * { margin: 0 0 0.65rem; }
.footer-brand { color: var(--text); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; }
.footer-nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--accent-ink); }
.footer-copy { font-size: 0.82rem; }

@media print {
  .site-header, .site-footer, .nav-toggle, .checklist-actions, .btn-row, .skip-link, .toc { display: none !important; }
  body { background: #fff; font-size: 12pt; color: #000; }
  .checklist-item { break-inside: avoid; border-bottom: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
  main { padding: 0; }
}
