/* ============================================================
   一知未来 · 企业官网  |  科技未来 · 简约大气
   Design System
   ============================================================ */

:root {
  /* 背景层 */
  --bg: #05070f;
  --bg-soft: #0a0e1c;
  --bg-elev: #0e1426;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* 文本 */
  --text: #eaf0fb;
  --text-dim: #9aa7c4;
  --text-faint: #64708c;

  /* 品牌色 */
  --brand: #38bdf8;     /* cyan-blue */
  --brand-2: #818cf8;   /* violet */
  --accent: #22d3ee;    /* cyan */
  --grad: linear-gradient(120deg, #38bdf8 0%, #818cf8 55%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(56,189,248,.18), rgba(129,140,248,.18));

  /* 尺寸 */
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  --glow: 0 0 0 1px rgba(56,189,248,.25), 0 18px 50px -18px rgba(56,189,248,.35);

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* ---------- 文本工具 ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}
.lead { color: var(--text-dim); font-size: 17px; }
.muted { color: var(--text-dim); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #04121f;
  box-shadow: 0 14px 34px -14px rgba(56,189,248,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(56,189,248,.7); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand); }
.btn svg { width: 17px; height: 17px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 15, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  object-fit: cover; flex: none;
  box-shadow: 0 2px 10px rgba(56,189,248,.25);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; transition: .3s; border-radius: 2px; }

/* ---------- 语言切换器 ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.lang-item { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; transition: all .2s; font-weight: 500; }
.lang-item:hover { color: var(--text); background: var(--surface-2); }
.lang-item.active { color: #04121f; background: var(--grad); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 20% 25%, rgba(56,189,248,.22), transparent 60%),
    radial-gradient(38% 38% at 80% 20%, rgba(129,140,248,.20), transparent 60%),
    radial-gradient(45% 45% at 60% 80%, rgba(34,211,238,.14), transparent 60%);
  filter: blur(20px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1.02); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero-bg .orb {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.35), transparent 70%);
  top: 12%; right: 6%; filter: blur(10px); animation: float 14s ease-in-out infinite;
}
.hero-bg .orb.b { width: 240px; height: 240px; background: radial-gradient(circle, rgba(129,140,248,.35), transparent 70%); bottom: 8%; left: 8%; animation-delay: -6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-28px); } }

.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.08;
  font-weight: 800; letter-spacing: -.01em; margin: 22px 0 22px;
}
.hero p.sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-dim); max-width: 640px; }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; margin-top: 54px; flex-wrap: wrap; }
.hero-badges .b { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.hero-badges .b svg { width: 18px; height: 18px; color: var(--brand); }

/* 相关服务条（弱耦合：不抢主视线） */
.related {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; padding: 14px 0 0;
  font-size: 14px; color: var(--text-faint);
}
.related-t { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.related-i { color: var(--text-dim); font-weight: 500; transition: color .2s; }
.related-i:hover { color: var(--brand); }
.related-d { color: var(--text-faint); }

/* ---------- 区块 ---------- */
section { position: relative; padding: 100px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.01em; margin: 16px 0 14px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

/* 信任条 */
.trust {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-soft); padding: 26px 0;
}
.trust .row { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; color: var(--text-dim); font-size: 15px; }
.trust .row strong { color: var(--text); font-weight: 600; }

/* 卡片网格 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.card .ico svg { width: 26px; height: 26px; color: var(--brand); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--brand); font-weight: 600; font-size: 14px; }
.card .more svg { width: 15px; height: 15px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* 子站 spotlight */
.spotlight {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, rgba(56,189,248,.10), rgba(129,140,248,.08));
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 44px;
  position: relative; overflow: hidden;
}
.spotlight::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(34,211,238,.3), transparent 70%); filter: blur(8px);
}
.spotlight h3 { font-size: 26px; font-weight: 800; margin: 14px 0 12px; }
.spotlight p { color: var(--text-dim); margin-bottom: 20px; }
.spotlight .tag { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.spotlight-visual {
  aspect-ratio: 4/3; border-radius: 16px; border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 30%, rgba(56,189,248,.25), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(129,140,248,.25), transparent 55%),
    var(--bg-elev);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.spotlight-visual .chat { width: 78%; display: flex; flex-direction: column; gap: 10px; }
.spotlight-visual .bubble { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--text-dim); max-width: 85%; }
.spotlight-visual .bubble.me { align-self: flex-end; background: var(--grad-soft); color: var(--text); border-color: transparent; }
.spotlight-visual .bubble.ai { align-self: flex-start; }
.spotlight-visual .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 5px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* 能力点 */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .num { font-size: 14px; font-weight: 700; color: var(--brand); border: 1px solid var(--border); border-radius: 9px; width: 38px; height: 38px; display: grid; place-items: center; flex: none; background: var(--surface); }
.feature h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--text-dim); font-size: 14px; }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stat .v { font-size: clamp(32px, 5vw, 46px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat .k { color: var(--text-dim); font-size: 14px; margin-top: 10px; }

/* 时间线 */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2), transparent); }
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item::before { content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(56,189,248,.12); }
.tl-item .yr { font-size: 14px; color: var(--brand); font-weight: 700; letter-spacing: .04em; }
.tl-item h4 { font-size: 18px; font-weight: 700; margin: 4px 0 6px; }
.tl-item p { color: var(--text-dim); font-size: 15px; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.flow .step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.flow .step .n { counter-increment: step; font-size: 34px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--brand); margin-bottom: 10px; }
.flow .step .n::before { content: "0" counter(step); }
.flow .step h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.flow .step p { color: var(--text-dim); font-size: 14px; }

/* CTA band */
.cta-band {
  text-align: center; border-radius: 24px; padding: 64px 32px;
  background: linear-gradient(135deg, rgba(56,189,248,.14), rgba(129,140,248,.12));
  border: 1px solid var(--border-strong); position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); margin-bottom: 28px; font-size: 17px; }

/* ---------- 关于页 ---------- */
.page-hero { padding: 160px 0 60px; position: relative; overflow: hidden; }
.page-hero .hero-bg .mesh { opacity: .7; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.01em; margin: 18px 0 16px; }
.page-hero p { color: var(--text-dim); font-size: 18px; max-width: 640px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.value h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.value p { color: var(--text-dim); font-size: 15px; }

/* ---------- 联系页 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .item .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; flex: none; }
.contact-info .item .ico svg { width: 22px; height: 22px; color: var(--brand); }
.contact-info .item .t { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; }
.contact-info .item .v { font-size: 17px; font-weight: 600; margin-top: 2px; }
.contact-info .item .v a:hover { color: var(--brand); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  font-family: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(56,189,248,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #fb7185; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #fb7185; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--text-faint); margin-top: 6px; }

/* 微信二维码卡片 */
.wx-card {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.wx-card .qr {
  width: 104px; height: 104px; flex: none;
  border-radius: 10px; overflow: hidden;
  background: #fff; padding: 6px;
  border: 1px solid var(--border);
}
.wx-card .qr img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.wx-card .qr.mini { width: 44px; height: 44px; padding: 3px; }
/* 公众号名称与标题同行 */
.wx-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wx-t { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; }
.wx-v { font-size: 17px; font-weight: 700; }
.wx-d { font-size: 13px; color: var(--text-dim); margin-top: 6px; line-height: 1.5; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--brand); display: grid; place-items: center; margin: 0 auto 16px; }
.form-success .check svg { width: 32px; height: 32px; color: var(--brand); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 60px 0 30px; margin-top: 40px; }
.footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { margin-bottom: 16px; }
.footer p.desc { color: var(--text-dim); font-size: 14px; max-width: 300px; }
.footer h5 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.footer ul li a:hover { color: var(--brand); }
.footer .bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text-faint); font-size: 13px; }
.footer .bottom a:hover { color: var(--brand); }

/* ---------- 滚动揭示 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .values, .stats, .flow { grid-template-columns: repeat(2, 1fr); }
  .spotlight, .contact-wrap { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr 1fr; }
  .lang-switch { display: none; }
}
.nav.open .lang-switch { display: flex; margin-top: 6px; }
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(5,7,15,.96); backdrop-filter: blur(18px); padding: 20px 24px; gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a.active::after { display: none; }
  section { padding: 72px 0; }
  .grid-3, .grid-4, .values, .stats, .flow, .grid-2 { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-badges { gap: 16px 22px; }
}
