/* ==========================================================================
   斯维斯远控 v4.1 · Apple Keynote Fullscreen & VisionOS Prismatic Stylesheet
   ========================================================================== */

:root {
  --bg-obsidian: #05060a;
  --bg-elevated: #0a0c14;
  --bg-glass: rgba(255, 255, 255, 0.042);
  --bg-glass-strong: rgba(14, 16, 24, 0.78);

  --prism-cyan: #38bdf8;
  --prism-cyan-bright: #67e8f9;
  --prism-blue: #3b82f6;
  --prism-indigo: #4f46e5;
  --prism-violet: #7c3aed;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-200: #fde68a;

  --text-primary: #f8fafc;
  --text-secondary: rgba(248, 250, 252, 0.76);
  --text-muted: rgba(248, 250, 252, 0.5);

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, "Courier New", monospace;

  --nav-h: 52px;
  --container-max: 1120px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   VisionOS 1px Optical Glass Surfaces & Prismatic Rim Refraction
   ========================================================================== */
.glass-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.062) 0%, rgba(16, 18, 27, 0.74) 48%, rgba(8, 9, 15, 0.88) 100%);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.07) 40%,
    rgba(56, 189, 248, 0.42) 76%,
    rgba(124, 58, 237, 0.58) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.glass-card--subtle {
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045) 0%, rgba(14, 16, 24, 0.78) 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.glass-card--subtle::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(56, 189, 248, 0.28) 80%,
    rgba(124, 58, 237, 0.42) 100%
  );
}

.prism-edge-glow {
  position: relative;
  overflow: hidden;
}

.prism-edge-glow::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0) 0%,
    rgba(139, 92, 246, 0.9) 24%,
    rgba(103, 232, 249, 1) 50%,
    rgba(59, 130, 246, 0.9) 76%,
    rgba(124, 58, 237, 0) 100%
  );
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.75);
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================================
   Ultra-Clean Apple 52px Translucent Top Navigation Bar
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(5, 6, 10, 0.56);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-svg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.2));
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.brand-ver {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--prism-cyan-bright);
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  background: none;
  border: none;
  padding: 6px 2px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.74);
  transition: color 0.18s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--prism-cyan), var(--prism-violet));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-nav-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #080a10;
  background: #ffffff;
  box-shadow: 0 2px 14px rgba(56, 189, 248, 0.22);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.btn-nav-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.42);
}

.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 8px);
  left: 14px;
  right: 14px;
  z-index: 99;
  padding: 14px;
  border-radius: 18px;
  background: rgba(10, 12, 18, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer.is-open {
  display: flex;
}

.mobile-drawer-item {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   View Switching
   ========================================================================== */
.app-view {
  display: none;
  animation: viewFadeIn 0.3s ease;
}

.app-view.is-active {
  display: block;
}

@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MONUMENTAL APPLE FULLSCREEN HERO (100vw x 100vh)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 22px) 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: #040508;
}

/* Layer 1: Bespoke 16:9 Studio Obsidian & Prismatic Glass Backdrop */
.hero-bg-photo {
  position: absolute;
  inset: -3%;
  background-image: url('./assets/hero_prism_bg.png');
  background-size: cover;
  background-position: center 62%;
  background-repeat: no-repeat;
  opacity: 0.92;
  transform-origin: center 65%;
  animation: bgBreathe 22s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}

@keyframes bgBreathe {
  0% { transform: scale(1.0) translate3d(0, 0, 0); }
  100% { transform: scale(1.055) translate3d(-0.8%, -1.2%, 0); }
}

/* Subtle top/center readability scrim keeping lower sculpted glass luminous */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 54% at 50% 42%, rgba(4, 5, 9, 0.62) 0%, rgba(4, 5, 9, 0.16) 72%, transparent 100%),
    linear-gradient(180deg, rgba(4, 5, 8, 0.72) 0%, rgba(4, 5, 8, 0.12) 48%, rgba(4, 5, 8, 0.62) 100%);
  pointer-events: none;
}

/* Layer 2: Real-Time Animated Prismatic Light Canvas */
#prismCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

/* Layer 3: Animated Traveling Horizon Beam */
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.18) 0%,
    rgba(59, 130, 246, 0.85) 22%,
    rgba(103, 232, 249, 1) 50%,
    rgba(139, 92, 246, 0.9) 78%,
    rgba(124, 58, 237, 0.18) 100%
  );
  background-size: 200% 100%;
  animation: horizonFlow 7s linear infinite;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.68), 0 0 60px rgba(124, 58, 237, 0.45);
  pointer-events: none;
}

@keyframes horizonFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero-spacer {
  height: 8px;
  flex-shrink: 0;
}

.hero-center {
  position: relative;
  z-index: 5;
  max-width: 880px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrap {
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 32px rgba(245, 158, 11, 0.24));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(253, 230, 138, 0.92);
  margin-bottom: 14px;
}

.amber-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 12px var(--amber-400);
  flex-shrink: 0;
}

.hero-headline {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 82px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.hero-headline-gradient {
  display: block;
  margin-top: 6px;
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, #ffffff 8%, #bae6fd 48%, #c4b5fd 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 20px 0 32px;
  max-width: 640px;
  font-size: clamp(15.5px, 1.45vw, 19.5px);
  line-height: 1.65;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.82);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* Sleek Apple Pill Buttons */
.btn-apple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: #06080f;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow:
    0 12px 36px rgba(56, 189, 248, 0.28),
    0 2px 12px rgba(124, 58, 237, 0.22);
  transition: transform 0.22s ease, box-shadow 0.25s ease;
}

.btn-apple-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 46px rgba(56, 189, 248, 0.45),
    0 6px 24px rgba(124, 58, 237, 0.34);
}

.btn-apple-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(14, 16, 26, 0.56);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.btn-apple-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(103, 232, 249, 0.6);
}

.hero-whisper-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-size: 12.5px;
  color: rgba(248, 250, 252, 0.64);
}

.hero-whisper-meta strong {
  color: rgba(248, 250, 252, 0.92);
  font-weight: 600;
}

.btn-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 600;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.btn-copy-chip:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
}

/* Bottom Keynote Metrics Dock */
.hero-bottom-dock {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 900px;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.keynote-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  padding: 14px 10px;
  border-radius: 999px;
  background: rgba(8, 10, 17, 0.52);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.metric-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-cell:last-child {
  border-right: none;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.metric-label {
  font-size: 12px;
  color: rgba(248, 250, 252, 0.62);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.54);
  transition: color 0.2s ease;
}

.scroll-cue:hover {
  color: #ffffff;
}

/* ==========================================================================
   Cinema-Scale Product Showcase (#showcase)
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--prism-cyan-bright);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
}

.section-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.cinema-stage-wrap {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.cinema-floor-glow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -48px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.42) 0%, rgba(124, 58, 237, 0.34) 48%, transparent 74%);
  filter: blur(44px);
  pointer-events: none;
  z-index: 0;
}

.cinema-display {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(12, 14, 22, 0.85) 100%);
}

.cinema-viewport {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #07080d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cinema-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.24s ease, transform 0.35s ease;
}

.cinema-viewport:hover img {
  transform: scale(1.01);
}

.cinema-controls {
  position: relative;
  z-index: 2;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.segmented-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stage-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.stage-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.stage-tab.is-active {
  color: #07090f;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.cinema-caption {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* ==========================================================================
   Spacious Apple Editorial Bento Grid (#features)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-tile {
  grid-column: span 4;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.24s ease;
}

.bento-tile:hover {
  transform: translateY(-3px);
}

.bento-tile--wide {
  grid-column: span 6;
  padding: 28px;
  gap: 16px;
}

.bento-kpi {
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #ffffff 10%, #bae6fd 58%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.bento-kpi--amber {
  background: linear-gradient(95deg, #fde68a 10%, #fbbf24 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bento-tile h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.bento-tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.bento-shot {
  margin-top: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #08090e;
  cursor: zoom-in;
}

.bento-shot img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.bento-tile:hover .bento-shot img {
  transform: scale(1.02);
}

/* ==========================================================================
   Grand Single-File Download & Integrity Card (#download)
   ========================================================================== */
.download-card {
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: center;
}

.download-preview {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #08090e;
  cursor: zoom-in;
}

.download-preview img {
  width: 100%;
  height: auto;
}

.included-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.included-chip {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.spec-cell {
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.spec-value {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.hash-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(6, 7, 12, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.26);
  margin-bottom: 22px;
}

.hash-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--prism-cyan-bright);
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Built-In Illustrated User Guide (使用教程)
   ========================================================================== */
.tutorial-shell {
  padding-top: calc(var(--nav-h) + 34px);
  padding-bottom: 84px;
  position: relative;
}

.tutorial-aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 440px;
  background:
    radial-gradient(ellipse 60% 55% at 25% 15%, rgba(56, 189, 248, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 55% at 75% 15%, rgba(124, 58, 237, 0.2), transparent 70%);
  pointer-events: none;
}

.tutorial-banner {
  padding: 28px 32px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tutorial-banner h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
}

.tutorial-banner p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.toc-panel {
  position: sticky;
  top: calc(var(--nav-h) + 18px);
  padding: 16px;
}

.toc-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px 8px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.toc-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.toc-link.is-active {
  color: #fff;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.36);
}

.toc-num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--amber-200);
  flex-shrink: 0;
}

.tutorial-chapters {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chapter-card {
  padding: 28px 30px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.chapter-head {
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chapter-num-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--amber-200);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.32);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.chapter-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: #fff;
}

.chapter-lead {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.step-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.2px;
  color: var(--text-secondary);
}

.step-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: var(--prism-cyan-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-list strong {
  color: #fff;
}

.tutorial-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tutorial-shot {
  margin: 14px 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #08090e;
  cursor: zoom-in;
}

.tutorial-shot img {
  width: 100%;
  height: auto;
}

.tutorial-shot figcaption {
  padding: 9px 13px;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.copy-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 10px 0;
  border-radius: 12px;
  background: rgba(6, 7, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.copy-field code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-200);
  overflow-wrap: anywhere;
}

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.28);
  font-size: 13.5px;
  color: #fef3c7;
}

.callout--cyan {
  background: rgba(56, 189, 248, 0.09);
  border-color: rgba(56, 189, 248, 0.3);
  color: #e0f2fe;
}

.shortcut-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.shortcut-table th,
.shortcut-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shortcut-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--amber-200);
  font-weight: 700;
}

.shortcut-table tr:last-child td {
  border-bottom: none;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.45);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 15px 18px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-q:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-chevron {
  transition: transform 0.2s ease;
  color: var(--prism-cyan-bright);
  flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 13.8px;
  line-height: 1.72;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-a {
  display: block;
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--prism-cyan-bright);
}

/* ==========================================================================
   Footer, Lightbox & Toast
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(5, 6, 10, 0.94);
  padding: 34px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a,
.footer-links button {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover,
.footer-links button:hover {
  color: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 5, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 1120px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.lightbox-inner img {
  max-height: calc(90vh - 82px);
  width: auto;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 0 4px;
}

.lightbox-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 220;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(14, 16, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-bar {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 8px var(--amber-400);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-tile,
  .bento-tile--wide {
    grid-column: span 6;
  }

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

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

  .toc-panel {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
    z-index: 30;
    padding: 10px 12px;
  }

  .toc-title {
    display: none;
  }

  .toc-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    scrollbar-width: none;
  }

  .toc-list::-webkit-scrollbar {
    display: none;
  }

  .toc-link {
    white-space: nowrap;
    padding: 7px 12px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    padding: calc(var(--nav-h) + 18px) 16px 26px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
  }

  .btn-apple-primary,
  .btn-apple-ghost {
    width: 100%;
    padding: 13px 18px;
    font-size: 14px;
  }

  .keynote-metrics {
    grid-template-columns: 1fr;
    border-radius: 20px;
    gap: 10px;
    padding: 14px 12px;
  }

  .metric-cell {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0 10px;
  }

  .metric-cell:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .bento-tile,
  .bento-tile--wide {
    grid-column: span 12;
  }

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

  .chapter-card {
    padding: 20px 18px;
  }

  .download-card {
    padding: 22px 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg-photo,
  .hero-horizon,
  .app-view { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
