/* 平博 Pinnacle · 世界杯引流落地页 */

:root {
  --bg: #0a0f14;
  --bg-card: #121a24;
  --bg-elevated: #1a2535;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --gold: #f5c518;
  --gold-dark: #d4a017;
  --green: #22c55e;
  --green-dark: #16a34a;
  --accent: #3b82f6;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 14px;
  --header-h: 56px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

.site-main,
body > main {
  padding-top: var(--header-h);
}

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

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0a0f14;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 6px 28px rgba(245, 197, 24, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

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

/* 顶栏 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-icon {
  font-size: 1.4rem;
}

.logo em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

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

.nav-links a:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 1.5rem 0 3rem;
  overflow: visible;
}

.hero-pitch {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, var(--bg) 85%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 49px,
      rgba(34, 197, 94, 0.03) 49px,
      rgba(34, 197, 94, 0.03) 50px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 49px,
      rgba(34, 197, 94, 0.03) 49px,
      rgba(34, 197, 94, 0.03) 50px
    );
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 1;
}

.hero-banner {
  width: 100%;
  max-width: 1085px;
  margin: 0 auto 1.75rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hero-content {
  min-width: 0;
}

.hero-side {
  min-width: 0;
}

.activity-placeholder-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  aspect-ratio: 1085 / 386;
  min-height: 140px;
  background: repeating-linear-gradient(
    -45deg,
    #1a2535,
    #1a2535 10px,
    #121a24 10px,
    #121a24 20px
  );
  border: 2px dashed rgba(245, 197, 24, 0.45);
  border-radius: var(--radius);
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

.activity-placeholder-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.activity-placeholder-slot .ph-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
}

.activity-placeholder-slot .ph-size {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.geo-summary-inline {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.geo-summary-inline a {
  color: var(--gold);
  margin-left: 0.35rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--gold), #fff8dc, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-desc strong {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stat-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Speed test */
.section-speed {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.speed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.speed-status {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.speed-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.speed-empty {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.speed-empty code {
  color: var(--gold);
  font-size: 0.85em;
}

.speed-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 92px minmax(168px, auto);
  gap: 0.45rem 0.85rem;
  align-items: center;
  padding: 0.45rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.speed-row.is-selected {
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.2);
}

.speed-row.is-fail {
  opacity: 0.65;
}

.speed-rank {
  grid-column: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-radius: 6px;
}

.speed-row:first-child .speed-rank {
  color: var(--gold);
  background: rgba(245, 197, 24, 0.12);
}

.speed-info h3 {
  font-size: 0.84rem;
  margin-bottom: 0;
}

.speed-info {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.speed-host {
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.speed-latency {
  grid-column: 3;
  font-weight: 700;
  font-size: 0.76rem;
  white-space: nowrap;
  text-align: right;
}

.latency-fast { color: #4ade80; }
.latency-good { color: #22c55e; }
.latency-ok { color: var(--gold); }
.latency-slow { color: #fb923c; }
.latency-bad { color: #f87171; }

.speed-actions {
  grid-column: 4;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.speed-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  background: var(--green);
  color: #0a0f14;
  border-radius: 6px;
}

.speed-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.speed-pick:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#btn-speedtest:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Promo banner */
.promo-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.08) 0%, rgba(34, 197, 94, 0.06) 100%);
  border-block: 1px solid var(--border);
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.promo-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0.5rem 0 1rem;
}

.promo-content p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.promo-content strong {
  color: var(--gold);
}

.promo-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.promo-list li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.money-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-card));
  border: 2px solid rgba(245, 197, 24, 0.4);
  border-radius: 50%;
  box-shadow: var(--shadow), 0 0 60px rgba(245, 197, 24, 0.15);
}

.money-stack .currency {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 300;
}

.money-stack .amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.money-stack .label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* Feature cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(245, 197, 24, 0.3);
  transform: translateY(-4px);
}

.feature-card.featured {
  border-color: rgba(245, 197, 24, 0.45);
  background: linear-gradient(160deg, rgba(245, 197, 24, 0.06) 0%, var(--bg-card) 50%);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: var(--gold);
  color: #0a0f14;
  border-radius: 6px;
}

/* World Cup grid */
.wc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.wc-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.wc-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.wc-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.wc-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 2rem 0 3rem;
}

.steps li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(245, 197, 24, 0.35);
  line-height: 1;
}

.steps h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cta-block {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: var(--radius);
}

.cta-block h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-block p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: #060a0e;
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-disclaimer a {
  color: var(--gold);
  text-decoration: underline;
}

.footer-links {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.75rem;
  color: #64748b;
}

/* Float CTA */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0f14;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(245, 197, 24, 0.45);
  transition: transform 0.2s;
}

.float-cta:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    margin-bottom: 1.25rem;
  }

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

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

  .promo-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promo-visual {
    display: flex;
    justify-content: center;
  }

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

/* 人机验证门禁 */
html.site-locked body > *:not(#human-gate):not(script) {
  visibility: hidden;
  pointer-events: none;
}

#human-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 10, 14, 0.97);
  backdrop-filter: blur(8px);
}

.verify-panel {
  width: min(420px, 100%);
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.verify-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.verify-panel h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.verify-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.verify-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.verify-label {
  display: block;
  text-align: left;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.verify-input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
}

.verify-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  cursor: pointer;
}

.verify-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.verify-error {
  color: #f87171;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

.verify-foot {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

body.site-denied .verify-panel form {
  pointer-events: none;
  opacity: 0.6;
}

/* 访问提示弹窗（自动关闭，不可手动关） */
body.network-modal-open {
  overflow: hidden;
}

.network-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: auto;
}

.network-modal.is-visible {
  opacity: 1;
}

.network-modal.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.network-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 14, 0.72);
  backdrop-filter: blur(4px);
}

.network-modal-panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  padding: 2rem 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(245, 197, 24, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.network-modal-title {
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 900;
  margin-bottom: 0.65rem;
  color: var(--gold);
  line-height: 1.25;
}

.network-modal-text {
  font-size: clamp(1.25rem, 4.5vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.network-modal-countdown {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.network-modal-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.network-modal-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 4px;
}

.verify-vpn-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}

/* 用户自定义图片 */
.site-img {
  display: block;
}

.site-img[hidden] {
  display: none !important;
}

.site-img.has-img {
  display: block;
}

.site-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.site-img--logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  background: #fff;
  border-radius: 6px;
  line-height: 0;
}

.site-img--logo img {
  width: auto;
  max-height: 44px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-img--hero {
  margin-top: 0;
}

.site-img--hero img {
  aspect-ratio: 16 / 9;
}

.site-img--promo {
  max-width: 480px;
  margin-inline: auto;
}

.site-img--promo img {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}

.promo-visual {
  position: relative;
}

.promo-visual .site-img--promo.has-img + .promo-fallback {
  display: none;
}

.site-img--banner {
  margin-bottom: 1.5rem;
}

.site-img--banner img {
  aspect-ratio: 3 / 1;
}

.site-img--guide {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.site-img--guide img {
  aspect-ratio: 8 / 5;
}

.site-img--thumb img {
  border-radius: var(--radius) var(--radius) 0 0;
}

.site-img--cover {
  margin-top: 1rem;
}

.site-img--cover img {
  aspect-ratio: 3 / 1;
}

/* 活动轮播 / 占位 1085×386 */
.activity-carousel {
  position: relative;
  width: 100%;
}

.activity-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 1085 / 386;
  width: 100%;
  min-height: 160px;
  background: var(--bg-card);
}

.activity-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.activity-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.activity-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.activity-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.activity-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

.activity-slide-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-slide-ph[hidden] {
  display: none !important;
}

.activity-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  min-height: 160px;
  padding: 1rem;
  box-sizing: border-box;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    #1a2535,
    #1a2535 10px,
    #121a24 10px,
    #121a24 20px
  );
}

.activity-placeholder.is-error {
  border: 2px dashed rgba(239, 68, 68, 0.5);
}

.activity-ph-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
}

.activity-ph-size {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  font-family: ui-monospace, monospace;
}

.activity-ph-file {
  font-size: 0.75rem;
  color: var(--accent);
  word-break: break-all;
}

.activity-ph-status {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.activity-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(10, 15, 20, 0.75);
  color: var(--gold);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.activity-arrow:hover {
  background: rgba(245, 197, 24, 0.25);
}

.activity-prev {
  left: 0.75rem;
}

.activity-next {
  right: 0.75rem;
}

.activity-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
}

.activity-dot.is-active {
  background: var(--gold);
}

@media (max-width: 768px) {
  .activity-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }
}


/* 文章 */
.article-hero {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0.5rem 0 0.75rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-body {
  padding: 2.5rem 0 4rem;
}

.article-body .container {
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--gold);
}

.article-body p,
.article-body li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-cards {
  display: grid;
  gap: 1rem;
  padding: 2rem 0 4rem;
}

.article-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: rgba(245, 197, 24, 0.35);
  transform: translateY(-2px);
}

.article-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-card time {
  font-size: 0.8rem;
  color: var(--green);
}

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.5rem;
}

.article-card[hidden] {
  display: none;
}

.article-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 0 0.5rem;
}

.article-filter-btn {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.article-filter-btn:hover,
.article-filter-btn.is-active {
  border-color: rgba(245, 197, 24, 0.45);
  color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
}

.article-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0 3rem;
}

.article-pagination[hidden] {
  display: none;
}

.article-pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.article-pagination-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.article-page-btn {
  font-family: inherit;
  font-size: 0.85rem;
  min-width: 2.25rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.article-page-btn:hover,
.article-page-btn.is-active {
  border-color: rgba(245, 197, 24, 0.45);
  color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
}

.article-related {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.article-related h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.related-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.related-list a {
  display: block;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}

.related-list a:hover {
  border-color: rgba(245, 197, 24, 0.35);
  color: var(--gold);
}

.article-body .article-domain-tip {
  padding: 0.85rem 1rem;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: var(--radius-sm);
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.article-body .article-domain-tip strong {
  color: var(--gold);
}

@media (min-width: 769px) {
  .article-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: var(--gold);
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .nav.open .nav-cta {
    display: inline-flex;
    margin: 0 1.5rem 1rem;
  }
}

/* ===== 紧凑转化布局 ===== */
:root {
  --mobile-bar-h: 52px;
}

.hero-enter {
  padding: 0.65rem 0 0.5rem;
}

.enter-teaser .cta-block {
  margin: 0;
}

.promo-strip {
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.18) 0%, rgba(34, 197, 94, 0.1) 100%);
  border-bottom: 1px solid rgba(245, 197, 24, 0.25);
  padding: 0.55rem 0;
}

.promo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.promo-strip-text {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.promo-strip-text strong {
  font-size: 1.15rem;
  color: var(--gold);
  white-space: nowrap;
}

.promo-strip-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero {
  padding: 0.65rem 0 0.85rem;
}

.hero-banner {
  margin-bottom: 0.65rem;
}

.hero-compact {
  text-align: center;
}

.hero-compact h1 {
  font-size: clamp(1.2rem, 4.2vw, 1.65rem);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.hero-compact .hero-desc {
  font-size: 0.82rem;
  margin-bottom: 0;
  max-width: none;
}

.section-compact {
  padding: 1.1rem 0;
}

.section-priority {
  padding-top: 0.5rem;
}

.section-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-head-row .section-title {
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  margin-bottom: 0;
}

.section-title-sm {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.section-speed {
  padding: 0.75rem 0 1rem;
}

.speed-status {
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
}

.speed-list {
  gap: 0.35rem;
}

.speed-list-head {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 92px minmax(168px, auto);
  gap: 0.5rem 0.85rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.15rem;
}

.speed-list-head span:nth-child(3),
.speed-list-head span:nth-child(4) {
  text-align: right;
}

.speed-row {
  grid-template-columns: 26px minmax(0, 1fr) 92px minmax(168px, auto);
  gap: 0.45rem 0.85rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  align-items: center;
}

.speed-rank {
  width: 24px;
  height: 24px;
  font-size: 0.78rem;
  border-radius: 6px;
}

.speed-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.speed-info h3 {
  flex-shrink: 0;
  font-size: 0.84rem;
  margin: 0;
  white-space: nowrap;
}

.speed-hint {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.speed-latency {
  font-size: 0.76rem;
  text-align: right;
}

.speed-actions {
  flex-wrap: nowrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.speed-open {
  min-width: 4.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.speed-badge {
  flex-shrink: 0;
}

.promo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin-bottom: 0.75rem;
}

.promo-tags li {
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 999px;
  color: var(--gold);
}

.btn-block {
  width: 100%;
}

.advantage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.advantage-chips span {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
}

.faq-section .faq-item {
  margin-bottom: 0.4rem;
}

.faq-section .faq-item summary {
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
}

.faq-section .faq-item p {
  padding: 0 0.85rem 0.75rem;
  font-size: 0.82rem;
}

.site-footer-compact {
  padding: 1rem 0;
  text-align: center;
}

.site-footer-compact p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  height: var(--mobile-bar-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(10, 15, 20, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  grid-template-columns: 1fr 1.2fr;
}

.mobile-bar-link,
.mobile-bar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.mobile-bar-link {
  color: var(--text-muted);
  border-right: 1px solid var(--border);
}

.mobile-bar-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0f14;
  font-weight: 800;
}

.section-tight {
  padding: 2.25rem 0;
}

.section-desc-tight {
  margin-bottom: 1rem;
  max-width: 640px;
}

.promo-banner.section-tight {
  padding: 2.25rem 0;
}

.section-tight .section-title {
  margin-bottom: 0.5rem;
}

.section-tight .section-desc {
  margin-bottom: 1rem;
}

.section-tight .wc-grid {
  margin: 1.25rem 0 1rem;
}

.section-tight .steps {
  margin: 1.25rem 0 1.75rem;
}

.section-tight .steps li {
  padding: 1rem 0;
}

.section-tight .cta-block {
  padding: 2rem 1.5rem;
}

.section-tight .cards-grid {
  gap: 1rem;
}

.section-tight .feature-card {
  padding: 1.35rem;
}

.hero .hero-desc {
  margin-bottom: 1.25rem;
}

.hero .hero-actions {
  margin-bottom: 1.5rem;
}

.hero .hero-stats {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .mobile-bar {
    display: grid;
  }

  .site-footer {
    padding-bottom: calc(2.5rem + var(--mobile-bar-h));
  }

  .speed-list-head {
    display: none;
  }

  .float-cta {
    display: none;
  }

  .promo-strip-text span {
    font-size: 0.75rem;
  }

  .speed-row {
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.35rem 0.55rem;
    padding: 0.55rem 0.65rem;
  }

  .speed-rank {
    grid-row: 1 / 3;
    align-self: start;
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .speed-info {
    grid-column: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .speed-info h3 {
    font-size: 0.82rem;
  }

  .speed-hint {
    font-size: 0.68rem;
  }

  .speed-latency {
    grid-column: 2;
    text-align: left;
    font-size: 0.72rem;
  }

  .speed-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .speed-pick {
    display: none;
  }

  .speed-open {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .activity-dots {
    margin-top: 0.5rem;
  }

  .activity-viewport {
    min-height: 120px;
  }
}
