:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --surface-tint: #eff6ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --teal: #0f766e;
  --teal-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Top Navigation (Strict 3-zone, clean single row) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(29, 78, 216, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 2px;
  position: relative;
  transition: color 0.16s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface-tint);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding: 0 12px;
}

.btn-ghost:hover {
  color: var(--primary);
  background: var(--surface-tint);
}

.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 12px;
}

/* ── Section 1: Concise Hero ── */
.hero {
  padding: 52px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.22fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 14px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.hero-point strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.hero-point span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-media {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.hero-media-caption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-media-caption strong {
  color: var(--ink-2);
  font-weight: 600;
}

/* ── Section 2: Student Desk Animation Cinema ── */
.section {
  padding: 68px 0;
  scroll-margin-top: 76px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.cinema-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cinema-scene-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 18px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.scene-switch-group {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  background: var(--bg);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.scene-switch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  transition: all 0.16s ease;
  text-align: center;
}

.scene-btn-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
  white-space: nowrap;
}

.scene-btn-sub {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}

.scene-switch-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.scene-switch-btn.active {
  background: #ffffff;
  color: var(--primary);
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.1);
}

.scene-switch-btn.active .scene-btn-sub {
  color: #2563eb;
}

.scene-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.scene-meta-note {
  font-size: 13px;
  color: var(--muted);
}

.cinema-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  touch-action: none;
}

.cinema-stage-svg,
.cinema-stage-svg svg {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.cinema-stage-svg.try-mode {
  cursor: crosshair;
}

.cinema-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.step-tabs {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 280px;
  overflow-x: auto;
  scrollbar-width: none;
}

.step-tabs::-webkit-scrollbar {
  display: none;
}

.step-tab {
  position: relative;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  transition: all 0.15s ease;
}

.step-tab:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.step-tab.active {
  background: var(--surface-tint);
  border-color: #93c5fd;
  color: var(--primary);
}

.step-tab .step-num {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

.step-tab .step-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--primary);
}

.ctrl-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.ctrl-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.ctrl-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.cinema-caption {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.caption-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.caption-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.caption-text {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}

.caption-hint {
  font-size: 12.5px;
  color: var(--teal);
  font-weight: 600;
}

/* ── Section 3: Concise 3 Entry Cards ── */
.entry-section {
  padding: 20px 0 80px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: var(--shadow-md);
}

.entry-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 10px;
}

.entry-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

.entry-card p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.entry-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Download Center Specific Styles ── */
.dl-hero {
  padding: 44px 0 36px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.dl-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.dl-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.dl-hero p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 680px;
}

.version-stamp {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.version-stamp strong {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.matcher-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface-tint);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.option-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.option-btn {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  transition: all 0.15s ease;
}

.option-btn:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}

.option-btn.selected {
  border-color: var(--primary);
  background: var(--surface-tint);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.option-btn strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.option-btn small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.rec-mode-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.rec-mode-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.rec-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal);
}

.rec-headline {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.rec-why {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--ink-2);
}

.rec-pkg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.rec-pkg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.rec-pkg-meta strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.rec-pkg-meta small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.rec-tip-box {
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--teal-soft);
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 13.5px;
  line-height: 1.6;
}

.rec-opt-note {
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--amber-soft);
  border: 1px solid #fde68a;
  color: var(--amber);
  font-size: 13px;
  line-height: 1.55;
}

.rec-footer-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pkg-card.highlighted {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.pkg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.pkg-platform {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.pkg-rec-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
}

.pkg-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--ink);
}

.pkg-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 10px;
}

.pkg-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.pkg-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.pkg-file-info {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Logic Matrix Table */
.logic-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.logic-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 14px;
}

.logic-table th,
.logic-table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.logic-table th {
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.logic-table tr:last-child td {
  border-bottom: 0;
}

.logic-table td strong {
  color: var(--ink);
}

/* Download Feedback Toast */
.dl-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  max-width: 400px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  display: none;
}

.dl-toast.show {
  display: block;
}

.dl-toast-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dl-toast-body {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
}

/* ── Footer ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-brand strong {
  color: var(--ink);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-2);
}

.footer-links a:hover {
  color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid,
  .matcher-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .entry-grid,
  .pkg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 28px);
  }

  .header-inner {
    height: 60px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding: 32px 0 40px;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section {
    padding: 44px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .entry-grid,
  .pkg-grid,
  .option-grid-2 {
    grid-template-columns: 1fr;
  }

  .cinema-scene-bar {
    padding: 12px;
    gap: 8px;
  }

  .scene-switch-group {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px;
    width: 100%;
  }

  .scene-switch-group::-webkit-scrollbar {
    display: none;
  }

  .scene-switch-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 6px 12px;
  }

  .scene-btn-title {
    font-size: 12.5px;
  }

  .scene-btn-sub {
    font-size: 10.5px;
  }

  .cinema-controls {
    padding: 12px;
  }

  .cinema-caption {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .caption-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .btn-ghost {
    display: none;
  }
}
