/* ============================================================
   若谷云Agent · 全站共享设计系统
   Design tokens + 公共组件（导航 / 页脚 / 按钮 / 版式 / 动效）
   页面级样式请在各页面 <style> 内追加，勿改此文件语义。
   ============================================================ */

/* ============ Design Tokens ============ */
:root {
  --bg: #F7FAFD;
  --bg-tint: #EFF4FA;
  --card: #FFFFFF;
  --line: #E3EAF3;
  --line-soft: #ECF1F7;
  --ink: #182430;
  --ink-2: #3D4B5F;
  --dim: #5B6B7F;
  --faint: #8A99AC;
  --blue: #85B8F2;
  --mint: #6ECFB6;
  --lav: #B9A7F2;
  --blue-d: #4E8BD9;
  --mint-d: #2FA687;
  --lav-d: #8B72D9;
  --grad: linear-gradient(120deg, #85B8F2, #6ECFB6 55%, #B9A7F2);
  --grad-text: linear-gradient(110deg, #4E8BD9, #2FA687 60%, #8B72D9);
  --sh-sm: 0 1px 2px rgba(24,36,48,.05), 0 2px 8px rgba(24,36,48,.04);
  --sh-md: 0 2px 4px rgba(24,36,48,.04), 0 10px 28px rgba(24,36,48,.07);
  --sh-lg: 0 4px 8px rgba(24,36,48,.05), 0 24px 64px rgba(24,36,48,.12);
  --r-md: 14px;
  --r-lg: 20px;
  --mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, sans-serif;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(133,184,242,.35); }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ Eyebrow / Headings ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .22em;
  color: var(--mint-d); text-transform: uppercase;
  font-family: var(--mono);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  border-radius: 2px;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800;
  margin: 14px 0 16px; letter-spacing: .3px; line-height: 1.3;
}
.grad-txt { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-desc { color: var(--dim); max-width: 660px; font-size: 1.02rem; }
.sec-head { margin-bottom: 60px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-desc { margin: 0 auto; }
section { padding: 108px 0; position: relative; }
.band { background: var(--bg-tint); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px;
  font-size: .93rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  line-height: 1.4; font-family: inherit;
}
.btn-primary {
  background: #16283C; color: #fff; border: 1px solid #16283C;
  box-shadow: 0 1px 2px rgba(22,40,60,.3), 0 6px 18px rgba(22,40,60,.18);
}
.btn-primary:hover { transform: translateY(-2px); background: #1E3550; box-shadow: 0 2px 4px rgba(22,40,60,.25), 0 12px 30px rgba(22,40,60,.24); }
.btn-primary .arr { transition: transform .18s; }
.btn-primary:hover .arr { transform: translateX(3px); }
.btn-ghost {
  border: 1px solid #C9D6E5; color: var(--ink-2); background: rgba(255,255,255,.7);
}
.btn-ghost:hover { border-color: var(--blue-d); color: var(--blue-d); background: #fff; }

/* ============ Nav ============ */
/* 仅作用于主导航 #nav —— 勿用裸 nav 选择器，页内还有 <nav class="crumb"> 等语义化标签 */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(247,250,253,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
#nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(24,36,48,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.2rem; letter-spacing: .5px; line-height: 1.35; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo em { font-style: normal; background: linear-gradient(90deg, #4E8BD9, #2FA687); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links > a:not(.btn) {
  color: var(--dim); text-decoration: none; font-size: .9rem; font-weight: 500;
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--mint)); border-radius: 2px;
  transition: right .25s ease;
}
.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn).active { color: var(--ink); }
.nav-links > a:not(.btn):hover::after,
.nav-links > a:not(.btn).active::after { right: 0; }
.nav-links .btn { padding: 9px 20px; font-size: .87rem; }

/* mobile menu button */
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: rgba(255,255,255,.7); border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink-2); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Footer ============ */
footer { background: #101C29; color: #C4D0DE; padding: 68px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 46px; }
.foot-grid .logo { color: #fff; margin-bottom: 16px; font-size: 1.26rem; }
.foot-grid .logo .logo-mark { width: 32px; height: 32px; }
.foot-grid .logo em { background: linear-gradient(90deg, #9CC6F7, #8ADDC7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-grid h4 { font-size: .88rem; margin-bottom: 16px; color: #fff; letter-spacing: .04em; }
.foot-grid a, .foot-grid p { display: block; color: #8CA0B6; font-size: .85rem; text-decoration: none; margin-bottom: 9px; transition: color .2s; }
.foot-grid a:hover { color: #9CC6F7; }
.copyright {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #5F7288; font-size: .76rem;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px;
}
.copyright a { color: #5F7288; text-decoration: none; }
.copyright a:hover { color: #9CC6F7; }

/* ============ Sub-page hero (内页页头) ============ */
.page-hero { position: relative; padding: 150px 0 66px; overflow: hidden; }
.page-hero .hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(24,36,48,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24,36,48,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 25%, transparent 80%);
}
.page-hero .hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.page-hero .hg-1 { width: 460px; height: 460px; background: rgba(133,184,242,.24); top: -200px; left: -120px; }
.page-hero .hg-2 { width: 400px; height: 400px; background: rgba(110,207,182,.2); top: -140px; right: -120px; }
.page-hero .inner { position: relative; max-width: 780px; }
.page-hero.center .inner { margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; line-height: 1.22; letter-spacing: .5px; margin: 16px 0 0; }
.page-hero .lead { margin: 22px 0 0; color: var(--dim); font-size: 1.1rem; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; max-width: 620px; }

/* breadcrumb（胶囊样式，与 hero-badge 同视觉语言） */
.crumb {
  display: inline-flex; gap: 9px; align-items: center;
  padding: 6px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px); box-shadow: var(--sh-sm);
  font-size: .76rem; letter-spacing: .05em;
  color: var(--faint); font-family: var(--mono);
}
.crumb a { color: var(--dim); text-decoration: none; transition: color .2s; display: inline-flex; align-items: center; gap: 6px; }
.crumb a:hover { color: var(--blue-d); }
.crumb a:first-child::before {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M3 10.5L12 3l9 7.5"/><path d="M5.5 9v11h13V9"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="M3 10.5L12 3l9 7.5"/><path d="M5.5 9v11h13V9"/></svg>') center / contain no-repeat;
}
.crumb .sep { opacity: .55; font-size: .9em; }
.crumb > span:last-child { color: var(--ink-2); font-weight: 700; }

/* ============ Generic card grid helpers ============ */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px;
  box-shadow: var(--sh-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: #D3E0EF; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #F2F7FD, #EFFAF6);
  color: var(--blue-d);
}
.icon-tile svg { width: 22px; height: 22px; }

/* ============ CTA band ============ */
.cta-band {
  position: relative; text-align: center;
  border-radius: 24px; padding: 82px 30px; overflow: hidden;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(120deg, #85B8F2, #6ECFB6, #B9A7F2) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--sh-md);
}
.cta-band .watermark {
  position: absolute; right: -70px; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; opacity: .07; pointer-events: none;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--dim); margin-bottom: 38px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.on { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .65s cubic-bezier(.2,.6,.2,1), transform .65s cubic-bezier(.2,.6,.2,1); }
.stagger.on > * { opacity: 1; transform: none; }
.stagger.on > *:nth-child(1) { transition-delay: 0s; }
.stagger.on > *:nth-child(2) { transition-delay: .08s; }
.stagger.on > *:nth-child(3) { transition-delay: .16s; }
.stagger.on > *:nth-child(4) { transition-delay: .24s; }
.stagger.on > *:nth-child(5) { transition-delay: .32s; }
.stagger.on > *:nth-child(6) { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .stagger > * { transition: none; opacity: 1; transform: none; }
}

/* ============ Modal (预约演示弹窗) ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(16,28,41,.5); backdrop-filter: blur(6px);
}
.modal-mask.show { display: flex; }
.modal {
  width: min(520px, 100%); background: var(--card);
  border-radius: 20px; box-shadow: var(--sh-lg);
  border: 1px solid var(--line); overflow: hidden;
  max-height: 92vh; overflow-y: auto;
  animation: modalIn .28s cubic-bezier(.2,.7,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { padding: 26px 28px 0; position: relative; }
.modal-head h3 { font-size: 1.32rem; font-weight: 800; letter-spacing: .3px; }
.modal-head p { color: var(--dim); font-size: .9rem; margin-top: 6px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px;
  border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; color: var(--dim); transition: color .2s, border-color .2s;
}
.modal-close:hover { color: var(--ink); border-color: var(--blue-d); }
.modal-body { padding: 20px 28px 28px; }

/* ============ Form ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field label .req { color: #E06666; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; font-size: .92rem; font-family: inherit;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(133,184,242,.2);
}
.field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: #E7A0A0; box-shadow: 0 0 0 3px rgba(224,102,102,.14);
}
.field .err { color: #C0504D; font-size: .74rem; margin-top: 5px; display: none; }
.field.show-err .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .74rem; color: var(--faint); margin-top: 4px; }
.form-ok {
  display: none; text-align: center; padding: 20px 10px;
}
.form-ok.show { display: block; }
.form-ok .ok-badge {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 8px 22px rgba(110,207,182,.4);
}
.form-ok h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.form-ok p { color: var(--dim); font-size: .9rem; }

/* 提交错误提示 */
.form-alert {
  display: none; margin: 4px 0 14px;
  padding: 11px 14px; border-radius: 10px; font-size: .84rem;
  color: #A6403D; background: #FCEDEC; border: 1px solid #F1C9C6;
}
.form-alert.show { display: block; }
.form-alert a { color: #A6403D; font-weight: 700; }

/* 蜜罐（防机器人，视觉隐藏、不占位、屏蔽读屏与 tab） */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(247,250,253,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 10px 6% 20px;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform .25s, opacity .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 14px; justify-content: center; padding: 13px 20px; font-size: .95rem; }
}
