/* ============================================================
   style.css —— 企业官网模板主样式
   依赖 theme.css 的 CSS 变量。改配色不要改这里。
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--bg-soft); }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { color: var(--ink-2); }
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-2); max-width: 62ch; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---------- 无障碍 ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--brand); color: var(--on-brand);
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; color: var(--on-brand); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-dark); color: var(--on-brand); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: #f4f6fb; color: var(--brand-dark); }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--block { width: 100%; }

/* ---------- 顶栏 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 800;
}

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__links a {
  padding: 8px 14px; border-radius: 8px; font-size: .95rem; font-weight: 500; color: var(--ink-2);
}
.nav__links a:hover { color: var(--brand); background: var(--brand-light); }
.nav__links a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); place-items: center; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s var(--ease), top .2s var(--ease);
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.mobile-nav {
  display: none; border-top: 1px solid var(--line); background: var(--bg);
  padding: 12px 0 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 13px 24px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { margin: 16px 24px 0; width: calc(100% - 48px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 8%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    radial-gradient(45% 45% at 12% 85%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 20px; font-size: clamp(1.75rem, 3.6vw, 3rem); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: .875rem; color: var(--ink-3); }
.hero__trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { color: var(--success); flex: none; }

/* Hero 右侧视觉（纯 CSS 仪表盘示意，无图片依赖） */
.hero__visual { position: relative; }
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.hero__visual:hover .mock { transform: perspective(1200px) rotateY(0) rotateX(0); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mock__body { padding: 22px; display: grid; gap: 14px; }
.mock__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.mock__avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-light); }
.mock__line { height: 9px; border-radius: 5px; background: var(--line); }
.mock__line--sm { width: 55%; }
.mock__line--brand { background: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.mock__pill { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--accent-light); color: var(--accent); }

/* ---------- Logo 墙 ---------- */
.logos { padding-block: 36px; border-block: 1px solid var(--line); background: var(--bg-soft); }
.logos__title { text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.logos__wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 48px; }
.logos__wrap span { font-weight: 700; font-size: 1.05rem; color: var(--ink-3); opacity: .75; letter-spacing: -0.01em; }

/* ---------- 卡片 / 网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }

.icon-box {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); margin-bottom: 18px; flex: none;
}
.icon-box svg { width: 22px; height: 22px; }

/* ---------- 数据 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 30px 24px; text-align: center; }
.stat__num { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--brand); letter-spacing: -0.03em; line-height: 1.1; }
.stat__label { font-size: .875rem; color: var(--ink-3); margin-top: 6px; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-top: 8px; }
.step__num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: var(--brand);
  background: var(--brand-light); margin-bottom: 16px;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { font-size: .95rem; }

/* ---------- 图文左右 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split__media {
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-soft);
  aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--ink-3); overflow: hidden;
}
.checklist { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist svg { color: var(--success); flex: none; margin-top: 4px; }

/* ---------- 评价 ---------- */
.quote { display: grid; gap: 16px; }
.quote__stars { color: #f5b301; letter-spacing: 2px; font-size: .95rem; }
.quote__text { font-size: 1rem; color: var(--ink-2); }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.quote__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-light); display: grid; place-items: center; font-weight: 700; color: var(--brand); font-size: .9rem; flex: none; }
.quote__name { font-weight: 600; font-size: .9rem; color: var(--ink); line-height: 1.3; }
.quote__role { font-size: .8rem; color: var(--ink-3); }

/* ---------- 定价 ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; position: relative;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card--featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: var(--on-brand); font-size: .75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card__name { font-size: 1rem; font-weight: 700; color: var(--ink); }
.price-card__desc { font-size: .875rem; color: var(--ink-3); margin-top: 4px; }
.price-card__amount { display: flex; align-items: baseline; gap: 6px; }
.price-card__amount strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.price-card__amount span { font-size: .9rem; color: var(--ink-3); }
.price-card ul { list-style: none; padding: 0; display: grid; gap: 11px; font-size: .9rem; color: var(--ink-2); }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { color: var(--success); flex: none; margin-top: 3px; }
.price-card li.is-off { color: var(--ink-3); text-decoration: line-through; }
.price-card .btn { margin-top: auto; }

.price-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 32px; }
.price-toggle button { padding: 8px 20px; border-radius: 999px; font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.price-toggle button.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 22px; transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .2s var(--ease); margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__body { padding-bottom: 22px; color: var(--ink-2); font-size: .95rem; }
.faq .faq__body p + p { margin-top: 12px; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--on-brand); border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 85% 15%, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--on-brand); margin-bottom: 14px; }
.cta-band p { color: color-mix(in srgb, var(--on-brand) 82%, transparent); max-width: 54ch; margin-inline: auto; margin-bottom: 28px; }
.cta-band .btn--primary { background: #fff; color: var(--brand); }
.cta-band .btn--primary:hover { background: #f2f5ff; color: var(--brand-dark); }
.cta-band .btn--ghost { color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 40%, transparent); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); color: var(--on-brand); border-color: #fff; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}
.field textarea { min-height: 132px; resize: vertical; }
.field__hint { font-size: .8rem; color: var(--ink-3); }
.field__error { font-size: .8rem; color: var(--danger); display: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__error { display: block; }

.form__note { font-size: .8rem; color: var(--ink-3); }
.form__note a { text-decoration: underline; }

/* 蜜罐：机器人会填，真人看不见 */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 56px 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer__brand p { font-size: .9rem; color: var(--ink-3); margin-top: 14px; max-width: 30ch; }
.footer h4 { font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-size: .9rem; color: var(--ink-2); }
.footer ul a:hover { color: var(--brand); }
.footer__bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .8rem; color: var(--ink-3);
}
.footer__bottom a { color: var(--ink-3); }
.footer__bottom a:hover { color: var(--brand); }

/* ---------- Cookie 条 ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 640px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: none; gap: 16px; align-items: center;
}
.cookie.is-visible { display: flex; }
.cookie p { font-size: .85rem; color: var(--ink-2); margin: 0; }
.cookie__actions { display: flex; gap: 8px; flex: none; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 300;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动显现 ----------
   关键：默认可见。只有 JS 正常运行时（html.js）才隐藏待显现元素，
   这样 JS 被禁用/加载失败/爬虫抓取时内容依然完整可见（SEO 与容灾）。 */
.reveal { opacity: 1; transform: none; }
.js .reveal:not(.is-in) {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 520px; }
  .mock { transform: none; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 860px) {
  .nav__links, .nav__actions .btn--ghost { display: none; }
  .menu-btn { display: grid; }
  .nav { gap: 16px; }
  .grid--3 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .container { padding-inline: 18px; }
  .hero__actions .btn { width: 100%; }
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie__actions { justify-content: flex-end; }
  .cta-band { padding-inline: 24px; }
}

/* ---------- 打印 ---------- */
@media print {
  .header, .cookie, .toast, .btn, .footer { display: none !important; }
  body { color: #000; }
  a { text-decoration: underline; }
}
