/* ── 口袋管家下载页样式 ── */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── 暗色主题（默认）── */
[data-theme="dark"] {
  --bg:          #0F172A;
  --bg-card:     #1E293B;
  --bg-hover:    #272F42;
  --bg-header:   rgba(15, 23, 42, 0.92);
  --text:        #F8FAFC;
  --text-muted:  #94A3B8;
  --accent:      #22C55E;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --accent-neon: rgba(34, 197, 94, 0.4);
  --border:      #475569;
  --code-bg:     #0B1120;
  --grid-line:   rgba(34, 197, 94, 0.04);
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.4);
  --crt:         rgba(0, 0, 0, 0.08);
}

/* ── 亮色主题 ── */
[data-theme="light"] {
  --bg:          #F0F4F8;
  --bg-card:     #FFFFFF;
  --bg-hover:    #E2EAF4;
  --bg-header:   rgba(240, 244, 248, 0.92);
  --text:        #0F172A;
  --text-muted:  #64748B;
  --accent:      #16A34A;
  --accent-glow: rgba(22, 163, 74, 0.12);
  --accent-neon: rgba(22, 163, 74, 0.28);
  --border:      #CBD5E1;
  --code-bg:     #E8EDF4;
  --grid-line:   rgba(22, 163, 74, 0.06);
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.08);
  --crt:         rgba(0, 0, 0, 0.025);
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  position: relative;
}

body.page-scroll-locked { overflow: hidden; }

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* CRT scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    var(--crt) 2px,
    var(--crt) 4px
  );
  pointer-events: none;
  z-index: 999;
}

.container { position: relative; z-index: 1; }

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 32px; height: 32px; }

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--accent-neon);
  transition: text-shadow 0.3s;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── Navigation ── */
nav { display: flex; gap: 32px; }
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* ── 主题切换 ── */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.theme-toggle svg { width: 18px; height: 18px; }

[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Header Download Button ── */
.btn-header-download {
  padding: 10px 20px;
  background: var(--accent);
  color: #0F172A;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--accent-neon);
}
.btn-header-download:hover { box-shadow: 0 0 32px var(--accent-neon); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  letter-spacing: 0.04em;
}
.hero-badge .dot {
  display: inline-block;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-neon);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero h1 span {
  color: var(--accent);
  text-shadow: 0 0 32px var(--accent-neon);
}

.hero p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ── Feature Tags ── */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.feature-tag svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.feature-tag:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}

/* ── Stats ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
}
.stat { text-align: center; }
.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-neon);
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}



/* ── Content ── */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-header code {
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--accent-glow);
  letter-spacing: 0.04em;
}

/* ── Product Showcase ── */
.product-showcase { padding-bottom: 80px; }

.showcase-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.showcase-heading .section-header { margin-bottom: 0; }
.showcase-heading > p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
  text-align: right;
}

.screenshot-tile { margin: 0; min-width: 0; }
.screenshot-tile-primary { margin-bottom: 16px; }
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-card {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.3s;
}
.screenshot-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 12px 36px var(--accent-glow), var(--shadow);
}
.screenshot-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.screenshot-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #EAF0F7;
  border-bottom: 1px solid var(--border);
}
.screenshot-frame::after {
  content: '';
  position: absolute;
  inset: 29px 0 0;
  pointer-events: none;
  box-shadow: inset 0 0 36px rgba(34, 197, 94, 0.08);
}
.screenshot-frame-wide { aspect-ratio: auto; }
.screenshot-window-bar {
  display: flex;
  align-items: center;
  flex: 0 0 30px;
  gap: 6px;
  padding: 0 12px;
  background: var(--code-bg);
  border-bottom: 1px solid var(--border);
}
.screenshot-window-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}
.screenshot-window-bar > span:first-child { background: #FB7185; }
.screenshot-window-bar > span:nth-child(2) { background: #FBBF24; }
.screenshot-window-bar > span:nth-child(3) { background: #22C55E; }
.screenshot-window-bar em {
  margin-left: 6px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.screenshot-frame img {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  object-fit: contain;
  object-position: top center;
}
.screenshot-frame-wide img { height: auto; flex: none; }

.screenshot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}
.screenshot-caption > span:first-child { display: grid; gap: 3px; }
.screenshot-caption strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.screenshot-caption small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}
.screenshot-zoom {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.screenshot-lightbox {
  width: min(1200px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: visible;
  background: transparent;
  color: var(--text);
  border: 0;
}
.screenshot-lightbox::backdrop {
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(8px);
}
.lightbox-shell {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 48px var(--accent-glow);
}
.lightbox-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(68vh, 720px);
  padding: 24px 72px;
  background: #EAF0F7;
}
.lightbox-media img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.2);
}
.lightbox-close,
.lightbox-nav {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { color: var(--accent); border-color: var(--accent); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 56px;
  border-radius: 12px;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.04); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.lightbox-caption > div { display: grid; gap: 2px; }
.lightbox-caption strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.lightbox-caption p { color: var(--text-muted); font-size: 11px; }
.lightbox-caption > span { color: var(--accent); font-size: 11px; white-space: nowrap; }

/* ── Feature Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  animation: fade-up 0.4s ease both;
}
.card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 12px; }

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.30s; }

.card-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.card-content p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Download Cards ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s;
  box-shadow: var(--shadow);
  animation: fade-up 0.4s ease both;
}
.download-card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}

.download-card:nth-child(1) { animation-delay: 0.05s; }
.download-card:nth-child(2) { animation-delay: 0.10s; }
.download-card:nth-child(3) { animation-delay: 0.15s; }
.download-card:nth-child(4) { animation-delay: 0.20s; }
.download-card:nth-child(5) { animation-delay: 0.25s; }

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 22px; height: 22px; color: var(--accent); }

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.card-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.card-downloads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #0F172A;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--accent-neon);
}
.btn-download:hover { box-shadow: 0 0 32px var(--accent-neon); transform: translateY(-1px); }
.btn-download.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-download.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-download svg { width: 14px; height: 14px; }

/* ── Instructions ── */
.instructions {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.instructions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .instructions-header { background: rgba(0, 0, 0, 0.04); }

.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red    { background: #EF4444; }
.terminal-dot.yellow { background: #EAB308; }
.terminal-dot.green  { background: #22C55E; box-shadow: 0 0 6px rgba(34,197,94,0.5); }

.terminal-title {
  margin-left: 12px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.instructions-body {
  padding: 20px 24px;
}
.instructions-body h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.instructions-body ul {
  list-style: none;
  margin-bottom: 20px;
}
.instructions-body li {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  letter-spacing: 0.02em;
}
.instructions-body li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}
.instructions-body li strong {
  color: var(--text);
}
.instructions-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s;
}
footer p { font-size: 12px; color: var(--text-muted); line-height: 1.8; letter-spacing: 0.04em; }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-shadow: 0 0 8px var(--accent-neon); }

/* ── Animations ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── FAQ ── */
.faq-search-wrap {
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
}
.faq-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.faq-search {
  width: 100%;
  padding: 12px 14px 12px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: all 0.2s;
}
.faq-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.faq-search::placeholder { color: var(--text-muted); opacity: 0.6; }

.faq-categories {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.faq-cat-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.faq-cat-btn:hover { color: var(--text); border-color: var(--text-muted); }
.faq-cat-btn.active { background: var(--accent); color: #0F172A; border-color: var(--accent); }

.faq-accordion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  animation: fade-up 0.4s ease both;
  transition: border-color 0.2s;
}
.faq-accordion[open] { border-color: var(--accent); }
.faq-accordion:hover { border-color: var(--accent); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }
.faq-question span { flex: 1; }
.faq-chevron {
  width: 16px; height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-accordion[open] .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.faq-answer code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}

.faq-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── 发布日志（changelog）─────────────────── */
.cl-timeline {
  position: relative;
  padding-left: 22px;
}
.cl-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.cl-entry {
  position: relative;
  margin-bottom: 14px;
  animation: fade-up 0.4s ease both;
}
.cl-node {
  position: absolute;
  left: -22px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.cl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.cl-card:hover { border-color: var(--accent); }
.cl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cl-platform {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.cl-platform-desktop { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); }
.cl-platform-android { color: #22c55e; border-color: rgba(34, 197, 94, 0.4); }
.cl-platform-ext     { color: #a78bfa; border-color: rgba(167, 139, 250, 0.4); }
.cl-version {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.cl-date {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.cl-changes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cl-change {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cl-tag {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 4px;
  margin-top: 1px;
}
.cl-tag-feat { color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.cl-tag-fix  { color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.cl-tag-perf { color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.cl-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
}
.faq-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--accent); }
.faq-item p { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.faq-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: text-shadow 0.2s;
}
.faq-more:hover { text-shadow: 0 0 8px var(--accent-neon); }
.faq-more svg { width: 14px; height: 14px; }

/* ── 移动端汉堡按钮 ── */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover { background: var(--bg-hover); border-color: var(--accent); }
.menu-toggle svg { width: 20px; height: 20px; }

/* ── 移动端抽屉 ── */
.mobile-drawer {
  position: fixed;
  top: 56px; left: 0; right: 0; bottom: 0;
  z-index: 90;
  pointer-events: none;
  visibility: hidden;
}
.mobile-drawer.active { pointer-events: auto; visibility: visible; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s;
}
.mobile-drawer.active .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(80vw, 320px);
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.mobile-drawer.active .drawer-panel { transform: translateX(0); }
.drawer-panel a {
  padding: 14px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.drawer-panel a:hover { background: var(--bg-hover); color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { height: 56px; }
  nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-right { gap: 12px; }
  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14px; }
  .showcase-heading { display: block; }
  .showcase-heading .section-header { margin-bottom: 10px; }
  .showcase-heading > p { max-width: none; text-align: left; }
  .screenshot-grid {
    display: flex;
    gap: 12px;
    margin-right: -24px;
    padding: 0 24px 12px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }
  .screenshot-grid .screenshot-tile {
    flex: 0 0 min(82vw, 360px);
    scroll-snap-align: start;
  }
  .screenshot-caption { padding: 14px; }
  .screenshot-zoom { display: none; }
  .screenshot-lightbox { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .lightbox-media { min-height: 0; padding: 58px 48px 20px; }
  .lightbox-media img { max-height: calc(100vh - 210px); }
  .lightbox-nav { width: 38px; height: 48px; font-size: 28px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-caption { align-items: flex-start; padding: 14px 16px; }
  .stats { flex-direction: column; gap: 20px; padding: 20px; margin-top: 32px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { padding: 20px; }
  .card-downloads { gap: 6px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .section-header h2 { font-size: 13px; }
}

/* ── Modal ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.active { display: flex; }

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.modal-close {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-body { padding: 24px; }

/* ── Tab Nav ── */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.15);
  padding: 4px;
  border-radius: 8px;
}
[data-theme="light"] .auth-tabs { background: rgba(0, 0, 0, 0.04); }
.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--accent); color: #0F172A; }

/* ── Auth Form ── */
.auth-form { display: none; }
.auth-form.active { display: block; }

.form-group { margin-bottom: 16px; }
.form-group:last-of-type { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.6; }

.form-error {
  font-size: 11px;
  color: #EF4444;
  margin-top: 6px;
  display: none;
}
.form-error.show { display: block; }

.btn-submit {
  width: 100%;
  padding: 14px 20px;
  background: var(--accent);
  color: #0F172A;
  border: none;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px var(--accent-neon);
}
.btn-submit:hover { box-shadow: 0 0 32px var(--accent-neon); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── User Menu ── */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.user-btn:hover { border-color: var(--accent); }
.user-btn svg { width: 14px; height: 14px; color: var(--accent); }
.user-btn .arrow { color: var(--text-muted); font-size: 10px; }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 160px;
  box-shadow: var(--shadow);
  z-index: 100;
  animation: dropdown-in 0.15s ease;
}
.user-dropdown.active { display: block; }

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.dropdown-item:hover { background: var(--bg-hover); }
.dropdown-item svg { width: 16px; height: 16px; color: var(--text-muted); }
.dropdown-item.danger { color: #EF4444; }
.dropdown-item.danger svg { color: #EF4444; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Login Button ── */
.btn-login {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent); }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 13px;
  box-shadow: var(--shadow);
  z-index: 1001;
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { border-color: var(--accent); color: var(--accent); }
.toast.error { border-color: #EF4444; color: #EF4444; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .modal-content { max-width: 100%; }
  .user-dropdown { right: -50%; }
}

/* ──────────────────────────────────────────────────────── */
/* ── 控制台 ── */
/* ──────────────────────────────────────────────────────── */

.console-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  position: relative;
  min-height: 70vh;
}

.console-side {
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
}

.console-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.console-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.console-nav-item:hover { background: var(--bg-hover); color: var(--text); }
.console-nav-item.active {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}
.console-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.console-content {
  position: relative;
  min-width: 0;
  min-height: 60vh;
}

.console-section { display: none; animation: fade-up 0.3s ease both; }
.console-section.active { display: block; }

/* ── 未登录遮罩 ── */
.console-gate {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.console-gate[hidden] { display: none; }
[data-theme="light"] .console-gate { background: rgba(240, 244, 248, 0.7); }

.console-gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 360px;
}
.console-gate-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.console-gate-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.console-gate-card .btn-submit { width: auto; padding: 12px 28px; }

/* ── 概览卡片 ── */
.console-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}
.stat-card-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.stat-card-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-neon);
  word-break: break-all;
}
.stat-card-value.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
}
.stat-card-value.text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  text-shadow: none;
  color: var(--text);
  word-break: break-word;
  line-height: 1.4;
}
.stat-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}
.stat-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.agent-profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.agent-avatar-preview {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  object-fit: cover;
}

div.agent-avatar-preview {
  display: grid;
  place-items: center;
  background: var(--bg-hover);
  color: var(--text-muted);
  font-size: 12px;
  border: 1px solid var(--border);
}

/* ── 通用小按钮 ── */
.btn-mini {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-mini:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-mini:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger-outline {
  border-color: rgba(239, 68, 68, 0.5);
  color: #EF4444;
}
.btn-danger-outline:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.08);
  border-color: #EF4444;
  color: #EF4444;
}
.btn-submit.btn-danger {
  background: #EF4444;
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.btn-submit.btn-danger:hover { box-shadow: 0 0 32px rgba(239, 68, 68, 0.5); }

/* ── 游戏账号卡 ── */
.game-accounts-list { display: flex; flex-direction: column; gap: 16px; }

.ga-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.ga-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.ga-nickname {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ga-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.ga-status {
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ga-status .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ga-status .dot-on  { background: var(--accent); box-shadow: 0 0 8px var(--accent-neon); }
.ga-status .dot-off { background: #94A3B8; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.badge-accent {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}
.badge-pending { background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.5); color: #EAB308; }
.badge-rewarded { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }
.badge-rejected { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.5); color: #EF4444; }

.ga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
}
.ga-field { display: flex; flex-direction: column; gap: 4px; }
.ga-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ga-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  padding-top: 6px;
}

.ga-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Select / Input 在控制台内的通用样式 ── */
.select-input {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.select-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
.select-input:disabled { opacity: 0.5; cursor: not-allowed; }

.ga-card .form-input { padding: 8px 10px; font-size: 12px; }

/* ── 空状态 / 加载 / 错误 ── */
.loading, .empty-cell {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.empty-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
}
.empty-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.empty-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.empty-card .btn-submit {
  display: inline-block;
  width: auto;
  padding: 12px 24px;
  text-decoration: none;
}

.empty-card-sm {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 13px;
}

.error-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid #EF4444;
  border-radius: 12px;
  color: #EF4444;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ── 推荐邀请 ── */
.referral-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.referral-code-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.referral-code-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.referral-code-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-neon);
  letter-spacing: 0.04em;
}
.referral-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.referral-tip { font-size: 12px; color: var(--text-muted); }
.referral-tip a,
.console-billing-link a { color: var(--accent); text-decoration: none; }
.console-billing-link {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.referral-binding-card {
  padding: 20px 24px;
  margin-bottom: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.referral-binding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.referral-binding-head h3 {
  margin-top: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.referral-binding-head p,
.referral-binding-detail {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}
.referral-apply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-end;
  gap: 12px;
  max-width: 620px;
  margin-top: 16px;
}
.referral-apply-form .form-group {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}
.referral-apply-form .btn-submit {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  min-width: 104px;
  padding: 12px 20px;
}
.referral-apply-form .form-error {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-bottom: 0;
}
.referral-binding-code {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 12px;
}
.referral-binding-code strong {
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.subhead {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── 激活码 ── */
.redeem-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  box-shadow: var(--shadow);
}
.redeem-form .btn-submit { width: auto; padding: 12px 28px; }

.form-success {
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
  display: none;
}
.form-success.show { display: block; }

/* ── 账号安全 ── */
.security-form {
  max-width: 520px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.security-form .btn-submit { width: auto; padding: 12px 28px; }
.security-note {
  margin: -4px 0 16px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}
.password-rule-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
  list-style: none;
}
.password-rule-list li { transition: color 0.15s; }
.password-rule-list li.met { color: var(--accent); }
.password-rule-list li.unmet { color: #EF4444; }
.password-match {
  min-height: 17px;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
.password-match.success { color: var(--accent); }
.password-match.error { color: #EF4444; }

/* ── 点数流水 ── */
.history-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.history-filters .select-input { width: auto; min-width: 160px; }

.history-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.history-table th, .history-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.history-table th {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.history-table td { color: var(--text); }
.history-table tbody tr:last-child td { border-bottom: none; }
.history-table tbody tr:hover { background: var(--bg-hover); }

.delta-pos { color: var(--accent); font-weight: 700; }
.delta-neg { color: #EF4444; font-weight: 700; }
.delta-zero { color: var(--text-muted); }

.history-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── 占位 ── */
.placeholder-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 60px 24px;
  text-align: center;
}
.placeholder-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.placeholder-card p { font-size: 13px; color: var(--text-muted); }

/* ── 续期 modal 预设 ── */
.renew-presets {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.modal-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.confirm-actions .btn-submit { width: auto; padding: 10px 24px; }

/* ── Responsive 控制台 ── */
@media (max-width: 900px) {
  .console-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 16px 60px;
  }
  .console-side { position: static; }
  .console-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .console-nav-item {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 12px;
  }
  .console-nav-item span { white-space: nowrap; }

  .ga-card { padding: 16px; }
  .ga-card-head { flex-direction: column; align-items: flex-start; }
  .stat-card { padding: 16px 18px; }
  .stat-card-value { font-size: 24px; }
  .stat-card-value.text { font-size: 16px; }
  .history-filters { gap: 8px; }
  .history-filters .select-input { flex: 1 1 140px; min-width: 0; }
  .security-form { padding: 18px; }
}

@media (max-width: 480px) {
  .password-rule-list { grid-template-columns: 1fr; }
  .security-form .btn-submit { width: 100%; }
  .referral-apply-form { grid-template-columns: 1fr; }
  .referral-apply-form .form-group {
    grid-column: 1;
    grid-row: 1;
  }
  .referral-apply-form .btn-submit {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
  }
  .referral-apply-form .form-error {
    grid-column: 1;
    grid-row: 3;
  }
}


/* ── Feature docs / manual ── */
.policy-page {
  max-width: 920px;
}
.policy-intro,
.policy-section {
  border-bottom: 1px solid var(--border);
  padding: 0 0 28px;
  margin-bottom: 28px;
}
.policy-intro p,
.policy-section p,
.policy-section li {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.85;
}
.policy-updated {
  color: var(--accent) !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px !important;
  margin-bottom: 10px;
}
.policy-section h2 {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 12px;
}
.policy-section ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 20px;
}
.policy-section strong {
  color: var(--text);
  font-weight: 600;
}
.policy-contact {
  border-bottom: 0;
  margin-bottom: 0;
}

.cloud-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cloud-home-card,
.download-cloud-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, var(--accent-glow), transparent 42%),
    var(--bg-card);
  box-shadow: var(--shadow);
}
.cloud-home-copy h2,
.download-cloud-note h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.35;
}
.cloud-home-copy p,
.download-cloud-note p {
  max-width: 780px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
.download-cloud-note p + p {
  margin-top: 8px;
}
.cloud-home-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.cloud-home-points span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg);
  font-size: 11px;
}
.cloud-home-actions {
  display: flex;
  min-width: 176px;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  text-align: center;
}
.cloud-home-actions .btn {
  justify-content: center;
  text-decoration: none;
}
.cloud-text-link {
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}
.cloud-text-link:hover {
  text-decoration: underline;
}
.download-cloud-note {
  margin-bottom: 40px;
}

.feature-doc-hero {
  padding-bottom: 44px;
}
.feature-doc-page {
  padding-bottom: 96px;
}
.feature-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}
.overview-copy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.overview-copy .section-header {
  margin-bottom: 12px;
}
.overview-copy p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 720px;
}
.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.overview-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.overview-stat strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-neon);
}
.overview-stat span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.feature-controls {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.feature-search-wrap {
  position: relative;
  display: block;
  margin-bottom: 12px;
}
.feature-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.feature-search {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  transition: all 0.2s;
}
.feature-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.feature-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  transition: all 0.2s;
}
.feature-tab span {
  color: var(--accent);
  font-size: 11px;
}
.feature-tab:hover,
.feature-tab.active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-glow);
}
.feature-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.feature-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-doc-card,
.manual-entry {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.feature-doc-card {
  padding: 18px;
  transition: all 0.2s;
}
.feature-doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}
.feature-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feature-card-icon,
.manual-entry-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  flex-shrink: 0;
}
.feature-card-icon svg,
.manual-entry-icon svg {
  width: 19px;
  height: 19px;
}
.feature-doc-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.feature-card-top span {
  color: var(--text-muted);
  font-size: 11px;
}
.feature-doc-card p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
  min-height: 62px;
}
.feature-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.feature-card-actions a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}
.feature-card-actions a:hover {
  text-shadow: 0 0 8px var(--accent-neon);
}
.risk-pill,
.safe-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.risk-pill {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}
.safe-pill {
  color: var(--text-muted);
  background: transparent;
}
.feature-empty {
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.cloud-feature-overview {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--bg-card), var(--accent-glow));
  box-shadow: var(--shadow);
}
.cloud-feature-lead {
  max-width: 900px;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
.cloud-feature-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.cloud-feature-actions .btn {
  text-decoration: none;
}
.panel-guide {
  margin-bottom: 28px;
}
.panel-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.panel-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.panel-guide-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.panel-guide-card p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.panel-guide-card ul {
  list-style: none;
}
.panel-guide-card li {
  display: grid;
  grid-template-columns: minmax(72px, 96px) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.6;
}
.panel-guide-card li strong {
  color: var(--text);
}
.panel-guide-card li span {
  color: var(--text-muted);
}
.cloud-hang-guide,
#cloud-hang-pricing {
  scroll-margin-top: 84px;
}
.cloud-hang-guide {
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background:
    linear-gradient(180deg, var(--accent-glow), transparent 240px),
    var(--bg);
}
.cloud-hang-intro p + p,
.cloud-hang-tips p + p {
  margin-top: 8px;
}
.cloud-hang-block {
  margin-top: 26px;
}
.cloud-hang-block > h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.cloud-hang-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.purchase-steps.cloud-hang-steps li {
  position: relative;
  display: block;
  grid-template-columns: none;
  min-width: 0;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  counter-increment: purchase-step;
}
.purchase-steps.cloud-hang-steps li:last-child {
  grid-column: 1 / -1;
}
.purchase-steps.cloud-hang-steps li::before {
  content: counter(purchase-step, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 18px;
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.purchase-steps.cloud-hang-steps strong {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 1.5;
}
.purchase-steps.cloud-hang-steps span {
  display: block;
  line-height: 1.75;
}
.cloud-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cloud-status-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.cloud-status-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 13px;
}
.cloud-status-card p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}
.cloud-status-card.active {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
}
.cloud-status-card.active strong {
  color: #10B981;
}
.cloud-status-card.warning {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
}
.cloud-status-card.warning strong {
  color: #F59E0B;
}
.cloud-hang-lifecycle {
  margin-top: 26px;
}
.cloud-hang-boundaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.cloud-hang-boundaries article {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.cloud-hang-boundaries article.success {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}
.cloud-hang-boundaries article.warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
}
.cloud-hang-boundaries h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
}
.cloud-hang-boundaries ul {
  display: grid;
  gap: 7px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.65;
}
.cloud-hang-tips {
  margin-top: 26px;
  margin-bottom: 0;
}
.manual-list {
  display: grid;
  gap: 12px;
}
.manual-entry {
  overflow: hidden;
  scroll-margin-top: 180px;
}
.manual-entry summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}
.manual-entry summary::-webkit-details-marker {
  display: none;
}
.manual-entry summary strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.manual-entry summary em {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-style: normal;
  font-size: 11px;
}
.manual-entry[open] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}
.manual-entry-body {
  border-top: 1px solid var(--border);
  padding: 18px;
}
.manual-summary,
.manual-block p,
.manual-block li,
.manual-warning li {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.75;
}
.manual-summary {
  color: var(--text);
  margin-bottom: 16px;
}
.manual-block {
  margin-top: 16px;
}
.manual-block h4,
.manual-warning strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.manual-block ul,
.manual-warning ul {
  list-style: none;
}
.manual-block li,
.manual-warning li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.manual-block li::before,
.manual-warning li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.setting-list li {
  display: grid;
  grid-template-columns: minmax(96px, 160px) minmax(0, 1fr);
  gap: 10px;
}
.setting-list li strong {
  color: var(--text);
}
.setting-list li span {
  color: var(--text-muted);
}
.manual-warning {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}
.manual-warning strong {
  color: #F59E0B;
}

/* ── 价格与计费 ── */
.pricing-hero p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-page {
  display: grid;
  gap: 38px;
}
.pricing-section {
  min-width: 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.price-card {
  position: relative;
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow), var(--shadow);
}
.price-card-saving {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 11px;
  font-weight: 700;
}
.price-card-name {
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.price-card-price {
  margin-top: 14px;
  font-family: 'Orbitron', sans-serif;
  color: var(--text);
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  line-height: 1;
}
.price-card-price small {
  margin-right: 3px;
  color: var(--accent);
  font-size: 16px;
  vertical-align: top;
}
.price-card-duration {
  margin-top: 18px;
  color: var(--text);
  font-size: 13px;
}
.price-card-points {
  margin-top: 5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.pricing-caption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}
.billing-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.billing-rule-card {
  position: relative;
  min-width: 0;
  padding: 20px 20px 20px 62px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.billing-rule-card > span {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.billing-rule-card h3,
.bonus-note h3 {
  margin-bottom: 7px;
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.billing-rule-card p,
.bonus-note p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.75;
}
.tier-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.tier-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.tier-card.featured {
  border-color: var(--accent);
  background:
    linear-gradient(145deg, var(--bg-card), var(--accent-glow));
}
.tier-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.tier-label {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}
.tier-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
}
.tier-card-heading > strong {
  flex: none;
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
}
.tier-card ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}
.purchase-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr);
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--accent);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-card), var(--accent-glow));
  box-shadow: var(--shadow);
}
.purchase-panel .section-header {
  margin-bottom: 14px;
}
.purchase-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  counter-reset: purchase-step;
}
.purchase-steps li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  font-size: 12px;
  line-height: 1.65;
}
.purchase-steps strong {
  color: var(--text);
}
.purchase-steps span {
  color: var(--text-muted);
}
.purchase-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  text-align: center;
}
.purchase-action p {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.purchase-action .btn {
  justify-content: center;
  text-decoration: none;
}
.purchase-action small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}
.bonus-note {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.bonus-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.bonus-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12px;
}
.bonus-table th,
.bonus-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.bonus-table th {
  color: var(--text-muted);
  font-weight: 500;
}
.bonus-table td {
  color: var(--text);
}
.bonus-table tbody tr:last-child td {
  border-bottom: 0;
}
.pricing-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}
.pricing-help h2 {
  margin-bottom: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
}
.pricing-help p {
  color: var(--text-muted);
  font-size: 12px;
}
.pricing-help a {
  flex: none;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .feature-overview {
    grid-template-columns: 1fr;
  }
  .feature-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cloud-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cloud-home-card,
  .download-cloud-note {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 18px;
  }
  .cloud-home-actions {
    min-width: 0;
    align-items: stretch;
  }
  .cloud-feature-overview,
  .cloud-hang-guide {
    padding: 18px;
  }
  .cloud-feature-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .cloud-feature-actions .btn {
    justify-content: center;
  }
  .feature-doc-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .feature-controls {
    top: 56px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 10px;
  }
  .overview-stats,
  .feature-doc-grid {
    grid-template-columns: 1fr;
  }
  .panel-guide-grid {
    grid-template-columns: 1fr;
  }
  .panel-guide-card li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .feature-doc-card p {
    min-height: 0;
  }
  .feature-card-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .setting-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pricing-page {
    gap: 30px;
  }
  .pricing-grid,
  .billing-rule-grid,
  .tier-compare-grid,
  .purchase-panel {
    grid-template-columns: 1fr;
  }
  .cloud-status-grid,
  .cloud-hang-boundaries {
    grid-template-columns: 1fr;
  }
  .purchase-steps.cloud-hang-steps li {
    padding: 16px 16px 16px 52px;
  }
  .cloud-hang-steps {
    grid-template-columns: 1fr;
  }
  .purchase-steps.cloud-hang-steps li:last-child {
    grid-column: auto;
  }
  .purchase-steps.cloud-hang-steps li::before {
    top: 16px;
    left: 16px;
  }
  .tier-card-heading {
    flex-direction: column;
    gap: 10px;
  }
  .purchase-panel {
    padding: 18px;
  }
  .purchase-steps li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pricing-help {
    align-items: flex-start;
    flex-direction: column;
  }
  .bonus-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
  }
  .bonus-table th,
  .bonus-table td {
    padding: 10px 8px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}
