:root {
  --radius-2xl: 34px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.16);
  --shadow-md: 0 14px 30px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.08);
  --font-display: "Tencent Sans W7", "Tencent Sans W3", "TTTGB-Medium", "Microsoft YaHei UI", sans-serif;
  --font-body: "Tencent Sans W3", "TTTGB-Medium", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  transition:
    background 260ms ease,
    color 260ms ease;
}

html[data-theme="night"] {
  --bg:
    radial-gradient(circle at 12% 18%, rgba(108, 92, 255, 0.2), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(66, 153, 255, 0.2), transparent 26%),
    radial-gradient(circle at 64% 82%, rgba(158, 119, 237, 0.16), transparent 22%),
    linear-gradient(135deg, #07111f 0%, #111936 45%, #201b43 100%);
  --text: #eef2ff;
  --text-soft: rgba(226, 232, 255, 0.78);
  --text-faint: rgba(226, 232, 255, 0.56);
  --panel-bg: rgba(12, 20, 40, 0.56);
  --panel-bg-strong: rgba(10, 18, 36, 0.72);
  --panel-bg-soft: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.14);
  --panel-border-strong: rgba(128, 153, 255, 0.28);
  --accent: #7c8cff;
  --accent-2: #5ac8ff;
  --accent-3: #a855f7;
  --accent-4: #9b8cff;
  --accent-soft: rgba(124, 140, 255, 0.16);
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #fb7185;
  --button-text: #06111f;
  --button-bg: linear-gradient(135deg, #7c8cff 0%, #56ccf2 100%);
  --button-shadow: 0 16px 36px rgba(86, 204, 242, 0.22);
  --glow-a: rgba(90, 200, 255, 0.22);
  --glow-b: rgba(147, 112, 255, 0.22);
  --glow-c: rgba(106, 92, 255, 0.18);
  --noise-opacity: 0.14;
}

html[data-theme="day"] {
  --bg:
    radial-gradient(circle at 10% 12%, rgba(167, 191, 255, 0.42), transparent 24%),
    radial-gradient(circle at 84% 14%, rgba(123, 195, 255, 0.34), transparent 24%),
    radial-gradient(circle at 58% 88%, rgba(207, 169, 255, 0.24), transparent 20%),
    linear-gradient(140deg, #eef4ff 0%, #e8ecff 42%, #f5f0ff 100%);
  --text: #172554;
  --text-soft: rgba(30, 41, 90, 0.78);
  --text-faint: rgba(51, 65, 120, 0.54);
  --panel-bg: rgba(255, 255, 255, 0.58);
  --panel-bg-strong: rgba(248, 250, 255, 0.82);
  --panel-bg-soft: rgba(255, 255, 255, 0.72);
  --panel-border: rgba(124, 140, 255, 0.18);
  --panel-border-strong: rgba(124, 140, 255, 0.3);
  --accent: #5b67ff;
  --accent-2: #3aa6ff;
  --accent-3: #8b5cf6;
  --accent-4: #7c3aed;
  --accent-soft: rgba(91, 103, 255, 0.1);
  --success: #16a34a;
  --warning: #d97706;
  --danger: #e11d48;
  --button-text: #ffffff;
  --button-bg: linear-gradient(135deg, #5b67ff 0%, #7c3aed 100%);
  --button-shadow: 0 16px 36px rgba(91, 103, 255, 0.22);
  --glow-a: rgba(123, 195, 255, 0.42);
  --glow-b: rgba(167, 147, 255, 0.32);
  --glow-c: rgba(196, 181, 253, 0.26);
  --noise-opacity: 0.08;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  opacity: 0.25;
}

.scene-noise,
.scene-glow {
  position: fixed;
  pointer-events: none;
}

.scene-noise {
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.24) 0.8px, transparent 0.95px),
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.18) 0.8px, transparent 0.95px),
    radial-gradient(circle at 34% 78%, rgba(255, 255, 255, 0.14) 0.8px, transparent 0.95px);
  background-size: 24px 24px, 30px 30px, 18px 18px;
  opacity: var(--noise-opacity);
}

.scene-glow {
  border-radius: 999px;
  filter: blur(38px);
  opacity: 0.9;
}

.glow-a {
  top: 44px;
  left: 8vw;
  width: 220px;
  height: 220px;
  background: var(--glow-a);
}

.glow-b {
  top: 18vh;
  right: 7vw;
  width: 260px;
  height: 260px;
  background: var(--glow-b);
}

.glow-c {
  bottom: 10vh;
  left: 32vw;
  width: 240px;
  height: 240px;
  background: var(--glow-c);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
}

.app-shell {
  width: min(1320px, calc(100vw - 24px));
  margin: clamp(14px, 3vw, 30px) auto;
  position: relative;
}

.glass-panel {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, var(--panel-bg-soft), transparent),
    linear-gradient(155deg, var(--panel-bg), var(--panel-bg));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.glass-panel-strong {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(155deg, var(--panel-bg-strong), var(--panel-bg));
}

/* Fallback for browsers (如微信内置 WebView) 不支持 backdrop-filter */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass-panel {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(124, 140, 255, 0.22);
    box-shadow: var(--shadow-md);
  }

  html[data-theme="night"] .glass-panel {
    background: rgba(12, 18, 36, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .glass-panel-strong {
    background: rgba(255, 255, 255, 0.9);
  }

  html[data-theme="night"] .glass-panel-strong {
    background: rgba(12, 18, 36, 0.9);
  }

  .promo-offer {
    background: linear-gradient(145deg, rgba(124, 140, 255, 0.22), rgba(90, 200, 255, 0.12));
  }
}

.guide-frame {
  border-radius: 40px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

.shell-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.sidebar,
.content-column {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 30px;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  pointer-events: auto;
  z-index: 80;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 10px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(155deg, var(--panel-bg-strong), var(--panel-bg));
  border: 1px solid var(--panel-border-strong);
  box-shadow: 0 18px 32px rgba(91, 103, 255, 0.14);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eyebrow,
.metric-label,
.sidebar-foot-label,
.progress-label,
.command-label,
.choice-tag,
.faq-tag,
.resource-badge,
.step-nav-index,
.overview-label,
.hero-focus-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.eyebrow,
.progress-label,
.sidebar-foot-label,
.overview-label,
.hero-focus-label {
  color: var(--accent);
}

.brand-lockup h1,
.hero-copy h2,
.step h2,
.panel-title,
.resource-head h3,
.step-nav-copy strong,
.theme-toggle-copy strong,
.hero-focus strong {
  margin: 0;
  font-family: var(--font-display);
}

.brand-lockup h1 {
  font-size: 2.15rem;
  line-height: 1;
}

.sidebar-copy,
.metric-card p,
.hero-copy p,
.hero-focus p,
.step-hero p,
.info-card p,
.platform-card p,
.resource-card span,
.support-copy,
.note-strip p,
.sidebar-foot p,
.figure-card figcaption,
.quick-link span,
.faq-item p,
.plan-step p,
.plan-summary p,
.detail-card p,
.detail-card li {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.meta-ribbon,
.hero-focus-pills,
.hero-overview,
.plan-summary-head,
.plan-pills,
.step-actions,
.resource-head,
.hero-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-pill,
.hero-ai-tag,
.hero-chip,
.hero-focus-pills span,
.plan-pills span,
.plan-badge,
.faq-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--panel-border);
  background: var(--accent-soft);
}

.meta-pill,
.hero-chip,
.hero-focus-pills span,
.plan-pills span {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-ai-tag,
.meta-pill-ai,
.plan-badge {
  color: var(--accent-4);
  font-size: 0.8rem;
  font-weight: 800;
}

.metric-grid {
  display: grid;
  gap: 12px;
}

.metric-card,
.overview-card,
.info-card,
.plan-summary,
.plan-step,
.detail-card,
.resource-card,
.mini-command,
.hero-focus {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(155deg, var(--panel-bg-soft), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
}

.metric-card strong,
.overview-card strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 1rem;
}

.metric-label {
  color: var(--text-faint);
}

.step-nav {
  display: grid;
  gap: 8px;
}

.step-nav-button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  border-radius: 20px;
  background: transparent;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.step-nav-button:hover,
.choice-card:hover,
.quick-link:hover,
.button:hover,
.platform-card:hover,
.resource-card:hover,
.copy-button:hover,
.tab-button:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
}

.step-nav-button.is-active,
.step-nav-button:hover {
  background: var(--accent-soft);
  border-color: var(--panel-border-strong);
  box-shadow: var(--shadow-sm);
}

.step-nav-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  line-height: 1;
  text-align: center;
}

.step-nav-copy {
  display: grid;
  gap: 3px;
  align-content: center;
}

.step-nav-copy span {
  color: var(--text-faint);
  font-size: 0.84rem;
}

.sidebar-foot {
  padding: 16px 18px;
  border-radius: 20px;
}

.sidebar-close,
.mobile-sidebar-bar,
.mobile-sidebar-toggle,
.sidebar-backdrop {
  display: none;
}

.sidebar-close,
.mobile-sidebar-toggle {
  border: 1px solid var(--panel-border);
  background: linear-gradient(155deg, var(--panel-bg-soft), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-sm);
}

.sidebar-close {
  min-width: 68px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--text-soft);
  font-weight: 700;
  line-height: 1;
}

.mobile-sidebar-bar {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 24px;
}

.mobile-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mobile-sidebar-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
}

.mobile-brand-mark {
  width: 46px;
  height: 46px;
  padding: 8px;
  border-radius: 14px;
  flex-shrink: 0;
}

.mobile-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.mobile-sidebar-toggle-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
}

.mobile-sidebar-toggle-copy {
  white-space: nowrap;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(6, 12, 28, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

html[data-theme="day"] .sidebar-backdrop {
  background: rgba(95, 120, 180, 0.12);
}

.content-column {
  display: grid;
  gap: 18px;
}

.page-credit {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(90, 200, 255, 0.22), transparent 22%),
    radial-gradient(circle at 18% 20%, rgba(155, 123, 255, 0.18), transparent 18%);
}

.hero-toolbar,
.hero-layout,
.hero-overview,
.progress-panel {
  position: relative;
  z-index: 1;
}

.hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.hero-copy h2 {
  font-size: clamp(1.92rem, 4.4vw, 3.65rem);
  line-height: 0.98;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-copy p {
  margin-top: 14px;
  max-width: 62ch;
}

.hero-focus {
  display: grid;
  gap: 10px;
  align-content: start;
}

.hero-focus strong {
  font-size: 1.3rem;
  line-height: 1.1;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 18px;
  background: linear-gradient(155deg, var(--panel-bg-soft), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--panel-border-strong);
}

.theme-toggle-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.theme-toggle-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.theme-toggle-copy strong {
  font-size: 0.94rem;
  line-height: 1.1;
}

.theme-toggle-copy span {
  color: var(--text-faint);
  font-size: 0.78rem;
  line-height: 1.1;
}

.hero-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progress-panel {
  display: grid;
  gap: 10px;
}

.promo-offer {
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 28px;
  scroll-margin-top: 18px;
  background:
    linear-gradient(145deg, rgba(124, 140, 255, 0.12), rgba(90, 200, 255, 0.08)),
    linear-gradient(155deg, var(--panel-bg), var(--panel-bg));
  border: 1px solid var(--panel-border-strong);
  box-shadow: var(--shadow-md);
}

.promo-offer::before {
  content: "";
  position: absolute;
  inset: -24% 42% auto -8%;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 92, 92, 0.42), rgba(255, 92, 92, 0));
  filter: blur(36px);
  opacity: 0.9;
  pointer-events: none;
}

.promo-body {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(14px, 2vw, 22px);
  align-items: center;
}

.promo-copy-block {
  display: grid;
  gap: 12px;
  align-content: start;
}

.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--panel-border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.promo-chip::before {
  content: "★";
  font-size: 0.8rem;
}

.promo-title {
  margin: 0;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.1;
  font-family: var(--font-display);
}

.promo-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 46ch;
}

.promo-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.promo-note {
  color: var(--text-faint);
  font-weight: 700;
  font-size: 0.9rem;
}

.promo-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 92, 92, 0.18), transparent 32%),
    radial-gradient(circle at 72% 62%, rgba(90, 200, 255, 0.22), transparent 30%),
    linear-gradient(160deg, rgba(6, 11, 24, 0.9), rgba(9, 14, 28, 0.72));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-lg);
}

.promo-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-image-fallback {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 92, 92, 0.28), transparent 36%),
    radial-gradient(circle at 70% 70%, rgba(90, 200, 255, 0.26), transparent 34%),
    linear-gradient(160deg, rgba(6, 11, 24, 0.94), rgba(8, 12, 22, 0.76));
  display: grid;
  place-items: center;
}

.promo-image-fallback::after {
  content: "等待替换宣传图";
  color: var(--text-faint);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-text {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--panel-border);
}

.progress-bar {
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 40%, var(--accent-3) 100%);
  box-shadow: 0 0 20px rgba(124, 140, 255, 0.28);
  transition: width 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.step {
  display: none;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, var(--panel-bg-soft), transparent),
    linear-gradient(155deg, var(--panel-bg), var(--panel-bg));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.step.is-active {
  display: block;
  animation: step-fade 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.step-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.step-hero-wide {
  align-items: center;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.18), rgba(90, 200, 255, 0.18));
  border: 1px solid var(--panel-border-strong);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.step h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  text-wrap: balance;
}

.choice-grid,
.quick-grid,
.ordered-grid,
.platform-grid,
.resource-grid,
.command-grid {
  display: grid;
  gap: 16px;
}

.choice-grid,
.ordered-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  align-items: stretch;
}

.choice-grid,
.quick-grid,
.ordered-grid,
.platform-grid,
.resource-grid {
  grid-auto-rows: 1fr;
}

.choice-card,
.quick-link,
.tab-button,
.copy-button,
.button,
.platform-card,
.resource-card {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.choice-card,
.quick-link,
.platform-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  border-radius: 22px;
  background: linear-gradient(155deg, var(--panel-bg-soft), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  height: 100%;
}

.choice-card-highlight {
  border-color: var(--panel-border-strong);
  box-shadow: var(--shadow-sm);
}

.choice-card strong,
.quick-link strong,
.platform-card strong,
.resource-card strong {
  font-size: 1.06rem;
  line-height: 1.3;
}

.choice-tag {
  color: var(--accent);
}

.choice-card {
  min-height: 148px;
  align-content: center;
}

.quick-link {
  min-height: 110px;
  align-content: center;
}

.platform-card {
  min-height: 164px;
  align-content: center;
}

.content-stack,
.summary-grid,
.media-grid,
.command-stack,
.resource-stack,
.faq-stack,
.plan-shell,
.plan-steps,
.plan-detail {
  display: grid;
  gap: 20px;
}

.summary-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.content-panel {
  display: grid;
  gap: 24px;
  align-content: start;
  padding: 24px;
  border-radius: 28px;
}

.accent-panel {
  border-color: var(--panel-border-strong);
}

.panel-header {
  margin-bottom: 18px;
}

.panel-title {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.1;
}

.plain-list {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.info-index,
.resource-badge,
.plan-step-label {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.plan-step-label {
  width: auto;
  min-width: 68px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-head h3,
.info-card h3,
.faq-item h3,
.plan-step h4 {
  margin: 10px 0 6px;
  text-wrap: balance;
}

.info-card,
.resource-card,
.mini-command,
.detail-card,
.plan-step,
.plan-summary {
  height: 100%;
}

.info-card,
.mini-command,
.detail-card,
.plan-step,
.plan-summary,
.resource-card:not(.compact) {
  display: grid;
  gap: 8px;
}

.detail-card {
  align-content: start;
}

.media-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.figure-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  align-content: start;
}

.figure-card img {
  display: block;
  width: 100%;
  border-radius: 16px;
  cursor: zoom-in;
}

.screenshot-placeholder {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 22px 18px;
  border-radius: 16px;
  align-content: center;
  justify-items: start;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(91, 103, 255, 0.12), rgba(58, 166, 255, 0.08)),
    linear-gradient(155deg, var(--panel-bg-soft), rgba(255, 255, 255, 0.02));
  border: 1px dashed var(--panel-border-strong);
}

.screenshot-placeholder span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screenshot-placeholder strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.4;
}

.screenshot-placeholder small {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
  word-break: break-all;
}

.note-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
}

.note-strip strong {
  display: inline-flex;
  align-items: center;
  align-self: center;
  color: var(--warning);
  line-height: 1.2;
  min-height: 100%;
}

.platform-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.command-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(2, 6, 23, 0.85), rgba(15, 23, 42, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.command-card > div {
  min-width: 0;
}

html[data-theme="day"] .command-card {
  background: linear-gradient(155deg, rgba(236, 241, 255, 0.92), rgba(220, 231, 255, 0.82));
  border-color: rgba(91, 103, 255, 0.14);
}

.command-card code,
.mini-command code,
.faq-item code {
  font-family: var(--font-body);
}

.command-card code {
  display: block;
  margin-top: 8px;
  color: var(--accent-2);
}

.command-label {
  color: var(--text-faint);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 42px;
  padding: 0 16px;
  cursor: pointer;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.copy-button:hover {
  border-color: var(--panel-border-strong);
}

.support-panel {
  align-content: start;
}

.support-copy {
  margin-top: 10px;
  margin-bottom: 20px;
}

.faq-item {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border-radius: 24px;
}

.faq-tag {
  justify-self: start;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 0;
  padding: 0 14px 0 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.faq-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}

.faq-tag-danger {
  color: var(--danger);
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.22);
}

.faq-tag-info {
  color: var(--accent-2);
  background: rgba(90, 200, 255, 0.12);
  border-color: rgba(90, 200, 255, 0.22);
}

.faq-tag-warn {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.24);
}

.command-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  align-items: stretch;
}

.mini-command {
  align-content: center;
  min-height: 84px;
}

.mini-command span {
  font-size: 0.92rem;
  font-weight: 700;
}

.mini-command code {
  color: var(--accent);
}

#step-6 .faq-stack + .content-panel {
  margin-top: 20px;
}

.command-panel {
  gap: 18px;
}

.command-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--panel-border);
}

.command-panel-head .panel-title {
  text-wrap: balance;
}

.command-panel-tip {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mini-command-action {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.mini-command-action:hover {
  transform: translateY(-2px);
  border-color: var(--panel-border-strong);
  box-shadow: var(--shadow-sm);
}

.mini-command-action:active {
  transform: translateY(0);
}

.mini-command-title {
  display: block;
}

.mini-command-hint {
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-border);
  color: var(--text);
  font-weight: 800;
  line-height: 1;
}

.tab-button.is-active,
.tab-button:hover {
  background: var(--accent-soft);
  border-color: var(--panel-border-strong);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tab-fade 300ms ease;
}

.detail-card ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.detail-card .step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  margin-top: 8px;
}

.detail-card .button {
  width: 100%;
}

.resource-stack {
  gap: 24px;
}

.resource-group {
  display: grid;
  gap: 16px;
}

.resource-badge-green {
  color: var(--success);
}

.resource-badge-violet {
  color: var(--accent-4);
}

.resource-card.compact {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 78px;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.button-wide {
  width: 100%;
}

.button-primary {
  color: var(--button-text);
  background: var(--button-bg);
  box-shadow: var(--button-shadow);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--panel-border);
}

.step-actions {
  justify-content: space-between;
  margin-top: 22px;
  gap: 14px;
}

.step-actions-center {
  justify-content: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 8, 18, 0.74);
  backdrop-filter: blur(12px);
  z-index: 40;
}

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

.lightbox img {
  display: block;
  max-width: min(92vw, 1180px);
  max-height: 86vh;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(155deg, var(--panel-bg-strong), var(--panel-bg));
  border: 1px solid var(--panel-border);
  color: var(--text);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

@keyframes step-fade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tab-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .shell-grid,
  .summary-grid,
  .hero-layout,
  .promo-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 900px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .mobile-sidebar-bar,
  .sidebar-close,
  .sidebar-backdrop {
    display: flex;
  }

  .sidebar-backdrop {
    display: block;
  }

  body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 12px;
    left: 12px;
    bottom: 12px;
    z-index: 120;
    width: min(86vw, 340px);
    max-width: 340px;
    max-height: calc(100vh - 24px);
    height: calc(100vh - 24px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    transform: translateX(calc(-100% - 28px));
    transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-header {
    align-items: center;
  }

  .content-column {
    order: 1;
  }

  .mobile-sidebar-bar {
    display: flex;
  }
}

@media (max-width: 860px) {
  .choice-grid,
  .ordered-grid,
  .media-grid-two,
  .resource-grid,
  .command-grid,
  .hero-overview {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-image {
    order: -1;
  }

  .detail-card .step-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100vw - 12px, 1320px);
  }

  .guide-frame {
    padding: 12px;
    border-radius: 28px;
  }

  .sidebar,
  .mobile-sidebar-bar,
  .hero-panel,
  .step,
  .content-panel {
    padding: 18px;
  }

  .mobile-sidebar-bar {
    gap: 10px;
  }

  .mobile-sidebar-brand strong {
    font-size: 0.94rem;
  }

  .mobile-sidebar-toggle {
    min-height: 44px;
    padding: 0 12px;
  }

  .hero-toolbar,
  .step-hero,
  .note-strip,
  .progress-copy,
  .step-actions,
  .command-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .copy-button,
  .lightbox-close,
  .theme-toggle {
    width: 100%;
  }

  .sidebar {
    width: min(90vw, 340px);
    left: 8px;
    top: 8px;
    bottom: 8px;
    max-height: calc(100vh - 16px);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .step.is-active,
  .tab-panel.is-active {
    animation: none;
  }

  .step-nav-button,
  .choice-card,
  .quick-link,
  .button,
  .platform-card,
  .resource-card,
  .tab-button,
  .copy-button,
  .sidebar,
  .sidebar-backdrop,
  .theme-toggle,
  .progress-bar,
  .toast,
  body {
    transition: none;
  }
}
