/* Aru 官网：首页、图解、关于与隐私共用。颜色 token 在 app.css。
   CSP 只允许同源样式，页面里不写 style 属性；动态值由脚本写 CSS 变量。 */

:root {
  --display: "Didot", "Bodoni 72", "Iowan Old Style", "Songti SC", "Noto Serif SC", Georgia, serif;
  --script: "Snell Roundhand", "Savoye LET", "Apple Chancery", "Brush Script MT", cursive;
  --page: min(1120px, calc(100% - 40px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

body.site { overflow-x: hidden; }

/* ---------- 页头页脚 ---------- */

.site .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: auto;
  padding: 0 max(20px, calc((100% - 1120px) / 2));
  min-height: 68px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site .site-header.scrolled { border-bottom-color: var(--line); }

.site .brand { font-family: var(--display); font-size: 23px; font-weight: 500; letter-spacing: 0; }
.site .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(150, 128, 210, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.site .site-nav { gap: 20px; }
.site .site-nav a { font-size: 14.5px; color: var(--text-dim); transition: color 0.2s ease; }
.site .site-nav a:hover, .site .site-nav a[aria-current="page"] { color: var(--text); }
.site .language-switch { font-size: 13px; background: var(--surface); }

.site .site-footer {
  width: var(--page);
  margin: 0 auto;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0 calc(22px + env(safe-area-inset-bottom));
}
.site .site-footer img { border-radius: 6px; }

/* ---------- 通用排版 ---------- */

.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.band { width: var(--page); margin: 0 auto; padding: clamp(64px, 11vw, 120px) 0 0; }
.band-head { max-width: 640px; margin-bottom: 34px; }
.band-head h2 {
  margin: 12px 0 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.band-head p:not(.kicker) { margin: 0; color: var(--text-dim); font-size: 16px; }

.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  min-height: min(860px, calc(100svh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px;
  padding: 24px 0 70px;
}

.hero-sky { position: absolute; inset: -120px -30vw 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.7; animation: drift 24s ease-in-out infinite alternate; }
.blob-a { width: 520px; height: 520px; left: 52%; top: 4%; background: var(--pearl-lilac); }
.blob-b { width: 420px; height: 420px; left: 30%; top: 44%; background: var(--pearl-pink); opacity: 0.55; animation-duration: 30s; animation-delay: -8s; }
.blob-c { width: 380px; height: 380px; left: 72%; top: 46%; background: var(--pearl-sky); opacity: 0.55; animation-duration: 27s; animation-delay: -15s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.12); }
  100% { transform: translate(40px, -30px) scale(0.94); }
}
@media (prefers-color-scheme: dark) { .blob { opacity: 0.32; } .blob-b, .blob-c { opacity: 0.24; } }

.hero-copy > * { animation: rise 1.1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.display {
  position: relative;
  margin: 20px 0 24px;
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--accent-strong) 82%, var(--text));
}
.display-line { display: block; font-size: clamp(76px, 13vw, 156px); }
.display-soft { font-size: clamp(44px, 6.6vw, 78px); margin-top: 6px; color: var(--accent); font-style: italic; }
.twinkle { position: absolute; fill: url(#pearl-ink); animation: twinkle 3.6s ease-in-out infinite; }
.twinkle.t1 { width: 30px; height: 30px; left: clamp(150px, 26vw, 300px); top: -6px; }
.twinkle.t2 { width: 18px; height: 18px; left: -26px; top: 44%; animation-delay: -1.7s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.45; } 50% { transform: scale(1.08) rotate(20deg); opacity: 1; } }

.hero-lead { text-wrap: pretty; max-width: 30em; margin: 0 0 32px; color: var(--text-dim); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.beta-link { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--accent); font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.beta-link:hover { opacity: .75; }
.beta-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.beta-note { max-width: 34em; margin: 18px 0 0; color: var(--text-dim); font-size: 13px; line-height: 1.7; text-wrap: pretty; }
.store-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.store-link:hover { transform: translateY(-2px); }
.store-link img { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 10px 24px rgba(150, 128, 210, 0.35); }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 6px 20px 7px;
  border-radius: 14px;
  background: #111018;
  color: #fff;
  line-height: 1.1;
  box-shadow: 0 10px 22px rgba(17, 16, 24, 0.22);
}
.store-badge small { font-size: 11px; opacity: 0.8; }
.store-badge strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) { .store-badge { background: #fff; color: #111018; } }

.soft-button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--surface-solid) 22%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--ease);
}
.soft-button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--surface-solid) 40%, transparent); transform: translateY(-2px); }

/* 舞台：珍珠气泡 + 毛毡小家伙 + 漂浮的珍珠 */
.hero-stage { position: relative; aspect-ratio: 1 / 0.95; width: 100%; --px: 0; --py: 0; }
.orbit { position: absolute; inset: 0; }
.depth-1 { translate: calc(var(--px) * 10px) calc(var(--py) * 10px); }
.depth-2 { translate: calc(var(--px) * 22px) calc(var(--py) * 22px); }
.depth-3 { translate: calc(var(--px) * 38px) calc(var(--py) * 38px); }
.depth-1, .depth-2, .depth-3 { transition: translate 0.6s var(--ease); }

.pearl-bubble {
  position: absolute;
  left: 13%;
  top: 15%;
  width: 72%;
  height: auto;
  filter: drop-shadow(0 34px 44px rgba(150, 128, 210, 0.32));
  animation: bubble-float 8s ease-in-out infinite, iridesce 12s ease-in-out infinite alternate;
}
@keyframes bubble-float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-16px) rotate(1.5deg); } }
@keyframes iridesce { from { filter: drop-shadow(0 34px 44px rgba(150, 128, 210, 0.32)) hue-rotate(-12deg); } to { filter: drop-shadow(0 34px 44px rgba(150, 128, 210, 0.32)) hue-rotate(14deg); } }

.critter {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(110, 90, 160, 0.24));
  animation: bob 6s ease-in-out infinite;
}
/* 睡着的小花趴在气泡顶上跟着呼吸；蘑菇底色深，放到右下压住画面，镜像后朝左看向气泡。 */
.critter.sit { width: 25%; left: 69%; top: 56%; scale: -1 1; rotate: -4deg; animation-duration: 6.8s; animation-delay: -2.5s; }
.critter.float { width: 22%; left: -2%; top: 2%; animation-duration: 7.2s; animation-delay: -2s; }
/* 珊瑚原图朝右，镜像后朝左看向气泡顶上的小花。 */
.critter.peek { width: 20%; left: 79%; top: 9%; scale: -1 1; rotate: -6deg; animation-duration: 6.4s; animation-delay: -1s; }
.critter.sleep { width: 27%; left: 44%; top: 1%; animation: breathe 4.8s ease-in-out infinite; }
.critter.hug { width: 24%; left: 0; top: 62%; animation-duration: 5.6s; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97) translateY(2px); } }

.orb {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 70% 75%, color-mix(in srgb, var(--pearl-sky) 80%, transparent), transparent 60%),
    linear-gradient(140deg, var(--pearl-pink), var(--pearl-lilac));
  box-shadow: 0 6px 14px rgba(150, 128, 210, 0.3);
  animation: float-up 9s ease-in-out infinite;
}
.orb.o1 { width: 26px; height: 26px; left: 30%; top: 82%; }
.orb.o2 { width: 14px; height: 14px; left: 40%; top: 90%; animation-delay: -3s; }
.orb.o3 { width: 34px; height: 34px; left: 93%; top: 42%; animation-delay: -5s; animation-duration: 11s; }
.orb.o4 { width: 12px; height: 12px; left: 22%; top: 4%; animation-delay: -1s; }
.orb.o5 { width: 18px; height: 18px; left: 76%; top: 88%; animation-delay: -7s; }
@keyframes float-up {
  0% { transform: translateY(18px) scale(0.85); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateY(-46px) scale(1.05); opacity: 0; }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- 群 ---------- */

/* Thin stationery: quiet type, inset photo and a ruled footer. */
.group-list { position: relative; display: grid; grid-template-columns: 1fr; padding: 0 24px; border-radius: 3px 10px 5px 4px; border: 1px solid var(--line); background: linear-gradient(115deg, #fffdf7, #f7f1e9); color: #494354; box-shadow: 0 2px 2px #34244105, 0 12px 22px -18px #34244155; }
.group-list::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; border-radius: inherit; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23887d70' filter='url(%23n)' opacity='.4' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); }
.group-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 24px; padding: 20px 0; }
.group-card + .group-card { border-top: 1px solid #89798926; }
.group-index { display: none; }
.group-identity { display: flex; gap: 17px; align-items: center; }
.group-card img { width: 60px; height: 60px; object-fit: cover; border: 4px solid #fffdf8; border-radius: 2px; box-shadow: 0 1px 4px #45344120; transform: rotate(-3deg); }
.group-card:nth-child(2) img { transform: rotate(3deg); }
.group-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 500; }
.group-number { margin: 0; font-size: 13px; letter-spacing: .09em; opacity: .65; font-variant-numeric: tabular-nums; }
.group-members { grid-column: 1; min-height: 16px; margin: 7px 0 0 77px; font-size: 11px; color: #81778a; }
.group-actions { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.group-join, .copy-button { position: relative; min-height: 44px; display: inline-flex; align-items: center; padding: 0; font: inherit; font-size: 12px; font-weight: 400; color: inherit; background: none; border: 0; border-radius: 2px; cursor: pointer; text-decoration: none; transition: opacity .2s; }
.copy-button { opacity: .6; }
.group-join:hover, .copy-button:hover { opacity: .8; }
.group-join:focus-visible, .copy-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.group-footnote { font-size: 11px; color: var(--text-dim); margin: 16px 0 0; line-height: 1.7; }
@media (prefers-color-scheme: dark) { .group-list { background: linear-gradient(115deg, #302d39, #282530); color: #ded7e8; } .group-card img { border-color: #4b4551; } .group-members { color: #aca0b7; } .group-actions { border-color: #c5afcc26; } }

/* ---------- 实机展示 ---------- */

.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 10px 0 18px; }
.rail-head + .rail + .rail-head, .rail + .rail-head { margin-top: 56px; }
.rail-head h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.015em; }
.rail-head p { margin: 0; color: var(--text-dim); font-size: 15px; }
.rail-arrows { display: flex; gap: 8px; flex: none; }
.rail-arrows button {
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface-solid) 40%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.rail-arrows button:hover { border-color: var(--accent); transform: translateY(-1px); }

.rail {
  display: flex;
  gap: clamp(18px, 2.4vw, 30px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100vw - 1120px) / 2));
  padding: 14px max(20px, calc((100vw - 1120px) / 2)) 30px;
  margin: 0 calc(-1 * max(20px, calc((100vw - 1120px) / 2)));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.phone { margin: 0; flex: none; width: clamp(210px, 21vw, 250px); display: flex; flex-direction: column; gap: 16px; scroll-snap-align: start; }
.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1206 / 2622;
  border-radius: 38px;
  overflow: hidden;
  background: var(--surface-2);
  border: 8px solid #17151f;
  box-shadow: 0 30px 60px rgba(83, 70, 128, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.45s var(--ease);
}
.phone:hover .phone-screen { transform: translateY(-6px); }
.phone-screen::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 34%;
  height: 20px;
  margin-left: -17%;
  border-radius: 999px;
  background: #17151f;
}
.phone-screen img, .phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Keep the static screenshot beneath the film until playback succeeds. */
.phone-screen video[hidden], .film-toggle[hidden] { display: none; }
.film-toggle {
  position: absolute;
  z-index: 3;
  right: 7px;
  bottom: 7px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(100, 87, 128, 0.16);
  border-radius: 50%;
  background: rgba(250, 247, 252, 0.86);
  color: #5c526f;
  font-size: 13px;
  cursor: pointer;
}
.film-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.phone figcaption { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.phone figcaption strong { font-size: 15.5px; }
.phone figcaption span { color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }

/* ---------- 能力 ---------- */

/* 六列网格：记忆两张和最后两张各占半行，中间三张各占三分之一。 */
.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature { grid-column: span 2; }
.feature.wide { grid-column: span 3; }
.feature { --notch: 100px; padding: 24px; }
.feature-icon { display: block; width: 56px; height: 56px; }
.feature h3 { margin: 42px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }

.js .reveal .feature { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s ease; }
.js .reveal.is-in .feature { opacity: 1; transform: none; }
.feature:nth-child(2) { transition-delay: 0.06s; }
.feature:nth-child(3) { transition-delay: 0.12s; }
.feature:nth-child(4) { transition-delay: 0.18s; }
.feature:nth-child(5) { transition-delay: 0.24s; }
.feature:nth-child(6) { transition-delay: 0.3s; }
.feature:nth-child(7) { transition-delay: 0.36s; }

/* ---------- 宣言：一张信纸 ---------- */

.creed-sheet {
  --paper: #fffaf2;
  --ink-line: rgba(90, 76, 130, 0.22);
  position: relative;
  isolation: isolate;
  padding: clamp(44px, 7vw, 76px) clamp(26px, 7vw, 84px) clamp(40px, 6vw, 64px);
  filter: drop-shadow(0 26px 40px rgba(83, 70, 128, 0.12));
}
.creed-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pearl-pink) 22%, transparent), transparent 45%),
    radial-gradient(circle at 0 100%, color-mix(in srgb, var(--pearl-sky) 22%, transparent), transparent 45%);
  -webkit-mask:
    radial-gradient(circle 6px at 50% 0, transparent 96%, #000) top / 18px 51% repeat-x,
    radial-gradient(circle 6px at 50% 100%, transparent 96%, #000) bottom / 18px 51% repeat-x;
  mask:
    radial-gradient(circle 6px at 50% 0, transparent 96%, #000) top / 18px 51% repeat-x,
    radial-gradient(circle 6px at 50% 100%, transparent 96%, #000) bottom / 18px 51% repeat-x;
}
@media (prefers-color-scheme: dark) {
  .creed-sheet { --paper: #252132; --ink-line: rgba(236, 228, 255, 0.18); filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.42)); }
  .creed-sheet::before { background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--pearl-pink) 14%, transparent), transparent 45%),
    radial-gradient(circle at 0 100%, color-mix(in srgb, var(--pearl-sky) 12%, transparent), transparent 45%); }
}
.creed-sheet h2 {
  margin: 14px 0 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
}
.creed-lead {
  max-width: 34em;
  margin: 0 0 clamp(30px, 5vw, 48px);
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.85;
  color: color-mix(in srgb, var(--text) 82%, var(--text-dim));
  text-wrap: pretty;
}
/* 杂志式主张：大号衬线标题在左，正文与小字注脚在右，条与条之间一道虚线。 */
.creed-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px dashed var(--ink-line); }
.creed-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0 clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(24px, 3.4vw, 36px) 0;
  border-bottom: 1.5px dashed var(--ink-line);
}
.creed-numeral { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--accent); }
.creed-item h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.creed-text p { margin: 0; color: color-mix(in srgb, var(--text) 78%, var(--text-dim)); font-size: 15.5px; line-height: 1.85; text-wrap: pretty; }
.creed-text .creed-note { display: flex; gap: 10px; margin-top: 12px; color: var(--text-dim); font-size: 13px; line-height: 1.75; }
.creed-note span:first-child {
  flex: none;
  height: fit-content;
  padding: 1px 6px;
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.creed-sign { margin: 30px 0 0; text-align: right; font-family: var(--script); font-size: clamp(30px, 4vw, 40px); color: var(--accent); }

/* ---------- 海报 ---------- */

.poster-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 80px); }
/* Stable image identities; the scroll viewport owns paging, cards only lift locally. */
.poster-gallery { min-width: 0; width: 100%; }
.poster-track { display: flex; overflow-x: auto; overflow-y: hidden; padding: 26px 9% 40px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; isolation: isolate; }
.poster-track::-webkit-scrollbar { display: none; }
.poster-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 24px; }
.poster-track.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.poster-track .poster { flex: 0 0 100%; min-width: 0; margin: 0 -20% 0 0; scroll-snap-align: center; position: relative; transform: scale(.91) rotate(3deg); transform-origin: center; transition: transform .35s var(--ease); }
.poster-track .poster:last-child { margin-right: 0; }
.poster-track .poster.is-current, .poster-track .poster:first-child:not(.is-back) { transform: rotate(-2deg); z-index: 2; }
.poster-track .poster.is-back { z-index: 1; }
.poster img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 16px 28px rgba(120, 100, 170, .22); }
.poster-controls { display: flex; align-items: center; justify-content: center; gap: 18px; }
.poster-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.poster-controls button:disabled { opacity: .3; cursor: default; }
.poster-status { font-size: 13px; letter-spacing: .08em; color: var(--text-dim); }
@media (prefers-reduced-motion: reduce) { .poster-track .poster { transition: none; } }
.script { margin: 10px 0 18px; font-family: var(--script); font-size: clamp(38px, 5vw, 60px); line-height: 1.1; color: var(--accent); }
.poster-copy p:last-child { color: var(--text-dim); font-size: 16px; max-width: 26em; }

/* ---------- 入口 ---------- */

.entries { padding-bottom: clamp(70px, 10vw, 110px); }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entry {
  --notch: 94px;
  --paper-glow: color-mix(in srgb, var(--pearl-lilac) 30%, transparent);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 236px;
  padding: 26px;
  color: var(--text);
  text-decoration: none;
}
.entry-icon { width: 48px; height: 48px; display: grid; place-items: center; }
.entry-icon svg { width: 44px; height: 44px; overflow: visible; }
.ink-line { fill: none; stroke: url(#pearl-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ink-fill { fill: url(#pearl-ink); }
.ink-spark { fill: url(#pearl-ink); }
.entry-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-right: 22px; }
.entry-body strong { font-size: 21px; letter-spacing: -0.015em; }
.entry-body span { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }
.entry-go { position: absolute; z-index: 1; right: 22px; bottom: 20px; color: var(--accent); font-size: 20px; transition: transform 0.3s var(--ease); }
a.entry:hover .entry-go { transform: translateX(4px); }
.entry-more { margin: 24px 0 0; display: flex; gap: 12px; justify-content: center; color: var(--text-dim); font-size: 14px; }
.entry-more a { color: var(--text-dim); text-underline-offset: 4px; }
.entry-more a:hover { color: var(--text); }

.toast-pill {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  padding: 11px 18px;
  border-radius: 999px;
  background: #24213a;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.toast-pill.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 图解列表 ---------- */

.guides-wrap { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 90px; }
.guides-head h1 {
  margin: 12px 0 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.02;
}
.guides-head p { margin: 0; color: var(--text-dim); }
.guide-search {
  display: block;
  position: sticky;
  top: 76px;
  z-index: 10;
  margin: 28px 0 8px;
}
.guide-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 20px 0 50px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  box-shadow: var(--shadow);
  outline: none;
}
.guide-search input:focus { border-color: var(--accent); }
.guide-search svg { position: absolute; left: 19px; top: 17px; width: 20px; height: 20px; stroke: var(--text-dim); fill: none; stroke-width: 2; stroke-linecap: round; }
.guide-group h2 { margin: 40px 4px 14px; font-size: 13px; font-weight: 650; letter-spacing: 0.16em; color: var(--accent); }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.2s ease;
}
.guide-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.guide-card strong { font-size: 16px; font-weight: 620; }
.guide-card span { color: var(--text-dim); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-empty { margin: 40px 0; text-align: center; color: var(--text-dim); }
.guide-empty a { color: var(--accent); }
.guide-lang-note { margin: 14px 0 0; color: var(--text-dim); font-size: 13px; }

/* ---------- 单篇图解 ---------- */

.guide-page { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 90px; }
.guide-back { display: inline-block; margin-bottom: 18px; color: var(--text-dim); font-size: 14px; text-decoration: none; }
.guide-back:hover { color: var(--text); }
.guide-page h1 { margin: 16px 0 14px; font-size: clamp(28px, 5vw, 42px); line-height: 1.15; letter-spacing: -0.02em; }
.route { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; margin: 0 0 8px; padding: 0; list-style: none; }
.route li { padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13.5px; }
.route li.sep { padding: 0 2px; background: none; color: var(--text-dim); }
.guide-meta { margin: 6px 0 22px; color: var(--text-dim); font-size: 13px; }
.guide-figure { margin: 0; }
.guide-figure button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.guide-figure img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fbf8f2; }
.guide-figure figcaption { margin-top: 10px; color: var(--text-dim); font-size: 13px; text-align: center; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.guide-actions a { min-height: 46px; padding: 0 18px; font-size: 14.5px; }
.guide-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.guide-nav a { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14.5px; }
.guide-nav a small { display: block; color: var(--text-dim); font-size: 12px; margin-bottom: 3px; }
.guide-nav a.next { text-align: right; grid-column: 2; }

.zoom {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 30, 0.96);
  touch-action: none;
  overscroll-behavior: contain;
  animation: zoom-appear 180ms ease-out;
}
.zoom img { display: block; flex: none; max-width: none; margin: 0; object-fit: contain; user-select: none;  }
.zoom-toolbar {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  display: flex;
  gap: 8px;
}
.zoom-toolbar button {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  color: #fff;
  background: rgba(45, 40, 60, .92);
  font: inherit;
  cursor: pointer;
}
.zoom-toolbar button:focus-visible { outline: 2px solid #c8b9ff; outline-offset: 3px; }
@keyframes zoom-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zoom { animation: none; } }

/* ---------- 关于、隐私沿用旧结构，只换字体 ---------- */

.site .policy-head h1 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- 窄屏 ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; gap: 0; }
  .hero-stage { order: -1; width: min(100%, 440px); justify-self: center; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .beta-note { margin-inline: auto; }
  .twinkle.t2 { display: none; }
  .twinkle.t1 { left: auto; right: 12%; }
  .scroll-cue { display: none; }
  .group-list, .feature-grid, .entry-grid, .poster-band { grid-template-columns: 1fr; }
  .feature, .feature.wide { grid-column: auto; }
  .creed-item { grid-template-columns: 36px minmax(0, 1fr); gap: 10px 8px; }
  .creed-text { grid-column: 2; }
  .entry { min-height: 0; }
  .poster-gallery { max-width: 460px; margin-inline: auto; }
  .poster-copy { text-align: center; }
  .poster-copy p:last-child { margin-left: auto; margin-right: auto; }
  .rail-arrows { display: none; }
  .phone { width: min(62vw, 240px); }
  .guide-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --page: calc(100% - 32px); }
  .site .site-nav { gap: 14px; }
  .site .nav-wide { display: none; }
  .group-list { padding: 0 16px; }
  .group-card { padding: 16px 0; column-gap: 10px; }
  .group-identity { gap: 12px; }
  .group-members { margin-left: 64px; font-size: 10px; }
  .group-join, .copy-button { font-size: 11px; }
  .group-card img { width: 52px; height: 52px; }
  .copy-button { padding: 0; }
  .store-badge { padding: 6px 16px 7px; }
  .guide-search { top: 72px; }
}

/* 手机上的内页阅读层级；首屏标题与导航维持原来的比例。 */
@media (max-width: 600px) {
  .home .band .kicker { font-size: 10px; }
  .home .band-head h2 { font-size: 26px; font-weight: 500; line-height: 1.25; }
  .home .band-head p:not(.kicker) { font-size: 14px; line-height: 1.75; }
  .home .group-card h3 { font-size: 18px; font-weight: 500; }
  .home .group-number { font-size: 12px; font-weight: 400; letter-spacing: .08em; }
  .home .copy-button { font-size: 12px; font-weight: 500; }
  .home .rail-head h3 { font-size: 18px; font-weight: 550; }
  .home .rail-head p { font-size: 13px; line-height: 1.75; }
  .home .creed-sheet h2 { font-size: 29px; line-height: 1.2; }
  .home .creed-lead { font-size: 15px; line-height: 1.85; }
  .home .creed-item { grid-template-columns: 26px minmax(0, 1fr); }
  .home .creed-numeral { font-size: 20px; }
  .home .creed-item h3 { font-size: 20px; line-height: 1.4; }
  .home .creed-text p { font-size: 14px; line-height: 1.85; }
  .home .creed-text .creed-note { font-size: 12px; }
  .home .feature h3 { font-size: 17px; font-weight: 550; }
  .home .feature p { font-size: 14px; line-height: 1.75; }
  .home .entry-body strong { font-size: 18px; font-weight: 550; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal .feature { opacity: 1; transform: none; }
}

/* The tutorial search replaces, rather than stacks below, the site header. */
.site.guides[data-view="list"] .guide-search { top: 8px; }

/* Readable tutorials share the same content with the community assistant. */
.guide-summary {max-width:44rem;line-height:1.85;color:var(--text-dim)}
.guide-contents {display:flex;flex-wrap:wrap;gap:.65rem;margin:2rem 0;padding:1.2rem;border:1px solid color-mix(in srgb,currentColor 14%,transparent);border-radius:20px}
.guide-contents a,.guide-links a {text-underline-offset:4px;line-height:1.7}
.guide-contents a {padding:.3rem .65rem;font-size:.9rem}
.guide-prose {max-width:48rem;margin:3.5rem auto;scroll-margin-top:110px;line-height:1.9}
.guide-prose h2 {font-size:1.4rem;line-height:1.5;margin-bottom:1.2rem}
.guide-prose p,.guide-prose li,.guide-prose dd {font-size:1rem;line-height:1.9}
.guide-steps {padding-left:1.5rem}.guide-steps li {padding-left:.4rem;margin:.8rem 0}
.guide-definitions dt {font-weight:600;margin:1.4rem 0 .35rem}
.guide-definitions dd {margin:0;color:var(--text-dim)}
.guide-note {padding:1rem 1.25rem;margin:1.5rem 0;border-left:2px solid #aaa0d1;background:color-mix(in srgb,#aaa0d1 8%,transparent);border-radius:0 14px 14px 0;font-size:.93rem}
.guide-links {display:flex;flex-wrap:wrap;gap:1rem;margin:1rem 0}
.guide-detail-figure {margin:2rem auto;max-width:340px}
.guide-annotated {position:relative;display:block;width:100%;padding:0;border:0;border-radius:24px;overflow:hidden;background:transparent;cursor:zoom-in}
.guide-annotated img {display:block;width:100%;height:auto}
.guide-pin {position:absolute;display:grid;place-items:center;width:27px;height:27px;transform:translate(-50%,-50%);border-radius:50%;background:#63538c;color:#fff;border:2px solid #fff;font:600 13px system-ui;box-shadow:0 2px 8px #33234c33}
.guide-detail-figure figcaption {font-size:.8rem;line-height:1.6;margin-top:.8rem;color:var(--text-dim)}
@media(max-width:600px){.guide-prose{margin:2.6rem 0}.guide-prose h2{font-size:1.2rem}.guide-prose p,.guide-prose li,.guide-prose dd{font-size:.94rem}.guide-contents{padding:.8rem;gap:.3rem}.guide-detail-figure{max-width:290px}}

.guide-contents a,.guide-links a{color:var(--text);text-decoration-color:color-mix(in srgb,var(--text) 30%,transparent)}
.guide-contents a:hover,.guide-links a:hover{color:var(--accent)}
