:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f3f5f8;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e9ef;
  --line-strong: #d8dee6;
  --brand: #1e60d6;
  --brand-deep: #0d3f93;
  --brand-soft: #e8f0fc;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: min(1180px, calc(100vw - 32px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
main { display: block; }

.container { width: var(--container); margin: 0 auto; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead { font-size: 1.02rem; line-height: 1.7; color: var(--muted); margin: 0 0 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand strong { display: block; font-size: 1rem; line-height: 1.2; }
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 160ms ease;
}

.site-nav a:hover { color: var(--text); background: var(--surface-soft); }
.site-nav a.active { color: var(--brand); background: var(--brand-soft); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

/* ===== Buttons ===== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 160ms ease;
  cursor: pointer;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-sm);
}
.button-primary:hover { background: var(--brand-deep); }

.button-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
}
.button-secondary:hover { border-color: var(--brand); color: var(--brand); }

.button-danger { color: #fff; background: #dc2626; }

/* ===== Cards ===== */
.card,
.hero-copy,
.panel-surface,
.qr-card,
.info-card,
.detail-card,
.player-card,
.step-card,
.video-card,
.category-card,
.filter-bar,
.empty-state,
.video-mini-card,
.page-hero.compact .container {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ===== Hero ===== */
.hero-section, .poster-hero, .page-hero { padding: 48px 0 24px; }

.hero-grid, .poster-grid, .detail-grid, .split-grid {
  display: grid;
  gap: 24px;
}

.hero-grid { grid-template-columns: 1.3fr 0.7fr; align-items: stretch; }

.hero-copy, .panel-surface, .detail-card, .empty-state { padding: 32px; }

.hero-copy h1,
.page-hero h1,
.poster-copy h1,
.detail-card h1 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.metric-row article {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.metric-row strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.metric-row span,
.card-content p,
.info-card p,
.step-card p,
.detail-card p,
.empty-state p { color: var(--muted); }

.panel-surface {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, var(--brand-soft), var(--surface));
}

.feature-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 700;
}

/* ===== Sections ===== */
.section { padding: 28px 0 56px; }

.section-soft { background: var(--surface-soft); }

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

.section-heading h2,
.poster-copy h2,
.info-card h2,
.detail-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  font-weight: 700;
}

/* ===== Category grid (2x2 blue cards) ===== */
.category-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.category-card {
  overflow: hidden;
  display: block;
  padding: 22px;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 20px;
  color: #fff;
  transition: transform 200ms ease, box-shadow 220ms ease;
  box-shadow: 0 6px 18px rgba(30, 96, 214, 0.18);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(30, 96, 214, 0.28);
  background: var(--brand-deep);
}

.video-card:hover,
.video-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.category-card h3 {
  margin: 0 0 14px;
  padding: 0 4px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.category-thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1326;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.category-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.category-thumb .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 200ms ease, background 200ms ease;
}

.category-card:hover .category-thumb .play-icon {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}

.category-thumb .play-icon::before {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 18px solid var(--brand-deep);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.card-content { padding: 18px 20px 20px; }

.card-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.card-content h3, .card-content h2 {
  margin: 6px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.card-content p { margin: 0; font-size: 0.92rem; line-height: 1.55; }

.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ===== Poster ===== */
.poster-grid { grid-template-columns: 1.25fr 0.75fr; align-items: stretch; }
.poster-copy { padding: 8px 0; }

.poster-pill-row, .chip-row, .tag-row, .contact-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.poster-pill-row span,
.tag-row span,
.contact-list a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.poster-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.step-card { padding: 22px; }

.step-card strong {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
}

.step-card h2 { margin: 14px 0 8px; font-size: 1.05rem; font-weight: 700; }
.step-card p { margin: 0; font-size: 0.9rem; line-height: 1.55; }

.qr-panel { display: flex; }

.qr-card {
  width: 100%;
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.qr-card img {
  width: min(240px, 100%);
  margin: 0 auto;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.qr-card h2 { margin: 4px 0; font-size: 1.05rem; }
.qr-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.qr-card small { color: var(--muted); word-break: break-all; font-size: 0.78rem; }

/* ===== Split / info / mini ===== */
.split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card { padding: 28px; }
.video-mini-grid { display: grid; gap: 12px; margin-top: 14px; }

.video-mini-card {
  padding: 12px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
}

.video-mini-card img {
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-mini-card strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }
.video-mini-card span { color: var(--muted); font-size: 0.82rem; }

.contact-list { margin-top: 14px; }
.contact-list a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--surface);
}

/* ===== Page hero ===== */
.page-hero.compact { padding-bottom: 12px; }

.page-hero.compact .container {
  padding: 26px 30px;
}

/* ===== Filter bar ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 12px;
  margin-bottom: 18px;
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
}

.filter-bar input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.chip-row { margin: 0 0 22px; }

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: 160ms ease;
}

.chip:hover { border-color: var(--brand); color: var(--brand); }

.chip.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* ===== Video grid (poster-style cards with overlay) ===== */
.video-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.video-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0b1326;
}

.video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 400ms ease;
}

.video-card:hover .video-thumb img { transform: scale(1.04); }

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.video-thumb .overlay-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
}

.video-thumb .overlay-text h2,
.video-thumb .overlay-text strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 4px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.video-thumb .overlay-text p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.play-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  font-size: 0.78rem;
  font-weight: 600;
}

.play-badge::before {
  content: "▶";
  font-size: 0.7rem;
}

.video-card .card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.video-card .card-meta span:last-child { color: var(--brand); font-weight: 600; }

/* ===== Detail ===== */
.detail-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }

.detail-container {
  max-width: 1080px;
}

.detail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-top-bar .breadcrumbs {
  margin: 0;
}

.detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.detail-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-actions .button.is-copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.player-card { padding: 14px; }

.player-card .video-player,
.player-card .video-fallback img {
  border-radius: 10px;
  width: 100%;
  display: block;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #0b1326;
  display: block;
}

.video-fallback { overflow: hidden; border-radius: var(--radius-md); }
.video-fallback p { margin: 0; padding: 16px; color: var(--muted); background: var(--surface); }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}
.breadcrumbs a:hover { color: var(--brand); }

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 12px;
}

.detail-meta div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.detail-meta strong { display: block; margin-bottom: 4px; font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.detail-meta span { font-weight: 600; }

.tag-row { margin-top: 14px; }

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

/* ===== Footer ===== */
.site-footer {
  margin-top: 40px;
  padding: 32px 0 28px;
  background: #0b1326;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid h3 { margin: 6px 0 10px; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.05rem; }

.footer-grid .eyebrow { color: rgba(255, 255, 255, 0.6); }

.footer-grid a, .footer-grid p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-grid p a {
  display: inline;
  margin: 0;
}

.footer-grid a:hover { color: #fff; }

.footer-bottom {
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.contact-info {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.contact-info li { margin: 0; }

.contact-info strong {
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}

.contact-info a {
  color: var(--brand);
  text-decoration: none;
  word-break: break-all;
}

.contact-info a:hover { text-decoration: underline; }

.section-heading-end { justify-content: flex-end; }

/* ===== Back link ===== */
.back-bar {
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.back-link:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateX(-2px);
}

/* ===== Footer QR ===== */
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-qr-btn {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-block;
  transition: transform 180ms ease;
}

.footer-qr-btn:hover { transform: scale(1.04); }

.footer-qr img,
.footer-qr-btn img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  display: block;
}

/* ===== Share Modal (Xiaohongshu-style) ===== */
.share-modal[hidden] { display: none; }

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .share-modal { align-items: center; }
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.share-modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 22px 22px 28px;
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.25);
  animation: shareSlide 240ms ease;
}

@media (min-width: 640px) {
  .share-modal-sheet {
    border-radius: 18px;
    animation: shareFade 180ms ease;
  }
}

@keyframes shareSlide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes shareFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.share-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.share-modal-close:hover { color: var(--text); }

.share-modal-title {
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  border-radius: 12px;
  transition: background 160ms ease, transform 160ms ease;
}

.share-option:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.share-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.share-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.share-icon-copy svg {
  width: 24px;
  height: 24px;
}

.share-icon-wechat { background: #07c160; }
.share-icon-whatsapp { background: #25d366; }
.share-icon-copy { background: #3b82f6; }

.share-wechat-panel {
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 14px;
  text-align: center;
}

.share-wechat-panel[hidden] { display: none; }

.share-wechat-hint {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.share-wechat-qr img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: block;
  margin: 0 auto;
}

.share-link-preview {
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
  text-align: center;
}

.share-toast {
  margin: 12px 0 0;
  padding: 8px 14px;
  background: #10b981;
  color: #fff;
  text-align: center;
  border-radius: 999px;
  font-size: 0.85rem;
}

.share-toast[hidden] { display: none; }

/* ===== WeChat in-app share guide overlay ===== */
.wx-guide[hidden] { display: none; }

.wx-guide {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 20px 30px;
  color: #fff;
  cursor: pointer;
  animation: wxGuideFade 200ms ease;
}

@keyframes wxGuideFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wx-guide-arrow {
  width: 80px;
  height: 100px;
}

.wx-guide-arrow svg {
  width: 100%;
  height: 100%;
}

.wx-guide-text {
  margin: 12px 30px 0 0;
  font-size: 1rem;
  line-height: 1.7;
  text-align: right;
  max-width: 70vw;
}

.wx-guide-text strong {
  font-size: 1.4rem;
  color: #ffd166;
  letter-spacing: 2px;
}

.wx-guide-tip {
  margin: 24px 0 0;
  align-self: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== QR Modal ===== */
.qr-modal[hidden] { display: none; }

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.qr-modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  width: min(320px, calc(100vw - 32px));
  text-align: center;
  box-shadow: 0 20px 60px rgba(13, 63, 147, 0.3);
  animation: qrPop 200ms ease;
}

@keyframes qrPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.qr-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.qr-modal-close:hover { color: var(--text); }

.qr-modal-title {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-transform: uppercase;
}

.qr-modal-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.qr-modal-hint {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ===== WhatsApp floating button ===== */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.18);
  z-index: 50;
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
  animation: whatsappPulse 2.4s ease-in-out infinite;
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
  display: block;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5), 0 6px 14px rgba(0, 0, 0, 0.22);
  outline: none;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50%      { box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

[dir="rtl"] .whatsapp-fab {
  right: auto;
  left: 24px;
}

@media (max-width: 720px) {
  .whatsapp-fab { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ===== Poster page (image-only) ===== */
.poster-page main { padding: 28px 0 60px; }

.poster-image-stage .container {
  width: min(960px, calc(100vw - 32px));
  text-align: center;
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(13, 63, 147, 0.18);
}

@media (max-width: 720px) {
  .poster-page main { padding: 16px 0 90px; }
  .poster-image { border-radius: 10px; }
}

.poster-enter-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 63, 147, 0.32);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.poster-enter-btn:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(13, 63, 147, 0.4);
}

.poster-enter-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.poster-enter-btn:hover .poster-enter-arrow {
  transform: translateX(3px);
}

[dir="rtl"] .poster-enter-btn {
  right: auto;
  left: 24px;
}

[dir="rtl"] .poster-enter-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .poster-enter-btn:hover .poster-enter-arrow {
  transform: scaleX(-1) translateX(3px);
}

.poster-stage .container {
  width: min(820px, calc(100vw - 32px));
}

.poster-board {
  background: #ffffff;
  border: 2px solid var(--brand);
  border-radius: 14px;
  padding: 56px 56px 0;
  box-shadow: 0 18px 50px rgba(13, 63, 147, 0.18);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.poster-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/haibao.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: -1;
  pointer-events: none;
}

.poster-board::after {
  display: none;
}

.poster-board-head { margin-bottom: 22px; }

.poster-headline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.poster-logo {
  height: clamp(48px, 6vw, 72px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.poster-headline {
  margin: 0;
  color: var(--brand);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  word-spacing: 0.04em;
}

.poster-subtitle {
  margin: 12px 0 0;
  color: var(--brand-deep, #0d3f93);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.poster-rule {
  display: block;
  width: 90px;
  height: 4px;
  margin: 18px 0 16px;
  background: var(--brand);
  border-radius: 2px;
}

.poster-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.poster-body {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: stretch;
  padding: 30px 0 60px;
  min-height: 560px;
}

.poster-text-card {
  background: transparent;
  /* border: 1.5px solid var(--brand); */
  border-radius: 6px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 320px;
}

.poster-text-card p { margin: 0; }
.poster-text-card:empty::before {
  content: "";
  display: block;
}

.poster-tower {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
}

.poster-footer {
  margin: 0 -56px;
  padding: 26px 56px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.poster-footer-text h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.poster-footer-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.poster-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 8px 10px 6px;
  border-radius: 6px;
  color: var(--brand-deep);
}

.poster-qr img {
  width: 110px;
  height: 110px;
  display: block;
}

.poster-qr-tip {
  margin: 8px 0 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--brand-deep);
  opacity: 0.75;
  text-align: center;
  max-width: 180px;
}

.poster-qr small {
  font-size: 0.72rem;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
  font-weight: 600;
}

@media (max-width: 720px) {
  .poster-board { padding: 32px 24px 0; }
  .poster-body {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px 0 28px;
    gap: 18px;
  }
  .poster-tower { display: none; }
  .poster-text-card {
    min-height: auto;
    padding: 0;
    width: 50%;
    max-width: 50%;
    font-size: 0.82rem;
    line-height: 1.6;
  }
  .poster-footer {
    margin: 0 -24px;
    padding: 14px 20px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .poster-footer-text { flex: 1; min-width: 0; }
  .poster-footer-text h2 { font-size: 1rem; }
  .poster-footer-text p { font-size: 0.78rem; }
  .poster-qr { align-self: center; padding: 6px 7px 4px; }
  .poster-qr img { width: 84px; height: 84px; }
  .poster-qr small { font-size: 0.66rem; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .video-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-steps,
  .split-grid,
  .detail-grid,
  .hero-grid,
  .poster-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: calc(100vw - 24px); }

  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 12px;
    left: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-nav.open { display: flex; }

  .hero-section, .poster-hero, .page-hero { padding: 28px 0 16px; }

  .hero-copy, .panel-surface, .detail-card, .info-card, .page-hero.compact .container {
    padding: 22px;
  }

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

  .metric-row,
  .category-grid,
  .video-grid,
  .related-grid,
  .poster-steps,
  .detail-meta { grid-template-columns: 1fr; }

  .filter-bar { flex-direction: column; }
  .video-mini-card { grid-template-columns: 90px 1fr; }
  .card-content, .step-card, .qr-card { padding: 18px; }

  .video-thumb .overlay-text h2,
  .video-thumb .overlay-text strong { font-size: 1.05rem; }

  .section-heading { flex-direction: column; align-items: flex-start; }
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
}
[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 12px;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.1);
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease;
}
.lang-trigger:hover {
  background: rgba(15, 23, 42, 0.12);
}
.lang-icon {
  font-size: 14px;
}
.lang-caret {
  font-size: 10px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.lang-switcher.open .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  color: #1f2937;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  display: none;
  z-index: 50;
}
[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
.lang-switcher.open .lang-menu {
  display: block;
}
.lang-menu li {
  list-style: none;
}
.lang-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}
.lang-menu li a:hover {
  background: #f1f5f9;
}
.lang-menu li a.active {
  background: #2563eb;
  color: #fff;
}

/* RTL adjustments */
[dir="rtl"] body {
  text-align: right;
}
[dir="rtl"] .site-nav a {
  text-align: right;
}
@media (max-width: 720px) {
  .lang-switcher {
    margin: 8px 0 0;
  }
  .lang-menu {
    right: 0;
  }
}
