/* ==========================================================================
   狗狗加速 落地页样式表
   设计风格：浅色简约 + 电光蓝/暖金渐变主色 + 圆角卡片
   ========================================================================== */

:root {
  --bg-base: #F7F9FC;
  --bg-alt: #F0F4FF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FBFCFF;
  --border-soft: #E7ECF5;
  --text-primary: #16213E;
  --text-secondary: #57607A;
  --text-muted: #8B93AC;
  --accent-blue: #2F6FED;
  --accent-blue-dark: #1D4FBE;
  --accent-gold: #FFB020;
  --accent-gold-dark: #E8940A;
  --accent-green: #2FBF71;
  --gradient-brand: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-gold) 100%);
  --gradient-bg: radial-gradient(circle at 18% -10%, rgba(47, 111, 237, 0.10), transparent 45%),
    radial-gradient(circle at 88% 8%, rgba(255, 176, 32, 0.12), transparent 40%),
    linear-gradient(180deg, #F7F9FC 0%, #FFFFFF 55%, #F7F9FC 100%);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px rgba(22, 33, 62, 0.06);
  --shadow-strong: 0 18px 46px rgba(22, 33, 62, 0.12);
  --container-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans SC", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-blue-dark);
  background: rgba(47, 111, 237, 0.08);
  border: 1px solid rgba(47, 111, 237, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

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

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 16px;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(47, 111, 237, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 111, 237, 0.36);
}

.btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---------------------------------- 顶部导航 ---------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-logo {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-blue-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold-dark);
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.32);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats div span {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(47, 111, 237, 0.14));
}

/* ---------------------------------- 通用卡片网格 ---------------------------------- */

section {
  position: relative;
  padding: 96px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------- 核心优势 ---------------------------------- */

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

.feature-card {
  padding: 30px 26px;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(47, 111, 237, 0.28);
}

.feature-card img {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ---------------------------------- 节点分布 ---------------------------------- */

.nodes {
  background: linear-gradient(180deg, transparent, rgba(255, 176, 32, 0.05), transparent);
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.node-card {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-flag {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-blue-dark);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
}

.node-status {
  font-size: 12px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.node-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(47, 191, 113, 0.6);
}

.node-card h4 {
  font-size: 16px;
  font-weight: 700;
}

.node-card .node-line {
  font-size: 12.5px;
  color: var(--text-muted);
}

.node-ping {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-ping b {
  color: var(--accent-blue-dark);
  font-weight: 700;
}

.nodes-more {
  text-align: center;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ---------------------------------- 使用步骤 ---------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  padding: 28px 22px;
  position: relative;
}

.step-num {
  font-size: 34px;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ---------------------------------- 套餐价格 ---------------------------------- */

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 46px;
}

.toggle-switch {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  position: relative;
  transition: background 0.25s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  transition: transform 0.25s ease;
}

.toggle-switch.active {
  background: rgba(47, 111, 237, 0.16);
  border-color: rgba(47, 111, 237, 0.4);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.save-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold-dark);
  background: rgba(255, 176, 32, 0.14);
  border: 1px solid rgba(255, 176, 32, 0.32);
  padding: 3px 10px;
  border-radius: 999px;
}

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

.price-card {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.popular {
  border-color: rgba(47, 111, 237, 0.4);
  background: linear-gradient(180deg, rgba(47, 111, 237, 0.06), rgba(255, 176, 32, 0.05));
  transform: scale(1.03);
  box-shadow: var(--shadow-strong);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.price-card .price-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.price-amount .num {
  font-size: 40px;
  font-weight: 800;
}

.price-amount .unit {
  font-size: 14px;
  color: var(--text-muted);
}

.price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 22px;
}

.price-features {
  margin: 22px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-features svg {
  width: 16px;
  height: 16px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

/* ---------------------------------- FAQ ---------------------------------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  padding: 4px 24px;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  gap: 16px;
}

.faq-question .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-question .icon svg {
  width: 12px;
  height: 12px;
  color: var(--accent-blue-dark);
}

.faq-item[data-open="true"] .faq-question .icon {
  transform: rotate(45deg);
  background: var(--gradient-brand);
}

.faq-item[data-open="true"] .faq-question .icon svg {
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 14px;
  color: var(--text-secondary);
}

.faq-item[data-open="true"] .faq-answer {
  padding-bottom: 22px;
}

/* ---------------------------------- CTA 横幅 ---------------------------------- */

.cta-banner {
  padding: 60px 48px;
  text-align: center;
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.1), rgba(255, 176, 32, 0.12)),
    url("../images/pattern-paw.svg");
  background-size: auto, 140px 140px;
  border: 1px solid var(--border-soft);
  border-radius: 28px;
}

.cta-banner h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-blue-dark);
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: 780px;
  margin: 0 auto 26px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

/* ---------------------------------- 响应式 ---------------------------------- */

@media (max-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(247, 249, 252, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-toggle {
    display: flex;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
  .price-card.popular {
    transform: none;
  }
}

@media (max-width: 640px) {
  .features-grid,
  .nodes-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero {
    padding: 140px 0 80px;
  }
  .cta-banner {
    padding: 44px 24px;
  }
}

@media (max-width: 460px) {
  .features-grid,
  .nodes-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
}
