/* ============================================================
   流知万象 · 企业 AI 应用与落地服务 官网
   设计系统：科技专业沉稳（深蓝墨色 + 蓝紫科技渐变点缀）
   ============================================================ */

:root {
  /* 主色 · 沉稳底色 */
  --bg: #0b1220;
  --bg-soft: #101a2e;
  --bg-card: #16233a;
  --bg-card-hover: #1b2b46;

  /* 文字 */
  --text-strong: #f2f6fc;
  --text: #c9d4e4;
  --text-muted: #8a99b3;
  --text-faint: #5f6f89;

  /* 品牌强调 · 科技蓝紫渐变（克制使用） */
  --accent: #4f7cff;
  --accent-2: #7b5cff;
  --accent-grad: linear-gradient(135deg, #4f7cff 0%, #7b5cff 100%);
  --accent-soft: rgba(79, 124, 255, 0.14);

  /* 功能色 */
  --line: rgba(138, 153, 179, 0.16);
  --line-strong: rgba(138, 153, 179, 0.28);

  /* 尺寸 */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 9px;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(79, 124, 255, 0.35); color: #fff; }

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

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.72);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: var(--line-strong);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-strong);
  letter-spacing: 0.5px;
}
.brand-mark {
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 10px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text-strong); }
.nav-links a.active { color: var(--text-strong); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
}
.nav-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 50px;
  background: var(--accent-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(79,124,255,.3); }

.nav-toggle {
  display: none;
  background: none; border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #080d17;
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer h4 { color: var(--text-strong); font-size: 15px; margin-bottom: 18px; font-weight: 600; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text-strong); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- 通用排版 ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h1, h2, h3 { color: var(--text-strong); line-height: 1.3; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: 0.5px; }
h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
.lead { font-size: 18px; color: var(--text-muted); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; color: var(--text-muted); }

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79,124,255,.35); }
.btn-ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.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 {
  position: relative;
  background: linear-gradient(180deg, rgba(99, 130, 190, 0.20), rgba(99, 130, 190, 0.10));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(138, 153, 179, 0.24);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), border-color .3s ease,
    background .3s ease, box-shadow .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 100% at 20% 0%, rgba(79,124,255,.12), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 124, 255, 0.45);
  background: linear-gradient(180deg, rgba(99, 130, 190, 0.28), rgba(99, 130, 190, 0.16));
  box-shadow: 0 18px 44px rgba(4, 8, 18, 0.5), 0 0 0 1px rgba(79,124,255,.12),
    0 0 32px rgba(79, 124, 255, 0.18);
}
.card:hover::before { opacity: 1; }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card a { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,124,255,.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(123,92,255,.16), transparent 55%),
    var(--bg);
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero .lead { margin-top: 24px; font-size: 20px; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--accent-soft);
  border: 1px solid rgba(79,124,255,.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-stats {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-stats .stat b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.2;
}
.hero-stats .stat span { color: var(--text-muted); font-size: 14px; }

/* 网格装饰 */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(138,153,179,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,153,179,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* ---------- 场景标签 ---------- */
.scene-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .2s, color .2s, transform .2s;
}
.scene-pill:hover { border-color: var(--accent); color: var(--text-strong); transform: translateY(-2px); }

/* ---------- 数字指标 ---------- */
.metric-row { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 40px; }
.metric b { font-size: 34px; color: var(--text-strong); display: block; }
.metric span { color: var(--text-muted); font-size: 14px; }

/* ---------- 引用/注释 ---------- */
.note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 12px;
}
.callout {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  color: var(--text);
  font-size: 15px;
}

/* 锚点跳转时避开固定导航 */
section[id], div[id] { scroll-margin-top: 88px; }

/* ---------- 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 占位标记（待用户确认） ---------- */
.todo {
  display: inline-block;
  background: rgba(255, 193, 7, 0.14);
  color: #f5c542;
  border: 1px dashed rgba(245, 197, 66, 0.5);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 6px;
}

/* ---------- 分步流程 ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); }

/* ---------- 对比表 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(99, 130, 190, 0.16), rgba(99, 130, 190, 0.07));
}
table.compare { width: 100%; border-collapse: collapse; min-width: 780px; }
.compare th, .compare td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  color: var(--text-strong);
  font-weight: 600;
  background: rgba(79, 124, 255, 0.08);
  white-space: nowrap;
}
.compare tbody td { color: var(--text-muted); }
.compare tbody td:first-child { color: var(--text-strong); font-weight: 600; white-space: nowrap; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .hl { color: var(--accent); font-weight: 600; }

/* ---------- 常见问题（折叠） ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  color: var(--text-strong);
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  transition: color .2s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-sign {
  flex-shrink: 0;
  position: relative;
  width: 20px; height: 20px;
}
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.faq-sign::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-sign::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq-item.open .faq-sign::after { transform: rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease;
}
.faq-item.open .faq-a { opacity: 1; }
.faq-a p { padding-bottom: 24px; color: var(--text-muted); font-size: 15px; max-width: 900px; }
.faq-a p + p { padding-top: 0; }

/* ---------- 准备事项列表 ---------- */
.prep { border-top: 1px solid var(--line); }
.prep-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.prep-item:last-child { border-bottom: none; }

/* ---------- 表单 ---------- */
.form-card { padding: 40px; }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}
.field > label .req { color: var(--accent); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(9, 14, 26, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-strong);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(9, 14, 26, 0.8);
}
.field select option { background: #101a2e; color: var(--text-strong); }
.field textarea { min-height: 108px; resize: vertical; }
.field .err {
  display: none;
  font-size: 12px;
  color: #ff9b9b;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff9b9b; }
.field.invalid .err { display: block; }
.check-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.check-field input {
  width: 16px; height: 16px;
  margin-top: 5px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check-field span { font-size: 14px; color: var(--text-muted); }
.check-field.invalid span { color: #ff9b9b; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-status {
  display: none;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
}
.form-status.show { display: block; }
.form-status.ok { border-left-color: #48c78e; }
.form-status.err { border-left-color: #ff9b9b; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(11, 18, 32, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-cta.desktop { display: none; }

  .hero { padding: 140px 0 80px; }
  .hero-stats { gap: 32px; }
  .metric-row { gap: 28px; }

  .form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { justify-content: center; }
  .faq-q { font-size: 16px; gap: 16px; }
}
