:root {
  /* Light Theme Palette (Default) */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --panel: #ffffff;
  --line: #e2e8f0;
  --line-hover: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  
  /* Accents */
  --cyan: #0ea5e9; /* Electric Blue */
  --green: #10b981; /* Emerald/Teal */
  --cyan-glow: rgba(14, 165, 233, 0.15);
  --green-glow: rgba(16, 185, 129, 0.1);
  
  /* Gradients */
  --gradient: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  --text-gradient: linear-gradient(to right, #0f172a, #334155);
  --primary-gradient: linear-gradient(to right, #0ea5e9, #3b82f6);
  
  /* Shadows & Layout */
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(14, 165, 233, 0.12);
  --radius: 16px;
  --max: 1180px;
}

/* Dark Theme Overrides for Hero/Header */
.dark-theme {
  --bg: #030712;
  --bg-soft: rgba(15, 23, 42, 0.6);
  --panel: rgba(30, 41, 59, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(14, 165, 233, 0.3);
  --text: #f8fafc;
  --muted: #94a3b8;
  --cyan-glow: rgba(14, 165, 233, 0.3);
  --green-glow: rgba(16, 185, 129, 0.2);
  --text-gradient: linear-gradient(to right, #f8fafc, #94a3b8);
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -10px rgba(14, 165, 233, 0.25);
  color: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Light Mesh/Grid Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Ambient Glows for Light Mode */
body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

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

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

/* Header Glassmorphism (Always Dark for contrast) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(3, 7, 18, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Logged-in: offset sticky header below WP admin bar */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.nav-wrap,
.section-inner,
.footer-inner {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-logo {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-toggle:hover {
  border-color: var(--line-hover);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  min-width: 0;
}

/* WP menu wrapper — flex row (avoid display:contents; it breaks hit-testing in some browsers). */
.site-nav-items {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav > .menu,
.site-nav > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav .menu-item,
.site-nav li.menu-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-nav .nav-dropdown {
  flex-shrink: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 -2px 10px var(--cyan-glow);
}

.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}

/* Invisible bridge so hover does not close the menu between toggle and panel. */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

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

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 176px;
  padding: 6px;
  border-radius: 12px;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 60;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-dropdown--nav:hover .nav-dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown:hover .nav-dropdown-chevron {
    transform: rotate(180deg);
  }
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown--nav.open .nav-dropdown-menu {
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #cbd5e1 !important;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none !important;
  position: relative;
  z-index: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a + a {
  margin-top: 2px;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: rgba(14, 165, 233, 0.22);
  color: #e0f2fe !important;
  outline: none;
}

.nav-dropdown-menu a::after {
  display: none !important;
}

.nav-dropdown--nav .nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: normal;
  position: relative;
  transition: color 0.2s ease;
}

.nav-dropdown--nav .nav-dropdown-toggle:hover,
.nav-dropdown--nav .nav-dropdown-toggle.active {
  color: var(--text);
}

.nav-dropdown--nav .nav-dropdown-toggle.active::after {
  content: "";
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 -2px 10px var(--cyan-glow);
}

.nav-dropdown--nav .nav-dropdown-chevron {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.nav-dropdown--nav .nav-dropdown-menu {
  left: 50%;
  right: auto;
  min-width: 168px;
  transform: translateX(-50%) translateY(-6px);
}

.nav-dropdown--nav .nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #111827;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.nav-dropdown-menu a.active {
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.12);
}

/* Hovering the panel: highlight follows cursor, not stuck on current page item. */
.nav-dropdown-menu:hover a.active:not(:hover):not(:focus-visible) {
  color: #cbd5e1 !important;
  background: transparent;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-quiet {
  background: var(--panel);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-quiet:hover {
  border-color: var(--line-hover);
  background: var(--bg-soft);
}

.dark-theme .btn-quiet:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Typography & Headings */
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 600; color: var(--text); }

.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.8; }

/* Hero Section */
.hero {
  padding: 64px 0 48px;
  position: relative;
  background: var(--bg);
}

/* Dark Hero Mesh */
.dark-theme.hero::before, .dark-theme.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Dark Hero Glow */
.dark-theme.hero::after, .dark-theme.page-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.visual-frame.download-mobile-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 28px 24px 24px;
  align-self: center;
}

.download-mobile-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-mobile-shot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.download-mobile-shot figcaption {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero-copy .lead {
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  align-items: center;
}

.hero-downloads-wrap {
  margin-top: 24px;
}

.hero-primary-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1.05rem;
  border-radius: 999px;
  margin-bottom: 0;
}

.hero-primary-download-icon {
  width: 22px;
  height: 22px;
}

.hero-platform-label {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-platform-card {
  width: 112px;
  height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  color: rgba(203, 213, 225, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-platform-card:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(14, 165, 233, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-platform-icon {
  width: 32px;
  height: 32px;
}

.hero-platform-card span {
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.85);
}

.hero-secondary {
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-secondary a {
  color: var(--cyan);
  text-decoration: none;
}

.hero-secondary a:hover {
  text-decoration: underline;
}

/* Signal Stats */
.signal-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.signal-row--compact .signal {
  padding: 14px 16px;
}

.signal-row--compact .signal strong {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.signal-row--compact .signal span {
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  .signal-row { grid-template-columns: repeat(4, 1fr); }
}

.signal {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.signal:hover {
  border-color: var(--line-hover);
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.dark-theme .signal:hover {
  background: rgba(255, 255, 255, 0.03);
}

.signal strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
}

.signal span { font-size: 0.85rem; color: var(--muted); }

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

.scene-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.scene-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.scene-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.interface-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.interface-preview-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: all 0.3s ease;
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.interface-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-hover);
}

.interface-preview-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.interface-preview-card .caption {
  padding: 16px 18px 18px;
}

.interface-preview-card h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
}

.interface-preview-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Premium Visual Panels */
.hero-panel,
.visual-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  position: relative;
}

.dark-theme .hero-panel,
.dark-theme .visual-frame {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-panel::before,
.visual-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dark-theme .hero-panel::before,
.dark-theme .visual-frame::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.visual-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.visual-placeholder::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: var(--cyan);
  filter: blur(100px);
  opacity: 0.15;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ui-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.dark-theme .ui-mockup {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ui-mockup .status {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--cyan);
  font-size: 28px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  box-shadow: inset 0 0 20px rgba(14, 165, 233, 0.1);
}

.ui-mockup .btn-mock {
  height: 44px;
  background: var(--primary-gradient);
  border-radius: 22px;
  margin-top: 24px;
  opacity: 0.9;
}

.icon-box {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.05) 100%);
  color: var(--cyan);
  margin-bottom: 20px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

.icon-box img {
  width: 28px;
  height: 28px;
  display: block;
}

section { padding: 96px 0; }

.band {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  position: relative;
}

.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.section-head.center p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.section-head.center .eyebrow {
  margin-bottom: 16px;
}

.section-head.center h2 {
  margin-bottom: 16px;
}

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Premium Cards */
.card {
  padding: 40px 32px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-hover);
  background: var(--bg);
  box-shadow: var(--shadow-hover);
}

.dark-theme .card:hover {
  background: rgba(30, 41, 59, 0.6);
}

.card:hover::before {
  opacity: 1;
}

/* Steps */
.step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-item {
  position: relative;
  padding: 40px 32px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-hover);
}

.step-num {
  position: absolute;
  top: -16px;
  left: 32px;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

/* Device & Download Cards */
.device-grid, .download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.device-card, .download-card {
  padding: 32px 24px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.device-card:hover, .download-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-4px);
  background: var(--bg);
  box-shadow: var(--shadow-hover);
}

.dark-theme .device-card:hover, .dark-theme .download-card:hover {
  background: rgba(30, 41, 59, 0.6);
}

.download-card .icon { font-size: 3rem; margin-bottom: 20px; }

/* News / QA Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-hover);
}

.news-card .visual-placeholder {
  min-height: 180px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.news-card .card-cover {
  padding: 0;
  min-height: 0;
  display: block;
}

.news-card .card-cover::after {
  display: none;
}

.news-card .card-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.dark-theme .news-card .visual-placeholder {
  background: rgba(15, 23, 42, 0.5);
}

.news-card .body { padding: 32px; flex: 1; }

.news-card .tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  background: rgba(14, 165, 233, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Text-only QA / article cards (no cover image) */
.news-card--text {
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-card--text .body {
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

.news-card--text .tag {
  margin-bottom: 12px;
}

.news-card--text h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.news-card--text .card-excerpt {
  flex: 1;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
}

.news-card--text .news-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-card--text .news-card-more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.news-card--text:hover h3 {
  color: var(--cyan);
}

.news-card--qa .news-card-cover,
.news-card--tips .news-card-cover,
.news-card--post .news-card-cover {
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.news-card--qa .news-card-cover img,
.news-card--tips .news-card-cover img,
.news-card--post .news-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.news-card--qa,
.news-card--tips,
.news-card--post {
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.news-card--qa .body,
.news-card--tips .body,
.news-card--post .body {
  padding: 28px 32px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.news-card--qa h3,
.news-card--tips h3,
.news-card--post h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.news-card--qa .card-excerpt,
.news-card--tips .card-excerpt,
.news-card--post .card-excerpt,
.news-card:not(.news-card--text) .card-excerpt {
  flex: 1;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.65;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-card--qa .news-card-date,
.news-card--tips .news-card-date,
.news-card--post .news-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.news-card--qa .news-card-more,
.news-card--tips .news-card-more,
.news-card--post .news-card-more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
}

.news-card--qa:hover h3,
.news-card--tips:hover h3,
.news-card--post:hover h3 {
  color: var(--cyan);
}

/* Tips archive (选购指南) */
.tips-archive-section {
  padding: 48px 0 80px;
}

.tips-archive-grid {
  margin-bottom: 8px;
}

.tips-archive-empty {
  margin: 0 0 32px;
  padding: 32px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  text-align: center;
}

.news-card--tips .tag {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.tips-page .eyebrow,
.tips-archive-page .page-hero .eyebrow {
  margin-bottom: 16px;
}

/* Page Headers */
.page-hero {
  padding: 80px 0 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15em 0.35em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: normal;
}

.breadcrumb a { color: var(--cyan); transition: color 0.2s; }
.breadcrumb a:hover { color: #38bdf8; }

.page-hero .section-inner {
  text-align: left;
}

.page-hero.page-hero--center .section-inner {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-page .page-hero:not(.page-hero--center) .section-inner,
.marketing-page .page-hero:not(.page-hero--center) .breadcrumb,
.marketing-page .page-hero:not(.page-hero--center) h1,
.marketing-page .page-hero:not(.page-hero--center) .lead,
.marketing-page .page-hero:not(.page-hero--center) .eyebrow {
  text-align: left;
}

.marketing-page .page-hero.page-hero--center .section-inner,
.marketing-page .page-hero.page-hero--center .breadcrumb,
.marketing-page .page-hero.page-hero--center h1,
.marketing-page .page-hero.page-hero--center .lead,
.marketing-page .page-hero.page-hero--center .eyebrow {
  text-align: center;
}

.page-hero--center .breadcrumb {
  text-align: center;
  justify-content: center;
}

.page-hero h1, .page-hero .lead, .page-hero .eyebrow {
  position: relative;
  z-index: 1;
}

.article-page .page-hero .section-inner,
.article-page .page-hero .breadcrumb,
.article-page .page-hero h1,
.article-page .page-hero .article-meta,
.article-page .page-hero .lead,
.article-page .page-hero .eyebrow {
  text-align: left;
}

.article-page .page-hero {
  padding: 72px 0 46px;
}

.article-page .page-hero .breadcrumb {
  margin-bottom: 18px;
}

.article-page .page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.26;
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.article-page .page-hero .article-meta {
  margin: 10px 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.article-meta--pill {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
}

.article-meta-author-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.article-meta--pill .article-meta-date {
  font-size: 0.88rem;
  color: var(--muted);
}

.article-meta--plain .article-meta-published {
  margin-left: 0.85em;
}

.article-page .page-hero .lead {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 36em;
  font-size: 1.12rem;
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}

.article-layout { max-width: 860px; }

.article-wrap {
  padding: 48px 0 96px;
}

/* Long-form article pages (guide / QA) — white reading panel on soft band */
.article-page {
  background: var(--bg-soft);
}

.article-page .article-wrap {
  padding: 48px 0 80px;
}

/* Compact detail — DUX-style: no dark hero band */
.article-breadcrumb-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  margin-bottom: 20px;
}

.article-breadcrumb-bar .breadcrumb {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
}

.article-breadcrumb-bar .breadcrumb-label {
  color: #94a3b8;
}

.article-breadcrumb-bar .breadcrumb a {
  color: #94a3b8;
}

.article-breadcrumb-bar .breadcrumb a:hover {
  color: var(--cyan);
}

.article-breadcrumb-bar .breadcrumb .current {
  color: #64748b;
  font-weight: 400;
}

.article-breadcrumb-bar .breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.45;
}

.article-page--compact .article-wrap {
  padding: 0 0 72px;
}

.article-page--compact .article-main {
  padding-top: 0;
}

.article-header--dux {
  margin: 0 0 30px;
  padding: 8px 0 0;
  border-bottom: none;
  text-align: center;
}

.article-header__eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.article-header--dux .article-title {
  margin: 0 auto;
  max-width: 48em;
  font-size: 1.5625rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.article-meta--dux {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.article-meta--dux .item {
  display: inline-block;
  margin-right: 15px;
}

.article-meta--dux .item:last-child {
  margin-right: 0;
}

.article-meta--dux .item a {
  color: var(--cyan);
  text-decoration: none;
}

.article-meta--dux .item a:hover {
  text-decoration: underline;
}

.article-breadcrumb .sep {
  margin: 0 6px;
  opacity: 0.45;
}

.article-page .article-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
}

/* Hero 区无侧栏，勿沿用正文双栏网格（否则移动端首列被 300px 侧栏挤成一字一行） */
.article-page .page-hero .article-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: none;
}

.article-hero-head {
  min-width: 0;
  width: 100%;
  grid-column: 1 / -1;
}

.article-page .article-grid--solo {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.article-page .article-main {
  padding: 40px 32px 36px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-body {
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  color: var(--muted);
}

main > .article-body,
main.marketing-page > .article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.article-page > .article-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 40px 56px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* Legacy: direct .article-body under main (prefer .article-wrap + .article-main). */

.article-main .article-body {
  max-width: none;
  margin: 0;
  padding: 0;
}

.sidebar-topic-name {
  margin: 0 0 8px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.sidebar-topic-desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.sidebar-checklist {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.sidebar-checklist li {
  margin-bottom: 8px;
}

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

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.article-body h2 {
  font-size: 1.375rem;
  line-height: 1.35;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.article-body h4 {
  font-size: 1.1rem;
  line-height: 1.45;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.article-body h2:first-child,
.article-body h3:first-child,
.article-body h4:first-child { margin-top: 0; }
.article-body p { margin-bottom: 24px; }
.article-body ul, .article-body ol { margin-bottom: 24px; padding-left: 24px; }
.article-body li { margin-bottom: 12px; }
.article-body a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--green); }
.article-body img,
.article-body figure img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body figure { margin: 32px 0; }
.article-body blockquote {
  margin: 32px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--cyan);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
}

.article-body table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--text);
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--bg-soft);
  font-weight: 600;
}

.article-body code {
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg-soft);
  font-size: 0.9em;
  color: var(--text);
}
.article-body .wp-block-post-content > *:first-child { margin-top: 0; }

/* Pasted WeChat / Word content — inherit theme article typography (see inc/article-content.php). */
.article-body p,
.article-body li,
.article-body span,
.article-body section {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  text-align: left !important;
  letter-spacing: normal !important;
  line-height: inherit !important;
}

.article-body p {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.article-body section {
  margin: 28px 0;
  padding: 0 !important;
  text-align: center !important;
  max-width: 100%;
}

.article-body section img,
.article-body figure img {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: none !important;
  background: transparent !important;
}

/* WordPress / 后台上传的正文大图（常在 <p> 内） */
.article-body p > img,
.article-body img[class*="wp-image-"],
.article-body img.size-full,
.article-body img.size-large,
.article-body img.size-medium,
.article-body img.alignnone,
.article-body img.aligncenter,
.article-body img.alignwide {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 24px auto;
  vertical-align: initial;
  border-radius: var(--radius);
  box-shadow: none !important;
}

/* 微信粘贴里的行内小图标，勿与正文大图混用 */
.article-body p img.wxw-img,
.article-body p img[src*="emoji"],
.article-body p img[width="20"],
.article-body p img[width="22"],
.article-body p img[width="24"] {
  width: auto !important;
  max-width: 3.25em;
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
  border-radius: 4px;
  box-shadow: none !important;
}

.article-body strong,
.article-body b {
  color: var(--text);
  font-weight: 600;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.article-nav-item:hover {
  border-color: var(--line-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.article-nav-item.next {
  text-align: right;
  align-items: flex-end;
}

.article-nav-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-nav-title {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.article-nav-item.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.article-related {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.article-related-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.article-related-more {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-related-more:hover {
  color: var(--cyan);
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 14px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-related-grid li {
  margin: 0;
  min-width: 0;
}

.article-related-link,
.article-related-link:visited {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-related-link:hover .article-related-link-title {
  color: var(--cyan);
}

.article-related-link-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  transition: color 0.2s ease;
}

.article-related-link-date {
  flex-shrink: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}

.article-disclaimer {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.article-disclaimer-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.article-disclaimer-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.article-disclaimer-desc a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-disclaimer-desc a:hover {
  color: var(--green);
}

.article-download-cta {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.06) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.article-download-cta-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.article-download-cta-desc {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
}

.article-download-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-bar .article-sidebar {
  top: 132px;
}

@media screen and (max-width: 782px) {
  .admin-bar .article-sidebar {
    top: 146px;
  }
}

.sidebar-card {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.sidebar-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--text);
}

.article-sidebar .widget h2,
.article-sidebar .widget .wp-block-heading {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: normal;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.sidebar-card__title,
.sidebar-card.widget .widget-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.sidebar-card.widget .widget-title {
  display: block;
}

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

.sidebar-card.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-card.widget li {
  margin-bottom: 12px;
}

.sidebar-card.widget li:last-child {
  margin-bottom: 0;
}

.sidebar-card.widget a {
  color: var(--cyan);
  text-decoration: none;
  line-height: 1.5;
}

.sidebar-card.widget a:hover {
  color: var(--green);
  text-decoration: underline;
}

.sidebar-card .btn-block + .btn-block {
  margin-top: 10px;
}

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

.sidebar-links li {
  margin-bottom: 12px;
}

.sidebar-links li:last-child {
  margin-bottom: 0;
}

.sidebar-links a {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  transition: color 0.2s;
}

.sidebar-links a:hover {
  color: var(--cyan);
}

.sidebar-links a.is-current {
  color: var(--cyan);
  font-weight: 600;
}

.article-toc--inline {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.article-toc--inline summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.article-toc--inline summary::-webkit-details-marker {
  display: none;
}

.article-toc--inline[open] summary {
  margin-bottom: 12px;
}

.article-toc__list li.is-child a {
  padding-left: 12px;
  font-size: 0.94em;
}

.article-toc__list li.is-grandchild a {
  padding-left: 22px;
  font-size: 0.9em;
}

@media (min-width: 1024px) {
  .article-toc--inline {
    display: none;
  }
}

.sidebar-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
}

.sidebar-cta {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.08));
}

.sidebar-cta p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list details {
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.3s;
}

.faq-list details:hover {
  background: var(--bg-soft);
}

.dark-theme .faq-list details:hover {
  background: rgba(30, 41, 59, 0.6);
}

.faq-list summary {
  padding: 24px 32px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cyan);
  transition: transform 0.3s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  padding: 0 32px 32px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 64px;
  align-items: start;
}

.footer-links {
  min-width: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-nav-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-nav-list a:hover,
.footer-nav-list a.active {
  color: var(--text);
}

/* Legacy flat footer menu (custom WP menu). */
.footer-links:not(:has(.footer-nav)) {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  color: var(--muted);
  font-size: 0.95rem;
  align-content: flex-start;
}

.footer-links:not(:has(.footer-nav)) a { transition: color 0.2s; }
.footer-links:not(:has(.footer-nav)) a:hover { color: var(--text); }

.footer-friend-links {
  margin: 0;
  padding: 0;
  border: 0;
}

.footer-friend-links__line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-friend-links__label {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
}

.footer-friend-links__label::after {
  content: '：';
}

.footer-friend-links__item {
  color: var(--muted);
  font-size: inherit;
  transition: color 0.2s;
}

.footer-friend-links__item:hover {
  color: var(--text);
}

/* Legacy markup (h2 + ul) on sites not yet on the inline template. */
.footer-friend-links:has(.footer-friend-links__title) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.footer-friend-links__title {
  margin: 0 !important;
  padding: 0;
  font-size: 0.85rem !important;
  font-weight: 600;
  line-height: 1.5 !important;
  letter-spacing: 0.03em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.footer-friend-links__title::after {
  content: '：';
}

.footer-friend-links__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.footer-friend-links__list li {
  margin: 0;
  padding: 0;
}

.footer-friend-links__list a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-friend-links__list a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom .copyright {
  margin: 0;
  padding: 0;
  border: 0;
  gap: 24px;
}

.footer-bottom .footer-friend-links + .copyright {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.copyright {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.copyright p {
  margin: 0;
}

.copyright p + p {
  margin-top: 8px;
  font-size: 0.85rem;
  text-align: right;
}

.compliance {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Global Link Styles */
a:not(.btn):not(.brand):not(.news-card):not(.download-card):not(.hero-platform-card):not(.footer-download-icon):not(.site-nav a):not(.footer-links a):not(.footer-nav-list a):not(.footer-friend-links__item):not(.footer-friend-links__list a):not(.nav-dropdown-menu a) {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.2s;
}

a:not(.btn):not(.brand):not(.news-card):not(.download-card):not(.hero-platform-card):not(.footer-download-icon):not(.site-nav a):not(.footer-links a):not(.footer-nav-list a):not(.footer-friend-links__item):not(.footer-friend-links__list a):not(.nav-dropdown-menu a):hover {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .split { gap: 40px; }
  h1 { font-size: 3rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .device-grid, .download-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid,
  .article-page .article-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-page .page-hero .article-grid {
    gap: 0;
  }
  .article-sidebar { position: static; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .scene-grid,
  .interface-preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid, .split, .grid-4, .grid-3, .grid-2, .step-list, .news-grid, .footer-grid {
    grid-template-columns: 1fr; 
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .visual-frame.download-mobile-shots {
    gap: 14px;
    padding: 20px 16px 16px;
    max-width: 320px;
    margin: 0 auto;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-item.next {
    text-align: left;
    align-items: flex-start;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .article-page .page-hero {
    padding: 56px 0 36px;
  }

  .article-page .page-hero .breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .article-page .article-main,
  .article-page > .article-body {
    padding: 32px 20px 28px;
    border-radius: 20px;
  }

  .article-page .article-wrap {
    padding: 32px 0 64px;
  }

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

  .copyright p + p {
    text-align: left;
  }

  .hero-downloads {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-platform-card {
    width: auto;
    height: auto;
    aspect-ratio: 1;
    min-width: 0;
    padding: 12px 6px;
    gap: 8px;
  }

  .hero-platform-icon {
    width: 28px;
    height: 28px;
  }

  .hero-platform-card span {
    font-size: 0.75rem;
  }
  
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .site-nav.open { display: flex; }
  
  .site-nav a.active::after { display: none; }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    margin-top: 8px;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.03);
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown--nav .nav-dropdown-toggle.active::after {
    display: none;
  }
  
  .hero { padding: 64px 0; }
  h1 { font-size: 2.5rem; }
  
  .card, .step-item, .device-card, .download-card { padding: 24px; }

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

  .pricing-card--featured {
    transform: none;
  }
}

.topic-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.topic-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.topic-pagination .page-numbers:hover,
.topic-pagination .page-numbers.current {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

.topic-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* Topic hub — FAQ-style compact hero */
.topic-hub--index .page-hero {
  padding: 56px 0 36px;
}

.topic-hub--index .page-hero .lead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.topic-hub--index .topic-index-body.archive-feed-section {
  padding-top: 32px;
}

.topic-sidebar-intro p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

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

.topic-checklist-compact {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.topic-checklist-compact li + li {
  margin-top: 8px;
}

.topic-chip-row--related {
  margin-bottom: 0;
}

.topic-related-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cyan);
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.topic-related-chip:hover {
  border-color: var(--cyan);
  color: var(--green);
}

.topic-sidebar-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.topic-hub--index .archive-pagination {
  margin-top: 28px;
}

.topic-index-empty + .section-cta-center {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .topic-hub--index .page-hero {
    padding: 48px 0 28px;
  }
}

/* Performance & layout utilities (theme templates + migrated HTML). */
.visual-placeholder--flush {
  padding: 0;
  background: transparent;
}

.visual-frame--flush {
  padding: 0;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
}

.hero-lcp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.content-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

.footer-lead {
  margin-top: 12px;
  font-size: 0.95rem;
}

.footer-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-download-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-download-icon svg {
  width: 20px;
  height: 20px;
}

.footer-download-icon:hover {
  color: var(--cyan);
  border-color: rgba(14, 165, 233, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.copyright-meta {
  margin-top: 8px;
  font-size: 0.85rem;
  text-align: right;
}

.copyright-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.card-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.section-cta-center {
  text-align: center;
  margin-top: 32px;
}

.archive-posts-section {
  padding: 48px 0 80px;
}

.archive-posts-page .archive-posts-empty {
  margin: 0;
  color: var(--muted);
}

.archive-pagination {
  margin-top: 48px;
}

.section-cta-center--tight {
  margin-top: 24px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

.faq-list--narrow {
  max-width: 820px;
  margin: 0 auto;
}

.home-cta-actions {
  margin-top: 24px;
}

.home-cta-sidebar {
  padding: 32px;
}

.home-cta-sidebar ul {
  color: var(--muted);
  padding-left: 20px;
  line-height: 1.9;
  margin: 0;
}

.topic-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.topic-chip-row--tags {
  margin-top: 0;
}

.archive-tag-link {
  margin: 0 0 32px;
}

.content-tag-index-section,
.content-tag-archive-section {
  padding: 48px 0 80px;
}

.tag-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.tag-index-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.tag-index-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.tag-index-card strong {
  font-size: 1rem;
  line-height: 1.4;
}

.tag-index-card .count {
  font-size: 0.85rem;
  color: var(--muted);
}

.content-tag-index-empty {
  margin: 0;
  color: var(--muted);
}

.article-nav-footer {
  margin-top: 40px;
}

/* ── Pricing Page（沿用本站浅色卡片体系）── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 28px 28px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-hover);
}

.pricing-card__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-card__subtitle {
  margin: 0 0 28px;
  font-size: 0.92rem;
  color: var(--muted);
  min-height: 1.4em;
}

.pricing-card__price {
  margin: 0 0 6px;
  line-height: 1.1;
}

.pricing-card__amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pricing-card__period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card__equiv {
  margin: 0 0 28px;
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--muted);
}

.pricing-card__features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.pricing-card__features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--cyan);
}

.pricing-card__features li.is-highlight {
  font-weight: 600;
  color: var(--text);
}

.pricing-card__features li.is-highlight svg {
  color: #d97706;
}

.pricing-card__cta {
  display: block;
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.pricing-card--featured {
  position: relative;
  border-color: var(--cyan);
  box-shadow: var(--shadow-hover);
}

.pricing-card--featured .pricing-card__subtitle {
  color: var(--cyan);
  font-weight: 500;
}

.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card__amount {
    font-size: 2.25rem;
  }
}

/* Side Tools (Back to top & Contact) */
.side-tools {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-tool {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.side-tool svg {
  width: 20px;
  height: 20px;
}

.side-tool span {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.side-tool:hover {
  color: #0ea5e9;
  border-color: #0ea5e9;
  transform: translateX(-4px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.15);
}

.side-tool--top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.side-tool--top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dark-theme .side-tool {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.dark-theme .side-tool:hover {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  background: #0f172a;
}

/* ── 游戏库索引：专区卡片网格 ── */
.game-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.game-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 100px;
  padding: 16px 12px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.game-logo-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.game-logo-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary-gradient);
}

.game-logo-card span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.35;
}

.games-index-note {
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── 游戏库列表页（对标 biubiu /game/）── */
.games-library-page .games-library-body {
  padding: 40px 0 80px;
}

.game-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.game-library-card {
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.game-library-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.game-library-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.game-library-card__cover {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.12), rgba(59, 130, 246, 0.08));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.game-library-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-library-card__abbr {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.game-library-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
}

.game-library-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.game-library-card__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.game-library-card__meta strong {
  color: var(--cyan);
  font-weight: 700;
}

.game-library-card__sep {
  margin: 0 6px;
  opacity: 0.5;
}

.game-library-card__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
}

.game-library-card:hover .game-library-card__cta {
  text-decoration: underline;
}

.game-library-pagination {
  margin-top: 40px;
}

.topic-guides-body {
  padding: 40px 0 80px;
}

.topic-guides-back {
  margin-top: 32px;
  text-align: center;
}

.topic-articles-more {
  margin-top: 28px;
  text-align: center;
}

.guides-archive-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.guides-archive-group__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.guides-archive-group__head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.guides-archive-group__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.guides-archive-group__more {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .guides-archive-group__head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── /guides/ 发现频道（对标 OurPlay /find/）── */
.guides-find-page .guides-find-body {
  padding: 48px 0 80px;
}

.guides-find-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.guides-find-main__head {
  margin-bottom: 28px;
}

.guides-find-main__head h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.guides-find-chips {
  margin-bottom: 0;
}

.guides-find-featured {
  padding: 40px 0 48px;
}

.guides-find-featured__head {
  margin-bottom: 24px;
}

.guides-find-featured__head h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.guides-find-featured__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guides-featured-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.guides-featured-scroll::-webkit-scrollbar {
  height: 6px;
}

.guides-featured-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.guides-featured-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guides-featured-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.guides-featured-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary-gradient);
}

.guides-featured-card__game {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.35;
}

.guides-featured-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guide-feed-item {
  border-bottom: 1px solid var(--line);
}

.guide-feed-item:first-child {
  border-top: 1px solid var(--line);
}

.guide-feed-item__link {
  display: block;
  padding: 24px 4px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.guide-feed-item__link:hover {
  background: var(--bg-soft);
}

.guide-feed-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.guide-feed-item__meta .tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-feed-item__meta time {
  font-size: 0.8rem;
  color: var(--muted);
}

.guide-feed-item h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--text);
  transition: color 0.2s ease;
}

.guide-feed-item__link:hover h3 {
  color: var(--cyan);
}

.guide-feed-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-feed-empty {
  padding: 32px 0;
  color: var(--muted);
}

.guides-find-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-bar .guides-find-sidebar {
  top: 132px;
}

.guides-sidebar-more {
  margin-top: 16px;
}

.guides-sidebar-topics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.guides-sidebar-topics li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.guides-sidebar-topics li:last-child {
  margin-bottom: 0;
}

.guides-sidebar-topics__rank {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.guides-sidebar-topics a {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.guides-sidebar-topics a:hover {
  color: var(--cyan);
}

.guides-sidebar-cta .sidebar-topic-desc {
  margin-bottom: 16px;
}

.guides-find-main .archive-pagination {
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .game-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guides-find-layout {
    grid-template-columns: 1fr;
  }

  .guides-find-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .guides-sidebar-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .side-tools {
    right: 16px;
    bottom: 24px;
  }

  .side-tool {
    width: 44px;
    height: 44px;
  }

  .game-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .guides-find-sidebar {
    grid-template-columns: 1fr;
  }

  .guides-featured-card {
    flex-basis: 180px;
  }
}

/* Archive feed — reading-flow list (OurPlay-style) */
.archive-feed-section {
  padding: 32px 0 72px;
}

.archive-breadcrumb {
  margin-bottom: 24px;
}

.archive-breadcrumb h1 {
  display: inline;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
  background: none;
  -webkit-text-fill-color: var(--muted);
  color: var(--muted);
  vertical-align: baseline;
}

.archive-breadcrumb .sep {
  margin: 0 2px;
  opacity: 0.5;
}

.archive-feed-head {
  display: none;
}

.archive-feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.archive-feed-main {
  min-width: 0;
}

.post-list-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.post-list-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  overflow: hidden;
}

.post-list-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--line-hover);
}

.post-list-item__inner {
  display: flex;
  gap: 0;
  padding: 0;
  height: 180px;
}

.post-list-item__thumb {
  flex: 0 0 280px;
  width: 280px;
  height: 100%;
  position: relative;
  border: none;
  border-radius: 0;
}

.post-list-item__thumb::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, transparent, var(--panel));
  z-index: 1;
}

.post-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list-item__content {
  flex: 1;
  padding: 24px 32px 24px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  z-index: 2;
}

.post-list-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.post-list-item__badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0fdfa;
  color: #0d9488;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
}

.post-list-item__badge--ask {
  background: #f0fdf4;
  color: #16a34a;
}

.post-list-item__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-list-item__excerpt {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-list-item__meta {
  margin-top: auto;
  color: #94a3b8;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .post-list-item__inner {
    flex-direction: column;
    height: auto;
  }

  .post-list-item__thumb {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .post-list-item__thumb::after {
    width: 100%;
    height: 60px;
    top: auto;
    background: linear-gradient(to bottom, transparent, var(--panel));
  }

  .post-list-item__content {
    padding: 20px;
  }

  .post-list-item__title {
    white-space: normal;
  }
}

.archive-feed-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.archive-feed-sidebar .widget h2,
.archive-feed-sidebar .widget .wp-block-heading,
.archive-feed-sidebar .sidebar-card.widget .widget-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.archive-feed-sidebar .sidebar-card.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-feed-sidebar .sidebar-card.widget li {
  margin-bottom: 12px;
}

.archive-feed-sidebar .sidebar-card.widget li:last-child {
  margin-bottom: 0;
}

.archive-feed-sidebar .sidebar-card.widget a {
  color: var(--cyan);
  text-decoration: none;
  line-height: 1.5;
}

.archive-feed-sidebar .sidebar-card.widget a:hover {
  color: var(--green);
  text-decoration: underline;
}

.game-widget-archive-links .archive-links-section + .archive-links-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.game-widget-archive-links .archive-links-section__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.admin-bar .archive-feed-sidebar {
  top: 132px;
}

.archive-feed-promo .btn-block {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

.archive-feed-sidebar-links a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.45;
}

.archive-feed-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.archive-feed-page .archive-pagination {
  margin-top: 28px;
}

@media (max-width: 1024px) {
  .archive-feed-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .archive-feed-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .archive-feed-promo {
    grid-column: 1 / -1;
  }
}

.article-meta--pill .article-meta-views,
.article-meta--plain .article-meta-views {
  color: var(--muted);
  font-size: 0.88rem;
}

.article-meta--pill .article-meta-views::before,
.article-meta--plain .article-meta-views::before {
  content: '·';
  margin: 0 6px;
  opacity: 0.6;
}

@media (max-width: 640px) {
  .post-list-item__inner {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }

  .post-list-item__thumb {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .post-list-item__title {
    font-size: 1.05rem;
  }

  .archive-feed-sidebar {
    grid-template-columns: 1fr;
  }
}

.article-nav-footer {
  margin-top: 40px;
}

/* Game download (xiazai) */
.post-list-item__badge--xiazai {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.xiazai-hero-section .xiazai-hero {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

.xiazai-hero--compact {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  margin: 0 0 28px;
}

.xiazai-hero--compact .xiazai-chip {
  background: var(--bg-soft);
  color: var(--muted);
  border: 1px solid var(--line);
}

.xiazai-hero--compact .xiazai-hero__facts {
  color: var(--muted);
}

.archive-feed-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.archive-feed-lead {
  margin-bottom: 20px;
}

.xiazai-hero__icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.xiazai-hero__icon--placeholder {
  display: block;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(34, 197, 94, 0.25));
}

.xiazai-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.xiazai-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.xiazai-hero__title {
  margin: 0 0 12px;
}

.xiazai-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.xiazai-section-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.xiazai-downloads {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.xiazai-downloads-note {
  margin: 0 0 16px;
  color: var(--muted);
}

.xiazai-downloads__actions,
.xiazai-accel-tip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.xiazai-body {
  margin-bottom: 32px;
}

.xiazai-accel-tip {
  margin-bottom: 32px;
}

.xiazai-related {
  margin-top: 32px;
}

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

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

.xiazai-related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}

.xiazai-related-card__thumb img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.xiazai-meta-list {
  margin: 0;
}

.xiazai-meta-list__row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.xiazai-meta-list__row:last-child {
  border-bottom: 0;
}

.xiazai-meta-list dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.xiazai-meta-list dd {
  margin: 0;
}

@media (max-width: 900px) {
  .xiazai-hero-section .xiazai-hero,
  .xiazai-hero--compact {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .xiazai-related-grid {
    grid-template-columns: 1fr;
  }
}
.topic-hub-sidebar .sidebar-card h3 {
  font-size: 0.95rem;
}

.topic-hub-sidebar .sidebar-checklist {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Topic hub pages */
.topic-hub .topic-section {
  padding: 72px 0;
}

.topic-hub section.topic-section {
  padding: 72px 0;
}

.topic-hub .topic-section.band,
.topic-hub .band.topic-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.topic-hub .topic-section + .topic-section.band,
.topic-hub .band + .topic-section {
  border-top: none;
}

.topic-highlights-section .section-head.center {
  margin-bottom: 40px;
}

.topic-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-highlights--quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .topic-highlights--quad {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topic-highlights,
  .topic-highlights--quad,
  .topic-highlights--duo {
    grid-template-columns: 1fr;
  }
}

.topic-hub .topic-highlight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px 24px 22px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.topic-hub .topic-highlight-card:hover {
  transform: translateY(-4px);
}

.topic-highlight-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.topic-highlight-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--cyan);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
}

.topic-highlight-head h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  background: none;
}

.topic-highlight-desc {
  margin: 0;
  padding-left: 44px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.topic-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 992px) {
  .topic-checklist {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .topic-checklist .step-item {
    padding: 32px 24px 28px;
  }
}

@media (max-width: 640px) {
  .topic-checklist {
    grid-template-columns: 1fr;
  }

  .post-list-item__inner {
    padding: 16px;
    gap: 14px;
  }

  .post-list-item__title {
    font-size: 1.05rem;
  }

  .archive-feed-sidebar {
    grid-template-columns: 1fr;
  }
}

.topic-checklist .step-item {
  padding-top: 36px;
}

.topic-checklist .step-num {
  top: -14px;
  left: 24px;
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}

.topic-hero {
  padding: 88px 0 72px;
}

.topic-hero__actions {
  justify-content: center;
  margin-top: 32px;
}

.topic-intro .section-head {
  margin-bottom: 24px;
}

.topic-intro .section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.topic-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.95rem;
}

.topic-intro.split {
  align-items: center;
}

.topic-quicklinks,
.topic-related-panel {
  padding: 32px;
}

.topic-quicklinks {
  align-self: center;
  min-width: 0;
}

.topic-quicklinks h3,
.topic-related-panel h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.topic-quicklinks ul,
.topic-related-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.topic-quicklinks a,
.topic-related-panel a {
  color: var(--cyan);
  text-decoration: none;
}

.topic-quicklinks a:hover,
.topic-related-panel a:hover {
  color: var(--green);
  text-decoration: underline;
}

.topic-checklist .step-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.topic-faq {
  max-width: 820px;
  margin: 0 auto;
}

.topic-hub .topic-articles .section-head.center,
.topic-hub .topic-faq-section .section-head.center {
  margin-bottom: 40px;
}

.topic-hub .news-grid {
  gap: 20px;
}

.topic-empty {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.topic-empty__lead {
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 640px;
  line-height: 1.8;
}

.topic-empty__actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topic-cta .visual-frame {
  align-self: center;
}

/* Topic hub — compact + balanced layouts (archive-aligned) */
.topic-hub--compact .topic-hub-section,
.topic-hub--balanced .topic-hub-section {
  padding: 32px 0 64px;
}

.topic-hub-head {
  margin-bottom: 28px;
}

.topic-hub-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.topic-hub-leads {
  max-width: 48em;
}

.topic-hub-lead {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.75;
}

.topic-hub-leads .topic-hub-lead:last-child {
  margin-bottom: 10px;
}

.topic-hub-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 48em;
}

.topic-hub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 0.9rem;
}

.topic-hub-actions a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.topic-hub-actions a:hover {
  text-decoration: underline;
}

.topic-hub-actions__sep {
  color: var(--muted);
}

.topic-hub-footer-hint {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 42em;
}

.topic-hub-footer-hint a {
  color: var(--cyan);
  text-decoration: none;
}

.topic-hub-footer-hint a:hover {
  text-decoration: underline;
}

.topic-hub-crosslink {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.topic-hub-crosslink a {
  color: var(--cyan);
  text-decoration: none;
}

.topic-hub-crosslink a:hover {
  text-decoration: underline;
}

.topic-hub-related-qa {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.topic-hub-related-qa__title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.topic-hub-articles {
  margin-top: 8px;
}

.topic-hub-block-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.topic-hub-block-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 42em;
}

.topic-hub-feed {
  gap: 16px;
}

.topic-hub--compact .topic-pagination {
  margin-top: 28px;
}

.topic-hub-extras {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.topic-hub-extras--before {
  margin-top: 0;
  margin-bottom: 28px;
  padding-top: 0;
  border-top: none;
}

.topic-hub--balanced .topic-hub-extras {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.topic-hub--balanced .topic-hub-head + .topic-hub-extras.topic-hub-extras--before {
  margin-top: 24px;
  margin-bottom: 0;
}

/* Global `section { padding: 96px 0 }` must not apply inside balanced topic main. */
.topic-hub--balanced .topic-hub-main > section,
.topic-hub--balanced .topic-hub-main .topic-hub-extra {
  padding: 0;
}

.topic-hub--balanced .topic-hub-articles {
  margin-top: 0;
}

.topic-hub-extras--after {
  margin-top: 40px;
}

/* Balanced layout — visual polish */
.topic-hub--balanced .topic-hub-head {
  margin-bottom: 0;
}

.topic-hub--balanced .topic-hub-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topic-hub--balanced .topic-hub-main > .topic-hub-head,
.topic-hub--balanced .topic-hub-main > .topic-hub-extras,
.topic-hub--balanced .topic-hub-main > .topic-hub-articles,
.topic-hub--balanced .topic-hub-main > .topic-hub-footer-hint {
  margin-top: 0;
  margin-bottom: 0;
}

.topic-hub--balanced .topic-hub-main > .topic-hub-extras + .topic-hub-articles {
  margin-top: 24px;
}

.topic-hub--balanced .topic-hub-main > .topic-hub-articles + .topic-hub-footer-hint {
  margin-top: 24px;
}

.topic-hub--balanced .topic-hub-intro {
  padding: 24px 24px 18px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(14, 165, 233, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(16, 185, 129, 0.06), transparent 50%),
    var(--bg);
  box-shadow: var(--shadow);
}

.topic-hub--balanced .topic-hub-eyebrow {
  margin-bottom: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.topic-hub--balanced .topic-hub-title {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
}

.topic-hub--balanced .topic-hub-lead {
  color: var(--muted);
  font-size: 1rem;
}

.topic-hub--balanced .topic-hub-note {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.55);
}

.dark-theme .topic-hub--balanced .topic-hub-note {
  background: rgba(15, 23, 42, 0.45);
}

.topic-hub--balanced .topic-hub-actions {
  gap: 10px;
  margin: 20px 0 0;
}

.topic-hub--balanced .topic-hub-actions .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.topic-hub-section-head {
  margin-bottom: 18px;
}

.topic-hub-section-head .eyebrow {
  margin-bottom: 10px;
  font-size: 0.76rem;
}

.topic-hub-section-head .topic-hub-extra__title,
.topic-hub-section-head .topic-hub-block-title {
  margin-bottom: 6px;
}

.topic-hub-extras--polished {
  margin-bottom: 0;
}

.topic-hub--balanced .topic-hub-scenes-panel {
  padding: 20px 24px 18px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
    var(--bg-soft);
  box-shadow: var(--shadow);
}

.topic-hub--balanced .topic-hub-scenes-panel .topic-hub-section-head {
  margin-bottom: 20px;
}

.topic-hub-extras--polished .topic-hub-extra__title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.topic-hub-extras--polished .topic-hub-extra__desc {
  margin-bottom: 0;
  max-width: 40em;
}

.topic-hub--balanced .topic-hub-scenes {
  gap: 16px;
}

.topic-hub-scene--polished {
  padding: 18px 18px 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.topic-hub-scene--polished.topic-hub-scene--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 165, 233, 0.28);
}

.topic-hub-scene__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.topic-hub-scene__num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--cyan);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.22);
}

.topic-hub-scene--polished h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.topic-hub-scene--polished p {
  margin: 0 0 8px;
  padding-left: 42px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.topic-hub-scene--polished .topic-hub-scene__more {
  padding-left: 42px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
}

.topic-hub-articles--balanced {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.topic-hub-articles--balanced.topic-hub-articles--direct,
.topic-hub-articles--balanced.topic-hub-articles--slim {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.topic-hub-articles-head--slim {
  margin-bottom: 12px;
}

.topic-hub-articles-head--slim .eyebrow {
  margin-bottom: 8px;
  font-size: 0.76rem;
}

.topic-hub-articles-head--slim .topic-hub-block-title {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.topic-hub-articles--balanced .topic-hub-block-title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.topic-hub--balanced .topic-hub-footer-hint {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.topic-hub--balanced .archive-feed-sidebar .sidebar-card {
  box-shadow: var(--shadow);
}

.topic-hub-extra__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.topic-hub-extra__desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.topic-hub-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.topic-hub-scene {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.topic-hub-scene--link:hover {
  border-color: var(--line-hover);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.topic-hub-scene h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}

.topic-hub-scene p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.topic-hub-scene__more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
}

.topic-hub-sidebar-faq .faq-list--sidebar details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  margin-bottom: 8px;
}

.topic-hub-sidebar-faq .faq-list--sidebar summary {
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}

.topic-hub-sidebar-faq .faq-list--sidebar details p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
}

.topic-hub-faq {
  max-width: none;
  margin: 0;
}

.topic-empty--compact {
  text-align: left;
  max-width: none;
}

.topic-empty--compact .topic-empty__lead {
  margin: 0 0 20px;
  max-width: none;
  text-align: left;
}

.topic-empty--compact .topic-empty__actions {
  margin-top: 20px;
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .topic-hub-extras--polished .topic-hub-scenes,
  .topic-hub-scenes {
    grid-template-columns: 1fr;
  }

  .topic-hub-scene--polished p,
  .topic-hub-scene--polished .topic-hub-scene__more {
    padding-left: 0;
  }

  .topic-hub--balanced .topic-hub-intro {
    padding: 22px 18px 18px;
  }

  .topic-hub--balanced .topic-hub-scenes-panel {
    padding: 20px 16px 16px;
  }

  .topic-hub--compact .topic-hub-section,
  .topic-hub--balanced .topic-hub-section {
    padding: 24px 0 48px;
  }

  .topic-hub-extras {
    margin-top: 32px;
    padding-top: 28px;
    gap: 28px;
  }

  .topic-hub--balanced .topic-hub-extras {
    margin-top: 0;
    padding-top: 0;
    gap: 0;
  }
}

@media (max-width: 768px) {
  .topic-hub .topic-section,
  .topic-hub section.topic-section {
    padding: 56px 0;
  }

  .topic-hero {
    padding: 72px 0 56px;
  }

  .topic-highlight-desc {
    padding-left: 0;
  }

  .topic-highlights-section .section-head.center {
    margin-bottom: 32px;
  }
}

/* Platform download pages */
.download-page {
  background: var(--bg);
}

.download-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background: #030712;
}

.download-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.download-hero .breadcrumb {
  margin-bottom: 22px;
  color: rgba(148, 163, 184, 0.92);
}

.download-hero .breadcrumb a {
  color: rgba(226, 232, 240, 0.92);
}

.download-hero__copy h1 {
  max-width: 780px;
}

.download-hero__copy .lead {
  max-width: 640px;
  color: #cbd5e1;
}

.download-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
}

.download-hero__primary {
  min-height: 56px;
  gap: 12px;
  padding: 16px 30px;
  font-size: 1.05rem;
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.26);
}

.download-hero__primary svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.download-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.download-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  font-size: 0.84rem;
}

.download-hero__visual {
  padding: 20px;
  overflow: visible;
}

.download-device-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.download-device-card::after {
  content: "";
  position: absolute;
  inset: auto 12% -22% 12%;
  height: 42%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.34), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.download-device-card__top,
.download-device-card__status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: #e2e8f0;
}

.download-device-card__top span,
.download-device-card__status span {
  color: #94a3b8;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-device-card__top strong,
.download-device-card__status strong {
  font-size: 0.92rem;
}

.download-device-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 0 16px 12px;
}

.download-section {
  padding: 72px 0;
}

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

.download-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 40px;
  align-items: start;
}

.download-feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.download-feature-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.download-feature-card span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 800;
}

.download-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.download-steps-card {
  position: sticky;
  top: 96px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-steps-card h2 {
  margin-bottom: 22px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.download-steps-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: download-step;
}

.download-steps-card li {
  position: relative;
  min-height: 42px;
  padding: 0 0 18px 54px;
  color: var(--muted);
  line-height: 1.65;
  counter-increment: download-step;
}

.download-steps-card li::before {
  content: counter(download-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 800;
}

.download-steps-card li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 42px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.download-platform-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.download-platform-switcher__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 82px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-platform-switcher__item:hover,
.download-platform-switcher__item.active {
  transform: translateY(-2px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-hover);
}

.download-platform-switcher__item.active {
  color: var(--cyan);
}

.download-platform-switcher__item svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 980px) {
  .download-hero__grid,
  .download-page__grid {
    grid-template-columns: 1fr;
  }

  .download-steps-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .download-hero {
    padding: 64px 0 48px;
  }

  .download-hero__actions,
  .download-hero__actions .btn {
    width: 100%;
  }

  .download-hero__actions .btn {
    justify-content: center;
  }

  .download-section {
    padding: 52px 0;
  }

  .download-platform-switcher {
    grid-template-columns: 1fr;
  }
}

/* Compact app-style download pages */
.app-download-page {
  --app-download-ink: #111827;
  --app-download-muted: #64748b;
  --app-download-line: #e5e7eb;
  --app-download-soft: #f8fafc;
  --app-download-card: #ffffff;
  --app-download-accent: #3b82f6;
  --app-download-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  background: var(--app-download-soft);
  color: var(--app-download-ink);
}

.app-download-page .app-download-shell {
  margin: 0;
  padding: 14px 0 54px !important;
}

/* Unified compact banners for marketing-style pages. */
.marketing-page .page-hero,
.games-library-page .page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 5.8vw, 68px) 0 clamp(36px, 4.6vw, 52px);
  min-height: auto;
  text-align: left;
  background:
    radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(16, 185, 129, 0.10), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #030712 0%, #06111f 52%, #071b2b 100%);
  background-size: auto, auto, 40px 40px, 40px 40px, auto;
}

.marketing-page .page-hero .section-inner,
.games-library-page .page-hero .section-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max));
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.marketing-page .page-hero.page-hero--center .section-inner,
.games-library-page .page-hero.page-hero--center .section-inner {
  text-align: center;
}

.marketing-page .page-hero.page-hero--center .lead,
.games-library-page .page-hero.page-hero--center .lead {
  margin-left: auto;
  margin-right: auto;
}

.marketing-page .page-hero .breadcrumb,
.games-library-page .page-hero .breadcrumb {
  margin-bottom: 18px;
}

.marketing-page .page-hero .eyebrow,
.games-library-page .page-hero .eyebrow {
  display: none;
}

.marketing-page .page-hero h1,
.games-library-page .page-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.14;
}

.marketing-page .page-hero .lead,
.games-library-page .page-hero .lead {
  max-width: 860px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.9;
}

.marketing-page--download > section:not(.page-hero):first-of-type,
.marketing-page--download > .section-inner:first-of-type {
  margin-top: 0;
}

@media (max-width: 768px) {
  .marketing-page .page-hero,
  .games-library-page .page-hero {
    padding: 34px 0 30px;
  }

  .marketing-page .page-hero .breadcrumb,
  .games-library-page .page-hero .breadcrumb {
    margin-bottom: 14px;
  }

  .marketing-page .page-hero h1,
  .games-library-page .page-hero h1 {
    margin-bottom: 14px;
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .marketing-page .page-hero .lead,
  .games-library-page .page-hero .lead {
    font-size: 0.98rem;
    line-height: 1.78;
  }
}

.app-download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.app-download-main-card,
.app-download-side-card {
  border: 1px solid var(--app-download-line);
  border-radius: 10px;
  background: var(--app-download-card);
  box-shadow: var(--app-download-shadow);
}

.app-download-main-card {
  padding: 20px 26px;
}

.app-download-advantages-panel {
  grid-column: 1;
  margin-top: 4px;
}

.app-download-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.app-download-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.14);
}

.app-download-summary h1 {
  margin: 0 0 8px;
  color: #111827;
  background: none;
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1.18;
  -webkit-text-fill-color: currentColor;
}

.app-download-lead {
  max-width: 760px;
  margin: 0;
  color: var(--app-download-muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.app-download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 22px;
  color: #64748b;
  font-size: 0.9rem;
}

.app-download-meta span {
  white-space: nowrap;
}

.app-download-meta span + span::before {
  display: none;
}

.app-download-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 166px;
  min-height: 52px;
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-download-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
}

.app-download-badge svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.app-download-divider {
  height: 1px;
  margin: 12px 0 14px;
  background: var(--app-download-line);
}

.app-download-divider--primary {
  height: auto;
  margin: 26px 0 14px;
  border: 0;
  border-top: 1px solid #dbeafe;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.34), transparent);
}

.app-download-divider--primary::before {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: -2px;
  border-radius: 999px;
  background: #3b82f6;
}

.app-download-article-section {
  padding: 0 !important;
  margin: 0 !important;
}

.app-download-article-section h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -0.03em;
}

.app-download-article-section p,
.app-download-requirements li {
  color: #64748b;
  font-size: 0.96rem;
  line-height: 2;
}

.app-download-article-section p {
  margin: 0 0 8px;
}

.app-download-advantages-section h2 {
  margin-bottom: 18px;
}

.app-download-advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.app-download-advantage-card {
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.app-download-advantage-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.app-download-advantage-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1rem;
  line-height: 1.45;
}

.app-download-advantage-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.95;
}

.app-download-requirements {
  margin: 8px 0 0;
  padding-left: 18px;
}

.app-download-requirements li {
  padding: 1px 0;
}

.app-download-requirements strong {
  color: #111827;
}

.app-download-sidebar {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 28px;
  position: sticky;
  top: 96px;
}

.app-download-side-card {
  padding: 24px;
}

.app-download-side-card h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 1.12rem;
}

.app-download-related-list {
  display: grid;
  gap: 12px;
}

.app-download-related-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.app-download-related-link:hover,
.app-download-related-link.active {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-1px);
}

.app-download-related-link svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #2563eb;
}

.app-download-related-link span {
  min-width: 0;
}

.app-download-related-link em {
  display: none;
}

.app-download-steps-card ol {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-download-steps-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
}

.app-download-steps-card li > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 900;
}

.app-download-steps-card strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 0.95rem;
}

.app-download-steps-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.65;
}

.app-download-support-card {
  text-align: center;
}

.app-download-support-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
}

.app-download-support-card h2 {
  margin-bottom: 8px;
}

.app-download-support-card p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.92rem;
}

.app-download-support-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  background: #3b82f6;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.app-download-support-card a:visited {
  color: #fff !important;
}

.app-download-support-card a:hover {
  background: #2563eb;
  color: #fff !important;
}

@media (max-width: 980px) {
  .app-download-layout {
    grid-template-columns: 1fr;
  }

  .app-download-advantages-panel,
  .app-download-sidebar {
    grid-column: auto;
    grid-row: auto;
  }

  .app-download-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .app-download-shell {
    padding: 12px 0 40px;
  }

  .app-download-main-card,
  .app-download-side-card {
    border-radius: 12px;
  }

  .app-download-main-card {
    padding: 24px 18px;
  }

  .app-download-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-download-logo {
    width: 58px;
    height: 58px;
  }

  .app-download-meta {
    gap: 8px;
  }

  .app-download-advantages-grid {
    grid-template-columns: 1fr;
  }

  .app-download-meta span {
    white-space: normal;
  }

  .app-download-badge {
    width: 100%;
  }
}
