/* ============================================================
   aiapi114 公共页面设计 v2 · 微信绿 #07C160 + 白 · 大气扁平
   ============================================================ */
:root {
  --green: #07C160;
  --green-dark: #06AD56;
  --green-deep: #04744A;
  --green-ink: #063D28;
  --green-tint: #E8F8EE;
  --green-tint-2: #F2FBF6;
  --green-line: #B7E9CD;

  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --ink-4: #94A3B8;

  --bg: #FFFFFF;
  --bg-page: #F7F8F7;
  --line: #E5E7EB;
  --line-2: #EEF0F1;

  --ok: #07C160;
  --warn: #F59E0B;
  --bad: #EF4444;
  --unknown: #9CA3AF;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1240px;
}

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

html { -webkit-font-smoothing: antialiased; 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);
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- 顶部导航（更高更稳） ---------- */
.nav { background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 50; }
.nav-in { display: flex; align-items: center; height: 76px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; letter-spacing: .2px; }
.brand .dot {
  width: 38px; height: 38px; border-radius: 12px; background: var(--green);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: 800;
}
.brand em { font-style: normal; color: var(--green); }
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a { padding: 10px 18px; border-radius: 10px; font-size: 15.5px; color: var(--ink-2); font-weight: 500; }
.nav-links a:hover { background: var(--green-tint-2); color: var(--green-deep); }
.nav-links a.on { background: var(--green-tint); color: var(--green-deep); font-weight: 600; }
.nav-cta { display: flex; gap: 14px; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 12px; font-size: 15.5px; font-weight: 600;
  transition: background .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-lg { height: 56px; padding: 0 34px; font-size: 17px; border-radius: 14px; }
.btn-white { background: #fff; color: var(--green-deep); }
.btn-white:hover { background: var(--green-tint); transform: translateY(-1px); }

/* ---------- 通用区块（大留白） ---------- */
.page { background: var(--bg-page); min-height: calc(100vh - 76px); }
.sec { padding: 110px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head h2 { font-size: 42px; font-weight: 800; letter-spacing: .5px; line-height: 1.25; }
.sec-head p { color: var(--ink-3); margin-top: 16px; font-size: 17px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-tint); color: var(--green-deep);
  font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; margin-bottom: 18px;
}
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- 卡片 ---------- */
.card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 28px; }
.card:hover { border-color: var(--green-line); }

/* ---------- 页脚（深色大气收尾） ---------- */
.footer { background: var(--green-ink); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer .brand { color: #fff; }
.footer h4 { font-size: 14.5px; color: #9ED8BC; font-weight: 600; margin-bottom: 18px; letter-spacing: .5px; }
.footer li { margin-bottom: 13px; }
.footer li a { font-size: 15px; color: #D7EFE2; }
.footer li a:hover { color: #fff; }
.footer-brand p { color: #9ED8BC; font-size: 14.5px; margin-top: 14px; max-width: 320px; line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 28px; display: flex; justify-content: space-between; color: #9ED8BC; font-size: 13.5px; }

/* ---------- 徽标 ---------- */
.tag {
  display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600;
  padding: 3px 10px; border-radius: 7px; background: var(--green-tint); color: var(--green-deep);
}
.tag-gray { background: var(--line-2); color: var(--ink-3); }
.tag-warn { background: #FEF3E2; color: #B45309; }
.tag-discount { background: #FEF2F2; color: #DC2626; }
.tag-bad { background: #FEECEC; color: #B91C1C; }

.dot-ok, .dot-warn, .dot-bad, .dot-unknown {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px;
}
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }
.dot-bad { background: var(--bad); }
.dot-unknown { background: var(--unknown); }

/* ---------- 动效：滚动渐入（motion.js） ---------- */
html.motion .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
html.motion .reveal.reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.motion .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 首屏震撼动效：极光光斑 + 进场序列 ---------- */
.has-aurora { position: relative; }
.has-aurora > .wrap { position: relative; z-index: 1; }
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.aurora .a1 { width: 620px; height: 620px; background: radial-gradient(circle, rgba(7,193,96,.32), transparent 65%); top: -200px; left: -140px; animation: drift1 16s ease-in-out infinite alternate; }
.aurora .a2 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(134,239,172,.30), transparent 65%); bottom: -180px; right: -120px; animation: drift2 21s ease-in-out infinite alternate; }
.aurora .a3 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(16,185,129,.20), transparent 65%); top: 26%; left: 44%; animation: drift3 13s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(130px, 70px) scale(1.18); } }
@keyframes drift2 { to { transform: translate(-110px, -80px) scale(1.12); } }
@keyframes drift3 { to { transform: translate(-90px, 100px) scale(.88); } }

/* 序列进场（加载即播） */
html.motion .fx { opacity: 0; animation: fx-in .85s cubic-bezier(.16,1,.3,1) forwards; }
html.motion .fx-right { opacity: 0; animation: fx-in-right .9s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes fx-in { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes fx-in-right { from { opacity: 0; transform: translateX(64px) scale(.97); } to { opacity: 1; transform: none; } }
html.motion .d1 { animation-delay: .06s; }
html.motion .d2 { animation-delay: .16s; }
html.motion .d3 { animation-delay: .28s; }
html.motion .d4 { animation-delay: .4s; }
html.motion .d5 { animation-delay: .54s; }

/* 标题逐行遮罩揭示 */
html.motion .mask { display: block; overflow: hidden; padding-bottom: .08em; }
html.motion .mask > span { display: block; transform: translateY(112%); animation: mask-up .95s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes mask-up { to { transform: none; } }

/* 状态横幅对勾描画 */
html.motion .sb-icon path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw-check .65s .55s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html.motion .fx, html.motion .fx-right { animation: none; opacity: 1; }
  html.motion .mask > span { animation: none; transform: none; }
  html.motion .sb-icon path { animation: none; stroke-dashoffset: 0; }
  .aurora i { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-in { height: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: 72px 0; }
  .sec-head h2 { font-size: 30px; }
  .wrap { padding: 0 20px; }
}
