/* 自托管拉丁字体（Manrope + DM Mono），中文走本地系统字体回退，零跨境外部请求 */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eff6ff;
  --surface-muted: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --line: #dbe4f0;
  --line-strong: #bfdbfe;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --accent-glow: rgba(37, 99, 235, 0.16);
  --mint: #059669;
  --mint-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.07) 0%, transparent 42%),
    linear-gradient(to right, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

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

/* ==================== LAYOUT SHELL ==================== */
.app-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 56px;
  position: relative;
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(191, 219, 254, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

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

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.25));
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.version-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 9999px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dark);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.version-pill-btn:hover {
  background: #dbeafe;
  border-color: var(--accent);
}

.v-chevron {
  transition: transform 0.2s ease;
}

.v-chevron.open {
  transform: rotate(180deg);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-text-link {
  padding: 7px 13px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-text-link:hover {
  color: var(--accent-dark);
  background: var(--surface-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15.5px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-soft);
  transform: translateY(-1px);
}

/* ==================== CHANGELOG POPOVER (复用 cmdc-pak 顶栏抽屉设计) ==================== */
.changelog-popover {
  position: absolute;
  top: 76px;
  left: 0;
  width: min(440px, 100%);
  z-index: 45;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
  padding: 18px 20px;
  display: none;
}

.changelog-popover.open {
  display: block;
  animation: popReveal 0.18s ease-out;
}

.changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.changelog-head strong {
  font-size: 15px;
  font-weight: 800;
}

.changelog-close {
  font-size: 18px;
  color: var(--subtle);
  padding: 2px 8px;
  border-radius: 8px;
}

.changelog-close:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.changelog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}

.changelog-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-ver {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--accent-dark);
}

.changelog-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--subtle);
}

.changelog-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

@keyframes popReveal {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================== HERO ==================== */
.hero-section {
  padding: 58px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--accent);
}

.hero-headline {
  margin: 0 0 18px;
  font-size: clamp(2.25rem, 4.1vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-description {
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.trust-chip strong {
  color: var(--ink);
}

/* 3D 物理倾角真实软件窗口卡 */
.hero-stage-slot {
  perspective: 1100px;
}

.hero-real-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2px solid var(--line-strong);
  padding: 14px;
  box-shadow: 0 28px 64px rgba(37, 99, 235, 0.14), 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out;
  will-change: transform;
}

.hero-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--subtle);
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  color: var(--accent-dark);
}

.hero-real-shot {
  border-radius: 14px;
  border: 1px solid var(--line);
  width: 100%;
  height: auto;
  background: #ffffff;
}

.hero-play-strip {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-play-strip span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-dark);
}

/* ==================== SECTION HEADER ==================== */
.section-block {
  margin-top: 76px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 26px;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-sub {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
  max-width: 680px;
}

/* ==================== VIDEO SHOWCASE SECTION ==================== */
.video-theater-grid {
  display: grid;
  grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.05);
  align-items: center;
}

.video-frame-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2.5px solid var(--accent);
  background: #0f172a;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.18);
  aspect-ratio: 3 / 4;
}

.video-frame-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chapter-btn {
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1.5px solid var(--line);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chapter-btn:hover,
.chapter-btn.active {
  background: var(--surface-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.chapter-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.chapter-btn h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.chapter-btn p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==================== REAL APP SCREENSHOT TABS ==================== */
.showcase-shell {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.showcase-tab {
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.showcase-tab:hover {
  color: var(--accent-dark);
  background: #ffffff;
  border-color: var(--line);
}

.showcase-tab.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.showcase-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 28px;
  padding: 28px;
  align-items: center;
}

.real-screen-viewport {
  position: relative;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  border: 1.5px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 410px;
}

.real-screen-viewport img {
  max-height: 460px;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.tray-floating-inset {
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid var(--accent);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.2);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tray-floating-inset.visible {
  display: flex;
}

.tray-floating-inset img {
  max-height: 170px;
  box-shadow: none;
  border-radius: 8px;
}

.tray-floating-inset span {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-dark);
}

.showcase-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-detail h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.showcase-detail p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-bullets {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.bullet-check {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  background: var(--surface-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==================== WORKFLOW & PERKS (复用 cmdc-pak WorkflowAndPerks 结构) ==================== */
.steps-and-perks-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
}

.panel-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
  padding: 28px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.04);
}

.panel-header h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1.5px solid var(--line-strong);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.step-body h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.step-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.perk-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perk-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}

.perk-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.perk-card h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 800;
}

.perk-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ==================== DOWNLOAD & VERIFY ==================== */
.download-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 2px solid var(--line-strong);
  padding: 32px;
  box-shadow: 0 24px 54px rgba(37, 99, 235, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.download-card > * {
  min-width: 0;
}

.download-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}

.meta-pill {
  padding: 5px 12px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
}

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

.checksum-box {
  min-width: 0;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid var(--line);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checksum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
}

.copy-btn {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
}

.copy-btn:hover {
  background: #dbeafe;
}

.checksum-hash {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.smartscreen-toggle {
  text-align: left;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-dark);
  padding: 4px 0;
}

.smartscreen-note {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}

.smartscreen-note.open {
  display: block;
}

/* ==================== FAQ ==================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-card {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1.5px solid var(--line);
  padding: 20px 22px;
}

.faq-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.faq-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ==================== FOOTER ==================== */
.site-footer {
  margin-top: 68px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--subtle);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .hero-section,
  .video-theater-grid,
  .showcase-stage,
  .steps-and-perks-grid,
  .download-card {
    grid-template-columns: 1fr;
  }

  .video-frame-wrap {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }

  .faq-grid,
  .video-chapters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    border-radius: 20px;
    padding: 10px 14px;
  }

  .nav-text-link {
    display: none;
  }

  .hero-section {
    padding-top: 32px;
  }

  .download-card,
  .panel-card,
  .video-theater-grid {
    padding: 20px;
  }

  .btn-lg {
    padding: 11px 18px;
    font-size: 14.5px;
  }

  .showcase-stage {
    padding: 18px;
  }

  .real-screen-viewport {
    min-height: 280px;
  }
}
