/* 威小蜜AI深度辅导官网 — 品牌蜜金 · 编辑式
   设计令牌见 brand-spec.md；颜色只允许取自该文件。 */

:root {
  --ink: #181e2a;
  --slate: #3c4860;
  --blue: #2d78e6;
  --honey: #f09628;
  --paper: #fbf9f4;
  --white: #ffffff;
  --line: #e7e2d8;
  --brand-gradient: linear-gradient(100deg, var(--blue), var(--honey));
  --font-cn: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-1: 0 1px 2px rgba(24, 30, 42, 0.04);
  --shadow-2: 0 12px 32px rgba(24, 30, 42, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--brand-gradient);
  flex: none;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.25rem; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--slate);
  line-height: 1.85;
  max-width: 62ch;
  text-wrap: pretty;
}

.section { padding: 112px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .lede { margin: 20px 0 0; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav .brand img { width: 208px; height: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  color: var(--slate);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); border-bottom-color: var(--honey); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-gradient); color: var(--white); box-shadow: var(--shadow-1); }
.btn-primary:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.btn-outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-outline:hover { border-color: var(--slate); transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 0; overflow: hidden; }
.hero h1 { max-width: 18ch; text-wrap: pretty; }
.hero .lede { margin: 28px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-meta {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--slate);
  line-height: 2;
}

.hero-shot { margin: 72px 0 0; }
.window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.window-bar span {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
}
.window img { width: 100%; height: auto; }

/* ---------- 事实条 ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.fact { padding: 38px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-size: 15px; font-weight: 700; }
.fact span { display: block; margin-top: 8px; font-size: 13px; color: var(--slate); line-height: 1.6; }

/* ---------- 能力 ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap {
  background: var(--white);
  padding: 40px 34px 44px;
  transition: background 240ms var(--ease);
}
.cap:hover { background: var(--paper); }
.cap-no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--honey);
  letter-spacing: 0.1em;
}
.cap h3 { margin: 18px 0 14px; }
.cap p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.8; }

/* ---------- 产品实景 ---------- */
.showcase { background: var(--ink); color: var(--white); }
.showcase .section-head .lede { color: #c9ced8; }
.showcase .eyebrow { color: #aeb6c4; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d7dce5;
  border-radius: 5px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.tab:hover { border-color: var(--honey); }
.tab[aria-selected="true"] { background: var(--brand-gradient); color: var(--white); border-color: transparent; }
.shot-frame {
  background: #0f141d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px;
}
.shot-frame img { width: 100%; border-radius: 4px; }
.shot-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 13px;
  color: #aeb6c4;
}

/* ---------- 版本 ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 30px 32px;
  display: flex;
  flex-direction: column;
}
.tier.featured { border-color: var(--blue); box-shadow: var(--shadow-2); }
.tier-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
.tier.featured .tier-tag { color: var(--blue); }
.tier h3 { font-size: 1.5rem; margin: 14px 0 6px; }
.tier .tier-for { color: var(--slate); font-size: 14px; min-height: 3em; }
.tier ul { list-style: none; padding: 0; margin: 26px 0 30px; flex: 1; }
.tier li {
  font-size: 14px;
  color: var(--slate);
  padding: 9px 0 9px 20px;
  border-top: 1px solid var(--line);
  position: relative;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand-gradient);
}
.tier .btn { width: 100%; }
.tier-note { margin-top: 28px; font-size: 13px; color: var(--slate); }

/* ---------- 部署 ---------- */
.deploy-list { border-top: 1px solid var(--line); }
.deploy-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.deploy-row h3 { margin-bottom: 10px; }
.deploy-row p { margin: 0 0 18px; color: var(--slate); font-size: 15px; }
.deploy-row .meta { font-size: 13px; color: var(--slate); }
pre {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
code { font-family: var(--font-mono); }

/* ---------- 合规 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-item { border-top: 2px solid var(--ink); padding-top: 22px; }
.trust-item h3 { margin-bottom: 12px; }
.trust-item p { margin: 0; color: var(--slate); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding: 96px 0; background: var(--ink); color: var(--white); text-align: center; }
.cta h2 { max-width: 20ch; margin: 0 auto; }
.cta p { color: #c9ced8; margin: 22px auto 36px; max-width: 52ch; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.cta .btn-outline { background: transparent; border-color: rgba(255,255,255,.3); color: var(--white); }
.cta .btn-outline:hover { border-color: var(--white); }

/* ---------- 页脚 ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand img { width: 240px; }
.footer .about { font-size: 14px; color: var(--slate); margin: 20px 0 0; max-width: 42ch; }
.footer h4 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer li a { color: var(--slate); }
.footer li a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--slate);
  line-height: 2;
}

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-inner > .btn { display: none; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact { border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .deploy-row { grid-template-columns: 1fr; gap: 18px; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .nav-inner { width: min(100% - 32px, 1180px); }
  .nav .brand img { width: 168px; }
  .hero { padding-top: 64px; }
  .hero-shot { margin-top: 48px; }
  .facts-grid, .cap-grid { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding: 24px 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }
  .cap { padding: 30px 24px 34px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .tablist { gap: 6px; }
  .tab { padding: 7px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
