/* 静态页样式（博客、工具、关于、FAQ、隐私、条款、404）。源文件在 blog/site.css；
   build.py 把它和 web/src/styles/site-chrome.css（全站页头页脚，首页也用）拼成 web/public/site.css，页面上带 ?v=<哈希>。
   颜色、字体跟应用一致（web/src/styles/tokens.css），读者从文章点进应用不会觉得换了个站。
   深色底上长文要可读：正文 18px、行高 1.7、行宽 ≤ 68 个字符。 */
:root {
  --bg: #15100D; --surface: #211913; --raised: #2B2018; --border: #332821;
  --fg: #F7F0E9; --fg2: #B9AA9F; --fg3: #94867E;
  --primary: #FF8B6B; --primary-text: #FFA98E; --primary-on: #1B1310; --accent: #F0B347;
  /* site-chrome.css 用的是应用那套名字（web/src/styles/tokens.css），这里对上 */
  --color-background: var(--bg); --color-surface: var(--surface); --color-surface-raised: var(--raised);
  --color-foreground: var(--fg); --color-secondary: var(--fg2); --color-tertiary: var(--fg3);
  --color-border: var(--border); --color-border-strong: #4A372B;
  --color-primary: var(--primary); --color-primary-strong: var(--primary-text); --color-primary-text: var(--primary-text); --color-primary-on: var(--primary-on);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 18px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--primary-text); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }


.post, .list { max-width: 720px; margin: 0 auto; padding: 8px 20px 64px; }
.list { max-width: 1080px; }
.crumb { font-size: 14px; color: var(--fg3); margin: 12px 0 8px; }
.crumb a { color: var(--fg2); text-decoration: none; }
.crumb span { margin: 0 6px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 8px 0 12px; letter-spacing: -0.01em; }
.byline { color: var(--fg3); font-size: 15px; margin: 0 0 24px; }
.hero { border-radius: 20px; margin: 28px 0 8px; background: var(--surface); }

.post-body h2 { font-size: 26px; line-height: 1.3; margin: 48px 0 12px; }
.post-body h3 { font-size: 20px; margin: 28px 0 8px; }
.post-body p { margin: 0 0 18px; color: var(--fg); }
.post-body .answer { font-size: 19px; color: var(--fg); }
.post-body ul, .post-body ol { padding-left: 22px; margin: 0 0 18px; }
.post-body li { margin: 6px 0; }
.post-body strong { color: #fff; }
.post-body blockquote { margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--primary); color: var(--fg2); }

.post-summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px 24px 24px; margin: 8px 0 0;
}
.post-summary .summary-title { margin: 0 0 8px; font-weight: 800; color: var(--accent); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.post-summary ul { margin: 0 0 18px; padding-left: 20px; }
.post-summary li { margin: 6px 0; }

.cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--primary); color: var(--primary-on); border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none;
}
.cta:hover { background: var(--primary-text); color: var(--primary-on); }
.cta-box {
  display: flex; align-items: center; gap: 18px; margin: 36px 0; padding: 20px 22px;
  background: var(--raised); border-radius: 20px; border: 1px solid var(--border);
}
.cta-box img { width: 72px; flex: none; }
.cta-box p { margin: 0 0 12px; color: var(--fg2); font-size: 16px; }

.post-faq { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 8px; }
.post-faq h3 { font-size: 19px; }
.post-faq p { color: var(--fg2); }

.byline a { color: inherit; }
.author-box { margin-top: 48px; padding: 16px 20px; border-radius: 16px; background: var(--surface); color: var(--fg2, inherit); font-size: 15px; }
.author-box p { margin: 0; }
.related { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--border); }
.related-title { font-size: 20px; margin: 0 0 8px; }
.related ul { padding-left: 20px; }

.lede { color: var(--fg2); max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--fg); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--fg); }
.card div { padding: 16px 18px 18px; }
.card h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.card p { margin: 0 0 10px; color: var(--fg2); font-size: 16px; line-height: 1.55; }
.card .meta { color: var(--fg3); font-size: 14px; }
/* 工具列表页（/tools/）的卡片：上面一块浅底放菜品插画，代替文章卡片的头图 */
.tool-card-pic { display: flex; align-items: center; justify-content: center; height: 150px; background: var(--surface2, rgba(255,255,255,.04)); border-bottom: 1px solid var(--border); }
.tool-card-pic img { width: auto; height: 110px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.35)); }
.tool-hero .crumb { margin: 0 0 12px; }


@media (max-width: 560px) {
  body { font-size: 17px; }
  .post-body h2 { font-size: 23px; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}

/* ───────── 落地页（工具页）：/random-food-generator/、/food-wheel/ ─────────
   版式：首屏左文右工具（工具就是主视觉，不滚动就能用）；手机上单列，工具紧跟标题。
   动效只做反馈：出结果时菜品弹一下、转盘转；prefers-reduced-motion 下全关。
   圆角体系：卡片 20px、按钮和筛选胶囊全圆角，跟文章页一致。只有一个强调色（珊瑚橘）。 */
.tool-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 32px 20px 56px; min-height: calc(100dvh - 80px);
}
.tool-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.tool-hero .sub { font-size: 19px; color: var(--fg2); margin: 0 0 28px; max-width: 38ch; text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chip {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--fg2); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .1s ease;
}
.chip:hover { color: var(--fg); border-color: var(--fg3); }
.chip[aria-pressed="true"] { color: var(--primary-on); background: var(--primary); border-color: var(--primary); }
.chip:active, .go:active, .ghost:active { transform: scale(0.98); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.go {
  font: inherit; font-size: 18px; font-weight: 800; color: var(--primary-on); background: var(--primary);
  border: 0; border-radius: 999px; min-height: 54px; padding: 0 30px; cursor: pointer; white-space: nowrap;
}
.go:hover { background: var(--primary-text); }
.ghost {
  font: inherit; font-size: 16px; font-weight: 700; color: var(--fg); background: transparent;
  border: 1px solid var(--border-strong, #4A372B); border-radius: 999px; min-height: 54px; padding: 0 22px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap;
}
.ghost:hover { border-color: var(--primary); color: var(--primary-text); }

.result {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 28px 24px; display: grid; justify-items: center; text-align: center;
}
.result .plate {
  width: min(320px, 70vw); aspect-ratio: 5 / 4; display: grid; place-items: center;
  background: radial-gradient(closest-side, rgba(255, 139, 107, .22), transparent 75%);
}
.result .plate img { max-width: 88%; max-height: 88%; width: auto; height: auto; object-fit: contain; }
.result .dish { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; margin: 6px 0 2px; line-height: 1.2; }
.result .cuisine { color: var(--fg3); font-size: 15px; margin: 0 0 18px; min-height: 1.4em; }
.result .history { color: var(--fg3); font-size: 14px; margin: 14px 0 0; min-height: 1.4em; }
.result .cat { position: absolute; width: 64px; right: 18px; bottom: 18px; opacity: .95; }
@media (prefers-reduced-motion: no-preference) {
  .pop .plate img, .pop .dish { animation: pop .42s cubic-bezier(.16, 1, .3, 1); }
  @keyframes pop { from { transform: scale(.86) translateY(6px); opacity: 0 } to { transform: none; opacity: 1 } }
}

.wheel-wrap { display: grid; justify-items: center; gap: 16px; }
.wheel { position: relative; width: min(420px, 82vw); aspect-ratio: 1; }
.wheel svg { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.wheel .pointer {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 24px solid var(--fg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}
.wheel .hub {
  position: absolute; inset: 50% auto auto 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--bg); border: 3px solid var(--fg); display: grid; place-items: center;
}
.wheel .hub img { width: 44px; }
.wheel-result { font-size: clamp(24px, 3vw, 30px); font-weight: 800; min-height: 1.3em; margin: 0; }
.wheel-edit label { display: block; font-size: 15px; font-weight: 700; color: var(--fg2); margin: 16px 0 8px; }
.wheel-edit textarea {
  width: 100%; min-height: 180px; font: inherit; font-size: 16px; color: var(--fg); background: var(--surface);
  border: 1px solid var(--border-strong, #4A372B); border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.wheel-edit textarea:focus, .chip:focus-visible, .go:focus-visible, .ghost:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--primary-text); outline-offset: 2px;
}
.wheel-edit .help { color: var(--fg3); font-size: 14px; margin: 6px 0 0; }

.tool-body { max-width: 720px; margin: 0 auto; padding: 24px 20px 64px; }
.steps { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin: 8px 0 40px; }
.steps .big { grid-row: span 2; background: var(--raised); border-radius: 20px; padding: 22px; }
.steps .small { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px; }
.steps h3 { margin: 0 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--fg2); font-size: 16px; }
.steps img { width: 84px; margin-bottom: 12px; }

@media (max-width: 860px) {
  .tool-hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding-top: 12px; }
  .tool-hero .sub { max-width: none; margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps .big { grid-row: auto; }
}
.result .plate img.is-cat { max-height: 70%; opacity: .95; }

/* ───────── 说明类页面：关于 / FAQ / 隐私 / 条款（中英各一份，blog/tools/site_pages.py 生成） ─────────
   版式：电脑上左边一栏钉住的目录 + 右边正文（行宽 ≤ 68 字符）；手机上单列，目录收成一行可横滑的胶囊。
   FAQ 另有一种版式：左边标题和两个出口钉住，右边问答。 */
.doc { max-width: 1120px; margin: 0 auto; padding: 24px 20px 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.doc-head { grid-column: 1 / -1; padding: 24px 0 8px; max-width: 760px; }
.doc-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
.doc-head .lede { font-size: 19px; margin: 0; }
.doc-date { margin: 14px 0 0; font-size: 14px; color: var(--fg3); }
.doc-toc { position: sticky; top: 24px; align-self: start; display: grid; gap: 4px; font-size: 15px; }
.doc-toc a { color: var(--fg2); text-decoration: none; padding: 6px 12px; border-radius: 10px; }
.doc-toc a:hover { color: var(--fg); background: var(--surface); }
.doc-body { min-width: 0; max-width: 68ch; }
.doc-body section { scroll-margin-top: 24px; padding-bottom: 8px; }
.doc-body h2 { font-size: 26px; line-height: 1.3; margin: 8px 0 12px; }
.doc-body section + section { margin-top: 36px; }
.doc-body h3 { font-size: 19px; margin: 24px 0 6px; }
.doc-body p, .doc-body li { color: var(--fg2); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul { padding-left: 22px; margin: 0 0 14px; }
.doc-body strong { color: var(--fg); }
.doc-note { margin: 28px 0 0; padding: 18px 20px; border-radius: 20px; background: var(--surface); color: var(--fg2); font-size: 16px; }
.doc-note p:last-child { margin: 0; }
@media (max-width: 820px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-inline: 16px; }
  .doc-toc { position: static; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .doc-toc a { flex: none; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; }
}

/* FAQ：左栏钉住（标题 + 一句话 + 两个出口），右栏问答。问答用 h3 + p（结构化数据从这里抽） */
.faq { max-width: 1120px; margin: 0 auto; padding: 48px 20px 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 64px; }
.faq-side { position: sticky; top: 32px; align-self: start; }
.faq-side h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
.faq-side p { color: var(--fg2); margin: 0 0 24px; max-width: 36ch; }
.faq-side img { width: 120px; height: auto; margin: 0 0 20px; filter: drop-shadow(0 16px 28px rgba(0,0,0,.45)); }
.faq-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-size: 14px; font-weight: 700; color: var(--fg3); letter-spacing: .04em; margin: 0 0 4px; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq-item h3 { font-size: 20px; line-height: 1.35; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--fg2); }
.faq-item p + p { margin-top: 10px; }
@media (max-width: 820px) {
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 16px 0; }
  .faq-side { position: static; }
}

/* 框架预览时的草稿标记（data-todo）：vite 打包遇到它会停下，不会被部署出去 */
.todo-flag { display: inline-block; margin: 0 0 16px; padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--accent); color: var(--accent); font-size: 13px; }

/* 404 */
.nf { max-width: 520px; margin: 0 auto; padding: 64px 20px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nf img { width: 120px; height: auto; }
.nf h1 { font-size: 30px; margin: 8px 0 0; }
.nf p { margin: 0; color: var(--fg2); }
.nf nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }

/* ───────── We0 版式（2026-09-30）：只借布局和版式，颜色还是上面这套暖黑 ─────────
   参照 ~/Downloads/we0-mealow：SectionTitle（珊瑚色英文眉题 + 大号粗标题 + 说明）、ToolCard（28px 大圆角卡 + 细边 +
   阴影、emoji 方块、「去玩一下 →」、悬停上浮）、FAQ（一张张卡片）、隐私 / 条款（大标题 + 宽松行距）。 */
.eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary-text); }
.list { max-width: 1280px; padding: 64px 32px 96px; }
.list > h1, .doc-head h1, .faq-side h1 { font-weight: 900; letter-spacing: -0.02em; }
.list > h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 0 0 16px; max-width: 20ch; }
.lede { font-size: 17px; line-height: 1.9; }
.cards { gap: 20px; margin-top: 40px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { border-radius: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 180ms ease, box-shadow 180ms ease; }
.card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5); }
.card div { padding: 22px 24px 24px; }
.card h2 { font-size: 20px; font-weight: 800; }
.card:hover h2 { color: var(--primary-text); }
/* 工具卡：左上 16px 圆角方块放这个工具的食物插画，下面标题、一句话、「Try it →」 */
.tool-card { padding: 24px; }
.tool-card div { padding: 0; }
.tool-card .tool-card-pic { width: 96px; height: 80px; margin-bottom: 24px; border-radius: 16px; background: var(--raised); border-bottom: 0; }
.tool-card .tool-card-pic img { height: 64px; }
.go-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 800; color: var(--primary-text); }
.go-link::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform 180ms ease; }
.card:hover .go-link::after { transform: translateX(3px) rotate(45deg); }
.post { padding-top: 48px; }
.hero { border-radius: 28px; }
.post-summary, .cta-box { border-radius: 28px; }
.cta { box-shadow: 0 7px 0 #B8583D; transition: transform 140ms ease, box-shadow 140ms ease; }
.cta:hover { background: var(--primary); transform: translateY(2px); box-shadow: 0 5px 0 #B8583D; }
.author-box { border-radius: 20px; }

/* 说明页：大标题 + 宽松行距（We0 隐私 / 条款的节奏），保留左边目录 */
.doc { padding-top: 64px; }
.doc-head { padding-top: 0; }
.doc-head h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; }
.doc-body { font-size: 16px; line-height: 2; }
.doc-body h2 { font-size: 24px; font-weight: 800; }
.doc-note { border-radius: 28px; }

/* FAQ 页：问答是一张张 16px 圆角的卡（We0 的样子），全部展开（给搜索引擎和读屏看全）；分组名用眉题样式 */
.faq { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); padding-top: 64px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h2 { margin: 0 0 12px; font-size: 12px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: var(--primary-text); }
.faq-item { padding: 20px 24px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.faq-item h3 { font-size: 17px; font-weight: 800; }
.faq-item p { font-size: 15px; line-height: 1.9; }
@media (max-width: 820px) {
  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 760px) {
  .list { padding: 40px 16px 72px; }
  .post { padding-top: 28px; }
  .doc, .faq { padding-top: 32px; }
}
.faq-side .eyebrow { color: var(--primary-text); margin-bottom: 12px; }   /* .faq-side p 的灰色优先级更高，眉题要单独再定 */

/* 内容区宽度全站统一 1216px（= 页头 / 页脚 / 首页 / 工具列表 / 博客列表），左边缘跟页头的 logo 对齐。
   原来说明页、FAQ、单个工具页是 1080，换页时内容会往里跳一截。文章正文（.post）保持 720 的阅读宽度 */
.doc, .faq, .tool-hero { max-width: 1280px; padding-left: 32px; padding-right: 32px; }
@media (max-width: 820px) {
  .doc, .faq, .tool-hero { padding-left: 16px; padding-right: 16px; }
}

/* 顶部导航到标题的距离全站统一：电脑 64px、手机 32px。
   工具页原来按整屏高度把转盘那块垂直居中，标题离导航 269px、浮在半屏中间，改成从上往下排 */
.tool-hero { min-height: 0; padding-top: 64px; align-items: start; }   /* 文字和转盘都顶部对齐，标题不被转盘的高度往下推 */
.post { padding-top: 52px; }            /* 面包屑自带 12px 上边距，合起来 64 */
@media (max-width: 820px) {
  .tool-hero { padding-top: 32px; }
}
@media (max-width: 760px) {
  .list { padding-top: 32px; }
  .post { padding-top: 20px; }
  .nf { padding-top: 32px; }
}

/* 全站共用的页面配色、页头、页脚、按钮。唯一真源就是这份：
   · 首页（/en/ /zh/）由 src/app.js 引进来；
   · 博客、工具、关于、FAQ、隐私、条款这些静态页由 blog/tools/build.py 把它拼进 /site.css。
   2026-09-30：布局和版式照 We0 那版（~/Downloads/we0-mealow，src/components/mealow/brand.tsx）：
   吸顶页头（左小猫 + 两行品牌字，右链接 + 中/EN + 橙色按钮）、立体胶囊按钮、四列页脚、大圆角卡片。
   配色用我们自己的暖黑底 + 奶油字 + 珊瑚橘（用户定：不换 We0 的浅色）。深色底上的对比度都 ≥4.5：
   按钮深字 7.98、珊瑚文字 ≥8.5、次字 ≥7.0、三级字在底和卡片上 ≥4.9（浮层上用亮一档的 #A39388）。
   页面用 --pg-*；应用本身（手机框里那块）是小程序的 --color-*，数值一样但互不依赖。单位只用 px。 */
:root {
  --pg-bg: #15100D;          /* 页面底 */
  --pg-band: #1C1511;        /* 分段底（We0 的蜜桃色段，换成比底亮一点的暖黑） */
  --pg-mint: #1E1712;        /* 另一种分段底（We0 的薄荷色段） */
  --pg-foot: #1A1410;        /* 页脚底 */
  --pg-card: #211913;        /* 卡片 */
  --pg-raised: #2B2018;      /* 卡片里的浮层、emoji 方块 */
  --pg-soft: #33211B;        /* 珊瑚色的深底（标签、图标底） */
  --pg-border: #332821;      /* 卡片边 */
  --pg-line: #332821;        /* 页头页脚分隔线 */
  --pg-ink: #F7F0E9;         /* 标题、主字 16.7:1 */
  --pg-body: #B9AA9F;        /* 正文 ≥7.0 */
  --pg-nav: #B9AA9F;         /* 导航字 */
  --pg-muted: #94867E;       /* 小字（底上 5.4、卡片上 4.9） */
  --pg-muted-raised: #A39388;/* 浮层上的小字 5.4 */
  --pg-orange: #FF8B6B;      /* 主按钮底、强调 */
  --pg-orange-deep: #B8583D; /* 主按钮下面那条「立体」阴影 */
  --pg-orange-text: #FFA98E; /* 珊瑚色当文字用（链接、眉题），≥8.5 */
  --pg-on-orange: #1B1310;   /* 珊瑚底上的字 7.98 */
  --pg-num: #4A372B;         /* 「01 02 03」大号装饰数字 */
  /* 大标题用苹果系统自带的圆体（不下载字体文件，不影响速度）；没有这个字体的电脑自动用普通系统字体 */
  --pg-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
  --pg-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --pg-shadow-hover: 0 18px 36px rgba(0, 0, 0, 0.5);
}

/* ── 按钮：主按钮 = 橙色胶囊 + 下面一条深橙「立体」阴影（We0 的 shadow-[0_8px_0_#d96443]），按下时往下沉；
   次按钮 = 白底 + 浅橙粗边 ── */
.btn-cat {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; box-sizing: border-box; border-radius: 999px;
  background: var(--pg-orange); color: var(--pg-on-orange);
  font-size: 16px; font-weight: 800; line-height: 1; white-space: nowrap; text-decoration: none;
  box-shadow: 0 7px 0 var(--pg-orange-deep);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.btn-cat:hover { color: var(--pg-on-orange); transform: translateY(2px); box-shadow: 0 5px 0 var(--pg-orange-deep); }
.btn-cat:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--pg-orange-deep); }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; box-sizing: border-box; border-radius: 999px;
  border: 2px solid #4A372B; background: var(--pg-card); color: var(--pg-orange-text);
  font-size: 15px; font-weight: 800; white-space: nowrap; text-decoration: none;
  transition: background-color 160ms ease;
}
.btn-line:hover { background: var(--pg-raised); border-color: var(--pg-orange); color: var(--pg-orange-text); }
.btn-cat:focus-visible, .btn-line:focus-visible, .site-top a:focus-visible, .site-foot a:focus-visible {
  outline: 2px solid var(--pg-orange-text); outline-offset: 3px;
}
/* 按钮里的箭头（We0 用的是图标库的 ArrowRight，这里是两条边框转 45° 画的，不加依赖） */
.arrow-r { display: inline-block; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin-left: 2px; }

/* ── 页头（We0 的 Header：吸顶、暖黑半透明底、下边一条细线；左 logo，右链接 + 语言 + 主按钮）──
   内容宽 1280，两边至少 20px；背景铺满整行 */
.site-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; box-sizing: border-box;
  padding: 12px max(32px, calc((100% - 1216px) / 2));
  background: rgba(21, 16, 13, 0.9); border-bottom: 1px solid rgba(51, 40, 33, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-brand { display: flex; align-items: center; gap: 12px; color: var(--pg-ink); text-decoration: none; white-space: nowrap; }
.site-brand img { width: 40px; height: auto; }
.site-brand strong { display: block; font-size: 18px; font-weight: 800; line-height: 1; }
.site-brand small { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--pg-orange-text); }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--pg-nav); text-decoration: none; white-space: nowrap; transition: color 160ms ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pg-orange-text); }
.site-nav .btn-cat { min-height: 42px; padding: 0 20px; font-size: 14px; color: var(--pg-on-orange); box-shadow: 0 6px 0 var(--pg-orange-deep); }
.site-nav .btn-cat:hover { color: var(--pg-on-orange); }
.site-lang { font-size: 12px; font-weight: 700; padding: 7px 12px; border: 1px solid #4A372B; border-radius: 999px; background: var(--pg-card); }
.site-top-cta { display: none; min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: 0 5px 0 var(--pg-orange-deep); }
/* 窄屏：logo + 按钮一行，链接挪到第二行横排，不做汉堡菜单（就五项） */
@media (max-width: 760px) {
  .site-top { flex-wrap: wrap; row-gap: 12px; padding: 12px 16px 14px; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; font-size: 14px; }
  .site-nav .btn-cat { display: none; }
  .site-top-cta { display: inline-flex; }
  /* 手机上导航文字链接的可点区域撑到 44px 高（字本身只有 24px） */
  .site-nav a:not(.site-lang):not(.btn-cat) { padding: 10px 0; }
}

/* ── 页脚（We0 的 Footer：比页面底亮一点的暖黑，四列 1.4 / 1 / 1 / 1，底下一行居中小字）── */
.site-foot { border-top: 1px solid var(--pg-line); background: var(--pg-foot); color: var(--pg-body); }
.site-foot-inner {
  max-width: 1280px; margin: 0 auto; box-sizing: border-box; padding: 56px 32px 40px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px;
}
.site-foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.site-foot-brand p { margin: 0; font-size: 14px; line-height: 1.9; max-width: 32ch; color: var(--pg-body); }
.site-foot-name { display: flex; align-items: center; gap: 12px; color: var(--pg-ink); font-weight: 800; font-size: 18px; }
.site-foot-name img { width: 40px; height: auto; }
.site-foot-h { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--pg-ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.site-foot ul a { display: inline-block; padding: 6px 0; }
.site-foot a:not(.btn-cat) { color: var(--pg-body); text-decoration: none; }
.site-foot a:not(.btn-cat):hover { color: var(--pg-orange-text); }
.site-foot-small { grid-column: 1 / -1; margin: 0 -32px -40px; padding: 20px 32px; border-top: 1px solid var(--pg-line); font-size: 12px; text-align: center; color: var(--pg-muted); }
@media (max-width: 760px) {
  .site-foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding: 44px 20px 40px; }
  .site-foot-brand { grid-column: 1 / -1; }
  .site-foot-small { margin: 0 -20px -40px; padding: 20px; }
  .site-foot ul a { padding: 10px 0; }   /* 手机上页脚链接的可点区域 44px 高 */
}
@media (prefers-reduced-motion: reduce) {
  .btn-cat, .btn-line { transition: none; }
  .btn-cat:hover, .btn-cat:active { transform: none; }
}

/* 标题统一用圆体（首页各段、子页面大标题） */
.hero-title, .hs h2, .list > h1, .doc-head h1, .faq-side h1, .post h1 { font-family: var(--pg-display); }
