/* =========================================================
   青岭魔方 OA SaaS · 官网样式
   ========================================================= */

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-2: #0EA5E9;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F6F9FB;
  --bg-dark: #0B1B2B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --maxw: 1200px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.grad-text {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 185, 129, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16, 185, 129, .42); }
.btn-ghost { color: var(--ink); background: rgba(15, 23, 42, .04); }
.btn-ghost:hover { background: rgba(15, 23, 42, .08); }
.btn-outline {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255, 255, 255, .16); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ===================== 导航栏 ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s;
}
.navbar-inner {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .06);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; }
.brand-mark { display: inline-flex; filter: drop-shadow(0 6px 12px rgba(16,185,129,.3)); }
.brand-mark img { display: block; }
.brand-text { font-size: 19px; letter-spacing: .5px; display: inline-flex; align-items: baseline; gap: 6px; }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--primary); }
.navbar.scrolled .brand { color: var(--ink); }
.navbar.scrolled .brand-sub { color: var(--primary-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .1); }
.navbar.scrolled .nav-links a { color: var(--ink-2); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--primary-dark); background: rgba(16, 185, 129, .1); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.navbar:not(.scrolled) .btn-ghost { color: #fff; background: rgba(255, 255, 255, .12); }
.navbar:not(.scrolled) .btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.menu-toggle span {
  width: 24px; height: 2px; border-radius: 2px;
  background: #fff; transition: .3s;
}
.navbar.scrolled .menu-toggle span { background: var(--ink); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 32px 80px;
  background: radial-gradient(120% 120% at 80% 0%, #12314a 0%, var(--bg-dark) 45%, #07131f 100%);
  overflow: hidden;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.orb-1 { width: 520px; height: 520px; background: #10B981; top: -160px; right: -80px; animation: float 12s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: #0EA5E9; bottom: -180px; left: -120px; animation: float 15s ease-in-out infinite reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.float-cube {
  position: absolute; width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(52,211,153,.5), rgba(14,165,233,.35));
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  animation: float 9s ease-in-out infinite;
}
.fc-1 { top: 22%; left: 8%; animation-delay: 0s; }
.fc-2 { top: 64%; left: 44%; width: 42px; height: 42px; animation-delay: 1.6s; }
.fc-3 { top: 16%; right: 42%; width: 34px; height: 34px; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(8deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #6EE7B7;
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(16, 185, 129, .3);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 22px;
}
.hero-desc {
  font-size: 17px;
  color: rgba(226, 232, 240, .82);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }

/* 二维码条 */
.qr-strip { display: flex; gap: 16px; margin-bottom: 38px; flex-wrap: wrap; }
.qr-card {
  position: relative;
  width: 156px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.qr-card:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(0,0,0,.28); }
.qr-img { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.qr-img img, .qr-img canvas { width: 100%; height: 100%; border-radius: 8px; }
.qr-label { margin-top: 8px; font-size: 12.5px; color: #64748B; }
.qr-hover {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(11, 27, 43, .55);
  color: #fff; font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .25s;
}
.qr-card:hover .qr-hover { opacity: 1; }

/* 手机端：二维码位置替换为“立即下载”按钮 */
.qr-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .28);
  transition: transform .2s, box-shadow .2s;
}
.qr-download-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16,185,129,.35); }
.qr-download-btn svg { width: 16px; height: 16px; }
.mini-qr .qr-download-btn {
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 8px 6px;
  font-size: 10px;
  box-shadow: none;
}
.mini-qr .qr-download-btn span { white-space: nowrap; }

.hero-stats { display: flex; gap: 42px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 13.5px; color: rgba(226,232,240,.7); }

/* 产品预览窗口 */
.hero-visual { position: relative; }
.app-window {
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.3);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  transition: transform .5s ease;
}
.app-window:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg) translateY(-6px); }
.app-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px; background: #F1F5F9;
  border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #FF5F57; } .dot.yellow { background: #FEBC2E; } .dot.green { background: #28C840; }
.app-title { margin-left: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.app-body { display: flex; min-height: 340px; }
.app-side { width: 58px; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; background: #0B1B2B; }
.side-item { height: 12px; border-radius: 4px; background: rgba(255,255,255,.18); }
.side-item.active { background: linear-gradient(120deg, var(--primary), var(--primary-2)); }
.app-main { flex: 1; padding: 22px; }
.app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.mini-card { background: #F8FAFC; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.mini-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mini-value { font-size: 26px; font-weight: 800; color: var(--ink); }
.bar { height: 8px; border-radius: 6px; background: #E2E8F0; margin-top: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(120deg, var(--primary), var(--primary-2)); }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 10px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--primary-2), var(--primary)); opacity: .85; }
.app-list { display: flex; flex-direction: column; gap: 10px; }
.app-list .row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #F8FAFC; border-radius: 10px; }
.tag { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tag-green { background: var(--primary); } .tag-blue { background: var(--primary-2); } .tag-orange { background: #F59E0B; }
.line { height: 9px; border-radius: 5px; background: #E2E8F0; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.floating-badge {
  position: absolute; bottom: -22px; left: -18px;
  display: flex; flex-direction: column;
  padding: 14px 20px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.floating-badge strong { font-size: 15px; color: var(--ink); }
.floating-badge span { font-size: 12px; color: var(--muted); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ===================== 客户 Logo ===================== */
.logos { padding: 44px 32px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logos-title { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.logos-track {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 48px;
  max-width: var(--maxw); margin: 0 auto;
}
.logos-track span {
  font-size: 20px; font-weight: 700; color: #94A3B8;
  letter-spacing: 2px; opacity: .8; transition: color .25s, opacity .25s;
}
.logos-track span:hover { color: var(--primary-dark); opacity: 1; }

/* ===================== 通用 Section ===================== */
.section { padding: 110px 32px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head .eyebrow { color: var(--primary-dark); }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800; letter-spacing: -.5px; line-height: 1.2;
  margin-bottom: 16px;
}
.section-head p { font-size: 16.5px; color: var(--muted); }

/* ===================== 功能卡片 ===================== */
.feature-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(16, 185, 129, .4);
}
.f-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(16,185,129,.14), rgba(14,165,233,.12));
}
.f-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ===================== Tabs 解决方案 ===================== */
.tabs { max-width: 940px; margin: 0 auto; }
.tab-buttons {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  padding: 6px; margin-bottom: 34px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; width: fit-content; margin-left: auto; margin-right: auto;
  box-shadow: var(--shadow-sm);
}
.tab-btn {
  padding: 11px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color .25s, background .25s;
}
.tab-btn:hover { color: var(--primary-dark); }
.tab-btn.active {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(16,185,129,.3);
}
.tab-panel {
  display: none;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: fadeUp .45s ease;
}
.tab-panel.active { display: block; }
.tab-panel h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.tab-panel p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.check-list { display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2);
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-mask: none;
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 11px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===================== 数据亮点 ===================== */
.metrics {
  background: radial-gradient(120% 140% at 20% 0%, #12314a, var(--bg-dark) 60%, #07131f);
  color: #fff;
}
.metrics .section-head { margin-bottom: 48px; }
.metrics .section-head .eyebrow { color: #6EE7B7; }
.metrics .section-head h2 { color: #fff; }
.metrics-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
}
.metric strong {
  display: block;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  background: linear-gradient(120deg, #6EE7B7, #38BDF8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric span { font-size: 14.5px; color: rgba(226,232,240,.75); }

/* ===================== 下载区 ===================== */
.download { background: var(--bg); }
.download-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 60px;
  border-radius: 28px;
  background: radial-gradient(120% 140% at 90% 10%, #12314a, var(--bg-dark) 65%, #07131f);
  color: #fff;
  overflow: hidden;
}
.download-copy h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin-bottom: 16px; }
.download-copy p { color: rgba(226,232,240,.8); font-size: 16px; margin-bottom: 28px; max-width: 460px; }
.download-actions { display: flex; flex-direction: column; gap: 14px; max-width: 300px; }
.store-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  transition: background .25s, transform .25s;
}
.store-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.store-btn svg { flex: none; }
.store-btn span { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; line-height: 1.25; }
.store-btn small { font-size: 11.5px; font-weight: 400; opacity: .7; }
.download-qrs { display: flex; gap: 22px; justify-content: center; }
.qr-card.big { width: 190px; padding: 16px; }


/* ===================== CTA ===================== */
.cta { background: var(--bg-alt); }
.cta-inner {
  max-width: 760px; margin: 0 auto; text-align: center;
}
.cta-inner h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.cta-inner > p { color: var(--muted); font-size: 16.5px; margin-bottom: 36px; }
.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cta-form input {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.cta-form input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16,185,129,.14);
}
.cta-form input[name="company"] { grid-column: 1 / -1; }
.cta-form button { grid-column: 1 / -1; justify-self: center; margin-top: 6px; }
.form-tip { margin-top: 18px; font-size: 14px; min-height: 20px; color: var(--primary-dark); font-weight: 600; }
.form-tip.error { color: #EF4444; }

/* 蜜罐字段：对用户不可见但可被机器人识别 */
.cta-form .hp-field {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.cta-form button[disabled] { opacity: .65; cursor: not-allowed; }

/* ===================== 验证码弹窗 ===================== */
.captcha-modal {
  position: fixed; inset: 0; z-index: 2100;
  display: grid; place-items: center;
  background: rgba(7, 19, 31, .72);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 24px;
}
.captcha-modal.open { opacity: 1; visibility: visible; }
.captcha-modal-box {
  position: relative;
  width: min(360px, 100%);
  padding: 34px 26px 24px;
  background: #fff; border-radius: 22px;
  text-align: center;
  box-shadow: 0 40px 90px rgba(0,0,0,.4);
  transform: scale(.92); transition: transform .3s;
}
.captcha-modal.open .captcha-modal-box { transform: scale(1); }
.captcha-modal-box h3 { font-size: 20px; margin-bottom: 18px; }
.captcha-stage {
  position: relative;
  display: inline-block;
  line-height: 0;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 300 / 190;
  background: var(--bg-alt);
  border-radius: 10px;
}
.captcha-img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  cursor: crosshair;
  user-select: none;
  object-fit: contain;
  opacity: 0;
  transition: opacity .25s;
}
.captcha-img.is-loaded { opacity: 1; }
.captcha-skeleton {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(100deg, #f1f5f9 30%, #e2e8f0 50%, #f1f5f9 70%);
  background-size: 200% 100%;
  animation: captchaShimmer 1.2s ease-in-out infinite;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 0 16px;
}
.captcha-skeleton.hide { display: none; }
.captcha-skeleton-icon { display: none; width: 26px; height: 26px; }
.captcha-skeleton.error {
  background: #fef2f2;
  border-color: #fecaca;
  animation: none;
  color: #dc2626;
  font-weight: 600;
}
.captcha-skeleton.error .captcha-skeleton-icon { display: block; }
@keyframes captchaShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.captcha-marks { position: absolute; inset: 0; pointer-events: none; }
.captcha-marks span {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}
.captcha-hint { font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.captcha-hint em { color: #EF4444; font-style: normal; font-weight: 700; }
.captcha-tip {
  font-size: 13px; min-height: 18px; margin-top: 6px;
  color: var(--primary-dark); font-weight: 600;
}
.captcha-tip.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 8px 12px;
}
.captcha-refresh {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  cursor: pointer; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-family: inherit;
  transition: color .2s, border-color .2s, transform .3s;
}
.captcha-refresh:hover { color: var(--primary); border-color: var(--primary); }
.captcha-refresh:hover svg { transform: rotate(180deg); }
.captcha-refresh svg { transition: transform .3s; }

/* ===================== 微信内打开引导 ===================== */
.wx-guide {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(51, 65, 85, .97);
  color: #fff;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.wx-guide[hidden] { display: none; }
.wx-guide-arrow {
  position: absolute; top: 4px; right: 14px;
  width: 120px; height: 120px;
  color: #FBBF24;
  animation: wxArrow 1.1s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}
.wx-guide-arrow svg { width: 100%; height: 100%; }
@keyframes wxArrow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -6px); }
}
.wx-guide-body {
  position: absolute; top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 82vw);
  text-align: center;
}
.wx-guide-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.wx-guide-body p { font-size: 15px; line-height: 1.9; color: rgba(255,255,255,.86); }
.wx-dots {
  display: inline-block;
  padding: 0 8px;
  background: rgba(255,255,255,.16);
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 1px;
}
/* ===================== 页脚 ===================== */
.footer { background: var(--bg-dark); color: rgba(226,232,240,.72); padding: 80px 32px 34px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
.footer-qrs { display: flex; gap: 16px; }
.mini-qr {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px; background: #fff; border-radius: 10px; width: 76px;
}
.mini-qr .qr-img { width: 100%; }
.mini-qr span { font-size: 11px; color: var(--muted); font-weight: 600; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; color: rgba(226,232,240,.66); margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--maxw); margin: 50px auto 0;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: rgba(226,232,240,.5);
}

/* ===================== 二维码弹窗 ===================== */
.qr-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: rgba(7, 19, 31, .72);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  padding: 24px;
}
.qr-modal.open { opacity: 1; visibility: visible; }
.qr-modal-box {
  position: relative;
  width: min(340px, 100%);
  padding: 34px 28px 26px;
  background: #fff; border-radius: 22px;
  text-align: center;
  box-shadow: 0 40px 90px rgba(0,0,0,.4);
  transform: scale(.92); transition: transform .3s;
}
.qr-modal.open .qr-modal-box { transform: scale(1); }
.qr-modal-close {
  position: absolute; top: 12px; right: 16px;
  font-size: 28px; line-height: 1; color: var(--muted);
  transition: color .2s;
}
.qr-modal-close:hover { color: var(--ink); }
.qr-modal-box h3 { font-size: 20px; margin-bottom: 20px; }
.qr-modal-img { width: 220px; height: 220px; margin: 0 auto 18px; }
.qr-modal-img img, .qr-modal-img canvas { width: 100%; height: 100%; border-radius: 10px; }
.qr-modal-box p { font-size: 14px; color: var(--muted); }

/* ===================== 滚动动画 ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 560px; }
  .app-window { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-inner { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .download-inner { grid-template-columns: 1fr; gap: 40px; padding: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .navbar-inner { padding: 0 18px; }
  .nav-actions { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 18px 26px;
    box-shadow: 0 20px 40px rgba(15,23,42,.14);
    transform: translateY(calc(-100% - var(--nav-h)));
    visibility: hidden;
    transition: transform .35s ease, visibility .35s ease;
    margin-left: 0;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { color: var(--ink) !important; padding: 14px 12px; border-radius: 12px; }
  .nav-links a:hover, .nav-links a.active { background: rgba(16,185,129,.1); color: var(--primary-dark) !important; }
  .menu-toggle { display: flex; margin-left: auto; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .navbar:not(.scrolled) .menu-toggle.open span { background: var(--ink); }

  .hero { padding: calc(var(--nav-h) + 28px) 20px 70px; }
  .hero-stats { gap: 26px; }
  .hero-stats strong { font-size: 24px; }
  .qr-strip { gap: 12px; }
  .qr-card { width: 140px; }

  .section { padding: 76px 20px; }
  .section-head { margin-bottom: 44px; }
  .feature-grid { grid-template-columns: 1fr; }
  .tab-panel { padding: 30px 24px; }
  .metrics-inner { grid-template-columns: 1fr 1fr; }
  .download-inner { padding: 34px 22px; border-radius: 22px; }
  .download-qrs { flex-wrap: wrap; gap: 14px; }
  .qr-card.big { width: 150px; }
  .cta-form { grid-template-columns: 1fr; }
  .footer { padding: 60px 20px 30px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===================== 可复制文本 ===================== */
.copyable {
  cursor: pointer;
  border-bottom: 1px dashed rgba(226, 232, 240, .4);
  transition: color .2s, border-color .2s;
}
.copyable:hover,
.copyable:focus-visible {
  color: var(--primary);
  border-bottom-color: var(--primary);
  outline: none;
}
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 8px);
  background: rgba(15, 23, 42, .92);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 9999;
}
.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}