/* ============ 环球小铺指南站 · 全局样式 ============ */
:root {
  --bg: #070b16;
  --bg-soft: #0b1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf5;
  --muted: #9aa3b8;
  --faint: #6b7590;
  --primary: #7c6cff;
  --primary-soft: #a5a0ff;
  --accent: #38e1ff;
  --gold: #f5c86b;
  --danger: #ff7a90;
  --radius: 18px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(124, 108, 255, 0.45); color: #fff; }

a { color: var(--primary-soft); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--accent); }

img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- 进度条 / 回到顶部 ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1001;
}
#toTop {
  position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--surface-border);
  background: rgba(15, 22, 40, 0.85); color: var(--text); font-size: 20px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: all 0.35s;
  backdrop-filter: blur(10px); z-index: 900;
}
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { border-color: var(--primary); transform: translateY(-4px); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s, height 0.35s;
}
.nav.scrolled {
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid var(--surface-border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 19px; box-shadow: 0 4px 18px rgba(124, 108, 255, 0.5);
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--muted); padding: 8px 14px; border-radius: 10px; font-size: 15px;
}
.nav-links a:hover { color: #fff; background: var(--surface); }
.nav-cta {
  background: linear-gradient(135deg, var(--primary), #5a4de0) !important;
  color: #fff !important; font-weight: 600; padding: 9px 20px !important;
  box-shadow: 0 4px 20px rgba(124, 108, 255, 0.45);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(124, 108, 255, 0.6); }
.burger { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 94vh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 14s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; background: #4c3fd6; top: -160px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: #0e7490; bottom: -140px; right: -100px; animation-delay: -6s; }
.orb-3 { width: 260px; height: 260px; background: #7c3aed; top: 40%; left: 55%; opacity: 0.3; animation-delay: -3s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 860px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px;
  border-radius: 100px; border: 1px solid var(--surface-border);
  background: var(--surface); font-size: 14px; color: var(--muted); margin-bottom: 26px;
  backdrop-filter: blur(8px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.3; font-weight: 800;
  letter-spacing: 1px; margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, var(--primary-soft), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 38px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 34px;
  border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5a4de0); color: #fff;
  box-shadow: 0 8px 30px rgba(124, 108, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(124, 108, 255, 0.6); color: #fff; }
.btn-ghost { border: 1px solid var(--surface-border); color: var(--text); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--primary); color: #fff; }
.stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 38px; font-weight: 800; background: linear-gradient(120deg, #fff, var(--primary-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--faint); font-size: 14px; margin-top: 4px; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: var(--faint); font-size: 13px; animation: bob 2s ease-in-out infinite; z-index: 2; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- 通用区块 ---------- */
section { padding: 96px 0; position: relative; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.sec-tag {
  display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--accent);
  border: 1px solid rgba(56, 225, 255, 0.25); padding: 6px 16px; border-radius: 100px;
  margin-bottom: 18px; background: rgba(56, 225, 255, 0.06);
}
.sec-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; letter-spacing: 1px; }
.sec-head p { color: var(--muted); }

/* ---------- 滚动显现动画 ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-48px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(48px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
}

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 34px 30px; position: relative;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 108, 255, 0.14), transparent 45%);
  pointer-events: none;
}
.card:hover { transform: translateY(-8px); border-color: rgba(124, 108, 255, 0.45); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(124,108,255,0.25), rgba(56,225,255,0.15));
  border: 1px solid var(--surface-border);
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card h3 a { color: #fff; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--faint); }
.card-link { font-weight: 600; }
.tag { display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 100px; background: rgba(124,108,255,0.15); color: var(--primary-soft); border: 1px solid rgba(124,108,255,0.3); margin-bottom: 14px; }

/* ---------- 特性 / 步骤 ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { text-align: center; padding: 20px 10px; }
.feature-num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px;
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  border: 1px solid var(--surface-border); background-color: var(--surface);
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 28px 24px; position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(56, 225, 255, 0.4); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 44px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.85;
}
.step h4 { margin: 14px 0 8px; font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- 价格对比表 ---------- */
.compare { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--surface-border); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: rgba(255,255,255,0.02); }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--surface-border); }
th { background: rgba(124, 108, 255, 0.1); color: #fff; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.25s; }
tbody tr:hover { background: rgba(124, 108, 255, 0.06); }
.hl { color: var(--gold); font-weight: 700; }

/* ---------- 提示框 ---------- */
.callout { border-radius: 14px; padding: 20px 24px; margin: 28px 0; font-size: 15px; border: 1px solid; display: flex; gap: 14px; }
.callout .ico { font-size: 22px; flex-shrink: 0; }
.callout.tip { background: rgba(52, 211, 153, 0.07); border-color: rgba(52, 211, 153, 0.3); }
.callout.warn { background: rgba(245, 200, 107, 0.07); border-color: rgba(245, 200, 107, 0.35); }
.callout.danger { background: rgba(255, 122, 144, 0.07); border-color: rgba(255, 122, 144, 0.35); }
.callout strong { color: #fff; }

/* ---------- FAQ 手风琴 ---------- */
.faq-item { border: 1px solid var(--surface-border); border-radius: 14px; margin-bottom: 14px; background: var(--surface); overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(124, 108, 255, 0.5); }
.faq-q { width: 100%; background: none; border: none; color: #fff; font-size: 16px; font-weight: 600; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font); text-align: left; }
.faq-q .plus { font-size: 22px; color: var(--primary-soft); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; border-radius: 26px; padding: 70px 40px; text-align: center; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,108,255,0.16), rgba(56,225,255,0.08));
  border: 1px solid rgba(124, 108, 255, 0.35);
}
.cta-box::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: #4c3fd6; filter: blur(110px); opacity: 0.35; top: -150px; left: 50%; transform: translateX(-50%); }
.cta-box h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; position: relative; }
.cta-box p { color: var(--muted); margin-bottom: 30px; position: relative; }
.cta-box .btn { position: relative; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--surface-border); padding: 60px 0 34px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.foot-grid h5 { font-size: 14px; color: var(--faint); letter-spacing: 2px; margin-bottom: 16px; font-weight: 600; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid ul a { color: var(--muted); font-size: 14px; }
.foot-brand p { color: var(--faint); font-size: 14px; margin-top: 12px; max-width: 300px; }
.foot-bottom { border-top: 1px solid var(--surface-border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: 13px; }

/* ---------- 文章页 ---------- */
.article-hero { padding: calc(var(--nav-h) + 70px) 0 40px; position: relative; overflow: hidden; }
.article-hero .orb-1 { width: 380px; height: 380px; }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 22px; position: relative; z-index: 2; }
.crumbs a { color: var(--muted); }
.article-hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; line-height: 1.4; margin-bottom: 16px; position: relative; z-index: 2; }
.article-meta { display: flex; gap: 20px; color: var(--faint); font-size: 14px; position: relative; z-index: 2; }
.article-body { display: grid; grid-template-columns: 1fr 260px; gap: 56px; padding: 20px 0 90px; align-items: start; }
.article-content { min-width: 0; }
.article-content h2 { font-size: 26px; margin: 52px 0 18px; padding-top: 8px; scroll-margin-top: 90px; display: flex; align-items: center; gap: 12px; }
.article-content h2::before { content: ""; width: 5px; height: 26px; border-radius: 3px; background: linear-gradient(var(--primary), var(--accent)); flex-shrink: 0; }
.article-content h3 { font-size: 19px; margin: 34px 0 12px; color: var(--primary-soft); scroll-margin-top: 90px; }
.article-content p { color: #c6ccdb; margin-bottom: 18px; }
.article-content ul, .article-content ol { color: #c6ccdb; margin: 0 0 22px 22px; }
.article-content li { margin-bottom: 10px; }
.article-content li::marker { color: var(--primary-soft); }
.article-content strong { color: #fff; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 24px; font-size: 14px; }
.toc h4 { font-size: 13px; letter-spacing: 2px; color: var(--faint); margin-bottom: 14px; }
.toc ul { list-style: none; }
.toc li { margin-bottom: 10px; }
.toc a { color: var(--muted); display: block; padding-left: 12px; border-left: 2px solid transparent; transition: all 0.25s; }
.toc a:hover, .toc a.active { color: var(--accent); border-left-color: var(--accent); }
.toc .toc-h3 { padding-left: 26px; font-size: 13px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.pager a { border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 22px 26px; background: var(--surface); transition: all 0.3s; display: block; }
.pager a:hover { border-color: var(--primary); transform: translateY(-4px); }
.pager span { font-size: 12px; color: var(--faint); letter-spacing: 2px; }
.pager strong { display: block; color: #fff; margin-top: 6px; font-size: 16px; }
.pager .next { text-align: right; }

/* ---------- 跑马灯 ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); padding: 20px 0; background: rgba(255,255,255,0.015); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { color: var(--faint); font-size: 15px; letter-spacing: 2px; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .article-body { grid-template-columns: 1fr; }
  .toc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(7,11,22,0.97); backdrop-filter: blur(16px); flex-direction: column; padding: 16px 24px 24px; gap: 4px; border-bottom: 1px solid var(--surface-border); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 14px; }
  .burger { display: block; }
  section { padding: 64px 0; }
  .stats { gap: 32px; }
  .foot-grid { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
}
