@import url("./colors.generated.css");

/* =========================================================================
   喵喵汪 官网 · 设计系统 (paper.css)
   方向：彩色贴纸手账 (Sticker Journal)
        —— 奶油纸底 + 亮色贴纸填充 + 深墨描边 + 硬投影偏移

   两条铁律，改样式时不要破：
   1. 亮色（coral/sun/mint/sky）只做"填充和描边"，绝不做小字文字色。
      小字一律用深墨：--ink / --ink-2 / --ink-3 或 *-ink 系列。
      亮底上压深字是达标的（ink on coral = 5.08:1）。
   2. 颜色统一来自 assets/theme/colors.json，页面只消费生成变量。
   ========================================================================= */

:root {
  /* 颜色由 colors.generated.css 提供；此处保留官网尺寸、字体与组件配方。 */

  /* ---- 贴纸描边与硬投影 ---- */
  --edge:       2px solid var(--ink);
  --lift:       3px 3px 0 var(--ink);
  --lift-hover: 5px 5px 0 var(--ink);
  --lift-card:  5px 5px 0 var(--paper-3);

  /* ---- 吸顶页头（导航高亮与"立即体验"按钮的尺寸/底色只在这里定） ---- */
  --header-h:    66px;

  --header-lift: 0 6px 14px var(--shadow-color);

  /* ---- 字体 ---- */
  --font-display: "Yuanti SC", "Yuanti TC", "YouYuan", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-hand:    "Kaiti SC", "STKaiti", "KaiTi", "LXGW WenKai", "Songti SC", serif;
  --font-body:    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                  system-ui, -apple-system, sans-serif;
  --font-num:     "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* ---- 尺度 ---- */
  --wrap: 1120px;
  --wrap-narrow: 720px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* ---- 纸纹 ---- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* ============================ 基础 ============================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--grain);
  background-blend-mode: multiply;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--grape);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============================ 排版 ============================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.005em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.6vw, 3.85rem); line-height: 1.16; }
/* 拉丁字母平均字宽只有汉字的一半左右，同一字号下英文行长会明显偏长、行数偏少，
   视觉重量也偏轻。这里给英文页单独收一档字号，让中英两版的行宽与观感接近。
   注意：改 h1 字号时中英两版要一起看，否则又会撞上换行问题。 */
html[lang="en"] h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.45rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.42rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-2);
  line-height: 1.85;
}

.hand { font-family: var(--font-hand); font-size: 1.08em; }
.num  { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .88em; }

/* 小标签：改成贴纸药丸 */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  color: var(--ink);
  background: var(--sun);
  border: var(--edge);
  border-radius: var(--r-pill);
  padding: .28rem .85rem;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-1.2deg);
  margin-bottom: .2rem;
}
.eyebrow--mint { background: var(--mint); }
.eyebrow--sky  { background: var(--sky); }
.eyebrow--coral{ background: var(--coral); }

/* ============================ 布局 ============================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: var(--wrap-narrow); }

section { padding-block: clamp(3.4rem, 8vw, 6.2rem); position: relative; }
section + section { border-top: 2px dashed var(--line-2); }
/* 页头吸顶后，锚点跳转必须自己让开这一条的高度（除了 .hero 首屏） */
.hero { scroll-margin-top: 0; }
section[id] { scroll-margin-top: calc(var(--header-h) + 1.1rem); }
/* 键盘 Tab 聚焦到屏幕外的元素时，浏览器滚动也要让开吸顶页头 */
html { scroll-padding-top: calc(var(--header-h) + 1.1rem); }

.rule { height: 2px; background: var(--line-2); border: 0; margin: 0; }

/* ============================ 页眉 ============================ */
/* 吸顶悬浮：整站从上到下滑动时页头始终留在顶部，随时可点导航跳转 */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* color-mix 在旧内核里可能整条声明失效，这里用带透明度的纸色兜底，观感一致 */
  background: var(--header-bg);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: var(--edge);
}
/* 往下滚之后浮起来一点，让"这是吸顶常驻的页头"一眼可见（由 site.js 打标记） */
.site-header[data-scrolled] { box-shadow: var(--header-lift); }
.site-header .wrap { display: flex; align-items: center; gap: 1.2rem; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .62rem; font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; letter-spacing: .02em; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: block;
  transform: rotate(-8deg);
  filter: drop-shadow(2px 2px 0 var(--ink));
}
.brand small { font-family: var(--font-num); font-size: .62rem; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.4rem); font-size: .94rem; font-weight: 600; color: var(--ink-2); }
.nav a { position: relative; padding-block: .3rem; border-bottom: 2px solid transparent; transition: color .18s, border-color .18s; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 50%; right: 50%; bottom: -.16rem;
  height: 3px; border-radius: var(--r-pill); background: var(--coral);
  transition: left .2s ease, right .2s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: transparent; }
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta)[aria-current="page"]::after,
.nav a:not(.nav-cta)[aria-current="true"]::after { left: 0; right: 0; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: transparent; }
/* 滚动到哪一节，导航就点亮哪一条（由 site.js 写 aria-current="true"） */
.nav a[aria-current="true"] { color: var(--ink); border-bottom-color: transparent; }
/* 当前节 + 悬停时，用珊瑚色把"正在看这里"和"鼠标在这里"区分开 */
.nav a[aria-current="true"]:hover { border-bottom-color: transparent; }

/* "立即体验"：导航里唯一的入口按钮，打开小程序码弹层（<button>，不是链接） */
.nav .nav-cta {
  border: var(--edge); border-radius: var(--r-pill);
  background: var(--sun); color: var(--ink);
  padding: .32rem .95rem; font-weight: 700; font-family: inherit; font-size: inherit;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s;
}
.nav .nav-cta:hover,
.nav a.nav-cta[aria-current="page"],
.nav a.nav-cta[aria-current="true"] { border-color: var(--ink); border-bottom-color: var(--ink); color: var(--ink); background: var(--sun); }
.nav .nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.nav .nav-cta:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.nav .nav-cta:disabled { opacity: .6; cursor: default; }

/* 语言切换器：国际化预留口子，纯静态双份页面，不依赖 JS */
.lang-switch {
  display: inline-flex; align-items: stretch;
  border: var(--edge); border-radius: var(--r-pill);
  overflow: hidden; font-size: .82rem; font-weight: 700;
  background: var(--paper-2);
  flex: none;
}
.lang-switch a, .lang-switch span { padding: .22rem .6rem; line-height: 1.5; color: var(--ink-2); }
.lang-switch [aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang-switch a:hover { background: var(--sun); color: var(--ink); }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem;
  border: var(--edge); border-radius: var(--r-pill);
  background: var(--paper-2); color: var(--ink);
  font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  cursor: pointer;
  box-shadow: var(--lift);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--lift-hover); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.btn-primary { background: var(--button-primary); }
.btn-ghost { background: var(--paper); }
.btn-mint { background: var(--mint); }
.btn-sun  { background: var(--sun); }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.btn-note { font-size: .84rem; color: var(--ink-3); }

/* ============================ 印章贴纸 ============================ */
.seal {
  display: inline-grid; place-items: center;
  width: 82px; height: 82px; flex: none;
  background: var(--coral);
  border: var(--edge); border-radius: 50%;
  color: var(--ink);
  font-family: var(--font-hand);
  font-size: .8rem; font-weight: 600; line-height: 1.25; text-align: center;
  letter-spacing: .04em;
  transform: rotate(-9deg);
  box-shadow: var(--lift);
}
.seal-lg { width: 112px; height: 112px; font-size: .95rem; }
.seal--mint { background: var(--mint); }
.seal--sky  { background: var(--sky); }

/* 环形文字印章（目前只有首屏档案卡头上那一枚在用）。
   沿用 .seal 的贴纸语言：珊瑚底 + 深墨描边 + 硬投影 + 整体 rotate(-9deg)，
   只把里面的两行字换成环形文字 + 中心字。底色是 coral、字是 ink，
   压深字 5.08:1，符合本文件开头第 1 条铁律（亮色只做填充，小字一律深墨）。

   环形文字是逐字 rotate 摆放，不用 textPath：
   textPath 得手工把字符串长度配到圆周上，配长了就会在起点处自己压自己；
   逐字按 260°/(N-1) 等分，从结构上不可能溢出，字距也天然均匀，更像真印章的齿排。
   角度从 -130° 到 +130°，顶部居中，底部留 100° 空白——真公章也这么留。
   改文案时字数和角度必须一起重算。 */
.seal--ring svg { width: 100%; height: 100%; display: block; }
.seal--ring text {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 8px;          /* SVG 里的 px 是用户单位，随 viewBox 缩放 */
  fill: currentColor;
  text-anchor: middle;
}
.seal--ring .seal-center { font-size: 15px; font-weight: 600; }
/* 拉丁字母的字面宽度只有汉字一半左右，同一个字号下环上会显得空，
   英文页要把环上的字放大一档才和中文版分量相当（同 html[lang="en"] h1 的做法）。 */
html[lang="en"] .seal-ring text { font-size: 10px; }
/* "Shared" 比"共同"宽得多，中心字得收一档才不会顶到环上。 */
html[lang="en"] .seal--ring .seal-center { font-size: 13px; }

/* ============================ 首屏 ============================ */
.home-page main { overflow: clip; }
.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  padding-block: clamp(3.6rem, 8vw, 7rem) clamp(4.2rem, 9vw, 7.4rem);
  background:
    linear-gradient(90deg, transparent 0 49.85%, color-mix(in srgb, var(--line-2) 60%, transparent) 49.85% 50%, transparent 50%),
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--sun) 40%, transparent), transparent 25%),
    radial-gradient(circle at 4% 84%, color-mix(in srgb, var(--mint) 20%, transparent), transparent 25%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.hero-copy { padding-top: clamp(.5rem, 2vw, 1.8rem); }
.hero-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-num); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; color: var(--ink-3);
}
.hero h1 { margin: 1.3rem 0 1.5rem; max-width: 10.5em; font-size: clamp(2.8rem, 5.2vw, 3.95rem); letter-spacing: -.035em; }
.hero h1 em {
  font-style: normal;
  /* 荧光笔划线：用渐变背景实现，比负 z-index 跨浏览器可靠得多 */
  background-image: linear-gradient(transparent 60%, var(--sun) 60%);
  padding-inline: .08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .lede { max-width: 33em; }
.hero-actions { margin-top: 2rem; }
.hero-note { margin-top: .95rem; max-width: 40em; }

.hero-meta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-meta > div {
  background: var(--paper-2);
  border: var(--edge); border-radius: var(--r-sm);
  padding: .6rem .9rem;
  box-shadow: 3px 3px 0 var(--paper-3);
}
.hero-meta dt { font-size: .72rem; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.hero-meta dd { margin: .15rem 0 0; font-size: .95rem; font-weight: 600; }

/* ============================ 档案卡 ============================ */
.archive-card {
  background: var(--paper-2);
  background-image: var(--grain);
  background-blend-mode: multiply;
  border: var(--edge);
  border-radius: var(--r-lg);
  box-shadow: 14px 16px 0 var(--ink);
  padding: 1.7rem 1.7rem 1.45rem;
  position: relative;
  transform: rotate(1.4deg);
}
.archive-card::before {
  content: "";
  position: absolute;
  width: 78px; height: 22px;
  top: -12px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: color-mix(in srgb, var(--sun) 72%, var(--paper));
  border: 1.5px solid var(--ink);
  opacity: .92;
}
.archive-card-label {
  margin: -.2rem 0 1.15rem;
  font-family: var(--font-hand);
  font-size: .98rem;
  color: var(--ink-2);
  transform: rotate(-1deg);
}
.archive-float {
  position: absolute; z-index: 3;
  display: block; padding: .65rem .85rem;
  border: var(--edge); border-radius: var(--r-sm);
  color: var(--ink); font-family: var(--font-hand); font-size: .88rem; line-height: 1.35;
  box-shadow: 3px 3px 0 var(--ink);
}
.archive-float--care { left: -3.3rem; top: 28%; background: var(--mint); transform: rotate(-7deg); }
.archive-float--memory { right: -2.2rem; bottom: 16%; background: var(--sun); transform: rotate(6deg); }
.archive-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.archive-id { font-family: var(--font-num); font-size: .74rem; letter-spacing: .1em; color: var(--ink-3); }
.archive-photo {
  aspect-ratio: 4 / 3; margin: 1rem 0;
  background: repeating-linear-gradient(45deg, var(--paper-3) 0 10px, var(--paper-2) 10px 20px);
  border: var(--edge); border-radius: var(--r);
  overflow: hidden; position: relative;
}
.archive-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 标注写成 HTML 里的元素而不是 CSS content，否则文案会被锁死在 CSS 里没法做多语言 */
.archive-photo-note {
  position: absolute; bottom: 8px; right: 10px;
  font-size: .68rem; line-height: 1.7; color: var(--ink-3);
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 0 .5rem;
}
.archive-fields { display: grid; gap: .55rem; font-size: .9rem; }
.archive-fields div { display: flex; gap: .8rem; border-bottom: 1.5px dashed var(--line-2); padding-bottom: .5rem; }
.archive-fields div:last-child { border-bottom: 0; padding-bottom: 0; }
.archive-fields dt { flex: none; width: 5.4em; color: var(--ink-3); font-size: .86rem; }
.archive-fields dd { margin: 0; font-weight: 500; }
.caregivers { display: flex; gap: .35rem; align-items: center; }
.dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-size: .68rem; font-family: var(--font-num); font-weight: 700;
  background: var(--sun);
}
.dot:nth-child(2) { background: var(--mint); }
.dot:nth-child(3) { background: var(--sky); }

/* ============================ 档案条目 ============================ */
.home-page .chapter { border-top: var(--edge); }
.chapter--capability {
  background: var(--paper-2);
  background-image: var(--grain);
  background-blend-mode: multiply;
}
.chapter--capability::before {
  content: "照料档案";
  position: absolute; right: clamp(1rem, 5vw, 5rem); top: 1.2rem;
  font-family: var(--font-hand); font-size: clamp(3rem, 8vw, 7rem); font-weight: 700;
  color: color-mix(in srgb, var(--coral) 12%, transparent);
  transform: rotate(-3deg); pointer-events: none;
}
html[lang="en"] .chapter--capability::before { content: "CARE RECORDS"; }
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.8rem; border-top: 0; }
.entry {
  display: grid;
  grid-template-columns: 3.8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  border: var(--edge); border-radius: var(--r);
  background: var(--paper);
  box-shadow: 5px 6px 0 var(--paper-3);
  align-items: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.entry:nth-child(2), .entry:nth-child(5) { transform: translateY(1.2rem) rotate(.5deg); }
.entry:nth-child(3) { transform: rotate(-.5deg); }
.entry:hover { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 var(--paper-3); }
.entry-body { grid-column: 1 / -1; padding-top: .85rem; border-top: 1.5px dashed var(--line-2); }
/* 序号做成贴纸方块 */
.entry-no {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  background: var(--sun);
  border: var(--edge); border-radius: var(--r-sm);
  font-family: var(--font-num); font-size: 1.3rem; font-weight: 700; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}
.entry:nth-child(2) .entry-no { background: var(--mint); transform: rotate(2.5deg); }
.entry:nth-child(3) .entry-no { background: var(--sky); transform: rotate(-2deg); }
.entry:nth-child(4) .entry-no { background: var(--coral); transform: rotate(3deg); }
.entry:nth-child(5) .entry-no { background: var(--grape-soft); transform: rotate(-2.5deg); }
.entry:nth-child(6) .entry-no { background: var(--sun); transform: rotate(2deg); }

.entry h3 { margin-bottom: .3rem; }
.entry-tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--paper);
  background: var(--grape-ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill); padding: .08rem .6rem; margin-bottom: .5rem;
}
/* "规划中"标签：虚线描边 + 纸色实底，明确区别于已排期功能，也不写成时间承诺 */
.entry-tag--plan {
  color: var(--ink-2);
  background: var(--paper);
  border-style: dashed;
}
.entry-body { color: var(--ink-2); font-size: .95rem; }

/* ============================ 边界清单 ============================ */
.chapter--boundary {
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--mint) 13%, transparent), transparent 26%),
    var(--sage);
  color: var(--ink);
}
.chapter--boundary .lede { color: var(--ink-2); }
.chapter--boundary .eyebrow { background: var(--apricot); box-shadow: 2px 2px 0 var(--ink); }
.boundary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-top: 2.6rem; }
.boundary > div {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border: 1.5px solid var(--sage-2); border-radius: var(--r);
  padding: 1.5rem 1.4rem 1.35rem;
  box-shadow: 4px 5px 0 var(--sage-2);
  transition: transform .16s ease, box-shadow .16s ease;
}
.boundary > div:hover { transform: translateY(-3px); box-shadow: 4px 8px 0 var(--sage-2); }
.boundary h3 { font-size: 1.02rem; margin-bottom: .5rem; }
.boundary p { font-size: .9rem; color: var(--ink-2); margin: 0; }
/* ✕ 标记做成小圆贴纸 */
.boundary .mark {
  display: inline-grid; place-items: center;
  width: 1.5rem; height: 1.5rem; margin-right: .5rem;
  background: var(--coral); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-family: var(--font-num); font-size: .9rem; font-weight: 700;
  vertical-align: -3px;
}
.boundary .mark mmw-icon { width: .88rem; height: .88rem; --mmw-icon-stroke: 2.7; }
.boundary > div:nth-child(2) .mark { background: var(--sky); }
.boundary > div:nth-child(3) .mark { background: var(--mint); }
.boundary > div:nth-child(4) .mark { background: var(--grape-soft); }
.boundary > div:nth-child(5) .mark { background: var(--sun); }
.boundary > div:nth-child(6) .mark { background: var(--coral); }

.chapter--privacy {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--sky) 6%, transparent), transparent 46%),
    var(--mist);
}
.chapter--privacy .wrap { position: relative; }
.chapter--privacy .ledger { box-shadow: 7px 8px 0 color-mix(in srgb, var(--sky) 24%, var(--paper)); }
.chapter--privacy .notice { background: var(--paper); }

.home-get {
  background: var(--paper);
  border-top: var(--edge);
}
.home-get-grid {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2.4rem; align-items: center;
  padding-block: clamp(2rem, 5vw, 3.6rem);
  border: var(--edge); border-radius: var(--r-lg);
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--apricot) 78%, var(--paper)), var(--paper-2));
  box-shadow: 8px 9px 0 var(--paper-3);
}
.home-get .btn-primary { background: var(--button-primary); }
.home-get .btn-ghost { background: var(--paper); }
.home-get .seal { background: color-mix(in srgb, var(--coral) 65%, var(--paper)); }

/* ============================ 账本表格 ============================ */
.ledger {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin-top: 1.8rem; font-size: .92rem;
  border: var(--edge); border-radius: var(--r); overflow: hidden; background: var(--paper);
}
.ledger caption { text-align: left; font-size: .86rem; color: var(--ink-3); padding: 0 0 .8rem; }
.ledger th, .ledger td { text-align: left; padding: .8rem .9rem; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.ledger thead th { background: var(--sun); font-weight: 700; font-size: .84rem; color: var(--ink); border-bottom: var(--edge); }
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tbody tr:hover { background: var(--paper-2); }
.ledger td:first-child { font-family: var(--font-num); font-weight: 700; color: var(--ink); width: 3.4rem; }

.table-scroll { overflow-x: auto; }

/* ============================ 提示条 ============================ */
.notice {
  background: var(--paper-2);
  border: var(--edge);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  font-size: .9rem;
  color: var(--ink-2);
  margin: 1.6rem 0;
  box-shadow: 4px 4px 0 var(--sky);
}
.notice strong { color: var(--ink); }
/* 合规类提示保持克制：不玩具化，只换描边投影色 */
.notice-danger { box-shadow: 4px 4px 0 var(--coral); }

/* ============================ 常见问题（FAQ） ============================ */
.faq-list { margin-top: 2.2rem; display: grid; gap: .9rem; max-width: 52rem; }
.faq-item {
  background: var(--paper-2);
  border: var(--edge); border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--paper-3);
  overflow: hidden;
}
/* 展开的那一条稍微"跳"出来一点，眼睛能立刻找到当前在读哪一段 */
.faq-item[open] { background: var(--paper); box-shadow: 6px 6px 0 var(--paper-3); }
.faq-item summary {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: 1.05rem 1.2rem;
  font-family: var(--font-display); font-size: clamp(1rem, 1.7vw, 1.12rem); font-weight: 700;
  cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "＋";
  flex: none; margin-left: auto;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  background: var(--sun); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-family: var(--font-num); font-size: .95rem; font-weight: 700;
  transition: transform .2s ease, background-color .2s ease;
}
.faq-item[open] summary::after { content: "－"; background: var(--coral); transform: rotate(180deg); }
.faq-item summary:hover { background: color-mix(in srgb, var(--paper-3) 55%, transparent); }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-q { flex: 1; }
.faq-body { padding: 0 1.2rem 1.2rem; }
.faq-body > *:first-child { margin-top: 0; }
.faq-body p { font-size: .93rem; color: var(--ink-2); margin-bottom: .8rem; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { margin: 0 0 .8rem; padding-left: 1.15rem; font-size: .93rem; color: var(--ink-2); }
.faq-body li { margin-bottom: .3rem; }
.faq-body strong { color: var(--ink); }
/* 每条答案末尾的"出处"：写明这条答复对应哪个需求编号，避免官网文案和 PRD 漂移 */
.faq-ref {
  display: block; margin-top: .85rem; padding-top: .6rem;
  border-top: 1.5px dashed var(--line-2);
  font-size: .78rem; color: var(--ink-3); letter-spacing: .02em;
}

/* FAQ 页：两栏。左栏是一列问题跳转（桌面端吸顶），右栏是问答列表——
   "换位"后左栏承担目录职责，正文才有整幅宽度 */
.faq-layout { display: grid; grid-template-columns: minmax(0, 232px) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.2rem); margin-top: 2.2rem; }
.faq-aside { min-width: 0; }
.faq-jump { display: grid; gap: .3rem; position: sticky; top: calc(var(--header-h) + 1.1rem); }
.faq-jump a {
  display: block;
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
  padding: .34rem .1rem .34rem .7rem;
  border-left: 3px solid var(--line-2);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  transition: border-color .15s, color .15s, background-color .15s;
}
.faq-jump a:hover { border-left-color: var(--coral); background: var(--paper-2); color: var(--ink); }
.faq-jump a:focus-visible { outline-offset: 0; }

/* 右栏列表：占满剩余宽度，去掉原来的 max-width 限制 */
.faq-main .faq-list { margin-top: 0; max-width: none; }
.faq-main > *:first-child { margin-top: 0; }

/* ============================ 微信小程序码 ============================ */
/* 小程序码卡片：整张卡是去"立即体验"页的链接（页脚用它做入口） */
.qr-card {
  display: block;
  background: var(--paper); border: var(--edge); border-radius: var(--r);
  padding: 0; overflow: hidden;
  box-shadow: 4px 4px 0 var(--paper-3);
  transition: transform .16s ease, box-shadow .16s ease;
}
.qr-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--paper-3); }
.qr-card-inner { padding: 1.3rem 1.4rem 1.2rem; }
.qr-card > div { min-width: 0; }
.qr-card h3 { font-size: .98rem; margin-bottom: .35rem; }
.qr-card p { font-size: .84rem; color: var(--ink-3); margin: 0; }
.qr-card .qr-box { width: 100%; height: auto; aspect-ratio: 1; max-width: 240px; margin-inline: auto; }
.qr-card .btn { margin-top: 1rem; }
.qr-box {
  position: relative; flex: none;
  width: 150px; height: 150px;
  border: var(--edge); border-radius: var(--r-sm);
  background: var(--paper);
  overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-box[data-qr-state="missing"] {
  border: 2px dashed var(--ink);
  background: repeating-linear-gradient(45deg, var(--paper-3) 0 10px, var(--paper) 10px 20px);
}
.qr-box[data-qr-state="missing"] img { visibility: hidden; }
.qr-note {
  position: absolute; inset: 0; display: none;
  place-content: center; text-align: center;
  padding: .8rem; font-size: .76rem; line-height: 1.5; color: var(--ink-3);
}
.qr-box[data-qr-state="missing"] .qr-note { display: grid; }

/* （原"继续了解"短跳区块已删除：它与吸顶导航完全同源，导航常驻后不再提供任何新增信息） */

/* ============================ 立即体验页（小程序 / App 两个 Tab） ============================ */
.exp-head { text-align: center; max-width: 44rem; margin-inline: auto; }
/* 两个 Tab 居中放在页面上部；手机上让它贴住吸顶页头，滚动中也能随时切 */
.exp-switch-wrap { display: flex; justify-content: center; }
.exp-switch {
  display: inline-flex; gap: .28rem;
  margin: 1.8rem auto 0;
  padding: .3rem;
  background: var(--paper-2);
  border: var(--edge); border-radius: var(--r-pill);
  box-shadow: var(--lift);
}
.exp-switch button {
  border: 1.5px solid transparent; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2);
  padding: .5rem 1.15rem;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background-color .16s, color .16s, border-color .16s;
}
.exp-switch button:hover { background: var(--paper-3); color: var(--ink); }
.exp-switch button[aria-selected="true"] {
  background: var(--coral); color: var(--ink);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.exp-switch button:focus-visible { outline-offset: 2px; }

/* 面板切换用 hidden 属性控制，避免依赖 JS 才存在的 CSS 类。
   脚本失效时（html.no-js）把两个面板都放出来，不能让人对着空白页 */
.no-js .exp-panel[hidden] { display: block; }
.no-js .exp-switch { display: none; }
.exp-panel { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.exp-panel[hidden] { display: none; }
.exp-panel:focus-visible { outline-offset: 6px; }
.exp-panel > div { min-width: 0; }
.exp-panel h2 { font-size: clamp(1.24rem, 2.6vw, 1.68rem); }
.exp-panel .btn-row { margin-top: 1.5rem; }

/* 面板里的两栏：左码/左文，右说明。窄屏自动落成单列 */
.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
.stack { display: grid; gap: 1.1rem; }

/* 打勾清单：跟 .steps 区分开，这里是"能得到什么"而不是操作步骤 */
.checks { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.9rem; font-size: .94rem; color: var(--ink-2); }
.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: .18em;
  width: 1.25rem; height: 1.25rem;
  display: grid; place-items: center;
  background: var(--mint); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 50%;
  font-family: var(--font-num); font-size: .72rem; font-weight: 700;
}
.checks li:nth-child(2)::before { background: var(--sun); }
.checks li:nth-child(3)::before { background: var(--sky); }

/* 两块内容的入场动画，切换 Tab 时重放 */
.exp-anim { animation: exp-fade .34s cubic-bezier(.2,.7,.3,1) both; }
@keyframes exp-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
/* 关闭动画时 high 值无所谓——面板是 hidden 切的，肉眼看到的是瞬时切换 */
@media (prefers-reduced-motion: reduce) {
  .exp-anim { animation: none; }
}

/* 小程序码卡片：比弹层时代的尺寸大，因为这里是一整页的主角 */
.exp-qr {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  align-self: start;
}
.exp-qr .qr-box { width: 216px; height: 216px; box-shadow: 4px 4px 0 var(--paper-3); }
.exp-qr figcaption { font-size: .78rem; color: var(--ink-3); text-align: center; max-width: 15em; line-height: 1.6; }

/* 表格单元格里的说明文字（小程序 / App 能力对照） */
.exp-cell-note { display: block; margin-top: .3rem; font-size: .82rem; color: var(--ink-3); }
.exp-fallback {
  margin-top: 1.4rem; padding: .85rem 1.1rem;
  background: var(--paper-2); border: 2px dashed var(--line-2); border-radius: var(--r-sm);
  font-size: .86rem; color: var(--ink-2);
}
.exp-fallback code { font-family: var(--font-mono); font-size: .84em; color: var(--ink); }

/* ============================ 下载页 ============================ */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.platform {
  border: var(--edge); border-radius: var(--r);
  background: var(--paper-2); background-image: var(--grain); background-blend-mode: multiply;
  padding: 1.6rem 1.5rem;
  display: flex; flex-direction: column; gap: .9rem;
  box-shadow: 5px 5px 0 var(--paper-3);
  transition: transform .16s ease, box-shadow .16s ease;
}
.platform:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--paper-3); }
.platform[data-recommended="true"] { box-shadow: 5px 5px 0 var(--mint); }
.platform-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.platform-head h3 { font-size: 1.28rem; }
.platform-head span {
  font-family: var(--font-num); font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  color: var(--ink); background: var(--sky);
  border: 1.5px solid var(--ink); border-radius: var(--r-pill); padding: .05rem .55rem;
  text-transform: uppercase;
}
.platform-meta { font-size: .85rem; color: var(--ink-3); display: grid; gap: .28rem; }
.platform-meta b { color: var(--ink-2); font-weight: 700; }
.platform .btn { align-self: flex-start; }
.platform[data-state="pending"] { opacity: .75; }

.checksum {
  display: flex; gap: .5rem; align-items: center; font-size: .76rem;
  background: var(--paper-3); border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  padding: .45rem .55rem; overflow: hidden;
}
.checksum code { font-family: var(--font-mono); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; color: var(--ink); }
.copy-btn {
  flex: none; border: 1.5px solid var(--ink); background: var(--paper);
  border-radius: var(--r-pill); padding: .2rem .6rem; font-size: .72rem; font-weight: 700;
  cursor: pointer; transition: background-color .15s, color .15s;
}
.copy-btn:hover { background: var(--mint); color: var(--ink); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2rem 1fr; gap: .9rem; font-size: .93rem; color: var(--ink-2); }
.steps li::before {
  content: counter(step);
  font-family: var(--font-num); font-weight: 700; color: var(--ink); font-size: .95rem;
  background: var(--sun); border: var(--edge); border-radius: 50%;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  box-shadow: 2px 2px 0 var(--ink);
}
.steps li:nth-child(2)::before { background: var(--mint); }
.steps li:nth-child(3)::before { background: var(--sky); }
.steps li:nth-child(4)::before { background: var(--coral); }

.qr-slot {
  width: 172px; height: 172px; flex: none;
  border: 2px dashed var(--ink); border-radius: var(--r);
  display: grid; place-items: center; text-align: center;
  font-size: .76rem; color: var(--ink-3); padding: .8rem; line-height: 1.5;
  background: var(--paper);
}

/* ---- 微信内置浏览器引导遮罩 ---- */
.wechat-guard {
  position: fixed; inset: 0; z-index: 900;
  background: var(--overlay-strong);
  display: none; place-items: center; padding: 1.4rem;
}
.wechat-guard[data-open="true"] { display: grid; }
.wechat-guard-card {
  background: var(--paper); background-image: var(--grain); background-blend-mode: multiply;
  border: var(--edge); border-radius: var(--r-lg);
  max-width: 430px; padding: 1.9rem 1.6rem;
  box-shadow: 8px 8px 0 var(--coral); text-align: center;
}
.wechat-guard-card h3 { margin-bottom: .8rem; }
.wechat-guard-card p { font-size: .92rem; color: var(--ink-2); }
.wechat-arrow { font-family: var(--font-hand); color: var(--coral-ink); font-size: 1.7rem; display: block; margin: .4rem 0 1rem; transform: rotate(12deg); }
.wechat-guard-close { margin-top: .4rem; }

/* ============================ 法务长文页 ============================ */
.prose { max-width: 46rem; font-size: .97rem; color: var(--ink-2); }
.prose h2 {
  margin-top: 2.6rem; margin-bottom: .9rem; color: var(--ink);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  padding-left: .75rem; border-left: 6px solid var(--coral); border-radius: 2px;
}
.prose h3 { margin-top: 1.8rem; margin-bottom: .6rem; color: var(--ink); font-size: 1.06rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--ink); }
.prose a { border-bottom: 2px solid var(--sun); }
.prose a:hover { border-bottom-color: var(--coral); color: var(--coral-ink); }
.prose table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem;
  margin: 1.2rem 0; border: var(--edge); border-radius: var(--r-sm); overflow: hidden;
}
.prose th, .prose td { border-bottom: 1.5px solid var(--line); padding: .62rem .75rem; text-align: left; vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--sun); font-weight: 700; color: var(--ink); }
.doc-meta {
  display: grid; gap: .3rem; font-size: .84rem; color: var(--ink-3);
  background: var(--paper-2); border: 2px dashed var(--line-2); border-radius: var(--r-sm);
  padding: .95rem 1.1rem; margin: 1.4rem 0 2rem;
}

.toc {
  background: var(--paper-2); border: var(--edge); border-radius: var(--r);
  padding: 1.1rem 1.3rem; margin-bottom: 2.2rem; font-size: .9rem;
  box-shadow: 4px 4px 0 var(--paper-3);
}
.toc strong { display: block; font-size: .78rem; letter-spacing: .12em; color: var(--ink); font-weight: 700; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: .3rem; }
.toc a:hover { color: var(--coral-ink); }

/* ============================ 页脚 ============================ */
.site-footer { border-top: var(--edge); background: var(--paper-2); padding-block: 3rem 2rem; font-size: .88rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); gap: 2rem; }
.footer-grid h4 { font-size: .78rem; letter-spacing: .12em; color: var(--ink); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-grid a:hover { color: var(--coral-ink); }
.footer-disclaimer {
  margin-top: 2.4rem; padding-top: 1.3rem; border-top: 2px dashed var(--line-2);
  font-size: .82rem; color: var(--ink-3); display: grid; gap: .5rem;
}
.footer-disclaimer .legal-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-disclaimer a { border-bottom: 1.5px solid var(--line-2); }
.footer-disclaimer a:hover { color: var(--coral-ink); border-bottom-color: var(--coral); }

/* ============================ 滚动揭示 ============================ */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .66s cubic-bezier(.2,.7,.3,1), transform .66s cubic-bezier(.2,.7,.3,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .platform:hover, .boundary > div:hover { transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================ 响应式 ============================ */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .archive-card { transform: none; }
  .hero-copy { padding-top: 0; }
  .entries { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 3.4rem minmax(0, 1fr); }
  .entry:nth-child(2), .entry:nth-child(3), .entry:nth-child(5) { transform: none; }
  .entry-body { grid-column: 1 / -1; }
  .entry-no { width: 2.7rem; height: 2.7rem; font-size: 1.15rem; }
  .boundary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-float--care { left: -1rem; }
  .archive-float--memory { right: -1rem; }
  :root { --header-h: 60px; }
  .brand small { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  /* FAQ 页落成单列，跳转列表转到问答上方 */
  .faq-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  /* 单列时二维码放在正文上方更有引导性 */
  .exp-qr { order: -1; }
  .exp-qr .qr-box { width: 176px; height: 176px; }
}

@media (max-width: 700px) {
  .qr-card { flex-direction: column; gap: .9rem; }
}

@media (max-width: 620px) {
  /* 导航不再整条换行：横向可滚动，链接全部保留（原来的做法是把链接 display:none 掉，
     吸顶导航就没东西可点了，和"随时点击导航跳转"冲突） */
  .site-header .wrap { gap: .65rem; padding-inline: .8rem; }
  .site-header .brand span { display: none; }
  .site-header .brand-mark { width: 38px; height: 38px; }
  .nav {
    gap: .65rem; font-size: .88rem;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .lang-switch { font-size: .76rem; }
  .nav .nav-cta { padding: .3rem .8rem; }
  .hero { padding-top: 2.8rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero-kicker { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .archive-card { padding: 1.25rem 1.15rem 1.15rem; }
  .archive-card-label { font-size: .9rem; }
  .archive-float { display: none; }
  .boundary { grid-template-columns: 1fr; }
  .home-get-grid { grid-template-columns: 1fr; }
  .home-get .seal { display: none; }
  /* FAQ 跳转在手机上改成横向可滑动的一条，别占掉整屏高度 */
  .faq-jump {
    position: static;
    grid-auto-flow: column; grid-auto-columns: max-content;
    gap: .45rem;
    overflow-x: auto; padding-bottom: .3rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .faq-jump::-webkit-scrollbar { display: none; }
  .faq-jump a {
    white-space: nowrap;
    padding: .3rem .75rem;
    border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
    background: var(--paper-2);
  }
  .faq-jump a:hover { border-color: var(--ink); background: var(--sun); }
  /* 体验页把两个 Tab 贴在吸顶页头正下方（顶到页头下沿，别留缝），滚动中随时能切 */
  .exp-switch { position: sticky; top: var(--header-h); z-index: 40; margin-top: 1.3rem; }
  .exp-switch button { padding: .45rem .85rem; font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: .6rem; }
  .ledger { font-size: .86rem; }
}

/* ============================ 打印 ============================ */
@media print {
  .site-header, .site-footer, .btn, .wechat-guard, .lang-switch { display: none !important; }
  body { background: var(--surface-card); }
  .reveal { opacity: 1; transform: none; }
  .notice, .platform, .toc, .boundary > div, .faq-item, .qr-card { box-shadow: none; }
  /* 打印时把 FAQ 全部展开，否则纸上只剩问题看不到答案 */
  .faq-item > .faq-body { display: block !important; }
  .faq-item summary::after { content: ""; border: 0; background: none; }
  /* 体验页：两个 Tab 的面板都要印出来，否则纸上少一半内容 */
  .exp-switch { display: none !important; }
  .exp-panel { display: block !important; }
}

/* ========================================================================
   Journal / approved homepage refinement, 2026-09-21.
   Opt-in theme: download pages deliberately retain their existing appearance.
   Brand and functional icons remain the shared MMW assets without modifications.
   ======================================================================== */
@font-face {
  font-family: "MMW Journal Kai";
  src: url("../fonts/journal-kai.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root[data-site-theme="journal"] {

  --header-h: 92px;
  --j-ease: cubic-bezier(.22, 1, .36, 1);

  --wrap: 1440px;
  --font-display: "Kaiti SC", "STKaiti", "KaiTi", "MMW Journal Kai", serif;
  --font-hand: var(--font-display);
  --edge: 2px solid var(--ink);
}
.journal-site { background: var(--surface-page); background-image: none; color: var(--ink); }
.journal-site [hidden] { display: none !important; }
.journal-site .wrap { max-width: var(--wrap); padding-inline: 32px; }
.journal-site .wrap-narrow { max-width: 900px; }
.journal-site h1, .journal-site h2, .journal-site h3 { font-weight: 600; }
.journal-site :focus-visible { outline: 3px solid var(--coral-ink); outline-offset: 5px; }
.journal-site section[id], .journal-site article[id] { scroll-margin-top: 20px; }
.journal-site .site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.journal-site .site-header[data-scrolled] { box-shadow: 0 3px 0 var(--paper-2); }
.journal-site .site-header .wrap { height: var(--header-h); gap: 28px; }
.journal-site .site-header .brand { gap: 14px; flex-shrink: 0; }
.journal-site .brand-mark { width: 62px; height: 62px; transform: none; filter: none; }
.journal-site .j-brand-copy { display: grid; gap: 0; }
.journal-site .j-brand-copy strong { font: 600 30px/1.3 var(--font-display); letter-spacing: .1em; }
.journal-site .j-brand-copy small { display: block; font: 14px/1.5 var(--font-display); letter-spacing: .16em; text-transform: none; color: var(--ink-2); }
.journal-site .nav { gap: 32px; font-size: 16px; font-weight: 500; overflow: visible; }
.journal-site .nav a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.journal-site .nav .j-language { font-size: 12px; color: var(--ink-2); }
.journal-site .j-menu-toggle { display: none; }
.journal-site .btn { min-height: 54px; gap: 12px; border: var(--edge); box-shadow: 0 4px 0 var(--ink); font-weight: 600; padding: 12px 26px; font-size: 17px; }
.journal-site .btn-primary { background: var(--button-primary); color: var(--ink); }
.journal-site .btn-ghost { background: var(--j-white); box-shadow: none; }
.journal-site .btn:hover { transform: translateY(-2px); }
.journal-site .btn:active { transform: translateY(3px); box-shadow: none; }
.journal-site mmw-icon { flex: none; }
.journal-site .j-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink-2); font-size: 18px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 6px; }
.journal-site .j-text-link:hover { color: var(--coral-ink); }
.journal-site .j-text-link mmw-icon { width: 20px; height: 20px; }
.journal-site .j-kicker { font: 20px/1.5 var(--font-display); letter-spacing: .15em; color: var(--ink-2); margin: 0 0 25px; }
.journal-site .j-hero { display: grid; align-items: center; min-height: calc(100dvh - var(--header-h) - 1px); padding: 64px 0 68px; background: var(--surface-page); border: 0; }
.journal-site .j-hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 72px; align-items: center; }
.journal-site .j-hero-copy { padding: 0 0 0 40px; min-width: 0; }
.journal-site .j-hero h1 { font: 600 clamp(50px, 5.3vw, 80px)/1.23 var(--font-display); letter-spacing: .025em; margin: 0; text-wrap: nowrap; }
.journal-site .j-underline { display: block; width: 82px; height: 6px; border-radius: 9px; background: var(--sun); margin-top: 22px; }
.journal-site .j-intro { margin: 28px 0 32px; color: var(--ink-2); font-size: 20px; line-height: 1.7; letter-spacing: 0; }
.journal-site .j-hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.journal-site .j-hero-actions .btn { min-width: 174px; min-height: 50px; padding: 10px 22px; border-width: 1.5px; background: var(--j-action); box-shadow: 0 2px 0 var(--ink); font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--ink); justify-content: center; }
.journal-site .j-hero-actions .btn:hover { background: var(--j-action-hover); transform: translateY(-1px); }
.journal-site .j-hero-actions .btn:active { transform: translateY(2px); box-shadow: none; }
.journal-site .j-release { margin: 30px 0 0; color: var(--ink-3); font-size: 14px; letter-spacing: .04em; }
.journal-site .j-product { min-width: 0; padding: 28px 30px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 32px; }
.journal-site .j-pet-tabs { display: flex; gap: 15px; margin: 0 0 16px 4px; }
.journal-site .j-pet-tabs button { position: relative; min-width: 100px; min-height: 54px; padding: 9px 22px; border: 1px dashed var(--line-2); border-radius: 22px; background: var(--j-white); color: var(--coral-ink); font: 600 23px/1.3 var(--font-display); cursor: pointer; }
.journal-site .j-pet-tabs button[aria-selected="true"] { background: var(--selection-bg); border: var(--edge); color: var(--ink); box-shadow: 2px 5px 0 var(--ink); }
.journal-site .j-pet-tabs button[aria-selected="true"]::after { content: ""; position: absolute; width: 9px; height: 9px; background: var(--ink); bottom: -10px; left: 50%; transform: translateX(-50%) rotate(45deg); }
.journal-site .j-pet-card { overflow: hidden; background: var(--j-white); border: var(--edge); border-radius: 24px; box-shadow: 5px 6px 0 var(--ink); }
.journal-site .j-profile-top { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 18px; padding: 26px 22px 22px; position: relative; min-height: 234px; }
.journal-site .j-profile-top::before { content: ""; position: absolute; top: 0; right: 0; width: 98px; height: 98px; border-bottom-left-radius: 100%; background: var(--mint-soft); }
.journal-site .j-profile-info { position: relative; }
/* Portrait construction is retained from 
   It is the original pet-initial avatar, not a replacement for the MMW logo. */
.journal-site .j-portrait { transform: scale(.82); transform-origin: top left; position: relative; width: 142px; height: 155px; margin-top: 1px; }
.journal-site .j-portrait-ring { position: absolute; left: 5px; top: 13px; width: 128px; height: 128px; border: 4px solid var(--ink); border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.journal-site .j-portrait-face { width: 98px; height: 98px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--j-white); font: 600 40px var(--font-display); }
.journal-site .j-portrait-ear { position: absolute; border: 3px solid var(--ink); z-index: 2; }
.journal-site .j-portrait-ear-left { top: 6px; left: 8px; width: 39px; height: 32px; background: var(--coral); border-radius: 5px 22px 5px 5px; transform: rotate(-16deg); }
.journal-site .j-portrait-ear-right { top: 35px; right: 1px; width: 35px; height: 34px; background: var(--mint); border-radius: 20px 20px 5px 18px; transform: rotate(12deg); }
.journal-site .j-file-stamp { position: absolute; left: 12px; bottom: 0; border: 1.5px solid var(--ink); border-radius: 99px; padding: 3px 15px; background: var(--j-white); font: 13px/1.5 var(--font-body); white-space: nowrap; }
.journal-site .j-profile-label { color: var(--coral-ink); font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.journal-site .j-profile-info h2 { font-size: 44px; line-height: 1.16; margin: 0 0 4px; }
.journal-site .j-pet-sub { font-size: 16px; line-height: 1.6; margin: 0; }
.journal-site .j-pet-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.journal-site .j-pet-tags span { padding: 3px 12px; background: var(--paper-2); color: var(--ink-2); border-radius: 99px; font-size: 13px; }
.journal-site .j-team { display: flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 12px; color: var(--ink-2); }
.journal-site .j-team > span:last-child { margin-left: 8px; }
.journal-site .j-person { width: 31px; height: 31px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--coral); color: var(--ink); font: 600 15px/1 var(--font-display); }
.journal-site .j-person:nth-child(2) { background: var(--sun); }
.journal-site .j-person:nth-child(3) { background: var(--mint); }
.journal-site .j-next { border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 86px; padding: 14px 24px 15px 29px; }
.journal-site .j-next small { font-size: 13px; color: var(--ink-3); }
.journal-site .j-next p { font: 600 23px/1.45 var(--font-display); margin: 1px 0 0; }
.journal-site .j-next strong { color: var(--coral-ink); font-weight: inherit; }
.journal-site .j-round-link { width: 50px; height: 50px; display: grid; place-items: center; background: var(--button-primary); border: var(--edge); border-radius: 50%; }
.journal-site .j-round-link:hover { background: var(--paper-2); }
.journal-site .j-diary-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 30px 0 16px; }
.journal-site .j-diary-header h2 { font-size: 30px; }
.journal-site .j-record-button { display: inline-flex; align-items: center; gap: 8px; background: var(--button-primary); border: var(--edge); border-radius: 99px; box-shadow: 2px 3px 0 var(--ink); min-height: 46px; padding: 6px 18px; font-size: 15px; cursor: pointer; }
.journal-site .j-record-button mmw-icon { width: 18px; height: 18px; }
.journal-site .j-record-button:hover { transform: translateY(-1px); }
.journal-site .j-timeline { list-style: none; padding: 0 0 0 58px; margin: 0; position: relative; }
.journal-site .j-timeline::before { content: ""; position: absolute; left: 20px; top: 25px; bottom: 35px; border-left: 2px dashed var(--line-2); }
.journal-site .j-timeline li { position: relative; margin: 0 0 12px; }
.journal-site .j-timeline li::before { content: ""; position: absolute; width: 22px; height: 22px; top: 17px; left: -49px; border: 3px solid var(--ink); border-radius: 50%; background: var(--sun); }
.journal-site .j-timeline li:nth-child(2)::before { background: var(--mint); }
.journal-site .j-log { padding: 10px 19px; min-height: 73px; border: 1px solid var(--line); border-radius: 18px; background: var(--j-white); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.journal-site .j-log > div { min-width: 0; }
.journal-site .j-log-time { font: 13px/1.4 var(--font-body); color: var(--ink-3); margin: 0 0 3px; }
.journal-site .j-log h3 { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.journal-site .j-log-author { display: flex; align-items: center; gap: 8px; flex: none; font-size: 12px; color: var(--ink-3); }
.journal-site .j-timeline li:nth-child(2) .j-person { background: var(--sun); }
.journal-site .j-demo-note { text-align: center; color: var(--ink-3); font-size: 12px; margin: 17px 0 0; }
.journal-site .j-demo-status { margin: 0; color: var(--coral-ink); font-size: 13px; text-align: center; }
.journal-site .j-trust { padding: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journal-site .j-trust-grid { display: grid; grid-template-columns: 2.65fr 1fr 1fr 1fr; align-items: center; gap: 0; }
.journal-site .j-trust h2 { font-size: 32px; padding-right: 35px; }
.journal-site .j-trust h2::after { content: ""; display: block; width: 62px; height: 6px; background: var(--sun); border-radius: 99px; margin-top: 17px; }
.journal-site .j-trust-grid > div { min-height: 106px; padding: 6px 24px; border-left: 1px solid var(--line); }
.journal-site .j-trust h3 { font-size: 25px; margin-bottom: 9px; }
.journal-site .j-trust p { font-size: 14px; line-height: 1.75; color: var(--ink-3); margin: 0; }
/* Continue the approved first screen as a long-form narrative. */
.journal-site .chapter, .journal-site .j-together { padding-block: 120px; border-top: 0; }
.journal-site .chapter .wrap, .journal-site .j-together .wrap { max-width: 1264px; }
.journal-site .chapter h2, .journal-site .j-together h2, .journal-site .home-get h2 { font-size: clamp(32px,3.5vw,48px); line-height: 1.3; }
.journal-site .eyebrow { background: none; box-shadow: none; transform: none; border: 0; border-radius: 0; padding: 0; font: 18px/1.5 var(--font-display); letter-spacing: .13em; color: var(--ink-2); }
.journal-site .chapter--capability { background: var(--j-white); }
.journal-site .chapter--capability::before { content: none; }
.journal-site .entries { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
.journal-site .entry { grid-template-columns: 48px minmax(0,1fr); gap: 14px 20px; padding: 32px 0; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none; background: none; transform: none; }
.journal-site .entry:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.journal-site .entry-no { width: 46px; height: 46px; border: 1.5px solid var(--ink); box-shadow: none; border-radius: 14px; }
.journal-site .entry-no mmw-icon { width: 25px; height: 25px; }
.journal-site .entry h3 { font-size: 28px; }
.journal-site .entry { grid-template-rows: auto 1fr; }
.journal-site .entry-body { grid-column: 2; color: var(--ink-2); border-top: 0; padding-top: 0; font-size: 16px; line-height: 1.85; }
.journal-site .entry-tag { display: inline-flex; margin-bottom: 8px; font-family: var(--font-body); }
.journal-site .entry:last-child { background: none; border-top-style: dashed; }
.journal-site .j-together { background: var(--paper-2); }
.journal-site .j-together-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.journal-site .j-together .lede { margin: 25px 0; max-width: 27em; }
.journal-site .j-care-steps { list-style: none; margin: 0; padding: 30px; background: var(--j-white); border: var(--edge); border-radius: 26px; box-shadow: 6px 7px 0 var(--ink); }
.journal-site .j-care-steps li { display: flex; gap: 20px; padding: 22px 0; }
.journal-site .j-care-steps li + li { border-top: 1px dashed var(--line); }
.journal-site .j-care-steps mmw-icon { width: 28px; height: 28px; margin-top: 3px; }
.journal-site .j-care-steps h3 { font-size: 27px; margin-bottom: 8px; }
.journal-site .j-care-steps p { margin: 0; font-size: 16px; color: var(--ink-2); }
.journal-site .chapter--boundary { background: var(--j-white); }
.journal-site .boundary { gap: 28px 40px; }
.journal-site .boundary > div { background: none; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 25px 0; transform: none; }
.journal-site .boundary > div:hover { transform: none; box-shadow: none; }
.journal-site .boundary h3 { font-size: 24px; }
.journal-site .boundary p { font-size: 16px; color: var(--ink-2); padding-left: 0; }
.journal-site .boundary .mark { width: 28px; height: 28px; border-width: 1.5px; box-shadow: none; }
.journal-site .chapter--privacy { background: var(--paper); border-top: 1px solid var(--line); }
.journal-site .ledger { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; background: var(--j-white); }
.journal-site .ledger th, .journal-site .ledger td { border-color: var(--line); }
.journal-site .ledger th { background: var(--paper-2); }
.journal-site .ledger th:first-child, .journal-site .ledger td:first-child { min-width: 56px; width: 65px; white-space: nowrap; }
.journal-site .notice { border: 1px solid var(--line); border-left: 4px solid var(--mint); background: var(--j-white); box-shadow: none; border-radius: 12px; }
.journal-site .notice-danger { border-left-color: var(--coral); }
.journal-site .home-get { background: var(--paper-2); border-top: 1px solid var(--line); padding: 80px 0; }
.journal-site .home-get .wrap { max-width: 1264px; }
.journal-site .j-closing-brand { display: grid; justify-items: center; gap: 10px; font: 24px var(--font-display); }
.journal-site .j-closing-brand mmw-icon { width: 150px; height: 150px; }
.journal-site .site-footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: 54px; }
.journal-site .site-footer .wrap { max-width: 1264px; }
.journal-site .site-footer .brand-mark { width: 46px; height: 46px; }
.journal-site .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 30px; }
.journal-site .footer-grid a { overflow-wrap: anywhere; }
.journal-site .footer-disclaimer { border-top: 1px solid var(--line); }
.journal-site .reveal { opacity: 1; transform: none; }
/* Editorial rhythm: a quiet sticky introduction beside continuous record entries. */
.journal-site .j-capability-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.journal-site .j-section-intro { position: sticky; top: calc(var(--header-h) + 48px); }
.journal-site .j-section-intro h2 { text-wrap: balance; }
.journal-site .j-section-intro .lede { font-size: 18px; }
.journal-site .j-hero h1 em { color: var(--coral-ink); font-style: normal; }
.journal-site .j-product #pet-preview { border-radius: 24px; }
.journal-site .j-demo-status { min-height: 20px; }
.journal-site .j-brand-copy { display: grid !important; }
.journal-site .j-pet-tabs button, .journal-site .j-record-button, .journal-site .j-round-link,
.journal-site .j-menu-toggle { transition: transform 180ms var(--j-ease), background-color 180ms, box-shadow 180ms; }
.journal-site .j-pet-tabs button:active, .journal-site .j-record-button:active { transform: translateY(3px); box-shadow: none; }
.journal-site .j-text-link mmw-icon, .journal-site .btn mmw-icon, .journal-site .j-menu-toggle mmw-icon { transition: transform 220ms var(--j-ease); }
.journal-site .j-text-link:hover mmw-icon, .journal-site .btn:hover mmw-icon { transform: translateX(3px); }
.journal-site .j-menu-toggle[aria-expanded="true"] mmw-icon { transform: rotate(45deg); }
.journal-site .footer-grid li a { display: inline-flex; align-items: center; min-height: 36px; }
.journal-site .j-care-steps li { position: relative; }
.journal-site .j-care-steps li > mmw-icon { color: var(--coral-ink); }
@media (min-width: 881px) {
  .journal-site .j-hero .wrap { max-width: 1360px; }
  .journal-site .j-trust .wrap { max-width: 1264px; }
}
@media (max-width: 1100px) {
  .journal-site .j-capability-layout { gap: 48px; }
}
@media (max-width: 880px) {
  .journal-site .j-capability-layout { grid-template-columns: 1fr; gap: 36px; }
  .journal-site .j-section-intro { position: static; }
  .journal-site .j-product { max-width: 580px; width: 100%; margin-inline: auto; }
  .journal-site .j-hero-copy { max-width: 620px; }
}
@media (max-width: 440px) {
  .journal-site .entry-body { grid-column: 1 / -1; }
  .journal-site .j-trust-grid { grid-template-columns: 1fr; }
  .journal-site .j-trust-grid > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 14px; }
  .journal-site .j-trust h3 { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .journal-site *, .journal-site *::before, .journal-site *::after { animation: none !important; transition: none !important; }
  .journal-site .btn:hover, .journal-site .btn:active, .journal-site .j-hero-actions .btn:hover,
  .journal-site .j-hero-actions .btn:active, .journal-site .j-record-button:active,
  .journal-site .j-text-link:hover mmw-icon, .journal-site .btn:hover mmw-icon { transform: none; }
}
@media print {
  .journal-site .j-hero { display: block; min-height: auto; }
  .journal-site .j-section-intro { position: static; }
  .journal-site .j-capability-layout { display: block; }
}
/* Secondary pages use the same typography and quieter content surfaces. */
.journal-site:not(.home-page) main > section { padding-block: 66px 90px; }
.journal-site:not(.home-page) main > section > .wrap { max-width: 1264px; }
.journal-site:not(.home-page) h1 { font-size: clamp(34px,4vw,56px); line-height: 1.35; }
.journal-site .faq-layout { gap: 50px; margin-top: 48px; }
.journal-site .faq-item { border: 1px solid var(--line); border-radius: 18px; box-shadow: none; background: var(--j-white); }
.journal-site .faq-item[open] { background: var(--paper); box-shadow: 3px 4px 0 var(--paper-2); }
.journal-site .faq-item summary { padding: 22px 24px; font-family: var(--font-body); font-size: 18px; font-weight: 500; }
.journal-site .faq-body { padding: 0 24px 24px; }
.journal-site .faq-ref { display: none; }
.journal-site .faq-jump a { min-height: 44px; }
.journal-site .exp-head { max-width: 44rem; }
.journal-site .exp-switch { box-shadow: 3px 4px 0 var(--ink); }
.journal-site .exp-qr { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.journal-site .exp-fallback { border: 1px dashed var(--line-2); background: var(--paper); }
.journal-site .j-demo-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 30px; border: var(--edge); border-radius: 25px; box-shadow: 7px 8px 0 var(--ink); background: var(--j-white); color: var(--ink); }
.journal-site .j-demo-dialog::backdrop { background: var(--j-backdrop); backdrop-filter: blur(4px); }
.journal-site .j-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.journal-site .j-dialog-top .j-kicker { font-size: 17px; margin: 0; }
.journal-site .j-dialog-close { border: 0; width: 44px; height: 44px; background: none; display: grid; place-items: center; cursor: pointer; }
.journal-site .j-demo-dialog h2 { font-size: 31px; margin: 17px 0; }
.journal-site .j-demo-dialog p { color: var(--ink-2); font-size: 15px; }
.journal-site .j-demo-dialog label { display: block; font-weight: 600; margin: 25px 0 10px; }
.journal-site .j-demo-dialog textarea { width: 100%; min-height: 120px; padding: 14px; font: inherit; resize: vertical; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); }
.journal-site .j-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
html[lang="en"] .journal-site .j-hero h1 { font-family: Georgia, serif; font-size: clamp(46px,4.4vw,66px); line-height: 1.14; letter-spacing: -.035em; }
html[lang="en"] .journal-site .j-intro { font-size: 19px; }
html[lang="en"] .journal-site .nav { gap: 22px; font-size: 15px; }
html[lang="en"] .journal-site .j-pet-sub { font-size: 13px; }
html[lang="en"] .journal-site .j-profile-info h2 { font-size: 35px; }
html[lang="en"] .journal-site .j-diary-header h2 { font-size: 24px; }
html[lang="en"] .journal-site .j-record-button { white-space: nowrap; }
html[lang="en"] .journal-site .j-log h3 { font: 17px/1.4 var(--font-body); }
html[lang="en"] .journal-site .j-log-author > span { display: none; }
html[lang="en"] .journal-site .j-trust h2 { font-size: 32px; }
html[lang="en"] .journal-site .j-trust h3 { font-size: 21px; }
@media (max-width: 1250px) {
  .journal-site .nav { gap: 18px; font-size: 14px; }
  .journal-site .j-hero-copy { padding-left: 12px; }
  .journal-site .j-product { padding: 24px 20px 18px; }
  .journal-site .j-hero-grid { gap: 35px; grid-template-columns: 1fr 1fr; }
  .journal-site .j-intro { font-size: 19px; }
  .journal-site .j-hero-actions { gap: 20px; }
  .journal-site .j-hero-actions .btn { min-width: 174px; font-size: 17px; }
  .journal-site .j-profile-top { grid-template-columns: 112px 1fr; gap: 16px; padding: 25px 20px; }
  .journal-site .j-portrait { transform: scale(.78); transform-origin: top left; width: 142px; height: 155px; }
  .journal-site .j-pet-sub { font-size: 13px; }
  .journal-site .j-profile-info h2 { font-size: 36px; }
  .journal-site .j-team { flex-wrap: wrap; }
  .journal-site .j-team > span:last-child { margin-left: 4px; }
  .journal-site .j-log-author > span { display: none; }
  .journal-site .j-trust h2 { font-size: 28px; }
  .journal-site .j-trust h3 { font-size: 22px; }
}
@media (max-width: 1000px) {
  :root[data-site-theme="journal"] { --header-h: 86px; }
  .journal-site .site-header .brand { gap: 10px; }
  .journal-site .brand-mark { width: 60px; height: 60px; }
  .journal-site .j-brand-copy strong { font-size: 28px; }
  .journal-site .j-brand-copy small { font-size: 13px; }
  .journal-site .site-header .wrap { gap: 18px; }
  .journal-site .j-hero-copy { padding-left: 0; }
  .journal-site .j-hero h1 { font-size: 55px; }
  .journal-site .j-hero-grid { gap: 30px; }
  .journal-site .j-profile-top { grid-template-columns: 88px 1fr; gap: 14px; padding: 22px 18px; }
  .journal-site .j-portrait { transform: scale(.62); width: 142px; height: 155px; }
  .journal-site .j-pet-tags { gap: 4px; }
  .journal-site .j-pet-tags span { font-size: 11px; padding: 3px 7px; }
  .journal-site .j-team > span:last-child { flex-basis: 100%; margin: 4px 0 0; }
  .journal-site .j-log { padding-inline: 12px; }
  .journal-site .j-log h3 { font-size: 18px; }
  .journal-site .j-timeline { padding-left: 37px; }
  .journal-site .j-timeline::before { left: 10px; }
  .journal-site .j-timeline li::before { left: -37px; }
  .journal-site .j-together-grid { gap: 45px; }
  .journal-site .j-trust-grid { grid-template-columns: repeat(3,1fr); }
  .journal-site .j-trust h2 { grid-column: 1/-1; margin-bottom: 26px; }
  .journal-site .j-trust-grid > div:nth-child(2) { border-left: 0; padding-left: 0; }
  .journal-site .j-trust-grid > div { padding-inline: 20px; }
}
@media (max-width: 900px) {
  .journal-site .site-header .wrap { position: relative; justify-content: space-between; }
  .journal-site .site-header[data-nav-enhanced] .j-menu-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 44px; border: 1.5px solid var(--ink); border-radius: 99px; background: var(--sun); cursor: pointer; }
  .journal-site .j-menu-toggle mmw-icon { width: 17px; height: 17px; }
  .journal-site .site-header[data-nav-enhanced] .nav { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% - 2px); padding: 20px; margin: 0; background: var(--j-white); border: var(--edge); border-radius: 20px; box-shadow: 4px 5px 0 var(--ink); gap: 6px; }
  .journal-site .site-header[data-nav-enhanced][data-menu-open] .nav { display: grid; }
  .journal-site .site-header[data-nav-enhanced] .nav a { padding: 8px 14px; }
  .journal-site .site-header:not([data-nav-enhanced]) .wrap { height: auto; min-height: var(--header-h); flex-wrap: wrap; padding-block: 10px; }
  .journal-site .site-header:not([data-nav-enhanced]) .nav { display: flex; flex-wrap: wrap; margin-left: 0; }
  .journal-site .faq-layout { grid-template-columns: 1fr; }
  .journal-site .faq-jump { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .journal-site .faq-jump a { border: 1px solid var(--line); border-radius: 99px; padding: 8px 15px; }
}
@media (max-width: 880px) {
  .journal-site .wrap { padding-inline: 24px; }
  .journal-site .j-hero { padding: 36px 0 34px; }
  .journal-site .j-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .journal-site .j-hero-copy { padding: 0; }
  .journal-site .j-kicker { font-size: 17px; margin-bottom: 20px; }
  .journal-site .j-hero h1 { font-size: clamp(48px,8.7vw,66px); }
  .journal-site .j-intro { margin: 24px 0; font-size: 18px; }
  .journal-site .j-hero-actions { gap: 20px; }
  .journal-site .j-hero-actions .btn { min-width: 174px; min-height: 50px; font-size: 17px; }
  .journal-site .j-text-link { font-size: 16px; }
  .journal-site .j-release { font-size: 12px; margin-top: 23px; }
  .journal-site .j-profile-top { grid-template-columns: 115px 1fr; min-height: 208px; padding: 24px 20px; gap: 18px; }
  .journal-site .j-portrait { transform: scale(.8); width: 142px; height: 155px; }
  .journal-site .j-team > span:last-child { flex-basis: auto; }
  .journal-site .j-diary-header h2 { font-size: 31px; }
  .journal-site .j-trust-grid { gap: 20px; }
  .journal-site .j-trust-grid > div { border: 0; padding: 0; min-height: 0; }
  .journal-site .j-trust h2 { font-size: 29px; margin-bottom: 5px; padding: 0; }
  .journal-site .j-trust h3 { font-size: 21px; }
  .journal-site .j-trust p { font-size: 14px; }
  .journal-site .j-trust p br { display: none; }
  .journal-site .chapter, .journal-site .j-together { padding-block: 62px; }
  .journal-site .entries, .journal-site .j-together-grid { grid-template-columns: 1fr; }
  .journal-site .entry { padding: 26px 0; }
  .journal-site .entry h3 { font-size: 26px; }
  .journal-site .entry-body { font-size: 15px; }
  .journal-site .boundary { grid-template-columns: 1fr; gap: 10px; }
  .journal-site .home-get { padding: 60px 0; }
  .journal-site .home-get-grid { grid-template-columns: 1fr; }
  .journal-site .j-closing-brand { display: none; }
  .journal-site .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .journal-site .footer-grid > div:first-child { grid-column: 1/-1; }
  .journal-site .faq-item summary { padding: 18px; }
  .journal-site .faq-body { padding: 0 18px 20px; }
  .journal-site .faq-q { font-size: 17px; }
  .journal-site .exp-switch { position: static; }
  .journal-site .exp-qr { order: 0; }
  html[lang="en"] .journal-site .j-hero h1 { font-size: clamp(42px,8.2vw,62px); }
}
@media (max-width: 440px) {
  .journal-site .wrap { padding-inline: 20px; }
  .journal-site .site-header .wrap { padding-inline: 16px; }
  .journal-site .site-header .brand span { display: grid; }
  .journal-site .site-header .brand-mark { width: 52px; height: 52px; }
  .journal-site .j-brand-copy strong { font-size: 27px; }
  .journal-site .j-brand-copy small { font-size: 12px; }
  .journal-site .j-hero h1 { font-size: clamp(38px, 12vw, 49px); }
  .journal-site .j-intro { font-size: 16px; }
  .journal-site .j-hero-actions { gap: 16px; }
  .journal-site .j-hero-actions .btn { min-width: 148px; min-height: 50px; padding-inline: 17px; }
  .journal-site .j-hero-actions .j-text-link { font-size: 14px; gap: 3px; }
  .journal-site .j-product { padding: 0 6px 0 0; border: 0; background: none; border-radius: 0; }
  .journal-site .j-pet-card { border-radius: 25px; box-shadow: 5px 6px 0 var(--ink); }
  .journal-site .j-profile-top { grid-template-columns: 91px 1fr; padding: 22px 14px; gap: 12px; }
  .journal-site .j-portrait { transform: scale(.65); width: 142px; height: 155px; }
  .journal-site .j-profile-info h2 { font-size: 34px; }
  .journal-site .j-pet-sub { font-size: 14px; }
  .journal-site .j-team .j-person { width: 25px; height: 25px; font-size: 12px; }
  .journal-site .j-team > span:last-child { flex-basis: 100%; font-size: 12px; }
  .journal-site .j-next { padding: 14px 18px; }
  .journal-site .j-next p { font-size: 21px; }
  .journal-site .j-diary-header { gap: 8px; }
  .journal-site .j-record-button { padding-inline: 12px; font-size: 13px; }
  .journal-site .j-log-author { display: none; }
  .journal-site .j-trust h2 { font-size: 26px; }
  .journal-site .j-trust h3 { font-size: 18px; }
  .journal-site .j-trust-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .journal-site .j-demo-dialog { padding: 22px; }
  .journal-site .ledger th, .journal-site .ledger td { padding: 10px 8px; }
  .journal-site .j-demo-note { font-size: 12px; }
  .journal-site .j-diary-header h2 { font-size: 28px; }
  html[lang="en"] .journal-site .j-hero h1 { font-size: clamp(34px, 10.6vw, 42px); }
  html[lang="en"] .journal-site .j-brand-copy small { font-size: 10px; letter-spacing: .035em; }
  html[lang="en"] .journal-site .site-header .wrap { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .journal-site .btn:hover, .journal-site .j-record-button:hover { transform: none; }
}
@media print {
  .journal-site .site-header, .journal-site .j-record-button, .journal-site .j-demo-dialog { display: none; }
  .journal-site .j-pet-card, .journal-site .j-care-steps { box-shadow: none; }
  .journal-site .j-hero-grid { grid-template-columns: 1fr 1fr; }
}

/* 交互反馈统一消费共享用途色。 */
.btn-primary:active, .journal-site .btn-primary:active, .journal-site .j-hero-actions .btn:active, .journal-site .j-record-button:active { background: var(--button-primary-pressed); }
