/* ═══════════════════════════════════════════════════════
   CourseLM 系统主页
   淡米黄学院风：中性基调（无色彩偏好），平台色仅在主题激活时出现
   交互：桌面端全屏翻页 + 平台卡片点击激活主题
   ═══════════════════════════════════════════════════════ */

:root {
  /* 淡米黄中性基调 */
  --bg: #f6f1e6;
  --panel: #fffdf8;
  --panel-soft: #f0e9d8;
  --text: #2b2822;
  --muted: #6e6857;
  --line: #e4dcc6;
  --ink: #2b2822;

  /* 默认强调色：中性暖墨（激活平台后由 body[data-platform] 覆盖）
     --accent     装饰用（描边、光晕、背景层）
     --accent-text 小字文本用（对米黄底 ≥4.5:1）
     --accent-deep 实心 UI 用（主按钮、圆点，对浅色文字 ≥4.5:1） */
  --accent: #57503f;
  --accent-text: #57503f;
  --accent-deep: #2b2822;
  --accent-soft: #ece4cf;
  --on-accent: #f6f1e6;

  --shadow: 0 12px 40px #4a423014;
  --shadow-lift: 0 16px 44px #4a42301f;

  /* 平台主题激活层动画参数（各平台在 body[data-platform] 中覆盖） */
  --po-dur: 18s;
  --po-dur2: 24s;
  --po-dur3: 30s;

  font-family: "Bahnschrift", "Microsoft YaHei", "PingFang SC", sans-serif;
  color-scheme: light;
}

/* ── 六平台主题（激活时全站强调色随之切换） ── */

body[data-platform="aa"] {
  --accent: #1e8a68;
  --accent-text: #14604b;
  --accent-deep: #186c52;
  --accent-soft: #e2f1e6;
  --on-accent: #f0faf4;
  --po-dur: 16s; --po-dur2: 22s; --po-dur3: 28s;
}

body[data-platform="hub"] {
  --accent: #3d87c4;
  --accent-text: #25618f;
  --accent-deep: #2f6fa8;
  --accent-soft: #e4eef7;
  --on-accent: #f2f8fd;
  --po-dur: 20s; --po-dur2: 26s; --po-dur3: 32s;
}

body[data-platform="graph"] {
  --accent: #6f5bd0;
  --accent-text: #4c3aa8;
  --accent-deep: #5644b4;
  --accent-soft: #ebe7f9;
  --on-accent: #f5f3fc;
  --po-dur: 24s; --po-dur2: 19s; --po-dur3: 33s;
}

body[data-platform="wiki"] {
  --accent: #d9912f;
  --accent-text: #8f5a10;
  --accent-deep: #a8680f;
  --accent-soft: #f8ecd9;
  --on-accent: #fdf7ec;
  --po-dur: 14s; --po-dur2: 21s; --po-dur3: 27s;
}

body[data-platform="ppt"] {
  --accent: #cf5a7a;
  --accent-text: #96304e;
  --accent-deep: #a83856;
  --accent-soft: #f8e6ec;
  --on-accent: #fdf3f6;
  --po-dur: 18s; --po-dur2: 25s; --po-dur3: 31s;
}

body[data-platform="lm"] {
  --accent: #3b62a8;
  --accent-text: #2a4780;
  --accent-deep: #33538f;
  --accent-soft: #e5ebf6;
  --on-accent: #f3f6fc;
  --po-dur: 26s; --po-dur2: 20s; --po-dur3: 34s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.5s ease;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }

h1, h2, h3 { font-weight: 650; letter-spacing: -0.5px; line-height: 1.4; }
code { font-family: "Cascadia Code", Consolas, "SF Mono", monospace; }

button { font: inherit; color: inherit; }

button, a, [tabindex] { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
.button:focus-visible,
.card:focus-visible,
.dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 按钮系统 ─────────────────────────────── */

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.3s, transform 0.18s, box-shadow 0.18s, border-color 0.3s, color 0.3s;
}

.button:hover {
  background: var(--panel-soft);
  border-color: var(--accent);
  color: var(--accent-text);
}

.button:active { transform: translateY(1px); }

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-accent);
  font-weight: 650;
}

body[data-platform] .button.primary {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--on-accent);
}

.button.primary:hover {
  filter: brightness(1.12);
  box-shadow: 0 5px 16px #4a423020;
}

.button.large {
  min-height: 50px;
  padding: 14px 23px;
  font-size: 16px;
}

/* ── 固定导航 ─────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 44px);
  background: rgba(246, 241, 230, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s;
}

.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--text);
  transition: color 0.3s;
}

.brand-word small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 400;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
}

.nav-links a {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.18s;
}

.nav-links a:hover { color: var(--accent-text); }

/* ── 页码圆点 ─────────────────────────────── */

.dots {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dots button {
  width: 9px; height: 9px;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.dots button:hover { border-color: var(--accent-text); transform: scale(1.25); }

.dots button.on {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: scale(1.25);
}

/* ── 平台主题激活层（fixed，持续动态，滚动即隐） ── */

.platform-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  overflow: hidden;
}

body[data-platform] .platform-overlay { opacity: 1; }

.platform-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 68% 45%, var(--accent-soft), transparent 62%);
  transition: background 0.5s;
}

.po-logo {
  position: absolute;
  right: 4vw;
  top: 50%;
  margin-top: min(-29vmin, 0px);
  width: 58vmin;
  height: 58vmin;
  object-fit: contain;
  opacity: 0.16;
  filter: saturate(0.9);
  animation: po-float var(--po-dur) ease-in-out infinite alternate;
}

@keyframes po-float {
  from { transform: translateY(-2.5%) scale(1); }
  to   { transform: translateY(2.5%) scale(1.045); }
}

.po-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  background: var(--accent-soft);
  opacity: 0.9;
}

.po-blob.b1 {
  width: 42vmin; height: 42vmin;
  left: -8vmin; bottom: -10vmin;
  animation: po-drift1 var(--po-dur2) ease-in-out infinite alternate;
}

.po-blob.b2 {
  width: 30vmin; height: 30vmin;
  right: 26vw; top: -8vmin;
  opacity: 0.75;
  animation: po-drift2 var(--po-dur3) ease-in-out infinite alternate;
}

@keyframes po-drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(6vmin, -4vmin) scale(1.12); }
}

@keyframes po-drift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-8vmin, 6vmin) scale(0.92); }
}

.po-ring {
  position: absolute;
  left: 12vw;
  bottom: 12vh;
  width: 22vmin; height: 22vmin;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: 0.22;
  animation: po-ring var(--po-dur) linear infinite;
}

@keyframes po-ring {
  from { transform: scale(0.85) rotate(0deg); opacity: 0.05; }
  50%  { opacity: 0.28; }
  to   { transform: scale(1.25) rotate(90deg); opacity: 0.05; }
}

/* 各平台不同的动态构图：ring 位置/方向、logo 侧向随主题变化 */
body[data-platform="graph"] .po-ring,
body[data-platform="ppt"] .po-ring { left: auto; right: 30vw; top: 14vh; bottom: auto; animation-direction: reverse; }

body[data-platform="hub"] .po-logo,
body[data-platform="wiki"] .po-logo { right: auto; left: 4vw; }

body[data-platform="hub"] .po-blob.b1 { animation-direction: reverse; }
body[data-platform="lm"] .po-blob.b2 { animation-direction: reverse; }
body[data-platform="aa"] .po-blob.b2 { animation-direction: alternate-reverse; }
body[data-platform="wiki"] .po-ring { animation-duration: var(--po-dur3); }

/* ── 全屏翻页区块 ─────────────────────────── */

.fp {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px clamp(20px, 4vw, 44px) 48px;
  max-width: 1320px;
  margin: 0 auto;
  overflow: hidden;
}

/* 背景装饰层：外层 .dw 承载 locomotive 视差，内层元素做持续动画 */
.deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.dw { position: absolute; }

.wm {
  display: block;
  font-size: clamp(72px, 11vw, 150px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  animation: deco-breathe 9s ease-in-out infinite alternate;
}

.di-blob {
  display: block;
  width: clamp(180px, 24vw, 340px);
  height: clamp(180px, 24vw, 340px);
  border-radius: 50%;
  background: var(--panel-soft);
  filter: blur(46px);
  animation: deco-breathe 12s ease-in-out infinite alternate;
}

.di-ring {
  display: block;
  width: clamp(140px, 17vw, 230px);
  height: clamp(140px, 17vw, 230px);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  animation: deco-spin 40s linear infinite;
}

@keyframes deco-breathe {
  from { transform: translateY(-3%) scale(1); }
  to   { transform: translateY(3%) scale(1.05); }
}

@keyframes deco-spin {
  to { transform: rotate(360deg); }
}

.dw-word { left: -1%; top: 12%; }
.s-vibe .dw-word .wm, .s-agents .dw-word .wm { font-size: clamp(90px, 14vw, 200px); }
.dw-blob1 { right: -6%; bottom: -8%; }
.dw-ring { right: 16%; top: 10%; }

/* ── 1 首页 ──────────────────────────────── */

.s-hero { padding-bottom: 40px; }

.hero-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.4s;
}

.hero-copy {
  padding: clamp(34px, 4.5vw, 56px) clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

.hero-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
  transition: background 0.3s;
}

.hero-copy h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -1.5px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-copy h1 span { display: block; }

.hero-copy h1 .em { color: var(--accent); transition: color 0.3s; }

.hero-copy > p:not(.hero-kicker) {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 30em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-hint {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* 点阵星图场景 */

.hero-scene {
  position: relative;
  min-height: 500px;
  min-width: 0;
  background:
    radial-gradient(ellipse at center, #4a423010, transparent 66%),
    radial-gradient(var(--line) 1px, transparent 1px);
  background-size: auto, 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.constellation {
  width: min(72%, 440px);
  color: var(--text);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.orbit { transform-box: view-box; transform-origin: 50% 50%; }

.orbit--a { animation: spin 110s linear infinite; }
.orbit--b { animation: spin 170s linear infinite reverse; }

@keyframes spin { to { transform: rotate(360deg); } }

.node__halo { fill: currentColor; opacity: 0.12; }
.node__core { fill: var(--muted); }

.node--aa    { color: #1e8a68; }
.node--hub   { color: #3d87c4; }
.node--graph { color: #6f5bd0; }
.node--wiki  { color: #d9912f; }
.node--ppt   { color: #cf5a7a; }
.node--lm    { color: #3b62a8; }
.core        { color: var(--ink); }

.node__label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-anchor: middle;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 110s linear infinite reverse;
}

.orbit--b .node__label { animation: spin 170s linear infinite; }

.core__label {
  fill: var(--muted);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-anchor: middle;
  font-weight: 550;
}

.core__ring { fill: rgba(255, 253, 248, 0.85); }

.core__pulse {
  opacity: 0.4;
  animation: pulse 4s ease-out infinite;
  transform-box: view-box;
  transform-origin: 50% 50%;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.4; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.orbit-tag { position: absolute; z-index: 3; }
.orbit-tag.top { top: 30px; right: 26px; }
.orbit-tag.bottom { bottom: 28px; left: 26px; }

.orbit-tag__inner {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 550;
  color: var(--text);
  white-space: nowrap;
  transform: rotate(3deg);
  transition: color 0.3s, border-color 0.3s;
}

.orbit-tag.bottom .orbit-tag__inner {
  transform: rotate(-3deg);
  font-size: 10px;
  color: var(--muted);
}

.tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-deep);
  flex-shrink: 0;
  transition: background 0.3s;
}

.tag-dot.soft { background: var(--muted); }

/* ── 2 生态数据 ──────────────────────────── */

.section-head { position: relative; z-index: 1; max-width: 560px; margin-bottom: clamp(36px, 6vh, 64px); }

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-text);
  display: block;
  margin-bottom: 10px;
  line-height: 1.6;
  transition: color 0.3s;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-head p { color: var(--muted); font-size: 13px; }

.section-head p em { font-style: normal; color: var(--accent-text); transition: color 0.3s; }

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  padding: 28px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.3s;
}

.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }

.stat-label {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 14px;
}

.stat-value {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 550;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.stat-value small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0;
}

.stats-note {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ── 3 平台矩阵 ──────────────────────────── */

.grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  transition: translate 0.25s, box-shadow 0.25s, border-color 0.3s;
}

.card:hover {
  translate: 0 -4px;
  border-color: var(--accent-text);
  box-shadow: var(--shadow-lift);
}

.card.active {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 1px var(--accent-deep), var(--shadow-lift);
}

.card.active .card-sub { color: var(--accent-text); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--panel-soft);
}

.badge {
  padding: 3px 11px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.5px;
  transition: background 0.3s, color 0.3s;
}

.badge.live { background: var(--accent-soft); color: var(--accent-text); }

.card h3 { font-size: 18px; letter-spacing: -0.4px; margin-bottom: 3px; }

.card-sub {
  color: var(--accent);
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.card-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  flex: 1;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.card-foot code {
  font-size: 11px;
  color: var(--muted);
  background: var(--panel-soft);
  padding: 3px 9px;
  border-radius: 6px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent-text);
  transition: color 0.3s;
}

.card-link svg { transition: transform 0.2s; }
.card-link:hover svg { transform: translateX(4px); }

/* ── 4 Vibe Coding ───────────────────────── */

.vibe-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vibe-item {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.3s;
}

.vibe-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }

.vibe-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-text);
  margin-bottom: 14px;
  transition: color 0.3s;
}

.vibe-item h3 { font-size: 17px; margin-bottom: 8px; }

.vibe-item p:not(.vibe-num) { color: var(--muted); font-size: 12.5px; }

.vibe-code {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--ink);
  color: #e9e2cf;
  border-radius: 14px;
  font-family: "Cascadia Code", Consolas, "SF Mono", monospace;
  font-size: 12px;
  line-height: 1.9;
  overflow-x: auto;
  max-width: 720px;
}

.vibe-code code { color: inherit; }

/* ── 5 部署方式 ──────────────────────────── */

.deploy-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
}

.deploy-item {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.3s;
}

.deploy-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }

.deploy-item h3 { font-size: 19px; margin-bottom: 10px; }

.deploy-item p { color: var(--muted); font-size: 13px; }

.deploy-item code {
  font-size: 12px;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 2px 9px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}

.deploy-tag {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.5px;
  color: var(--accent-text) !important;
  transition: color 0.3s;
}

/* ── 6 移动端 ────────────────────────────── */

.app-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.app-wrap .section-head { margin-bottom: 18px; }

.app-soon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.5px;
  transition: background 0.3s, color 0.3s;
}

.phone {
  position: relative;
  width: min(210px, 60vw);
  margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  border: 2px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px;
}

.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  width: 64px; height: 7px;
  margin-left: -32px;
  border-radius: 999px;
  background: var(--line);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding-top: 20px;
}

.phone-line {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
}

.phone-line.w60 { width: 60%; }
.phone-line.w80 { width: 80%; }
.phone-line.w40 { width: 40%; }

.phone-bubble {
  margin-top: auto;
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 13px 13px 13px 4px;
  background: var(--panel-soft);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.phone-bubble.ai {
  margin-left: auto;
  border-radius: 13px 13px 4px 13px;
  background: var(--accent-deep);
  color: var(--on-accent);
  transition: background 0.3s, color 0.3s;
}

/* ── 7 独立智能体应用（占位） ────────────── */

/* 末屏：为底部栏让出高度，保证 footer 与末页同屏可见 */
.s-agents { min-height: calc(100vh - 59px); min-height: calc(100svh - 59px); }

.agents-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agent-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
  background: transparent;
}

/* ── 底部栏 ──────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 20px clamp(20px, 4vw, 44px);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

/* ── 滚动显现 ────────────────────────────── */

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html.js .reveal-fade {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal-fade.is-inview { opacity: 1; }

/* locomotive 不可用（脚本加载失败）：跳过显现动画，直接可见 */
html.no-loc .reveal,
html.no-loc .reveal-fade {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── 响应式 ──────────────────────────────── */

@media (max-height: 860px) and (min-width: 961px) {
  .fp { padding-top: 88px; padding-bottom: 32px; }
  .hero-scene { min-height: 420px; }
  .card { padding: 18px 18px 15px; }
  .card-desc { display: none; }
  .section-head { margin-bottom: 26px; }
  .vibe-code { padding: 14px 18px; font-size: 11px; }
  .agent-slot { min-height: 110px; }
}

@media (max-width: 960px) {
  .fp { min-height: auto; padding-top: 96px; padding-bottom: 24px; }

  .dots { display: none; }

  .hero-card { grid-template-columns: 1fr; }

  .hero-scene { min-height: 420px; }

  .hero-hint { display: none; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .grid { grid-template-columns: 1fr; }

  .vibe-grid { grid-template-columns: 1fr; }

  .deploy-grid { grid-template-columns: 1fr; }

  .app-wrap { grid-template-columns: 1fr; }

  .phone { display: none; }

  .agents-grid { grid-template-columns: 1fr; }

  .agent-slot { min-height: 96px; }

  .dw-word .wm { font-size: clamp(56px, 16vw, 100px); }

  .brand-word small { display: none; }

  .nav-links { display: none; }

  .po-logo { width: 74vmin; height: 74vmin; opacity: 0.13; right: -8vmin; }
}

/* ── 动效减免 ────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .orbit--a, .orbit--b, .node__label, .core__pulse,
  .po-logo, .po-blob, .po-ring,
  .wm, .di-blob, .di-ring { animation: none; }

  html.js .reveal,
  html.js .reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stat:hover, .card:hover, .vibe-item:hover, .deploy-item:hover { transform: none; translate: none; }
}

/* 2026-09-28：真实数据、平台 MCP、双部署场景和常驻平台导航。 */
[hidden] { display: none !important; }
.fp { padding-bottom: 100px; overflow: clip; }
.s-agents { min-height: 100svh; }
.hero-actions .button { gap: 32px; }
.stat-definition { color: var(--muted); font-size: 11px; margin-top: 18px; line-height: 1.7; }
.stats-note { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.live-dot { width: 6px; height: 6px; background: #3f735c; border-radius: 50%; }
.stats-note:has([data-state="error"]) .live-dot { background: #a56e34; }
.text-button { background: none; border: 0; text-decoration: underline; cursor: pointer; font-size: 12px; }
.text-button:disabled { cursor: wait; opacity: .6; }
.s-vibe .section-head { max-width: 890px; margin-bottom: 28px; }
.s-vibe .vibe-item { padding: 22px 24px; }
.s-vibe .vibe-num { margin-bottom: 10px; }
.mcp-directory { position: relative; z-index: 1; margin-top: 26px; }
.mcp-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mcp-heading h3 { font-size: 15px; }
.mcp-heading > span { font-size: 11px; color: var(--muted); }
.mcp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #fffdf880; border-radius: 14px; overflow: hidden; }
.mcp-server { padding: 18px; min-width: 0; }
.mcp-server + .mcp-server { border-left: 1px solid var(--line); }
.mcp-server:nth-child(3n + 1) { border-left: 0; }
.mcp-server:nth-child(n + 4) { border-top: 1px solid var(--line); }
.mcp-server h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.mcp-server h4 img { object-fit: contain; }
.mcp-server p { color: var(--muted); font-size: 11px; margin-top: 8px; }
.mcp-server code { display: block; font-size: 10px; line-height: 1.65; margin: 10px 0 12px; color: var(--muted); overflow-wrap: anywhere; user-select: all; }
.mcp-server a { font-size: 11px; font-weight: 650; display: inline-flex; align-items: center; gap: 16px; min-height: 32px; }
.mcp-server a:hover { text-decoration: underline; }
.s-deploy { max-width: none; padding-inline: max(44px, calc((100vw - 1232px) / 2)); isolation: isolate; }
.s-deploy .section-head { max-width: 850px; }
.deploy-backgrounds { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.deploy-background { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity .55s ease, transform 1.2s ease; }
.deploy-shade { position: absolute; inset: 0; opacity: 0; background: linear-gradient(110deg, #14211deb, #17211b45 85%); transition: opacity .5s; }
.s-deploy[data-deployment="online"] .deploy-background.online,
.s-deploy[data-deployment="private"] .deploy-background.private { opacity: 1; transform: scale(1); }
.s-deploy[data-deployment] .deploy-shade { opacity: 1; }
.s-deploy[data-deployment] .deco { opacity: 0; }
.s-deploy .section-head h2, .s-deploy .section-head p { transition: color .3s; }
.s-deploy[data-deployment] .section-head h2 { color: #fffdf8; }
.s-deploy[data-deployment] .section-head p { color: #f5f0e3; }
.deploy-grid { max-width: none; width: 100%; gap: clamp(24px, 5vw, 84px); }
.deploy-item { position: relative; overflow: hidden; min-height: 330px; padding: clamp(26px, 3vw, 44px); display: flex; flex-direction: column; transition: background .4s, color .4s, border-color .4s, box-shadow .3s; }
.deploy-item:hover { transform: none; }
.deploy-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.deploy-number { display: block; font-size: 10px; letter-spacing: 2px; color: var(--muted); margin-bottom: 32px; }
.deploy-item h3 { font-size: clamp(25px, 2.5vw, 32px); margin-bottom: 16px; }
.deploy-item > p:not(.deploy-tag) { max-width: 30em; line-height: 1.95; }
.deploy-features { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 30px; }
.deploy-features span { font-size: 10px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 5px; }
.deploy-tag { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.deploy-tag > span { font-size: 20px; }
.s-deploy[data-deployment] .deploy-item { background: #fffdf8eb; }
.s-deploy[data-deployment="online"] [data-deploy="online"],
.s-deploy[data-deployment="private"] [data-deploy="private"] { background: #15201987; color: #fffdf8; border-color: #ffffff65; backdrop-filter: blur(5px); }
.s-deploy[data-deployment="online"] [data-deploy="online"] p,
.s-deploy[data-deployment="private"] [data-deploy="private"] p,
.s-deploy[data-deployment="online"] [data-deploy="online"] .deploy-number,
.s-deploy[data-deployment="private"] [data-deploy="private"] .deploy-number { color: #fffdf8 !important; }
.s-deploy[data-deployment="online"] [data-deploy="online"] .deploy-tag,
.s-deploy[data-deployment="private"] [data-deploy="private"] .deploy-tag,
.s-deploy[data-deployment="online"] [data-deploy="online"] .deploy-features span,
.s-deploy[data-deployment="private"] [data-deploy="private"] .deploy-features span { border-color: #ffffff55; }
.footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 62px; padding: 14px clamp(20px, 4vw, 44px); background: #f6f1e6eb; backdrop-filter: blur(14px); }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(12px, 1.6vw, 24px); row-gap: 6px; }
.footer-links a { font-size: 11px; font-weight: 600; min-height: 30px; display: inline-flex; align-items: center; }
.footer-links a:hover { text-decoration: underline; }
.footer-help { border-left: 1px solid var(--line); padding-left: 20px; gap: 12px; }
.footer p { font-size: 9px; white-space: nowrap; }

@media (min-width: 961px) and (max-height: 860px) {
  .fp { padding-top: 96px; padding-bottom: 90px; }
  .s-vibe .section-head { margin-bottom: 20px; }
  .s-vibe .vibe-item { padding: 16px 20px; }
  .s-vibe .vibe-item h3 { font-size: 16px; }
  .mcp-directory { margin-top: 18px; }
  .mcp-server { padding: 13px 16px; }
  .deploy-item { min-height: 300px; padding: 28px; }
  .deploy-number { margin-bottom: 20px; }
  .deploy-features { margin: 18px 0 24px; }
}
@media (min-width: 961px) and (max-height: 699px) {
  .fp { min-height: 700px; }
  .s-vibe { min-height: 740px; }
}
@media (max-width: 1100px) and (min-width: 961px) {
  .footer p { display: none; }
  .footer { justify-content: center; }
  .mcp-server { padding-inline: 12px; }
}
@media (max-width: 960px) {
  .fp { padding-bottom: 36px; }
  .s-agents { min-height: auto; }
  .s-deploy { padding-inline: clamp(20px, 4vw, 44px); }
  .mcp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcp-server:nth-child(odd) { border-left: 0; }
  .mcp-server:nth-child(even) { border-left: 1px solid var(--line); }
  .mcp-server:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer { position: relative; flex-direction: column; gap: 10px; padding-block: 24px; }
  .footer-links { justify-content: center; }
  .footer-help { padding-left: 12px; }
  .deploy-item { min-height: 320px; }
}
@media (hover: none) {
  .deploy-backgrounds { display: none; }
  .s-deploy[data-deployment] .section-head h2 { color: var(--text); }
  .s-deploy[data-deployment] .section-head p { color: var(--muted); }
  .s-deploy .deploy-item, .s-deploy[data-deployment] .deploy-item { background-size: cover; background-position: center; color: #fffdf8; }
  .s-deploy [data-deploy="online"], .s-deploy[data-deployment] [data-deploy="online"] { background-image: linear-gradient(110deg, #17221cdc, #17221b70), url('../images/deployment-online.png'); }
  .s-deploy [data-deploy="private"], .s-deploy[data-deployment] [data-deploy="private"] { background-image: linear-gradient(110deg, #17221cdc, #17221b70), url('../images/deployment-private.png'); }
  .deploy-item p, .deploy-item .deploy-number { color: #fffdf8 !important; }
  .deploy-tag, .deploy-features span { border-color: #ffffff55; }
}
@media (max-width: 480px) {
  .stat { padding: 24px 18px; }
  .stat-value { font-size: 40px; }
  .stat-definition { font-size: 10px; }
  .mcp-heading { display: block; }
  .mcp-heading > span { display: block; margin-top: 4px; }
  .mcp-server { padding: 16px 12px; }
  .mcp-server h4 { font-size: 13px; }
  .mcp-server h4 img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .deploy-background, .deploy-shade, .deploy-item { transition: none; transform: none; }
}
