/* ============================================================
   site-base.css — 跨站共享结构层（2026-07-15 自 site-theme.css 拆分）
   用法：复制到新站，与本站 theme.css 并联引用（base 在前 theme 在后）：
     <link rel="stylesheet" href="/base.css"><link rel="stylesheet" href="/theme.css">
   本文件只管结构/可用性/响应式/暗色适配/组件盒模型，**复制后不改**；
   色/字/形全部经 token 引用，token 值与母题装饰由每站 theme.css 定义
   （按站点仓库 DESIGN.md 生成，配方=reference/design-playbook.md §五，
    参照实现=assets/site-theme-example.css）。
   theme.css 必须定义的 token：
     --paper --card --ink --ink-soft --accent --accent-deep --accent-tint
     --line --line-strong --header-ink --sans --shadow-card
   可选 token（有默认值）：
     --mono --display --radius(14px) --radius-sm(10px) --page-max(880px)
     --header-fg(#f2f5f1) --header-fg-soft(#b8c4bd)
   组件清单：.eyebrow 眉标(素) / .badges 信任徽标行 / #tool 工具卡
     / #dropzone 拖放区 / .options 胶囊选项 / .steps 编号步骤卡
     / .usecases 双列场景卡 / .compare 对比表 / .faq 问答
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

/* ---------- header / footer ---------- */
header {
  background: var(--header-ink);
  border-bottom: 3px solid var(--accent);
}
header nav, footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: center;
  padding: 0.9rem 1.2rem;
  max-width: var(--page-max, 880px);
  margin: 0 auto;
}
.brand {
  font-family: var(--display, var(--sans));
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--header-fg, #f2f5f1);
  text-decoration: none;
  margin-right: auto;
}
header a:not(.brand) {
  color: var(--header-fg-soft, #b8c4bd);
  text-decoration: none;
  font-size: 0.95rem;
}
header a:not(.brand):hover { color: var(--header-fg, #fff); }

footer {
  background: var(--header-ink);
  margin-top: 4rem;
  color: var(--header-fg-soft, #8fa098);
  font-size: 0.9rem;
}
footer nav { padding-top: 1.6rem; }
footer a { color: var(--header-fg-soft, #b8c4bd); text-decoration: none; }
footer a:hover { color: var(--header-fg, #fff); }
footer p {
  max-width: var(--page-max, 880px);
  margin: 0 auto;
  padding: 0.2rem 1.2rem 1.8rem;
  font-size: 0.8rem;
}

/* ---------- hero ---------- */
main { max-width: var(--page-max, 880px); margin: 0 auto; padding: 0 1.2rem 3rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono, var(--sans));
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 2.2rem 0 0.6rem;
  animation: rise 0.5s ease-out both;
}
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0.2rem 0 0.6rem;
  animation: rise 0.5s 0.06s ease-out both;
}
.tagline {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 46rem;
  margin: 0 0 1rem;
  animation: rise 0.5s 0.12s ease-out both;
}
.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.4rem;
  animation: rise 0.5s 0.18s ease-out both;
}
.badges li {
  font-family: var(--mono, var(--sans));
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  background: var(--card);
}
.badges li::before { content: "✓ "; color: var(--accent); }

/* ---------- tool ---------- */
#tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  padding: 1.3rem;
  margin: 0 0 2.4rem;
  box-shadow: var(--shadow-card);
  animation: rise 0.55s 0.24s ease-out both;
}
#dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm, 10px);
  padding: 1.4rem 1rem;
  text-align: center;
  margin-bottom: 0.9rem;
  background: var(--paper);
  transition: border-color 0.15s, background 0.15s;
}
#dropzone p { margin: 0.25rem 0; }
#dropzone.drag, #dropzone:hover { border-color: var(--accent); background: var(--accent-tint); }
.linklike { color: var(--accent); text-decoration: underline; cursor: pointer; font-weight: 600; }
.hint { color: var(--ink-soft); font-size: 0.88rem; }

textarea {
  width: 100%;
  font-family: var(--mono, var(--sans));
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  padding: 0.75rem;
  margin: 0.35rem 0;
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  margin: 0.6rem 0 0.9rem;
  font-size: 0.92rem;
}
.options label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.options label:hover { border-color: var(--accent); }
.options label:has(input:checked) {
  background: var(--accent-tint);
  border-color: var(--accent);
}
.options input { accent-color: var(--accent); }

button {
  font-family: var(--sans);
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm, 10px);
  padding: 0.7rem 1.3rem;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
button:hover { background: var(--accent-deep); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:focus-visible { outline: 3px solid var(--accent-tint); outline-offset: 2px; }
.actions { display: flex; gap: 0.6rem; }
.actions button {
  background: var(--card);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
  font-weight: 600;
}
.actions button:hover { background: var(--accent-tint); }

/* ---------- content sections ---------- */
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 2.8rem 0 0.8rem;
  padding-top: 0.4rem;
}
section > p, section li { color: var(--ink); }
section > p { max-width: 48rem; }

/* steps as numbered cards */
.steps ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0;
}
.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow-card);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--mono, var(--sans));
  font-size: 0.8rem;
  color: var(--accent);
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
}

/* use-case cards */
.usecases ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding: 0;
  margin: 1rem 0;
}
.usecases li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm, 10px);
  padding: 0.85rem 1rem;
}

/* plain feature list */
.explain ul { padding-left: 1.2rem; }
.explain li { margin: 0.35rem 0; }

/* comparison table */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 0.8rem 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
th, td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th {
  background: var(--accent-tint);
  font-family: var(--mono, var(--sans));
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
td:first-child { font-weight: 600; }

/* FAQ */
.faq h3 {
  font-size: 1.05rem;
  margin: 1.3rem 0 0.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line-strong);
}
.faq h3 + p { margin-top: 0.25rem; color: var(--ink-soft); }

code {
  font-family: var(--mono, var(--sans));
  background: var(--accent-tint);
  border: 1px solid var(--line);
  padding: 0.08rem 0.4rem;
  border-radius: 6px;
  font-size: 0.88em;
}
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

/* ---------- motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .steps ol, .usecases ul { grid-template-columns: 1fr; }
  header nav, footer nav { gap: 1rem; }
  .options { flex-direction: column; align-items: flex-start; }
}
