/* ==========================================================================
   RackNerd 黑五 VPS 落地页 — 样式表
   设计基调：深空蓝底 + 琥珀橙强调（黑五氛围），无外部字体、无外部请求
   ========================================================================== */

:root {
  /* 底色与层次 */
  --bg: #080b12;
  --surface: #0f1622;
  --surface-2: #131c2b;
  --border: #223047;
  --border-soft: rgba(255, 255, 255, 0.08);

  /* 文字 */
  --text: #eef3fa;          /* 对 --bg 约 17:1 */
  --text-soft: #c2cede;     /* 对 --bg 约 11:1 */
  --text-muted: #93a3ba;    /* 对 --bg 约 7:1 */

  /* 强调色 */
  --accent: #ff6b35;        /* 按钮底色，配 --ink 文字约 6.4:1 */
  --accent-strong: #ff8a4c;
  --accent-ink: #0a0f18;    /* 用在橙色按钮上的深色文字 */
  --teal: #38d9f0;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shell: 1180px;
  --gutter: 20px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent-strong); text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, p, figure { margin: 0; }

/* 焦点样式：键盘可见、鼠标不干扰 */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

/* 跳转链接（键盘/读屏） */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 18, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border-soft);
  background: rgba(8, 11, 18, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #d94f16);
  color: #16060a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.28);
}
.brand-text { display: inline-flex; align-items: baseline; gap: 8px; font-size: 17px; }
.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--text-soft);
  font-size: 14.5px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.995); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 34px rgba(255, 107, 53, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent-strong);
  border-color: rgba(255, 138, 76, 0.45);
}
.btn-outline:hover {
  background: rgba(255, 107, 53, 0.12);
  border-color: var(--accent);
  color: #ffb490;
}

.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
}
/* 背景网格与光晕（纯 CSS，零图片请求） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(760px 420px at 78% 8%, rgba(255, 107, 53, 0.16), transparent 70%),
    radial-gradient(620px 460px at 12% 82%, rgba(56, 217, 240, 0.1), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 107, 53, 0.4);
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.1);
  color: #ffb08c;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 900;
}
h1 .hl {
  display: inline-block;
  margin-top: 8px;
  color: var(--text);
  background: linear-gradient(100deg, #ffffff 12%, #ffb08c 62%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 4px;
}
.nowrap { white-space: nowrap; }
.price-inline {
  -webkit-text-fill-color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.lead {
  max-width: 56ch;
  margin-top: 20px;
  color: var(--text-soft);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
}

/* 倒计时 */
.countdown {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.countdown-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}
.countdown-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.cd-cell {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 6px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.cd-num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  line-height: 1.2;
}
.cd-unit { font-size: 12px; color: var(--text-muted); }
.countdown.is-expired .countdown-grid { opacity: 0.35; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-actions.center { justify-content: center; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 13.5px;
}
.trust-row li {
  position: relative;
  padding-left: 18px;
}
.trust-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Hero 图片 */
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  isolation: isolate;
}
.hero-media-frame { position: relative; overflow: hidden; }
.hero-media picture { display: block; }
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.98);
}
.hero-media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.05) 0%, rgba(8, 11, 18, 0.62) 100%);
  pointer-events: none;
}
.hero-media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(10, 15, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-media-badge strong {
  font-size: 20px;
  letter-spacing: 0.4px;
  color: #ffffff;
}
.hero-media-badge span { font-size: 12px; color: var(--text-muted); }

/* 图片下方的关键数字条 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.035);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-right: 1px solid var(--border-soft);
}
.hero-stats li:last-child { border-right: 0; }
.hero-stats b {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
  line-height: 1.3;
}
.hero-stats span { font-size: 12px; color: var(--text-muted); }

/* ==========================================================================
   通用分区
   ========================================================================== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-head { max-width: 720px; margin: 0 auto clamp(30px, 4vw, 48px); text-align: center; }
.section-head-left { margin-inline: 0; text-align: left; }

.section-kicker {
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
}
h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.6px;
  font-weight: 800;
  color: var(--text);
}
h3 { font-size: 19px; line-height: 1.35; font-weight: 700; }
.section-desc {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 15.5px;
}

/* ==========================================================================
   套餐卡片
   ========================================================================== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.plan:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 76, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}

.plan-featured {
  border-color: rgba(255, 107, 53, 0.65);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 107, 53, 0.16), transparent 62%),
    linear-gradient(180deg, #1a1524 0%, var(--surface) 100%);
  box-shadow: 0 18px 48px rgba(255, 107, 53, 0.16);
}
.plan-flag {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.plan-head h3 { font-size: 18px; letter-spacing: 0.2px; }
.plan-fit {
  margin-top: 6px;
  min-height: 2.6em;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.3;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 16px;
  color: #ffffff;
  font-size: clamp(31px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: -1.2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.plan-price .cur { font-size: 20px; font-weight: 800; letter-spacing: 0; align-self: flex-start; margin-top: 6px; }
.plan-price .per { font-size: 15px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.plan-month {
  margin-top: 4px;
  color: var(--teal);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.plan-specs {
  margin: 18px 0 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.95;
}
.plan-specs li { display: flex; gap: 8px; }
.plan-specs li::before {
  content: "›";
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 auto;
}
.plan-specs b { color: var(--text); font-weight: 700; }

.plan-cta { margin-top: auto; width: 100%; white-space: nowrap; padding-inline: 12px; font-size: 15px; }

.plan-note {
  max-width: 720px;
  margin: 26px auto 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 107, 53, 0.07);
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ==========================================================================
   优势（左侧列表 + 右侧图片）
   ========================================================================== */
.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.feature {
  display: flex;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.feature:hover { border-color: rgba(56, 217, 240, 0.35); transform: translateY(-2px); }
.feature-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent-strong);
}
.feature h3 { font-size: 16px; }
.feature p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.why-media {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.why-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.why-media figcaption {
  padding: 12px 16px 16px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ==========================================================================
   机房
   ========================================================================== */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.loc-card {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s var(--ease);
}
.loc-card:hover { border-color: rgba(56, 217, 240, 0.35); }
.loc-card h3 { font-size: 16.5px; }
.loc-card p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chips li {
  padding: 5px 12px;
  border: 1px solid rgba(56, 217, 240, 0.28);
  border-radius: 999px;
  background: rgba(56, 217, 240, 0.08);
  color: #a9e9f5;
  font-size: 12.5px;
  font-weight: 600;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255, 255, 255, 0.035); }
.faq-q {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p {
  padding: 0 18px 18px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

/* ==========================================================================
   结尾 CTA
   ========================================================================== */
.cta-band {
  position: relative;
  padding: clamp(52px, 7vw, 84px) 0;
  text-align: center;
  background:
    radial-gradient(680px 340px at 50% 0%, rgba(255, 107, 53, 0.2), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border-soft);
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); }
.cta-band p {
  max-width: 60ch;
  margin: 12px auto 0;
  color: var(--text-soft);
  font-size: 15px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  padding: clamp(44px, 6vw, 68px) 0 24px;
  border-top: 1px solid var(--border-soft);
  background: #070a10;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.55fr) minmax(0, 0.55fr);
  gap: 28px 32px;
}
.footer-brand-name { margin-top: 12px; font-size: 16px; font-weight: 700; color: var(--text); }
.footer-tag { color: var(--text-muted); font-size: 13.5px; }

.footer-nav-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.footer-nav ul { margin-top: 12px; display: grid; gap: 8px; }
.footer-nav a { color: var(--text-soft); font-size: 14px; }
.footer-nav a:hover { color: var(--accent-strong); }

.footer-disclaimer {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.footer-disclaimer p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}
.footer-disclaimer strong { color: var(--text-soft); font-weight: 700; }
.footer-disclaimer a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 12.5px;
}
.footer-bottom-links { display: inline-flex; gap: 10px; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-soft); }

/* ==========================================================================
   进场动画（尊重 prefers-reduced-motion）
   ========================================================================== */
/* 默认可见；只有确认 JS 可用（html.js）时才收起，避免脚本失败导致内容消失 */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1160px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .why-inner { grid-template-columns: 1fr; }
  .why-media { position: static; order: -1; max-width: 720px; }
  .faq-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  /* 移动端去掉毛玻璃：backdrop-filter 会给下拉菜单带来合成层透底问题 */
  .site-header,
  .site-header.is-scrolled {
    background: #080b12;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 18px;
    background: #0a0f18;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.55);
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 8px; font-size: 15px; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
  .nav-toggle { display: block; }
  .header-cta { padding: 9px 12px; font-size: 13px; border-radius: 9px; }

  .feature-list { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  .brand-sub { display: none; }
  h1 { letter-spacing: -0.5px; }
  .hero { padding-top: 24px; }
  .countdown { padding: 14px; }
  .countdown-grid { gap: 6px; }
  .hero-actions .btn { width: 100%; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan { padding: 22px 18px; }
  .plan-price { font-size: 34px; }
  .plan-specs { line-height: 1.8; }
  .plan-fit { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero-media-badge { left: 12px; bottom: 12px; padding: 8px 12px; }
  .hero-media-badge strong { font-size: 17px; }
}

/* 动画减弱 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* 强制高对比（系统设置） */
@media (prefers-contrast: more) {
  :root { --text-muted: #c2cede; --border: #3a4d6b; }
}
