/* ===== 设计变量 ===== */
:root {
  --brand: #4F46E5;
  --brand-2: #8B5CF6;
  --brand-grad: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  --brand-soft: #EEF2FF;
  --brand-soft-2: #F5F3FF;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-dark: #0F172A;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.05);
  --shadow: 0 10px 30px rgba(79,70,229,.10);
  --shadow-lg: 0 24px 60px rgba(79,70,229,.18);
  --maxw: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-weight: 700; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-family: inherit; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { box-shadow: var(--shadow-lg); }
.btn--outline { background: #fff; color: var(--brand); border-color: #C7D2FE; }
.btn--outline:hover { background: var(--brand-soft); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--brand); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--md { padding: 11px 22px; font-size: 15px; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand__logo { border-radius: 8px; }
.brand__name { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 26px; margin-left: 18px; flex: 1; }
.nav__links a { color: var(--ink-2); font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--brand-grad); transition: width .2s; }
.nav__links a:hover { color: var(--brand); }
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; gap: 10px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.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; padding: 64px 0 40px; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 380px at 88% -8%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(620px 360px at 0% 12%, rgba(79,70,229,.12), transparent 55%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; margin-bottom: 18px;
  border: 1px solid #C7D2FE;
}
.hero__title { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 18px; color: var(--ink-2); font-size: 17px; max-width: 560px; }
.hero__sub strong { color: var(--brand); }
.hero__cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__points { margin-top: 24px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero__points li { position: relative; padding-left: 22px; }
.hero__points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 800; }
.hero__art .art { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(79,70,229,.18)); }

/* ===== 信任条 ===== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 30px 0; }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; max-width: 560px; margin: 0 auto; }
.trust__item strong { display: block; font-size: 30px; font-weight: 800; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust__item span { color: var(--muted); font-size: 14px; }

/* ===== 通用 section ===== */
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; }
.eyebrow--light { color: #C7D2FE; }
.section__title { font-size: clamp(26px, 3.4vw, 38px); }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* ===== 功能卡片 ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C7D2FE; }
.card__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.card__icon svg { width: 26px; height: 26px; }
.card__icon--indigo { background: linear-gradient(135deg,#4F46E5,#6366F1); }
.card__icon--violet { background: linear-gradient(135deg,#8B5CF6,#A855F7); }
.card__icon--sky { background: linear-gradient(135deg,#0EA5E9,#38BDF8); }
.card__icon--emerald { background: linear-gradient(135deg,#10B981,#34D399); }
.card__icon--amber { background: linear-gradient(135deg,#F59E0B,#FBBF24); }
.card__icon--rose { background: linear-gradient(135deg,#F43F5E,#FB7185); }
.card__icon--cyan { background: linear-gradient(135deg,#06B6D4,#22D3EE); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ===== 微信生态 ===== */
.wechat { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tick { margin: 22px 0 28px; display: grid; gap: 12px; }
.tick li { position: relative; padding-left: 30px; color: var(--ink-2); }
.tick li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tick--sm li { font-size: 14.5px; }
.wechat__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow__node { flex: 1 1 120px; min-width: 120px; text-align: center; padding: 12px 10px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.flow__node--active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--shadow); }
.flow__arrow { color: var(--brand); font-weight: 800; }
.wechat__chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; }

/* ===== 解决方案 ===== */
.sol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sol__card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.sol__card--hot { border-color: transparent; box-shadow: var(--shadow); background: linear-gradient(180deg,#fff, #FAF8FF); }
.sol__tag { position: absolute; top: -12px; left: 26px; background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow); }
.sol__card h3 { font-size: 21px; margin-bottom: 8px; }
.sol__desc { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }

/* ===== 价格 ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan--hot { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.plan__tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 999px; }
.plan__name { font-size: 20px; }
.plan__price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan__price .num { font-size: 36px; font-weight: 800; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__price .per { color: var(--muted); font-size: 14px; }
.plan__for { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan__list { display: grid; gap: 11px; margin-bottom: 24px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 14.5px; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* ===== 案例 ===== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.case blockquote { margin: 0 0 18px; font-size: 16px; color: var(--ink); line-height: 1.7; }
.case figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 16px; }
.case figcaption strong { font-size: 15px; }
.case figcaption span { color: var(--muted); font-size: 13px; }

/* ===== 联系 CTA ===== */
.section--cta { background: radial-gradient(900px 500px at 85% 0%, rgba(139,92,246,.35), transparent 60%), var(--bg-dark); color: #fff; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact__title { font-size: clamp(26px, 3.4vw, 38px); color: #fff; }
.contact__lead { margin-top: 14px; color: #CBD5E1; font-size: 16px; max-width: 460px; }
.contact__info { margin-top: 22px; display: grid; gap: 8px; color: #94A3B8; font-size: 14px; }
.contact__form { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  font-family: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.field input.is-error, .field textarea.is-error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.contact__form .btn--block { grid-column: 1 / -1; }
.form__hint { grid-column: 1 / -1; margin: 0; font-size: 13.5px; min-height: 18px; }
.form__hint.ok { color: #059669; }
.form__hint.err { color: #EF4444; }

/* ===== 页脚 ===== */
.footer { background: #0B1220; color: #CBD5E1; padding: 54px 0 22px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand img { border-radius: 8px; }
.footer__brand > span { font-weight: 800; color: #fff; font-size: 17px; }
.footer__brand p { font-size: 13.5px; color: #94A3B8; max-width: 320px; }
.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer__col a { display: block; font-size: 13.5px; color: #94A3B8; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: #fff; }
/* 参考 admin-web 登录页：整体居中 + 垂直居中对齐（一行），窄屏才换行 */
.footer__bar { max-width: var(--maxw); margin: 34px auto 0; padding: 18px 24px 0; border-top: 1px solid #1E293B; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #64748B; }
.footer__gongan { display: inline-flex; align-items: center; gap: 4px; color: #64748B; text-decoration: none; transition: color .15s; }
.footer__gongan:hover { color: #94A3B8; }
.footer__gongan img { flex-shrink: 0; }
.footer__beian { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.footer__beian a { color: #64748B; text-decoration: none; transition: color .15s; }
.footer__beian a:hover { color: #94A3B8; }

/* ===== 入场动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__art { max-width: 460px; margin: 0 auto; }
  .wechat { grid-template-columns: 1fr; gap: 30px; }
  .contact { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; box-shadow: var(--shadow);
  }
  .nav__links.is-open a { padding: 10px 0; }
  .nav__links.is-open ~ .nav__actions { display: none; }
  .section { padding: 60px 0; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .sol, .plans, .cases { grid-template-columns: 1fr; }
  .plan--hot { transform: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .cards { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .contact__form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; }
}
