/* VanTreeAI 官网 V1 — 设计令牌基于 VI 规范 #080E29 / #14E8E7 / #46A3F5 / #997DF9 */
:root {
  --paper: #f7f8fc;
  --navy: #080e29;
  --ink: #0c1230;
  --muted: #5b6280;
  --line: #e3e6f2;
  --cyan: #14e8e7;
  --blue: #46a3f5;
  --violet: #997df9;
  --ai: #8b5cf6;
  --grad: linear-gradient(90deg, #14e8e7 0%, #46a3f5 50%, #997df9 100%);
  --radius: 24px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 252, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { height: 34px; width: auto; }
.brand-word {
  font-size: 23px; font-weight: 400; letter-spacing: -.02em; color: var(--navy); line-height: 1;
  font-family: "Segoe UI", Arial, sans-serif;
}
.brand-word b { font-weight: 700; }
.brand-word .ai { color: var(--ai); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-cta {
  padding: 11px 24px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 500; transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(8, 14, 41, .18); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px; background: var(--grad); border-radius: 2px;
}
h1 {
  font-size: clamp(38px, 5vw, 62px); line-height: 1.18; letter-spacing: -.02em;
  font-weight: 650; color: var(--navy);
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede { margin-top: 24px; font-size: 18px; line-height: 1.85; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; transition: all .22s ease; cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8, 14, 41, .2); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero-visual {
  position: relative; aspect-ratio: 4 / 3.2; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(140% 120% at 12% 8%, rgba(20, 232, 231, .95) 0%, rgba(20, 232, 231, 0) 46%),
    radial-gradient(130% 120% at 88% 92%, rgba(153, 125, 249, .95) 0%, rgba(153, 125, 249, 0) 52%),
    linear-gradient(135deg, #2ee7e5 0%, #46a3f5 46%, #8a72f6 100%);
  box-shadow: 0 30px 70px -30px rgba(70, 163, 245, .55);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .5;
}
.hero-visual::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 56%; aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pill {
  position: absolute; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 10px 30px rgba(153, 125, 249, .4);
}
.pill.a { width: 96px; height: 26px; right: 14%; top: 16%; transform: rotate(-24deg); }
.pill.b { width: 40px; height: 16px; left: 18%; bottom: 18%; opacity: .8; }

/* ---------- Stats strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 34px 0; text-align: center; border-right: 1px solid var(--line); }
.strip-item:last-child { border-right: 0; }
.strip-item strong { display: block; font-size: 15px; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.strip-item span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -.015em; font-weight: 600; color: var(--navy); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 16.5px; line-height: 1.85; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(8, 14, 41, .25); border-color: #cfd5ee; }
.card-index {
  font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}
.card h3 { font-size: 21px; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.card p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.card ul { margin-top: 18px; display: grid; gap: 8px; }
.card li { font-size: 14px; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; }
.card li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--grad); }

/* ---------- Architecture ---------- */
.arch {
  background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 48px 36px;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; text-align: center;
}
.arch-node { padding: 28px 16px; border-radius: 18px; border: 1px dashed #d6dbf0; background: var(--paper); }
.arch-node strong { display: block; font-size: 15px; color: var(--navy); }
.arch-node span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.arch-node.hub { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.arch-arrow { color: var(--blue); font-size: 20px; }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.reason h3 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.reason h3::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
.reason p { font-size: 15px; color: var(--muted); line-height: 1.85; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: 72px 64px;
  background: var(--navy); color: #fff;
}
.cta-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 163, 245, .78), rgba(153, 125, 249, 0) 68%);
}
.cta-band::after {
  content: ""; position: absolute; width: 380px; height: 380px; left: -80px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 232, 231, .35), rgba(20, 232, 231, 0) 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.35; max-width: 640px; }
.cta-band p { margin-top: 16px; color: rgba(255, 255, 255, .72); max-width: 560px; }
.cta-band .btn-light { margin-top: 36px; background: #fff; color: var(--navy); }
.cta-band .btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }

/* ---------- Page header (sub pages) ---------- */
.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(32px, 4vw, 48px); }
.page-head p { margin-top: 18px; color: var(--muted); max-width: 700px; font-size: 17px; line-height: 1.85; }

/* ---------- Detail blocks ---------- */
.detail { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding: 56px 0; border-top: 1px solid var(--line); }
.detail h2 { font-size: 24px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.detail-body p { color: var(--muted); line-height: 1.9; font-size: 15.5px; }
.detail-body p + p { margin-top: 14px; }
.spec { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; }
.spec strong { display: block; font-size: 13.5px; color: var(--navy); }
.spec span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-info dl { margin-top: 32px; display: grid; gap: 24px; }
.contact-info dt { font-size: 12.5px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.contact-info dd { margin-top: 6px; font-size: 16px; color: var(--navy); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 44px 40px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); outline: none;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); background: #fff; }
.field textarea { min-height: 116px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.form-card .btn { width: 100%; margin-top: 8px; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; padding: 24px 0 80px; }
.legal h2 { font-size: 20px; margin: 36px 0 12px; color: var(--navy); }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.9; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal .updated { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 64px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 18px; font-size: 13.5px; line-height: 1.85; max-width: 300px; }
.fb-lockup { display: flex; align-items: center; gap: 10px; }
.fb-lockup .brand-mark { height: 30px; }
.fb-lockup .brand-word { color: #fff; font-size: 21px; }
.footer-col h4 { font-size: 13px; letter-spacing: .1em; color: #fff; margin-bottom: 16px; font-weight: 500; }
.footer-col a, .footer-col span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .62); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .48);
}
.footer-bottom a { color: rgba(255, 255, 255, .62); }
.footer-bottom a:hover { color: #fff; }

/* ---------- 404 ---------- */
.center-page { min-height: 52vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.center-page h1 { font-size: 44px; }
.center-page p { margin: 16px 0 32px; color: var(--muted); }

/* ---------- Metrics / Cases ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; }
.metric strong { display: block; font-size: 34px; font-weight: 650; color: var(--navy); letter-spacing: -.02em; line-height: 1.2; }
.metric strong em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.metric span { display: block; margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.case-card h3 { font-size: 19px; font-weight: 600; color: var(--navy); }
.case-card .case-tag { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.case-card .case-num { margin-top: 24px; font-size: 40px; font-weight: 650; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-card .case-num em { font-style: normal; font-size: 16px; font-weight: 500; -webkit-text-fill-color: var(--muted); }
.case-card p { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.8; flex: 1; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; color: var(--navy); }
.chip.dark { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Linkage ---------- */
.linkage { display: grid; gap: 18px; }
.linkage-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.linkage-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; }
.linkage-card h4 { font-size: 17px; font-weight: 600; color: var(--navy); }
.linkage-card p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.linkage-arrow { display: grid; place-items: center; color: var(--blue); font-size: 18px; }
.linkage-base {
  background: var(--navy); color: #fff; border-radius: 20px; padding: 26px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.linkage-base strong { font-size: 17px; font-weight: 600; }
.linkage-base span { font-size: 14px; color: rgba(255, 255, 255, .72); }

/* ---------- Cooperation table ---------- */
.coop { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.coop th, .coop td { text-align: left; padding: 20px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.coop th { font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: .06em; background: var(--paper); }
.coop td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.coop td:last-child { color: var(--muted); font-size: 14px; }
.coop tr:last-child td { border-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .linkage-row { grid-template-columns: 1fr; }
  .linkage-arrow { transform: rotate(90deg); }
  .coop { display: block; overflow-x: auto; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: 0; }
  .arch { grid-template-columns: 1fr; }
  .arch-arrow { transform: rotate(90deg); }
  .reasons { grid-template-columns: 1fr; gap: 32px; }
  .detail { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .menu-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
  .nav-links.open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 24px 28px; gap: 18px; border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  h1 { font-size: 34px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 48px; }
  .cta-band { padding: 44px 28px; border-radius: 24px; }
  .form-card { padding: 32px 24px; }
  .spec { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
