/* ============================================================
   万器官网 v6 — 品牌自己的设计语言
   藏青 #071328 · 金星 #CEC045 · 蓝 #2563EB（tokens.ts 真值）
   界面 = RN 源码 1:1 克隆（SessionListItem / MiniappIcon / Tabs）
   ============================================================ */

:root {
  color-scheme: light dark;
  --navy: #071328;          /* brandSurface */
  --navy-2: #0d1f3d;
  --gold: #CEC045;          /* brandAccent */
  --gold-soft: #e5db7a;
  --blue: #2563EB;          /* primary */
  --blue-muted: #DBEAFE;    /* primaryMuted */
  --ink: #0F172A;           /* fg */
  --muted: #64748B;         /* fgMuted */
  --bg: #F8FAFC;            /* bg */
  --card: #FFFFFF;          /* bgElevated */
  --hair: #E2E8F0;          /* border */
  --success: #16A34A;
  --success-muted: #DCFCE7;
  --warning: #D97706;
  --warning-muted: #FEF3C7;
  --danger: #DC2626;
  --danger-muted: #FEE2E2;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
html, body { overflow-x: hidden; overflow-x: clip; }

/* ---------- 导航（白底 · 藏青标） ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,250,252,.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 22px;
  height: 56px; display: flex; align-items: center; gap: 26px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--navy); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 13.5px; opacity: .78; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 12.5px; font-weight: 600;
  background: var(--navy); color: #fff;
  padding: 6px 16px; border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(7,19,40,.25); }
.nav-burger { display: none; }

/* ---------- 分段通用 ---------- */
.sec { padding: 96px 22px; position: relative; overflow: clip; }
.sec-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec-eyebrow { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .3em; margin-bottom: 14px; }
.sec-navy .sec-eyebrow { color: var(--gold); }
.sec-head h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.12; font-weight: 700; letter-spacing: .01em;
  margin-bottom: 18px;
}
.sec-head p { font-size: clamp(16px, 2vw, 19px); color: var(--muted); }

/* ---------- HERO（藏青 · 开屏同源） ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(52% 44% at 74% 18%, rgba(51,72,115,.55), transparent 70%),
    radial-gradient(40% 36% at 16% 82%, rgba(51,72,115,.35), transparent 70%),
    var(--navy);
  color: #f5f7fa;
  overflow: hidden;
}
/* 金星散布（开屏母图的金星语言） */
.hero-stars i {
  position: absolute; width: 8px; height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: .5;
  animation: twinkle 3.2s ease-in-out infinite;
}
.hero-stars i:nth-child(1) { top: 14%; left: 6%; width: 12px; height: 12px; }
.hero-stars i:nth-child(2) { top: 64%; left: 3%;  width: 9px; height: 9px;  animation-delay: .8s; }
.hero-stars i:nth-child(3) { top: 10%; right: 8%; width: 10px; height: 10px; animation-delay: 1.6s; }
.hero-stars i:nth-child(4) { bottom: 16%; right: 4%; width: 7px; height: 7px; animation-delay: 2.2s; }
.hero-stars i:nth-child(5) { top: 42%; left: 46%; width: 6px; height: 6px; animation-delay: 2.8s; opacity: .3; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.9); } 50% { opacity: .75; transform: scale(1.08); } }

.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 76px 22px 92px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items: center;
}
.hero-mark { margin-bottom: 26px; width: 280px; height: auto; }
.eyebrow { color: #B9C3D2; font-weight: 600; font-size: 13px; letter-spacing: .4em; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(40px, 5.8vw, 66px);
  line-height: 1.08; font-weight: 700; letter-spacing: .005em;
  margin-bottom: 24px; color: #fff;
}
.hero .sub { font-size: clamp(16px, 2vw, 20px); color: #B9C3D2; max-width: 34em; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--navy);
  font-size: 16px; font-weight: 700; padding: 13px 30px;
  border-radius: 999px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(206,192,69,.35); }
.btn-ghost { font-size: 16px; color: #d7dfeb; }
.btn-ghost:hover { color: #fff; text-decoration: underline; }

/* ---------- iPhone 机身 ---------- */
.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  border-radius: 58px;
  padding: 3px;
  background: linear-gradient(145deg, #f2f3f7 0%, #b9bac4 18%, #63646f 50%, #9a9ba8 80%, #e2e3ea 100%);
  box-shadow:
    inset 0 0 2px rgba(255,255,255,.65),
    0 2px 4px rgba(10,12,20,.16),
    0 20px 44px rgba(10,12,20,.20),
    0 52px 120px rgba(10,12,20,.28);
  position: relative;
}
.phone span[class^="btn-"] {
  position: absolute; width: 3.5px; border-radius: 2px;
  background: linear-gradient(90deg, #94959f, #4a4b56);
}
.btn-action { left: -5.5px; top: 126px; height: 26px; }
.btn-volup  { left: -5.5px; top: 170px; height: 40px; }
.btn-voldn  { left: -5.5px; top: 218px; height: 40px; }
.btn-power  { right: -5.5px; top: 188px; height: 84px; }
.p-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 29px; border-radius: 999px;
  background: #060608;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; z-index: 6;
}
.p-island i {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #223055 0%, #0a0f1e 55%, #05070d 100%);
}
.stage-glow {
  position: absolute; inset: -12% -18%;
  background:
    radial-gradient(38% 38% at 62% 36%, rgba(37,99,235,.16), transparent 70%),
    radial-gradient(30% 30% at 34% 66%, rgba(14,165,233,.10), transparent 70%);
  filter: blur(6px); pointer-events: none; z-index: 0;
}
.glow-navy {
  background:
    radial-gradient(40% 40% at 62% 36%, rgba(206,192,69,.14), transparent 70%),
    radial-gradient(34% 34% at 34% 66%, rgba(59,130,246,.18), transparent 70%);
}
.glow-dark {
  background:
    radial-gradient(38% 38% at 62% 36%, rgba(59,130,246,.25), transparent 70%),
    radial-gradient(30% 30% at 34% 66%, rgba(206,192,69,.10), transparent 70%);
}
.split-visual, .hero-visual { position: relative; display: grid; place-items: center; }
.phone { z-index: 1; }
.phone-tilt { transform: rotate(2.4deg); }
@media (prefers-reduced-motion: no-preference) {
  .phone-tilt { transition: transform .6s var(--ease); }
  .hero:hover .phone-tilt { transform: rotate(0deg) translateY(-4px); }
}

/* ---------- 屏（App 真实形态：bg #F8FAFC） ---------- */
.scr {
  background: var(--bg);
  border: 9px solid #08080a;
  border-radius: 55px; overflow: hidden;
  display: flex; flex-direction: column; height: 660px;
  font-size: 13px; color: var(--ink);
  position: relative;
}
.p-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 27px 6px; font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.p-time { letter-spacing: .02em; }
.p-status-ics { display: flex; align-items: center; gap: 5px; color: var(--ink); }
.p-header {
  display: flex; align-items: center; padding: 8px 14px;
  border-bottom: 1px solid var(--hair);
  background: #fff;
}
.p-back { color: var(--blue); font-size: 20px; line-height: 1; margin-right: 8px; }
.p-title { flex: 1; text-align: center; font-weight: 600; font-size: 15px; }
.p-more { opacity: .45; font-size: 16px; }

/* 48dp 统一 Header 档（navigation.headerHeight=48） */
.p-navtitle {
  text-align: center; font-weight: 600; font-size: 17px;
  height: 48px; display: flex; align-items: center; justify-content: center;
  background: #fff; border-bottom: 1px solid var(--hair);
}

/* ---------- 聊天屏（无底栏=真实二级页） ---------- */
.p-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.scr-chat .p-body { justify-content: flex-end; padding-bottom: 18px; }
.p-chat-time { text-align: center; font-size: 10.5px; color: #b0b7c3; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 16px; line-height: 1.5; font-size: 13px; }
.bubble.user {
  align-self: flex-end; background: var(--blue); color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble.ai {
  align-self: flex-start; background: var(--card); color: var(--ink);
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(15,23,42,.07);
}
.tool-line {
  align-self: flex-start; display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--muted); padding: 4px 10px;
}
.tool-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .35 } 50% { opacity: 1 } }
.p-composer {
  display: flex; align-items: center; gap: 10px;
  margin: 0 12px 22px; padding: 9px 12px;
  background: #fff; border: 1px solid var(--hair);
  border-radius: 18px;
}
.c-plus { color: var(--muted); font-size: 16px; }
.c-input { flex: 1; color: #94a3b8; font-size: 13px; }
.c-send {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

/* ---------- Tab 栏（真结构：会话/小程序/设置 · 选中=primary 填充） ---------- */
.p-tabbar {
  display: flex; background: #fff; border-top: 1px solid var(--hair);
  padding: 7px 0 20px;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; color: #94A3B8;
}
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--blue); font-weight: 600; }

/* ---------- 会话列表（SessionListItem 1:1：纯文字行+发丝线+右侧状态牌列） ---------- */
.p-list { flex: 1; background: #fff; display: flex; flex-direction: column; }
.p-row {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 15px 16px;
  border-bottom: 1px solid #F1F5F9;
}
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-t { font-weight: 600; font-size: 14.5px; line-height: 20px; }
.row-s {
  color: var(--muted); font-size: 12.5px; line-height: 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex: none; min-height: 40px;
}
/* 状态牌三态（0908 改版真值：蓝●生成中/琥珀审批/红未读，pill 圆角） */
.pill {
  height: 20px; display: inline-flex; align-items: center;
  padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1;
}
.pill-run     { background: var(--blue-muted); color: var(--blue); }
.pill-approve { background: var(--warning-muted); color: var(--warning); }
.pill-unread  { background: var(--danger-muted); color: var(--danger); }
.row-time { font-size: 11.5px; color: #94a3b8; }
/* 行时间与状态牌没有时仍保持列节奏 */
.row-side .row-time { margin-top: auto; }
.p-row:has(.pill) .row-time { margin-top: 0; }
/* FAB（新增会话浮钮，UI 闸实证过的真实元素） */
.p-fab {
  position: absolute; right: 18px; bottom: 92px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,99,235,.4);
  z-index: 5;
}
.scr-sessions { position: relative; }

/* ---------- 小程序宫格（MiniappIcon 1:1：圆角块 primaryMuted + emoji 字形） ---------- */
.grid {
  flex: 1; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; padding: 18px 16px; align-content: start;
  background: var(--bg);
}
.tile {
  background: var(--card); border-radius: 16px;
  padding: 14px 8px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 1px 2px rgba(15,23,42,.05);
}
.tile-ic {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--blue-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; line-height: 1;
}
.tile b { font-size: 11.5px; font-weight: 500; color: var(--ink); }
.tile-fresh { border: 1.5px solid var(--blue); position: relative; }
.fresh {
  position: absolute; top: -8px; right: -6px;
  background: var(--gold); color: var(--navy);
  font-size: 9px; font-weight: 700; line-height: 1;
  padding: 4px 7px; border-radius: 999px;
  white-space: nowrap;
}
.grid-note { text-align: center; font-size: 11px; color: #94a3b8; padding: 0 0 16px; background: var(--bg); }

/* ---------- 分栏 ---------- */
.split {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.split-copy h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.18; font-weight: 700; margin-bottom: 16px; }
.split-copy p { color: var(--muted); font-size: 16.5px; margin-bottom: 22px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15.5px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }
.ticks-dark li { color: #eef2f7; }
.ticks-dark li::before { color: var(--gold); }

/* ---------- 藏青分段 ---------- */
.sec-navy {
  background:
    radial-gradient(46% 40% at 80% 8%, rgba(51,72,115,.5), transparent 70%),
    var(--navy);
  color: #f5f7fa;
}
.sec-navy .sec-head p { color: #B9C3D2; }
.sec-navy .split-copy p { color: #B9C3D2; }

/* ---------- 灰分段 ---------- */
.sec-gray { background: #eef1f5; }

/* ---------- Mac 窗口 ---------- */
.mac {
  max-width: 880px; margin: 0 auto;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.mac-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.mac-bar span { width: 11px; height: 11px; border-radius: 50%; }
.mac-bar span:nth-child(1) { background: #ff5f57; }
.mac-bar span:nth-child(2) { background: #febc2e; }
.mac-bar span:nth-child(3) { background: #28c840; }
.mac-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #8b98ad; }
.mac-body { padding: 26px 26px 24px; }
.mac-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: #d6dce8; display: grid; gap: 9px; }
.mc-line { display: block; }
.mc-line i { font-style: normal; color: #5b6474; margin-right: 12px; }
.mac-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.mac-chips span { font-size: 12.5px; border: 1px solid rgba(206,192,69,.35); color: #efe9c0; padding: 6px 13px; border-radius: 999px; }

/* ---------- 三步卡 ---------- */
.sec-pair .sec-head { margin-bottom: 40px; }
.steps { display: flex; align-items: stretch; justify-content: center; gap: 14px; max-width: 860px; margin: 0 auto; }
.step {
  flex: 1; max-width: 240px;
  background: var(--card); border-radius: 16px; padding: 26px 22px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.04);
}
.step-n {
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.step b { display: block; font-size: 17px; margin-bottom: 6px; }
.step i { font-style: normal; color: var(--muted); font-size: 13.5px; }
.step-arrow { align-self: center; font-size: 26px; color: #c7ccd4; flex: none; }

/* ---------- 下载 ---------- */
.sec-download { text-align: center; }
.sec-download .sec-head { margin-bottom: 36px; }
.dl { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.dl-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(206,192,69,.3);
  color: #f5f7fa; padding: 13px 26px; border-radius: 14px;
  transition: background .2s, transform .25s var(--ease);
}
.dl-btn:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.dl-btn i { display: block; font-style: normal; font-size: 11px; color: #B9C3D2; }
.dl-btn b { display: block; font-size: 16px; font-weight: 600; }
.dl-note { margin-top: 26px; font-size: 13px; color: #B9C3D2; }

/* ---------- 页脚 ---------- */
.foot { background: #050d1c; color: #8b98ad; padding: 34px 22px; }
.foot-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #d7dfeb; font-size: 14px; }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { font-size: 12.5px; }
.foot-links a:hover { color: #f5f5f7; }
.foot-copy { width: 100%; font-size: 12px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

/* ---------- 滚动进场 ---------- */
html.js [data-animate] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
html.js [data-animate].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-animate] { opacity: 1; transform: none; transition: none; }
  .tool-dot, .hero-stars i { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
  .sec { padding: 68px 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; padding: 6px; color: var(--navy); }
  .nav-burger span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-inner { gap: 14px; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 56px; left: 0; right: 0;
    flex-direction: column; background: rgba(248,250,252,.98); padding: 18px 22px 22px;
    border-bottom: 1px solid var(--hair); gap: 16px;
  }
  .hero-mark { width: 220px; }
}
@media (max-width: 400px) {
  .sec { padding: 56px 18px; }
  .dl { flex-direction: column; align-items: center; }
}
