/* 言值蜕变营 — local static styles
   Colors: deep navy / navy / champagne gold — no crimson */

:root {
  --navy-deep: #1D2E5C;
  --navy: #0D3558;
  --navy-mid: #163A62;
  --navy-card: #1A3F6B;
  --navy-elevated: #234876;
  --gold: #EED5AB;
  --gold-soft: #E8C992;
  --gold-dim: rgba(238, 213, 171, 0.35);
  --text: #F5F7FA;
  --text-secondary: #B8C5D6;
  --text-muted: #8A9BB0;
  --border: rgba(238, 213, 171, 0.22);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 56px;
  --mobile-bar-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 960px;
  --focus: 0 0 0 3px rgba(238, 213, 171, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, #2A4A7A 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 40%, #0A2A48 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + var(--safe-top));
  padding-bottom: calc(var(--mobile-bar-h) + var(--safe-bottom) + 16px);
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--gold-soft); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: calc(8px + var(--safe-top));
}

/* —— Header / Nav —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(13, 53, 88, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-brand:hover { color: var(--gold-soft); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 12px;
  position: absolute;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0;
  right: 0;
  background: rgba(13, 53, 88, 0.98);
  border-bottom: 1px solid var(--border);
  display: none;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}

.nav-menu.is-open { display: flex; }

.nav-menu a {
  display: block;
  padding: 12px 16px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(238, 213, 171, 0.12);
  color: var(--gold);
}

/* —— Shared —— */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-lead {
  margin: 0 auto;
  max-width: 36em;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.block-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.block-hint {
  margin: -8px 0 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feedback-block {
  margin-bottom: 40px;
}

.placeholder-text {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
}

.placeholder-label {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px dashed var(--gold-dim);
  padding: 4px 10px;
  border-radius: 999px;
}

.placeholder-card {
  position: relative;
}

.placeholder-card::after {
  content: "待收录";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
  background: var(--gold-dim);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  pointer-events: none;
}

.muted { color: var(--text-muted); }
.muted-inline {
  font-size: 0.85em;
  color: var(--text-muted);
  font-weight: 400;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 36px 16px 40px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(238, 213, 171, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(45, 90, 140, 0.5), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.chip {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy-deep);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  line-height: 1.25;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.hero-teacher {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.hero-claims {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-claims li {
  padding: 12px 16px;
  background: rgba(26, 63, 107, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #E0C48E 100%);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover {
  color: var(--navy-deep);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-outline:hover {
  background: rgba(238, 213, 171, 0.12);
  color: var(--gold-soft);
}

.hero-ornament {
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
  opacity: 0.7;
}

/* —— Session strip —— */
.session-strip {
  padding: 0 16px 8px;
}

.session-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px;
  background: linear-gradient(160deg, var(--navy-card) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.session-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.session-heading {
  margin: 0;
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(238, 213, 171, 0.08);
}

.session-note {
  margin: 0 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.session-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 20px;
}

.session-item {
  padding: 14px 16px;
  background: rgba(13, 53, 88, 0.45);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

.session-item dt {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
}

.session-item dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 500;
}

.session-item .price {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.enroll-note {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--gold-dim);
}

/* —— Feedback —— */
.feedback {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.quote-card {
  padding: 24px 20px 20px;
  background: linear-gradient(165deg, var(--navy-elevated) 0%, var(--navy-card) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.quote-card--featured {
  min-height: 200px;
}

.quote-mark {
  margin: 0 0 4px;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  font-family: Georgia, serif;
}

.quote-card blockquote {
  margin: 0;
  flex: 1;
}

.quote-meta {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Screenshots */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.screenshot-item {
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius-sm);
  background: rgba(26, 63, 107, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: default;
  font-family: inherit;
  color: var(--text-muted);
  padding: 12px;
  min-height: 44px;
  transition: border-color 0.2s, background 0.2s;
}

.screenshot-item:not([disabled]) {
  cursor: pointer;
  border-style: solid;
}

.screenshot-item:not([disabled]):hover {
  border-color: var(--gold);
  background: rgba(35, 72, 118, 0.8);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.shot-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.shot-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.placeholder-shot:disabled {
  opacity: 0.85;
}

/* Stories */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.story-card {
  padding: 22px 18px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.story-title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--gold);
  padding-right: 56px;
}

/* Echoes */
.echo-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.echo-card {
  padding: 18px 16px;
  background: rgba(26, 63, 107, 0.7);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* More feedback */
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-quote {
  padding: 18px 14px;
  min-height: 100px;
  background: var(--navy-mid);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
}

/* Enrollment record */
.record-card {
  padding: 24px 20px;
  background: linear-gradient(145deg, var(--navy-elevated), var(--navy-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.record-tag {
  margin: 0 0 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
  padding-right: 64px;
}

.record-copy {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.record-sub {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.95rem;
}

.record-roles {
  margin: 0 0 16px;
  padding: 0 0 0 1.2em;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.record-roles li { margin-bottom: 4px; }

.record-disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px dashed var(--gold-dim);
}

/* —— Course intro —— */
.course-intro .intro-card {
  margin-bottom: 16px;
  padding: 24px 20px;
  background: linear-gradient(160deg, var(--navy-card) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.intro-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--gold);
}

.intro-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.intro-card p:last-child { margin-bottom: 0; }

.teacher-line {
  font-size: 1.05rem;
  color: var(--text) !important;
}

.claim-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.claim-list li {
  position: relative;
  padding: 10px 12px 10px 28px;
  margin-bottom: 8px;
  background: rgba(13, 53, 88, 0.4);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.claim-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.intro-card--muted {
  border-style: dashed;
  opacity: 0.92;
}

/* —— Footer —— */
.site-footer {
  padding: 40px 16px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 16px;
}

.footer-link:hover {
  background: rgba(238, 213, 171, 0.1);
}

.footer-brand {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer-muted {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* —— Mobile bottom bar —— */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 10px;
  padding: 10px 12px calc(10px + var(--safe-bottom));
  background: rgba(13, 53, 88, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.mobile-bar-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.mobile-bar-btn--gold {
  background: linear-gradient(135deg, var(--gold), #E0C48E);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.mobile-bar-btn:hover {
  filter: brightness(1.05);
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  background: rgba(8, 20, 40, 0.92);
}

.lightbox[hidden] { display: none; }

.lightbox-close {
  position: absolute;
  top: calc(12px + var(--safe-top));
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.lightbox-img {
  max-width: min(100%, 720px);
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.lightbox-caption {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

/* —— Desktop —— */
@media (min-width: 768px) {
  :root {
    --header-h: 60px;
  }

  body {
    padding-bottom: 32px;
  }

  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 8px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hero {
    padding: 56px 24px 64px;
  }

  .hero-claims {
    flex-direction: row;
    justify-content: center;
  }

  .hero-claims li {
    flex: 1;
    max-width: 280px;
  }

  .session-strip { padding: 0 24px 16px; }

  .session-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .session-item:nth-child(5),
  .session-item:nth-child(6) {
    grid-column: span 1;
  }

  .section-inner {
    padding: 64px 24px;
  }

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

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

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

  .echo-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .more-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-bar {
    display: none;
  }
}

@media (min-width: 960px) {
  .session-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
