/* ============================================================
   ZealLink 智联益信 官网样式
   科技深蓝风：深蓝基调 + 科技蓝高光 + 冰蓝点缀
   ============================================================ */

:root {
  --bg: #04102b;
  --bg-2: #071c3f;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --line: rgba(122, 168, 255, 0.16);
  --line-2: rgba(122, 168, 255, 0.3);
  --text: #e9f1ff;
  --muted: #98b0d6;
  --cyan: #4d9cff;
  --cyan-dim: rgba(77, 156, 255, 0.14);
  --ice: #8fd8ff;
  --radius: 14px;
  --container: 1160px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
    system-ui, -apple-system, 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;
  overflow-x: hidden;
}
::selection { background: rgba(77, 156, 255, 0.25); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
  background: none; color: var(--text); font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: linear-gradient(135deg, #2f6bff, #4d9cff);
  color: #04102b; border: none;
  box-shadow: 0 8px 28px rgba(77, 156, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(77, 156, 255, 0.4); transform: translateY(-1px); }
.btn-outline { border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { border: none; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.ico { width: 14px; height: 14px; }

.section { padding: 96px 0; }
.section-alt {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(77, 156, 255, 0.05), transparent 60%),
    var(--bg-2);
}
.sec-eyebrow {
  font-size: 12px; letter-spacing: 0.32em; color: var(--cyan);
  font-weight: 600; margin-bottom: 14px;
}
.sec-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; letter-spacing: 0.01em; }
.sec-sub { color: var(--muted); margin-top: 14px; max-width: 640px; }
.footnote { margin-top: 26px; font-size: 12px; color: var(--muted); opacity: 0.7; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 16, 43, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(4, 16, 43, 0.9); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.brand-name em {
  font-style: normal; margin-left: 8px; padding-left: 10px;
  border-left: 1px solid var(--line-2); color: var(--muted);
  font-size: 13px; font-weight: 500;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 4px 0; border-radius: 2px; transition: 0.2s;
}
#btn-user-name { color: var(--cyan); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: radial-gradient(1100px 520px at 70% -10%, rgba(77, 156, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #061a3d 0%, var(--bg) 70%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; left: 50%; bottom: -180px; transform: translateX(-50%);
  width: 900px; height: 320px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(77, 156, 255, 0.14), transparent);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 140px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.4em; color: var(--cyan); font-weight: 600;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.16; font-weight: 800;
  letter-spacing: 0.01em;
}
.grad {
  background: linear-gradient(100deg, #a8d8ff 10%, #4d9cff 45%, #2f6bff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 24px; max-width: 620px; color: var(--muted); font-size: 16.5px; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px;
  display: flex; justify-content: center; z-index: 2;
}
.hero-scroll span {
  width: 3px; height: 8px; margin-top: 6px; border-radius: 2px; background: var(--cyan);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0%, 100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(10px); opacity: 0.2; } }

/* ---------- 数据亮点 ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
  display: block; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800;
  background: linear-gradient(120deg, #8fd8ff, #4d9cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 产品卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.card {
  position: relative; padding: 26px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-5px); border-color: rgba(77, 156, 255, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(77, 156, 255, 0.08) inset;
}
.card-hi {
  background: linear-gradient(180deg, rgba(77, 156, 255, 0.08), rgba(77, 156, 255, 0.02)) , var(--panel);
  border-color: rgba(77, 156, 255, 0.35);
}
.card-tag {
  position: absolute; top: -11px; left: 20px; font-size: 11px; letter-spacing: 0.14em;
  color: #04102b; background: linear-gradient(135deg, #8fd8ff, #4d9cff);
  padding: 3px 10px; border-radius: 20px; font-weight: 700;
}
.card h3 { font-size: 18px; font-weight: 700; }
.card h3 small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.card p { margin-top: 14px; font-size: 13.5px; color: var(--muted); flex: 1; }
.metrics { list-style: none; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metrics b { font-size: 19px; font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
.metrics span { display: block; font-size: 11.5px; color: var(--muted); }
.card-link { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--cyan); }

/* ---------- 核心技术 ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.tile {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.tile:hover { border-color: rgba(77, 156, 255, 0.35); transform: translateY(-4px); }
.tile-ico {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--cyan-dim); color: var(--cyan); margin-bottom: 18px;
}
.tile-ico svg { width: 22px; height: 22px; }
.tile h3 { font-size: 16.5px; }
.tile p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------- AI 波段大师专题 ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chips span {
  padding: 7px 14px; border-radius: 20px; font-size: 13px;
  border: 1px solid var(--line-2); color: var(--muted);
  transition: 0.2s;
}
.chips span:hover { color: var(--cyan); border-color: rgba(77, 156, 255, 0.45); }
.ai-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ai-flow span {
  padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: var(--cyan-dim); color: var(--cyan);
}
.ai-flow i { color: var(--muted); font-style: normal; }
.split .hero-cta { margin-top: 30px; }

.terminal {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #0a2450, #071a3c);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(77, 156, 255, 0.07);
  font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12.8px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2b4570; }
.terminal-bar i:first-child { background: #3ddc97; }
.terminal-bar i:nth-child(2) { background: #8fd8ff; }
.terminal-bar span { margin-left: 8px; color: var(--muted); font-size: 11.5px; }
.terminal-body { padding: 18px 18px 14px; line-height: 2.05; }
.terminal-body .ind { padding-left: 14px; color: var(--muted); }
.c-cyan { color: var(--cyan); }
.c-ice { color: var(--ice); }
.terminal-body b { color: #fff; font-weight: 600; }
.cursor { animation: blink 1.1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 40px; }
.about-p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.about-h { font-size: 14px; color: var(--text); margin: 22px 0 14px; letter-spacing: 0.06em; }
.team-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.team-tags span {
  padding: 8px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(77, 156, 255, 0.25);
}
.biz-list { list-style: none; display: grid; gap: 12px; }
.biz-list li {
  display: flex; gap: 14px; align-items: baseline;
  padding: 12px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
}
.biz-list b { font-size: 13.5px; white-space: nowrap; color: var(--ice); }
.biz-list span { font-size: 13px; color: var(--muted); }

/* ---------- 客户 ---------- */
.clients-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 40px;
}
.clients-grid span {
  display: grid; place-items: center; text-align: center; padding: 20px 8px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: 0.2s;
}
.clients-grid span:hover { color: var(--text); border-color: rgba(77, 156, 255, 0.4); }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-info { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.contact-info li { font-size: 14px; color: var(--muted); }
.contact-info b {
  color: var(--text); display: inline-block; width: 52px; font-weight: 600;
}
.contact-form {
  padding: 28px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  display: grid; gap: 16px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: rgba(4, 16, 43, 0.6); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 11px 13px; outline: none; resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: rgba(77, 156, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(77, 156, 255, 0.12);
}

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 26px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-legal {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.icp { letter-spacing: 0.06em; }

/* ---------- 登录弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center;
  background: rgba(3, 6, 12, 0.7); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-mask[hidden] { display: none; }
.modal {
  position: relative; width: min(400px, calc(100vw - 40px));
  padding: 30px 28px 24px; border-radius: 16px;
  background: linear-gradient(180deg, #0b2450, #071c3f);
  border: 1px solid var(--line-2); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.modal-x {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: none; color: var(--muted);
  font-size: 20px; cursor: pointer;
}
.modal-x:hover { color: var(--text); background: var(--panel-2); }
.tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); padding: 4px; border-radius: 10px; margin-bottom: 22px; }
.tab {
  flex: 1; padding: 8px 0; border: 0; border-radius: 7px; background: none;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.tab.on { background: var(--cyan-dim); color: var(--cyan); }
.modal form { display: grid; gap: 14px; }
.modal label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.modal input {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: rgba(4, 16, 43, 0.6); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 11px 13px; outline: none;
}
.modal input:focus { border-color: rgba(77, 156, 255, 0.55); box-shadow: 0 0 0 3px rgba(77, 156, 255, 0.12); }
.auth-hint { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(8px);
  z-index: 99; padding: 11px 20px; border-radius: 10px; font-size: 13.5px;
  background: rgba(11, 36, 80, 0.95); border: 1px solid rgba(77, 156, 255, 0.4);
  color: var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0; transition: 0.25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(255, 107, 107, 0.5); }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .cards, .tiles { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .split, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-visual { order: -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: block; margin-left: 4px; }
  .nav.open .nav-links {
    display: grid; position: absolute; top: 64px; left: 0; right: 0;
    padding: 12px 24px 20px; gap: 4px;
    background: rgba(4, 16, 43, 0.97); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 10px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cards, .tiles { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form .row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* ---------- 独立登录 / 注册引导页 ---------- */
.auth-nav { position: sticky; }
.auth-wrap {
  min-height: calc(100vh - 65px);
  display: grid; place-items: center; padding: 56px 24px;
  background:
    radial-gradient(600px 320px at 80% 0%, rgba(77, 156, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #061a3d 0%, var(--bg) 60%);
}
.auth-card {
  width: min(440px, 100%); padding: 38px 36px 32px;
  border-radius: 18px; background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.auth-card h1 { font-size: 24px; font-weight: 800; letter-spacing: 0.02em; }
.auth-sub { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.auth-card form { margin-top: 22px; }
.auth-card form label {
  display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.auth-card form input {
  display: block; width: 100%; margin-top: 7px;
  font-family: inherit; font-size: 14px; color: var(--text);
  background: rgba(4, 16, 43, 0.6); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 12px 13px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-card form input:focus {
  border-color: rgba(77, 156, 255, 0.55); box-shadow: 0 0 0 3px rgba(77, 156, 255, 0.12);
}
.auth-card form .btn { margin-top: 6px; padding: 12px 0; }
.auth-alt { margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-alt a { color: var(--cyan); text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.auth-alt-center { text-align: center; }
.auth-card .auth-hint { margin-top: 8px; }
.auth-steps { margin-top: 20px; display: grid; gap: 10px; }
.auth-steps .step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 13px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.auth-steps .step b {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12px; color: #04102b; background: var(--cyan);
}
.auth-contact { margin: 20px 0 22px; padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--line-2); }
.auth-contact h3 { font-size: 13px; color: var(--text); }
.auth-contact p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.auth-contact a { color: var(--cyan); text-decoration: none; }
