/* ==========================================================================
   Shadowrocket.rocks — Shadowrocket 小火箭加速器
   视觉基调：苹果 / App Store 科技风（SF 字体、Apple 蓝、浅灰分区、胶囊按钮）
   ========================================================================== */

:root {
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --card: #ffffff;
  --line: #d2d2d7;
  --line-strong: #c7c7cc;

  --brand: #0071e3;
  --brand-hover: #0077ed;
  --brand-deep: #0062c4;
  --accent: #0071e3;
  --accent-soft: rgba(0, 113, 227, .10);

  --grad-brand: linear-gradient(180deg, #0077ed 0%, #0062c4 100%);

  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 28px -22px rgba(0, 0, 0, .20);
  --shadow-lg: 0 26px 60px -30px rgba(0, 0, 0, .30);

  --container: 1120px;
  --container-narrow: 820px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
    system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0, 113, 227, .18); color: var(--ink); }

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---- layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Header / nav（毛玻璃）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .82);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { border-radius: 8px; }
.brand-text { font-size: 16px; letter-spacing: -.01em; }
.brand-text em { font-style: normal; color: var(--muted); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink-soft); font-size: 14px; }
.site-nav a:hover { color: var(--brand); }
.site-nav .nav-cta {
  background: var(--brand);
  color: #fff;
  padding: 7px 18px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav .nav-cta:hover { color: #fff; background: var(--brand-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(0, 113, 227, .08), transparent 62%),
    radial-gradient(700px 420px at 8% 112%, rgba(175, 82, 222, .06), transparent 60%),
    var(--paper);
  padding: 96px 0 104px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--brand);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero .lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-notes li { position: relative; padding-left: 15px; }
.hero-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.orbit { position: absolute; border-radius: 50%; }
.orbit-a {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 34% 30%, rgba(0, 113, 227, .16), transparent 66%);
}
.orbit-b {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 66% 70%, rgba(175, 82, 222, .13), transparent 66%);
}
.hero-art img {
  position: relative;
  z-index: 2;
  width: 260px;
  height: 260px;
  border-radius: 22%;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .30);
}

/* ==========================================================================
   Buttons（胶囊）
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-hover); color: #fff; }

.btn-ghost {
  background: var(--paper-2);
  color: var(--ink);
}
.btn-ghost:hover { background: #e8e8ed; color: var(--ink); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 40px); }
.section-sub { color: var(--muted); font-size: 17px; }

.callout {
  margin-top: 32px;
  padding: 18px 22px;
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
}

/* ---- concept ---- */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.concept-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.concept-num {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--brand);
  margin-bottom: 16px;
}
.concept-card h3 { font-size: 20px; }
.concept-card p { color: var(--muted); }

/* ---- plans ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan-card.plan-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.plan-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.plan-featured .plan-tag { color: var(--brand); }
.plan-card h3 { font-size: 20px; margin-bottom: 8px; }
.plan-price { margin-bottom: 10px; }
.plan-price strong { font-size: 40px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.plan-price span { color: var(--muted); }
.plan-desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0, 113, 227, .10);
}
.plan-features li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.btn-plan {
  width: 100%;
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-plan:hover { background: rgba(0, 113, 227, .08); color: var(--brand); }
.plan-featured .btn-plan {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
}
.plan-featured .btn-plan:hover { background: var(--brand-hover); color: #fff; }

.plans-note {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---- choose ---- */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.choose-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.choose-card h3 { font-size: 19px; }
.choose-card h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  border-radius: 1px;
  background: var(--brand);
  margin-bottom: 18px;
}
.choose-card p { color: var(--muted); }

/* ---- steps ---- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 760px;
}
.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

.guide-cta { margin-top: 36px; text-align: center; }

/* ---- guide hero ---- */
.guide-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}
.guide-hero-copy h2 { font-size: clamp(30px, 3.4vw, 40px); }
.guide-hero-note { margin-top: 18px; color: var(--muted); font-size: 15px; }
.guide-figure { margin: 0; }
.guide-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.guide-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---- faq ---- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 24px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-right: 54px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 24px 22px;
  color: var(--muted);
  margin: 0;
}

/* ---- about ---- */
.about-body { max-width: 720px; }
.about-body p { color: var(--muted); }

/* ---- page head / breadcrumb ---- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 18px; }
.page-head .lead { font-size: 18px; color: var(--muted); max-width: 40em; margin: 0; }

.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb .sep { margin: 0 8px; color: var(--line-strong); }

/* ---- legal / prose ---- */
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: 20px; margin: 30px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--muted); }
.legal-body ul { color: var(--muted); padding-left: 20px; margin: 0 0 1em; }
.legal-body li { margin: 6px 0; }

/* ---- compare table ---- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.compare-table tbody th { color: var(--muted); font-weight: 500; }
.compare-table td { color: var(--ink); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 56px 0 28px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .brand { color: var(--ink); }
.footer-brand .brand-text em { color: var(--muted); }
.footer-brand p { color: var(--muted); margin-top: 12px; font-size: 14px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}
.footer-nav a { color: var(--ink-soft); font-size: 14px; }
.footer-nav a:hover { color: var(--brand); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-disclaimer { max-width: 46em; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; min-height: 200px; }
  .hero-art img { width: 180px; height: 180px; }
  .orbit-a { width: 230px; height: 230px; }
  .orbit-b { width: 260px; height: 260px; }

  .plans-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .concept-grid, .choose-grid { grid-template-columns: 1fr; }
  .guide-hero { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-radius: 980px;
  }

  .section { padding: 72px 0; }
  .hero { padding: 52px 0 72px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
