/* ============================================================
   波币助手 · 全局样式
   设计语言对齐参考模板：主蓝 #3a78ff / 深墨 #0f172a / 圆角 16-20px
   ============================================================ */

:root {
  /* 主色 */
  --primary: #3a78ff;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-dark: #1d4ed8;
  --primary-bg: #eff6ff;
  --primary-bg-subtle: #f0f7ff;

  /* 语义色 */
  --success: #22c55e;
  --success-bg: #f0fdf4;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --purple: #8b5cf6;
  --purple-bg: #f5f3ff;
  --teal: #14b8a6;
  --teal-bg: #f0fdfa;

  /* 背景 / 文字 */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-muted: #9ca3af;

  /* 墨色体系（模板核心视觉） */
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;
  --ink-200: #cbd5e1;
  --ink-100: #e2e8f0;
  --ink-50: #f1f5f9;

  /* 字体 */
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-en: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono",
    monospace;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-blue: 0 4px 14px rgba(58, 120, 255, 0.25);
  --shadow-blue-lg: 0 8px 24px rgba(58, 120, 255, 0.3);

  /* 缓动 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 68px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-cn);
  background: var(--bg-primary);
  color: var(--ink-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hide-mobile { display: block; }
.hide-desktop { display: none; }

/* ---------- 动画 ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes text-shine {
  0% { background-position: 200% center; }
  to { background-position: -200% center; }
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes sweep {
  0% { background-position: -200% 0; }
  to { background-position: 200% 0; }
}
@keyframes drift-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.anim-fade-up { opacity: 0; }
.anim-fade-up.is-in {
  animation: fade-up 0.8s var(--ease-out) forwards;
}
.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.3s !important; }
.delay-4 { animation-delay: 0.4s !important; }
.delay-5 { animation-delay: 0.5s !important; }
.delay-6 { animation-delay: 0.6s !important; }
.delay-7 { animation-delay: 0.7s !important; }
.delay-8 { animation-delay: 0.8s !important; }
.delay-9{animation-delay:.9s}
.delay-10{animation-delay:1s}
.delay-11{animation-delay:1.1s}
.delay-12{animation-delay:1.2s}

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.header.is-scrolled {
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.9);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header-logo img { width: 34px; height: 34px; }
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.header-logo-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.header-logo-sub {
  font-size: 10px;
  color: var(--ink-400);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  transition: all 0.25s ease;
}
.header-nav a:hover { color: var(--ink-900); background: var(--ink-50); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: all 0.3s var(--ease-out);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue-lg);
}
.btn-primary svg { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover svg { transform: translateY(2px); }

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--ink-50);
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ink-100);
  padding: 12px 24px 20px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 13px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-700);
  transition: background 0.2s ease;
}
.mobile-nav a:hover { background: var(--ink-50); }
.mobile-nav .btn-primary { margin-top: 10px; padding: 14px; }

/* ---------- 通用区块标题 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-secondary); }

.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.section-title {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--ink-400);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand img { width: 38px; height: 38px; margin-bottom: 14px; }
.footer-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.footer-col a {
  display: block;
  font-size: 13px;
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 移动端吸底下载栏 ---------- */
.sticky-cta { display: none; }

@media (max-width: 768px) {
  .hide-desktop { display: inline-flex; }
  .hide-mobile { display: none; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: 27px; }
  .section-desc { font-size: 14px; }

  .header-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }

  .footer { padding: 44px 0 calc(88px + env(safe-area-inset-bottom, 0px)); }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 40px; }

  .sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    display: block;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.06);
  }
  .btn-sticky-primary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 24px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.45);
    transition: transform 0.2s ease;
  }
  .btn-sticky-primary:active { transform: scale(0.98); }
}