/* ============================================================
   MoodFlow · 心境 — 官网设计系统
   与 iOS App 严格对齐：昼夜节律 5 时段令牌、温润轻瓷卡片、
   cubic-bezier(.32,.72,0,1) 动效曲线。
   令牌来源：Theme/Color+Theme.swift (CircadianPalette)
   ============================================================ */

/* ---------- 可动画色彩令牌 ---------- */
@property --app-bg      { syntax: '<color>'; inherits: true; initial-value: #F6F1E6; }
@property --app-surface { syntax: '<color>'; inherits: true; initial-value: #FBF9F4; }
@property --app-elev    { syntax: '<color>'; inherits: true; initial-value: #FFFFFF; }
@property --app-text    { syntax: '<color>'; inherits: true; initial-value: #2B2721; }
@property --app-text2   { syntax: '<color>'; inherits: true; initial-value: #59524A; }
@property --app-text3   { syntax: '<color>'; inherits: true; initial-value: #655F53; }
@property --app-accent  { syntax: '<color>'; inherits: true; initial-value: #836930; }
@property --app-accent2 { syntax: '<color>'; inherits: true; initial-value: #587351; }
@property --app-line    { syntax: '<color>'; inherits: true; initial-value: rgba(43,39,33,.12); }

/* ============================================================
   1. 昼夜节律 5 时段令牌（浅色为主，夜阑转深蓝护眼）
   ============================================================ */
:root {
  --sans: "Outfit", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
  --serif: "Outfit", "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 动效曲线：与 App 的 Animation.viewIn 完全一致 */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --dur-view: .44s;
  --dur-tap: .2s;
  --dur-phase: .6s;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shell: 1160px;

  --photo-veil: .62;   /* 玉瓷浸润漫射层不透明度（App 为 .76，网页略降以让实景可辨） */
  --shadow: 0 2px 10px rgba(20, 23, 30, .05), 0 14px 34px -12px rgba(20, 23, 30, .14);
  --shadow-lift: 0 4px 14px rgba(20, 23, 30, .07), 0 26px 54px -18px rgba(20, 23, 30, .22);
}

/* 拂晓 Dawn 05:00–07:00 · 冷紫里透一线暖 */
html[data-phase="dawn"] {
  --app-bg: #EBE8F2; --app-surface: #F6F5F9; --app-elev: #FFFFFF;
  --app-text: #252330; --app-text2: #54505F; --app-text3: #5F5B6A;
  --app-accent: #6C5C88; --app-accent2: #4E6A8A;
  --app-line: rgba(37, 35, 48, .12);
  --orb-hi: rgba(108, 92, 136, .24); --orb-mid: rgba(108, 92, 136, .10); --orb-ring: rgba(108, 92, 136, .34);
  --scrim: rgba(235, 232, 242, .66);
}

/* 晨光 Morning 07:00–11:00 · 暖金与草木初生 */
html[data-phase="morning"] {
  --app-bg: #F6F1E6; --app-surface: #FBF9F4; --app-elev: #FFFFFF;
  --app-text: #2B2721; --app-text2: #59524A; --app-text3: #655F53;
  --app-accent: #836930; --app-accent2: #587351;
  --app-line: rgba(43, 39, 33, .12);
  --orb-hi: rgba(131, 105, 48, .24); --orb-mid: rgba(131, 105, 48, .10); --orb-ring: rgba(131, 105, 48, .34);
  --scrim: rgba(246, 241, 230, .66);
}

/* 午后 Noon 11:00–16:00 · 清凉冷翠定心 */
html[data-phase="noon"] {
  --app-bg: #ECF2F1; --app-surface: #F6F9F9; --app-elev: #FFFFFF;
  --app-text: #1F2829; --app-text2: #4C585A; --app-text3: #586466;
  --app-accent: #3E6B62; --app-accent2: #467558;
  --app-line: rgba(31, 40, 41, .12);
  --orb-hi: rgba(62, 107, 98, .24); --orb-mid: rgba(62, 107, 98, .10); --orb-ring: rgba(62, 107, 98, .34);
  --scrim: rgba(236, 242, 241, .66);
}

/* 黄昏 Dusk 16:00–19:00 · 暖褐敛神沉淀 */
html[data-phase="dusk"] {
  --app-bg: #F5EBDD; --app-surface: #FAF6F0; --app-elev: #FFFFFF;
  --app-text: #2D251C; --app-text2: #5A4B3C; --app-text3: #685847;
  --app-accent: #955B27; --app-accent2: #785832;
  --app-line: rgba(45, 37, 28, .12);
  --orb-hi: rgba(149, 91, 39, .24); --orb-mid: rgba(149, 91, 39, .10); --orb-ring: rgba(149, 91, 39, .34);
  --scrim: rgba(245, 235, 221, .66);
}

/* 夜阑 Night 19:00–05:00 · 幽潭霁蓝（随 App「入夜自动转深蓝」的对外承诺） */
html[data-phase="night"] {
  --app-bg: #07080B; --app-surface: #131417; --app-elev: #202123;
  --app-text: #DCE0E8; --app-text2: #8A92A0; --app-text3: #7E8693;
  --app-accent: #9EB0CC; --app-accent2: #7C8DB0;
  --app-line: rgba(220, 224, 232, .10);
  --orb-hi: rgba(158, 176, 204, .22); --orb-mid: rgba(158, 176, 204, .085); --orb-ring: rgba(158, 176, 204, .26);
  --scrim: rgba(7, 8, 11, .80);
  --photo-veil: .58;   /* 夜阑降低漫射，让星河透出来 */
  --shadow: 0 2px 10px rgba(0, 0, 0, .40), 0 16px 40px -14px rgba(0, 0, 0, .60);
  --shadow-lift: 0 4px 16px rgba(0, 0, 0, .45), 0 30px 60px -20px rgba(0, 0, 0, .70);
}

/* ============================================================
   2. 基础排版
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  color: var(--app-text);
  background: var(--app-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    --app-bg var(--dur-phase) var(--ease),
    --app-surface var(--dur-phase) var(--ease),
    --app-elev var(--dur-phase) var(--ease),
    --app-text var(--dur-phase) var(--ease),
    --app-text2 var(--dur-phase) var(--ease),
    --app-text3 var(--dur-phase) var(--ease),
    --app-accent var(--dur-phase) var(--ease),
    --app-accent2 var(--dur-phase) var(--ease),
    --app-line var(--dur-phase) var(--ease),
    background-color var(--dur-phase) var(--ease),
    color var(--dur-phase) var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- 中英切换 ---------- */
body [lang] { display: none; }
html[data-lang="zh"] [lang="zh"] { display: unset; }
html[data-lang="zh"] [lang="zh"].inline { display: inline; }
html[data-lang="zh"] [lang="zh"].flex { display: flex; }
html[data-lang="zh"] [lang="zh"].grid { display: grid; }
html[data-lang="en"] [lang="en"] { display: unset; }
html[data-lang="en"] [lang="en"].inline { display: inline; }
html[data-lang="en"] [lang="en"].flex { display: flex; }
html[data-lang="en"] [lang="en"].grid { display: grid; }

::selection { background: var(--app-accent); color: var(--app-elev); }

:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   3. 天空层：实景摄影 + 玉瓷漫射 + 天穹光晕
   （复刻 App 的 AtmosphericSkylight）
   ============================================================ */
.sky {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
}

.sky-layer {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center 34%;
  opacity: 0;
  filter: saturate(1.08) brightness(1.03);
  transition: opacity var(--dur-phase) var(--ease);
  will-change: transform, opacity;
  animation: kenburns 42s ease-in-out infinite alternate;
}

.sky-layer.is-live { opacity: 1; }

@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.09) translate3d(0, -1.2%, 0); }
}

/* 玉瓷浸润漫射层 */
.veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--app-bg);
  opacity: var(--photo-veil);
  transition: opacity var(--dur-phase) var(--ease), background-color var(--dur-phase) var(--ease);
}

/* 与当前时辰呼应的微光天穹 */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% -18%, var(--orb-mid), transparent 62%),
    radial-gradient(90% 55% at 88% 6%, var(--orb-hi), transparent 60%),
    radial-gradient(70% 50% at 6% 12%, color-mix(in srgb, var(--app-accent2) 12%, transparent), transparent 58%);
  transition: background var(--dur-phase) var(--ease);
}

/* ============================================================
   4. 布局容器
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--app-accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  max-width: 20ch;
}

.h3 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.lede {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--app-text2);
  max-width: 62ch;
}

.section-head { margin-bottom: 48px; }

/* ============================================================
   5. 温润轻瓷卡片
   ============================================================ */
.card {
  position: relative;
  background: color-mix(in srgb, var(--app-surface) 92%, transparent);
  border: 1px solid var(--app-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transition: transform var(--dur-view) var(--ease), box-shadow var(--dur-view) var(--ease),
              border-color var(--dur-phase) var(--ease), background-color var(--dur-phase) var(--ease);
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--app-accent) 34%, var(--app-line));
}

/* ============================================================
   6. 导航
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--app-bg) 78%, transparent);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid var(--app-line);
  transition: background-color var(--dur-phase) var(--ease), border-color var(--dur-phase) var(--ease);
}

.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 4px 14px -4px rgba(20, 23, 30, .38);
  transition: transform var(--dur-view) var(--ease);
}

.brand:hover .brand-mark { transform: scale(1.05) rotate(-3deg); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .05em;
}

.brand-sub {
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--app-text3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--app-text2);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-tap) var(--ease), background-color var(--dur-tap) var(--ease);
}

.nav-links a:hover { color: var(--app-text); background: color-mix(in srgb, var(--app-text) 6%, transparent); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* 时段芯片 */
.phase-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  background: color-mix(in srgb, var(--app-surface) 88%, transparent);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--app-text2);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--dur-tap) var(--ease);
}

.phase-chip:hover { color: var(--app-text); border-color: color-mix(in srgb, var(--app-accent) 40%, var(--app-line)); }

.phase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-accent) 22%, transparent);
  animation: breathe 3.6s var(--ease) infinite;
}

@keyframes breathe {
  0%, 100% { opacity: .55; transform: scale(.86); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.phase-chip .rng { font-family: var(--mono); font-size: 11px; opacity: .72; font-variant-numeric: tabular-nums; }

.icon-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  background: color-mix(in srgb, var(--app-surface) 88%, transparent);
  color: var(--app-text2);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-tap) var(--ease);
}

.icon-btn:hover {
  color: var(--app-elev);
  background: var(--app-accent);
  border-color: var(--app-accent);
}

/* ============================================================
   7. 时段切换面板
   ============================================================ */
.phase-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 28px;
  width: 320px;
  padding: 14px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--app-surface) 96%, transparent);
  border: 1px solid var(--app-line);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity var(--dur-view) var(--ease), transform var(--dur-view) var(--ease), visibility var(--dur-view);
  z-index: 70;
}

.phase-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.phase-panel-title {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--app-text3);
  padding: 4px 6px 10px;
}

.phase-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  color: var(--app-text);
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-tap) var(--ease);
}

.phase-option:hover { background: color-mix(in srgb, var(--app-text) 6%, transparent); }
.phase-option[aria-selected="true"] { background: color-mix(in srgb, var(--app-accent) 12%, transparent); }

.phase-swatch {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex: none;
  border: 1px solid rgba(0, 0, 0, .08);
  background-size: cover;
  background-position: center;
}

.phase-option-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.phase-option-name { font-size: 14px; font-weight: 600; }
.phase-option-sub { font-size: 11.5px; color: var(--app-text3); }
.phase-option .rng { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--app-text3); }

.phase-panel-foot {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--app-line);
  font-size: 11.5px;
  color: var(--app-text3);
  line-height: 1.55;
  padding-inline: 6px;
}

/* ============================================================
   8. Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: 52px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  background: color-mix(in srgb, var(--app-surface) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--app-text2);
  margin-bottom: 26px;
}

.hero-eyebrow .rng { font-family: var(--mono); font-size: 11px; opacity: .7; }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.hero h1 .accent {
  color: var(--app-accent);
  transition: color var(--dur-phase) var(--ease);
}

.hero-poem {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--app-text2);
  margin-top: 20px;
  padding-left: 16px;
  border-left: 2px solid color-mix(in srgb, var(--app-accent) 45%, transparent);
  max-width: 40ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform var(--dur-tap) var(--ease), box-shadow var(--dur-view) var(--ease),
              background-color var(--dur-tap) var(--ease), border-color var(--dur-tap) var(--ease),
              color var(--dur-tap) var(--ease);
}

.btn:active { transform: scale(.985); }

.btn--primary {
  background: var(--app-accent);
  color: #fff;
  box-shadow: 0 8px 26px -8px color-mix(in srgb, var(--app-accent) 70%, transparent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--app-accent) 76%, transparent);
}

html[data-phase="night"] .btn--primary { color: #0B0D12; }

.btn--ghost {
  background: color-mix(in srgb, var(--app-surface) 86%, transparent);
  color: var(--app-text);
  border-color: var(--app-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn--ghost:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--app-accent) 38%, var(--app-line)); }

/* Hero 数据条 */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--app-line);
}

.hero-stat { display: flex; flex-direction: column; gap: 3px; }

.hero-stat b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--app-text);
  font-variant-numeric: tabular-nums;
}

.hero-stat span { font-size: 12.5px; color: var(--app-text3); }

/* ---------- 呼吸光环舞台 ---------- */
.halo-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.halo-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 38px 30px 26px;
  border-radius: 34px;
  text-align: center;
  overflow: hidden;
}

.halo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(85% 60% at 50% 18%, var(--orb-hi), transparent 70%);
  opacity: .8;
}

.halo-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-accent) 14%, transparent);
  color: var(--app-accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.halo-stage-ring {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  margin: 6px auto 0;
}

.halo-stage-ring svg { width: 100%; height: 100%; overflow: visible; }

.halo-glow { transform-box: fill-box; transform-origin: center; animation: haloGlow 19s var(--ease) infinite; }
.halo-mid { transform-box: fill-box; transform-origin: center; animation: haloMid 19s var(--ease) infinite; }
.halo-rings { transform-box: fill-box; transform-origin: center; animation: haloRings 19s var(--ease) infinite; }
.halo-core { transform-box: fill-box; transform-origin: center; animation: haloCore 19s var(--ease) infinite; }

@keyframes haloMid {
  0%   { transform: scale(.62); opacity: .45; animation-timing-function: cubic-bezier(.22,.85,.3,1); }
  21%  { transform: scale(1.3); opacity: 1; animation-timing-function: ease-in-out; }
  58%  { transform: scale(1.27); opacity: .95; animation-timing-function: cubic-bezier(.5,0,.4,1); }
  100% { transform: scale(.62); opacity: .45; }
}

/* 4-7-8 节律：吸气 4s / 屏息 7s / 呼气 8s
   段内缓动对齐 App 的弹簧手感：吸气快速起势后长收，呼气匀速释放并轻柔落底 */
@keyframes haloGlow {
  0%   { transform: scale(.62); opacity: .55; animation-timing-function: cubic-bezier(.22,.85,.3,1); }
  21%  { transform: scale(1.28); opacity: 1; animation-timing-function: ease-in-out; }
  58%  { transform: scale(1.25); opacity: .95; animation-timing-function: cubic-bezier(.5,0,.4,1); }
  100% { transform: scale(.62); opacity: .55; }
}

@keyframes haloRings {
  0%   { transform: scale(.62); animation-timing-function: cubic-bezier(.22,.85,.3,1); }
  21%  { transform: scale(1.35); animation-timing-function: ease-in-out; }
  30%  { transform: scale(1.345); }
  58%  { transform: scale(1.32); animation-timing-function: cubic-bezier(.5,0,.4,1); }
  100% { transform: scale(.62); }
}

@keyframes haloCore {
  0%   { transform: scale(.6); animation-timing-function: cubic-bezier(.22,.85,.3,1); }
  21%  { transform: scale(1.05); animation-timing-function: ease-in-out; }
  58%  { transform: scale(1.0); animation-timing-function: cubic-bezier(.5,0,.4,1); }
  100% { transform: scale(.6); }
}

.halo-phase {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--app-text);
  min-height: 24px;
}

.halo-count {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--app-text3);
  font-variant-numeric: tabular-nums;
}

.halo-count .unit { opacity: .7; }

.halo-track {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  height: 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--app-text) 9%, transparent);
  overflow: hidden;
}

.halo-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--app-accent);
  border-radius: 3px;
}

.halo-foot {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-size: 12px;
  color: var(--app-text3);
  line-height: 1.6;
}

/* ============================================================
   9. 通用卡片网格
   ============================================================ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.feature { padding: 30px 28px; }
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--app-accent) 13%, transparent);
  color: var(--app-accent);
  transition: transform var(--dur-view) var(--ease), background-color var(--dur-phase) var(--ease);
}

.feature:hover .feature-icon { transform: translateY(-2px) scale(1.06); }
.feature-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 9px; letter-spacing: -.01em; }
.feature p { font-size: 14.5px; line-height: 1.72; color: var(--app-text2); }

/* ============================================================
   10. 五时段节律展示
   ============================================================ */
.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

/* 五个时段必须同排，否则第五张会被挤成孤行 */
@media (min-width: 1040px) {
  .rhythm-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.rhythm-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  border: 1px solid var(--app-line);
}

.rhythm-shot {
  height: 152px;
  background-size: cover;
  background-position: center 38%;
  position: relative;
}

.rhythm-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, color-mix(in srgb, var(--app-surface) 92%, transparent));
}

.rhythm-body { padding: 16px 18px 20px; position: relative; }
.rhythm-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.rhythm-range {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--app-text3);
  font-variant-numeric: tabular-nums;
  margin-top: 3px;
}
.rhythm-poem { margin-top: 9px; font-size: 13px; line-height: 1.6; color: var(--app-text2); }

.rhythm-tags { display: flex; gap: 6px; margin-top: 13px; }

.rhythm-tag {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, .07);
}

.rhythm-card.is-current { border-color: var(--app-accent); box-shadow: 0 0 0 1px var(--app-accent), var(--shadow); }

.rhythm-current {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--app-accent);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--dur-tap) var(--ease), transform var(--dur-tap) var(--ease);
}

.rhythm-card.is-current .rhythm-current { opacity: 1; transform: translateY(0); }

/* ============================================================
   11. 流程步骤
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; position: relative; }

.flow-step {
  position: relative;
  padding: 28px 26px 30px;
  overflow: hidden;
}

.flow-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  color: var(--app-text);
  opacity: .07;
}

.flow-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.flow-step h3 svg { width: 19px; height: 19px; color: var(--app-accent); flex: none; }
.flow-step p { font-size: 14.5px; line-height: 1.72; color: var(--app-text2); }

/* ============================================================
   12. 截图横滑
   ============================================================ */
.shot-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shot-strip::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 262px;
  scroll-snap-align: center;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--app-line);
  box-shadow: var(--shadow);
  transition: transform var(--dur-view) var(--ease), box-shadow var(--dur-view) var(--ease);
  background: var(--app-surface);
}

.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.shot img { width: 100%; display: block; }

.shot-cap {
  padding: 13px 16px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text2);
  border-top: 1px solid var(--app-line);
}

/* ============================================================
   13. 隐私宣言
   ============================================================ */
.privacy-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.privacy-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 100% at 50% 0%, var(--orb-hi), transparent 70%);
  pointer-events: none;
}

.privacy-panel h2 { position: relative; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; }
.privacy-panel p { position: relative; margin: 16px auto 0; max-width: 56ch; font-size: 16px; line-height: 1.75; color: var(--app-text2); }

.privacy-badges { position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--app-line);
  background: color-mix(in srgb, var(--app-elev) 70%, transparent);
  font-size: 13.5px;
  font-weight: 600;
}

.privacy-badge svg { width: 15px; height: 15px; color: var(--app-accent); }

/* ============================================================
   14. 定价
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 20px; align-items: start; }

.price {
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price--featured { border-color: color-mix(in srgb, var(--app-accent) 55%, var(--app-line)); box-shadow: var(--shadow-lift); }

.price-tag {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--app-accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[data-phase="night"] .price-tag { color: #0B0D12; }

.price h3 { font-size: 17px; font-weight: 700; }
.price .amount { font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; margin-top: 8px; }
.price .amount small { font-size: 15px; font-weight: 600; opacity: .55; letter-spacing: 0; }
.price .cycle { font-size: 13px; color: var(--app-text3); margin-bottom: 22px; }

.price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: auto; }
.price li { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--app-text2); }
.price li svg { width: 15px; height: 15px; flex: none; margin-top: 4px; color: var(--app-accent); }

/* ============================================================
   15. FAQ
   ============================================================ */
.faq { max-width: 800px; display: flex; flex-direction: column; gap: 12px; }

.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--app-line);
  background: color-mix(in srgb, var(--app-surface) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color var(--dur-tap) var(--ease), background-color var(--dur-tap) var(--ease);
}

.faq details[open] { border-color: color-mix(in srgb, var(--app-accent) 40%, var(--app-line)); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2px solid var(--app-accent);
  border-bottom: 2px solid var(--app-accent);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform var(--dur-view) var(--ease);
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq .answer { padding: 0 24px 22px; font-size: 14.5px; line-height: 1.78; color: var(--app-text2); }

/* ============================================================
   16. 结尾 CTA / 页脚
   ============================================================ */
.closer { text-align: center; }
.closer .hero-cta { justify-content: center; }

.footer {
  margin-top: 40px;
  padding: 44px 0 40px;
  border-top: 1px solid var(--app-line);
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  justify-content: space-between;
}

.footer p { font-size: 13.5px; color: var(--app-text3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { font-size: 13.5px; color: var(--app-text2); text-decoration: none; transition: color var(--dur-tap) var(--ease); }
.footer nav a:hover { color: var(--app-accent); }

/* ============================================================
   17. 长文页（science / privacy / terms / blog）
   ============================================================ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.14; margin-bottom: 16px; }
.prose h2 { font-size: 23px; font-weight: 700; margin: 44px 0 14px; letter-spacing: -.015em; }
.prose h3 { font-size: 17.5px; font-weight: 700; margin: 28px 0 10px; }
.prose p { margin-bottom: 15px; font-size: 15.5px; line-height: 1.8; color: var(--app-text2); }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; font-size: 15.5px; line-height: 1.75; color: var(--app-text2); }
.prose strong { color: var(--app-text); font-weight: 700; }
.prose a { color: var(--app-accent); text-underline-offset: 3px; }
.prose .meta { font-size: 13px; color: var(--app-text3); margin-bottom: 30px; }

.article-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}

.article-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.article-card p { font-size: 14.5px; line-height: 1.7; color: var(--app-text2); }
.article-card time { font-family: var(--mono); font-size: 11.5px; color: var(--app-text3); }

/* ============================================================
   18. 滚动进场动效
   仅在脚本可用时才隐藏初始状态；脚本缺失或报错时内容照常呈现
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}

html.js .reveal.is-in { opacity: 1; transform: none; }

.reveal {
  transition: opacity .78s var(--ease), transform .78s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ============================================================
   19. 响应式
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding: 56px 0 72px; }
  .halo-card { max-width: 400px; margin: 0 auto; }
  .section { padding: 76px 0; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner { height: 62px; }
  .phase-panel { right: 16px; left: 16px; width: auto; }
}

@media (max-width: 640px) {
  .shell { padding: 0 20px; }
  .nav-inner, .footer-inner { padding: 0 20px; }
  .brand-sub { display: none; }
  .hero-stats { gap: 20px 26px; }
  .hero-stat b { font-size: 22px; }
  .privacy-panel { padding: 40px 24px; }
  .section { padding: 62px 0; }
  .rhythm-shot { height: 128px; }
  .phase-chip .label { display: none; }
}

/* ============================================================
   20. 减弱动态
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .sky-layer { animation: none; }
  /* 呼应 App 的无障碍策略：以静止的柔和光晕表达呼吸，不做大范围几何缩放 */
  .halo-glow  { animation: none !important; transform: scale(1.12); opacity: .62; }
  .halo-mid   { animation: none !important; transform: scale(1.15); opacity: .8; }
  .halo-rings { animation: none !important; transform: scale(1.18); }
  .halo-core  { animation: none !important; transform: scale(1); }
  .halo-track i { display: none; }
  .halo-count { display: none; }
  .phase-dot { animation: none; opacity: 1; }
}

/* 自定义产品页落地链接卡片（tools/inject_custom_page_links.py 生成） */
#moments .feature { display: flex; flex-direction: column; }
#moments .feature h3 { margin-top: 0; }
#moments .feature p { flex: 1; }
.moment-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--app-accent, #C08A3E);
  letter-spacing: .01em;
}
/* 中英切换沿用全站机制：html[data-lang] + [lang] */

/* ---------- 截图区：按语言切换图片 ---------- */
.shot-strip .shot > span[lang] { display: none; }
html[data-lang="en"] .shot-strip .shot > span[lang="en"],
html[data-lang="zh"] .shot-strip .shot > span[lang="zh"] { display: block; }
.shot-strip .shot img { aspect-ratio: 1290 / 2796; object-fit: cover; object-position: top; }
