:root {
  --bg: #0f1115;
  --bg-2: #161a22;
  --paper: #1c222d;
  --paper-2: #232a38;
  --ink: #eef2f7;
  --muted: #9aa3b2;
  --line: #2c3444;
  --accent: #ff6b3d;
  --accent-2: #3dd6c6;
  --good: #4ade80;
  --warn: #fbbf24;
  --header: 68px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 107, 61, 0.18), transparent 60%),
    radial-gradient(900px 400px at 10% 0%, rgba(61, 214, 198, 0.12), transparent 55%),
    var(--bg);
  font-family: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

html[lang="zh"] body {
  font-family: "Noto Sans SC", "PingFang SC", "Source Sans 3", sans-serif;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(15, 17, 21, 0.82);
  border-bottom: 1px solid rgba(44, 52, 68, 0.9);
  backdrop-filter: blur(14px);
}

.bar .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ff9a6b);
  color: #111;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 14px;
}

html[lang="zh"] .logo,
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] .price {
  font-family: "Noto Serif SC", "Source Serif 4", serif;
}

.jump {
  display: flex;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.jump a:hover { color: var(--ink); }

.lang {
  display: flex;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lang a { color: var(--muted); }
.lang a.here {
  color: var(--ink);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff7a4d, #ff5a2e);
  color: #111;
  box-shadow: 0 10px 30px rgba(255, 90, 46, 0.25);
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover { border-color: #4a5568; background: rgba(255,255,255,0.03); }

.btn[disabled], .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 28px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
}

.lede {
  max-width: 36em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.trust span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--good);
  vertical-align: 2px;
}

.preview {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #2a2a2a;
  box-shadow: var(--shadow);
}

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

.sheet {
  margin: 0;
  background: #2a2a2a;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.sheet img,
.sheet .turn {
  width: 100%;
  height: auto;
  background: #2a2a2a;
}

.sheet figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: 13px;
}

.sheets {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.cast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 14px;
}

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

.cast figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a2a;
}

.cast img,
.cast .turn {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #2a2a2a;
}

.cast figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

.cast figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.rig-bad {
  color: #ff4d4d;
  font-weight: 700;
}

.preview-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.tile {
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 30% 20%, rgba(255,107,61,0.35), transparent 50%),
    linear-gradient(160deg, #2a3344, #171c26);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.tile:first-child { grid-row: 1 / span 2; }

.tile::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.preview-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,17,21,0.8);
  border: 1px solid var(--line);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding: 42px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

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

.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover { transform: translateY(-2px); border-color: #3d475c; }

.card.featured { box-shadow: var(--shadow); }

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,107,61,0.28), transparent 45%),
    linear-gradient(145deg, #30384a, #151922);
}

.card.featured .card-media {
  aspect-ratio: auto;
  background: #2a2a2a;
}

.card.featured .card-media img {
  height: auto;
  object-fit: contain;
}

.card-media span {
  position: absolute;
  inset: auto 14px 14px 14px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}


.detail-lead {
  max-width: 40em;
  margin: 10px 0 0;
  color: var(--muted);
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.shot-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a2a;
}

.shot-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #2a2a2a;
}

.shot-grid figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  flex: 1;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.badge.soon { color: var(--accent-2); }
.badge.free { color: var(--good); }

.card h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

html[lang="zh"] .card h3 {
  font-family: "Noto Serif SC", "Source Serif 4", serif;
}

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

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.card-foot {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 12px;
}

.buy-form {
  margin: 0;
}

.buy-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.card-foot .price,
.buy-bar .price {
  flex: 1 1 auto;
  min-width: 0;
}

.paypal-buy,
.checkout {
  position: relative;
  width: 280px;
  min-width: 240px;
  max-width: 100%;
  min-height: 45px;
  flex: 0 0 280px;
}

.purchase-disclosure {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--warn);
  background: rgba(251, 191, 36, 0.06);
  color: #d9cba9;
  font-size: 13px;
  line-height: 1.6;
}
.checkout-email-label { color: var(--muted); font-size: 12px; }
.checkout-email-label input { margin-top: 5px; }
.checkout-download { text-align: center; }

.checkout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #12161e;
  color: var(--ink);
  font: inherit;
}

.checkout .checkout-next:disabled { opacity: 0.6; cursor: wait; }

.checkout .checkout-next.is-waiting,
.checkout .checkout-next.is-waiting:disabled {
  background: var(--paper-2);
  color: var(--muted);
  opacity: 1;
  cursor: default;
}

.checkout-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.checkout-next {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  padding: 12px 14px;
  cursor: pointer;
}

.paypal-slot { width: 100%; }

.paypal-buy .item-header,
.paypal-buy .item-description,
.paypal-buy .paypal-card-art {
  display: none !important;
}

.paypal-buy [id^="form-container-"],
.paypal-buy [id^="paypal-form-fields-container-"] {
  height: auto !important;
  min-height: 0 !important;
}

.price {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.price small {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-family: "Source Sans 3", "Noto Sans SC", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

.panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel-main, .panel-side {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 22px;
}

.panel-main h2, .panel-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.specs li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(44,52,68,0.8);
}

.specs em {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,107,61,0.12);
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
}

.specs strong { display: block; margin-bottom: 4px; }
.specs span { color: var(--muted); font-size: 14px; }

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.checklist li:last-child { border-bottom: 0; }

.checklist li::before {
  content: "✓";
  color: var(--good);
  font-weight: 700;
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.free-card {
  border-radius: var(--radius);
  border: 1px dashed #3d475c;
  background: rgba(255,255,255,0.02);
  padding: 18px;
}

.free-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
}

.free-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.split h2 { margin: 0; font-size: 24px; }

.plain {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.plain li:last-child { border-bottom: 0; }

.cta {
  margin: 18px 0 56px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 180px at 90% 0%, rgba(255,107,61,0.18), transparent 60%),
    linear-gradient(135deg, #1a2030, #12161f);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cta h2 { margin: 0 0 8px; font-size: 28px; }
.cta p { margin: 0; color: var(--muted); }

.foot {
  border-top: 1px solid var(--line);
  background: #0c0e12;
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.foot a,
.checkout-recover a {
  text-decoration: underline;
}

.checkout-recover {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.recover {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.recover label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.recover input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #12161e;
  color: var(--ink);
  font: inherit;
}

.recover .checkout-next {
  width: fit-content;
}

@media (max-width: 900px) {
  .wrap { width: min(1160px, calc(100% - 32px)); }
  .jump { display: none; }
  .hero, .catalog, .panel, .free-grid, .split, .cta, .shot-grid {
    grid-template-columns: 1fr;
  }
  .shot-grid, .cast, .cast.cast-7 { grid-template-columns: 1fr 1fr; }
  .hero { gap: 24px; padding-top: 36px; }
  .cta, .card-foot, .buy-bar { flex-direction: column; align-items: stretch; }
  .paypal-buy, .checkout { flex-basis: auto; width: min(100%, 320px); }
}
