:root {
  --bg: #171412;
  --bg-elevated: #1e1916;
  --text-main: #f3ece7;
  --text-muted: #8c817a;
  --text-dim: #5e554f;
  --accent: #d4a386;
  --accent-soft: rgba(212, 163, 134, 0.22);
  --border-subtle: rgba(255, 244, 236, 0.1);
  --app-surface: #f7f0f3;
  --app-ink: #49323d;
  --ease: cubic-bezier(0.22, 0.72, 0.24, 1);
  --ui: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 520px at 74% 48%, rgba(196, 136, 118, 0.11), transparent 72%),
    radial-gradient(560px 440px at 22% 30%, rgba(212, 163, 134, 0.05), transparent 70%);
}

.showcase-stage {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(28px, 4vh, 48px) clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto;
  align-items: stretch;
  gap: clamp(32px, 5vw, 84px);
}

/* 左侧文案展示栏 */
.editorial-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 4px 0;
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 28px;
}

.index-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 244, 236, 0.26);
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 220ms var(--ease), color 220ms var(--ease), transform 180ms var(--ease);
}

.index-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.index-badge:active {
  transform: scale(0.95);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(243, 236, 231, 0.94);
  color: var(--bg);
  display: grid;
  place-items: center;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--text-main);
}

.brand-text span {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

/* 主体叙事文案 */
.hero-copy {
  margin: auto 0;
  padding: 24px 0 20px 68px;
  max-width: 540px;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}

.hero-copy.is-switching {
  opacity: 0.4;
  transform: translateY(4px);
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.display-title {
  margin: 0 0 24px;
  font-size: clamp(40px, 4.3vw, 60px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.display-title span {
  display: block;
}

.lead-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
  max-width: 420px;
}

.rule-line {
  width: 100%;
  max-width: 420px;
  height: 1px;
  background: var(--border-subtle);
  margin: 34px 0 24px;
}

.chapter-block {
  max-width: 420px;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.chapter-tab {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.chapter-tab:hover {
  color: var(--text-main);
}

.chapter-tab.is-active {
  color: var(--accent);
  border-bottom-color: rgba(212, 163, 134, 0.55);
}

.chapter-sub {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 236, 231, 0.78);
}

.chapter-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
}

.editorial-footer {
  padding-left: 68px;
  max-width: 488px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

/* 右侧真机演示区 */
.device-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.phone-shell {
  width: 414px;
  height: clamp(660px, calc(100dvh - 124px), 820px);
  position: relative;
  flex-shrink: 0;
}

.phone-frame {
  width: 414px;
  height: 100%;
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(145deg, #332a25 0%, #1d1815 48%, #2a221d 100%);
  border: 1px solid rgba(255, 240, 228, 0.16);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.62),
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px #120f0d;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: var(--app-surface);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ios-statusbar {
  height: 36px;
  padding: 10px 24px 0;
  background: var(--app-surface);
  color: var(--app-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  user-select: none;
}

.status-time {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--app-ink);
}

.status-icons svg {
  display: block;
  fill: currentColor;
}

.icon-signal {
  width: 16px;
  height: 11px;
}

.icon-wifi {
  width: 14px;
  height: 11px;
}

.icon-battery {
  width: 23px;
  height: 11px;
}

.phone-iframe {
  width: 100%;
  height: 0;
  min-height: 0;
  flex: 1;
  border: 0;
  display: block;
  background: var(--app-surface);
}

.ios-homebar {
  height: 18px;
  background: var(--app-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-homebar span {
  width: 124px;
  height: 4.5px;
  border-radius: 999px;
  background: rgba(73, 50, 61, 0.22);
}

.device-caption {
  width: 414px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* 响应式：中窄屏自动切换为上下两栏 */
@media (max-width: 760px) {
  .showcase-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 28px 24px 40px;
    gap: 36px;
  }

  .editorial-col {
    width: 100%;
    max-width: 560px;
    gap: 28px;
  }

  .hero-copy,
  .editorial-footer {
    padding-left: 0;
  }

  .hero-copy {
    padding-top: 8px;
  }
}

@media (min-width: 761px) {
  .showcase-stage {
    width: min(1280px, 100%);
    grid-template-columns: minmax(0, 1fr) 462px;
    align-items: stretch;
    gap: 70px;
    padding: 40px 70px 76px;
  }
  .hero-copy { padding-left: 0; }
  .editorial-footer { padding-left: 0; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .showcase-stage { grid-template-columns: minmax(0, 1fr) 414px; gap: 24px; padding-left: 38px; padding-right: 30px; }
  .display-title { font-size: 43px; }
}

@media (max-width: 520px) {
  .editorial-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
