/* 展示站首页（index.html）专用样式；共用基础在 style.css，guide.html 不加载本文件 */

/* 三套主题扩展色板（对齐 App 的 tokens.css） */
[data-motif='sandglass'] {
  --dot: rgba(42, 34, 25, .09);
  --dot-off: rgba(42, 34, 25, .11);
  --accent-soft: color-mix(in srgb, #b0602a 13%, transparent);
  --chamber: #1e1812;
  --chamber-ink: #f7efe2;
  --shadow-stage: 0 38px 80px -36px rgba(42, 34, 25, .36), 0 8px 24px -12px rgba(42, 34, 25, .14);
  --btn-radius: 10px;
}
[data-motif='tide'] {
  --dot: rgba(14, 42, 46, .08);
  --dot-off: rgba(14, 42, 46, .10);
  --accent-soft: color-mix(in srgb, #13807d 13%, transparent);
  --chamber: #0b2226;
  --chamber-ink: #eaf7f6;
  --shadow-stage: 0 38px 80px -36px rgba(14, 42, 46, .30), 0 8px 24px -12px rgba(14, 42, 46, .12);
  --btn-radius: 999px;
}
[data-motif='meridian'] {
  --dot: rgba(231, 233, 246, .08);
  --dot-off: rgba(231, 233, 246, .14);
  --accent-soft: color-mix(in srgb, #aab6ff 16%, transparent);
  --chamber: #060812;
  --chamber-ink: #e7e9f6;
  --shadow-stage: 0 42px 90px -34px rgba(0, 0, 0, .72), 0 0 0 1px rgba(170, 182, 255, .12);
  --btn-radius: 8px;
}

.home {
  --faint: color-mix(in srgb, var(--ink) 6%, transparent);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* 按钮与导航微交互 */
.home .btn {
  border-radius: var(--btn-radius);
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.home .btn:hover { transform: translateY(-1px); }
.home .btn:active { transform: scale(.97); }
.home .btn-primary { box-shadow: 0 10px 24px -12px var(--accent); }
.home .btn-primary:hover { box-shadow: 0 14px 28px -10px var(--accent); }
.home .btn-ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.home .btn-ghost:hover { border-color: color-mix(in srgb, var(--ink) 32%, transparent); background: var(--surface); }

/* 轻入场动画 */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.22, 1, .36, 1), transform .65s cubic-bezier(.22, 1, .36, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ================================================================
 * 第一幕：首屏时间流逝特写（Hero）
 * ================================================================ */
.h-hero {
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .h-hero {
    padding: 72px 0 56px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 56px;
  }
}

.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.h-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--accent);
  animation: sg-pulse 2.2s ease-in-out infinite;
}
@keyframes sg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.78); }
}

.h-title {
  font-family: var(--display);
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin: 0 0 20px;
  font-weight: 600;
}
[data-motif='meridian'] .h-title { letter-spacing: -.04em; }

.h-lead {
  font-size: clamp(16px, 1.65vw, 18.5px);
  line-height: 1.78;
  color: var(--muted);
  max-width: 31em;
  margin: 0 0 28px;
}

.h-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.h-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.h-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.h-meta span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--accent) 65%, transparent);
}

/* 右侧：时间流逝点阵特写舞台 */
.hero-stage {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-stage);
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: background .5s ease, border-color .5s ease;
}
.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, var(--accent-soft), transparent 66%);
  opacity: .75;
}

.hero-stage-top {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
.hero-stage-tag {
  font-family: var(--mono);
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-macro-btn {
  all: unset;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  transition: color .2s ease, border-color .2s ease, transform .15s ease;
}
.hero-macro-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.hero-macro-btn:active { transform: scale(.96); }

/* 微距点阵画布窗口：默认放大特写落沙/水波/星轨核心，可点切全景 */
.hero-aperture {
  position: relative;
  z-index: 1;
  width: min(300px, 72vw);
  height: min(300px, 72vw);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: color-mix(in srgb, var(--bg) 52%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.hero-aperture canvas {
  display: block;
  transition: transform .85s cubic-bezier(.22, 1, .36, 1);
  transform: scale(1);
}
.hero-stage.is-macro .hero-aperture canvas {
  transform: scale(1.28);
}

.hero-kicker {
  position: relative;
  z-index: 1;
  margin: 14px 0 8px;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.hero-clock-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 14px;
}
.hero-clock {
  display: block;
  height: 34px;
  width: auto;
}

.hero-stage-foot {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hero-stage-foot .switch { margin: 0; }
.hero-stage-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ================================================================
 * 序幕转化：意境态 → 推进态（morph.mp4 真实形变舞台）
 * ================================================================ */
.prelude {
  padding: 20px 0 76px;
}
.prelude-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-bottom: 20px;
}
.prelude-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0;
}
.prelude-head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 38em;
  font-size: 15px;
}

.prelude-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.prelude-pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.prelude-replay {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: color .18s ease, transform .15s ease;
}
.prelude-replay:hover { color: var(--ink); }
.prelude-replay:active { transform: scale(.96); }

/* macOS 窗口外框 */
.mac-frame {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
}
.mac-bar {
  height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 75%, var(--bg));
}
.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}
.mac-bar-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.mac-bar-right {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
}
.mac-frame video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
}

/* ================================================================
 * 第二幕：镜头聚焦放大舞台（Sticky Camera Spotlight）
 * ================================================================ */
.spotlight-sec {
  padding: 84px 0 96px;
  border-top: 1px solid var(--line);
}
.spotlight-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 36px;
}
.spotlight-top .sub { margin: 8px 0 0; }

.cam-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.cam-tab {
  all: unset;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.cam-tab:hover { color: var(--ink); }
.cam-tab[aria-pressed='true'] {
  background: var(--accent);
  color: var(--on-accent);
}
.cam-tab:active { transform: scale(.96); }

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 980px) {
  .spotlight-grid {
    grid-template-columns: minmax(290px, 0.41fr) minmax(0, 0.59fr);
    gap: 40px;
  }
  .spotlight-sec.is-flipped .spotlight-grid {
    grid-template-columns: minmax(0, 0.59fr) minmax(290px, 0.41fr);
  }
}

/* 左侧故事节拍 */
.beat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.beat {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  width: 100%;
  padding: 18px 20px 18px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--surface) 44%, transparent);
  position: relative;
  transition: background .28s ease, border-color .28s ease, transform .22s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
  opacity: .68;
}
.beat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  transition: background .28s ease;
}
.beat:hover {
  opacity: .94;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}
.beat.is-active {
  opacity: 1;
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .28);
}
.beat.is-active::before {
  background: var(--accent);
}
.beat-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.beat h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.beat p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* 右侧 Sticky 镜头监视器 */
.cam-sticky {
  position: sticky;
  top: 84px;
}
@media (max-width: 979px) {
  .cam-sticky {
    position: sticky;
    top: 66px;
    z-index: 5;
    order: -1;
  }
}

.cam-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.cam-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
  transition: transform .92s cubic-bezier(.22, 1, .36, 1);
}
.cam-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  transition: opacity .24s ease;
}
.cam-img.is-swapping { opacity: .28; }

.cam-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cam-dim {
  fill: rgba(14, 12, 10, .48);
  transition: opacity .55s ease;
}
[data-motif='meridian'] .cam-dim { fill: rgba(4, 6, 14, .58); }
.cam-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  transition: opacity .45s ease;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 45%, transparent));
}

/* 舞台底部实时镜头注释条 */
.cam-callout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.cam-callout b {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.cam-callout span {
  font-size: 13.5px;
  color: var(--muted);
}
.cam-callout.is-pop {
  animation: sg-callout .36s cubic-bezier(.22, 1, .36, 1);
}
@keyframes sg-callout {
  from { opacity: .45; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ================================================================
 * 第三幕：真实动态画廊（盘活剩余 6 段录屏）
 * ================================================================ */
.motion-sec {
  padding: 84px 0;
  border-top: 1px solid var(--line);
}
.motion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .motion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.motion-card {
  margin: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
}
.motion-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px -34px rgba(0, 0, 0, .32);
}
.motion-card-media {
  position: relative;
  background: color-mix(in srgb, var(--bg) 40%, var(--surface));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.motion-card video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.motion-card.is-wide {
  grid-column: 1 / -1;
}
.motion-card.is-wide .motion-wide-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .motion-card.is-wide .motion-wide-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .motion-card.is-wide .motion-card-media {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
}

.motion-card figcaption {
  padding: 18px 20px 20px;
}
.motion-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 6px;
}
.motion-card h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}
.motion-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--muted);
}

/* 精简 macOS 状态栏条（嵌在菜单栏卡片内） */
.mbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 9px;
  font-size: 12px;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 72%, var(--surface));
  border: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.mbar-fill { flex: 1; }
.mbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  font-variant-numeric: tabular-nums;
}
.mbar-sys { color: var(--muted); }
.v { display: none; }
[data-motif='sandglass'] .v-sandglass,
[data-motif='tide'] .v-tide,
[data-motif='meridian'] .v-meridian { display: inline; }

/* ================================================================
 * 第四幕：精简三句对比 + MCP + 下载
 * ================================================================ */
.diff-sec {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.diff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}
.diff-card:hover { transform: translateY(-2px); }
.diff-vs {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.diff-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}
.diff-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.mcp-band {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .mcp-band { grid-template-columns: 1.15fr 0.85fr; }
}
.mcp-band h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 19px;
}
.mcp-band p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}
.mcp-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mcp-prompts span {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--faint);
  border: 1px solid var(--line);
  color: var(--ink);
}

.req ul li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .h-hero { padding: 36px 0 32px; }
  .hero-stage { padding: 18px 16px; }
  .mbar-sys { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .h-eyebrow-dot { animation: none; }
  .cam-stage, .hero-aperture canvas { transition: none; }
}

/* 章节编号用正文字体：中文标签不走等宽与大写 */
.home .kicker { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; }
