/* ============================================================
   超玄科技 · Cryptic-Tech 官网设计系统
   科技感主题：深空蓝黑 + 霓虹青 + 冷白
   ============================================================ */

:root {
  /* 色板 */
  --bg-0: #05070f;
  --bg-1: #0a0f1e;
  --bg-2: #0f1729;
  --panel: rgba(16, 24, 44, 0.62);
  --panel-solid: #0d1526;
  --line: rgba(90, 140, 255, 0.16);
  --line-strong: rgba(90, 160, 255, 0.34);
  --cyan: #22d3ee;
  --blue: #4f8cff;
  --blue-deep: #2b5fd9;
  --violet: #8b5cf6;
  --white: #eef4ff;
  --muted: #93a5c4;
  --muted-2: #5f7297;
  --good: #34d399;

  /* 字体 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Menlo", Consolas, monospace;

  /* 布局 */
  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- 背景科技网格 + 光晕 ---- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 45% at 12% -8%, rgba(79,140,255,0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 0%, rgba(34,211,238,0.13), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(139,92,246,0.10), transparent 65%),
    var(--bg-0);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(80,130,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,130,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
}

/* ---- 导航 ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 10px 40px rgba(0,0,0,0.45); }
.nav-inner {
  width: min(var(--max-w), 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-logo-full {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-name { font-size: 20px; font-weight: 750; letter-spacing: 0.02em; }
.brand-sub { font-size: 11px; color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase; }

.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
  padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: #04101d;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 20px rgba(34,211,238,0.35);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(34,211,238,0.5); }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); margin: 5px 0;
  border-radius: 2px;
}

/* ---- 通用布局 ---- */
.wrap { width: min(var(--max-w), 92%); margin: 0 auto; }
section { padding: 92px 0; position: relative; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.eyebrow::before { content: "◆"; font-size: 9px; color: var(--blue); }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 16px; margin-top: 16px; }

/* ---- 按钮 ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: 0;
}
.btn-primary {
  color: #04101d;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 22px rgba(34,211,238,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 34px rgba(34,211,238,0.5); }
.btn-ghost {
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(34,211,238,0.2); transform: translateY(-2px); }

/* ---- 玻璃卡片 ---- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.glass:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,0.4), 0 0 30px rgba(34,211,238,0.08);
}

/* ---- Hero ---- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(34,211,238,0.06);
  color: var(--cyan);
  font-size: 13px; font-weight: 550;
  margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 24px;
}
.grad-text {
  background: linear-gradient(92deg, var(--cyan), var(--blue) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 56px;
  max-width: 560px;
}
.stat-card { padding: 20px 22px; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Hero 可视化卡片 */
.hero-visual {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  overflow: hidden;
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(80,140,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,140,255,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}
.vis-head { position: relative; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.vis-head span { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.vis-node {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.node {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(10, 16, 30, 0.85);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 600;
}
.node i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.node .tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); }
.node-line { width: 1px; height: 12px; margin-left: 19px; background: var(--line-strong); }
.node-cyan i { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.node-blue i { background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.node-violet i { background: var(--violet); box-shadow: 0 0 12px var(--violet); }

/* ---- 能力网格 ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 30px 28px; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(34,211,238,0.16), rgba(79,140,255,0.16));
  border: 1px solid var(--line-strong);
  color: var(--cyan);
}
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---- 业务主线 ---- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.02));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 18px;
}
.pillar h3 { font-size: 22px; font-weight: 750; margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.pillar ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pillar li { font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; }
.pillar li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.pillar .glow {
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  filter: blur(60px); opacity: 0.35; pointer-events: none;
}

/* ---- 数字带 ---- */
.stat-band {
  background: linear-gradient(120deg, rgba(20,32,58,0.7), rgba(10,16,30,0.7));
  border: 1px solid var(--line);
  border-radius: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 44px 24px;
}
.band-item { text-align: center; position: relative; }
.band-item:not(:last-child):not(:nth-last-child(2))::after {
  content: "";
  position: absolute; right: 0; top: 8%; bottom: 8%;
  width: 1px; background: var(--line);
}
.band-num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.band-num em { font-style: normal; color: var(--cyan); }
.band-label { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---- 案例 ---- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.case-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { padding: 32px; display: flex; flex-direction: column; }
.case-card .tag-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background: rgba(34,211,238,0.06);
}
.case-card h3 { font-size: 21px; font-weight: 750; margin-bottom: 12px; }
.case-card .desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.case-card .points { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.case-card .points li { font-size: 13px; color: var(--muted); padding-left: 20px; position: relative; }
.case-card .points li::before { content: "＋"; position: absolute; left: 0; color: var(--blue); font-family: var(--font-mono); }
.case-metric { display: flex; gap: 26px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.case-metric .m-num { font-family: var(--font-mono); font-size: 22px; font-weight: 750; color: var(--cyan); }
.case-metric .m-label { font-size: 12px; color: var(--muted-2); }

/* ---- 团队 ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card { padding: 28px; }
.team-avatar {
  width: 66px; height: 66px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 800;
  background: linear-gradient(140deg, rgba(79,140,255,0.25), rgba(34,211,238,0.2));
  border: 1px solid var(--line-strong);
  color: var(--white);
  margin-bottom: 18px;
}
.team-card h4 { font-size: 18px; font-weight: 700; }
.team-card .role { color: var(--cyan); font-size: 13px; margin: 4px 0 10px; }
.team-card p { color: var(--muted); font-size: 13px; }

/* ---- CTA ---- */
.cta {
  border-radius: 26px;
  padding: 70px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(18,32,60,0.9), rgba(8,14,28,0.95));
  border: 1px solid var(--line-strong);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(34,211,238,0.14), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 100%, rgba(139,92,246,0.12), transparent 70%);
}
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin-bottom: 16px; position: relative; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; position: relative; }
.cta .btn { position: relative; }

/* ---- 页脚 ---- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 34px; margin-top: 40px; background: rgba(4,6,12,0.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-size: 14px; font-weight: 700; margin-bottom: 18px; color: var(--white); }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer a:hover { color: var(--cyan); }
.footer .brand-name { font-size: 20px; }
.footer .desc { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 300px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted-2); font-size: 12px; flex-wrap: wrap; gap: 10px;
}

/* ---- 页面标题区 ---- */
.page-hero { padding-top: calc(var(--nav-h) + 90px); padding-bottom: 40px; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 850; letter-spacing: -0.02em; line-height: 1.15; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 16px; }

/* ---- 流程 ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { padding: 30px 26px; position: relative; }
.step .s-num {
  font-family: var(--font-mono);
  font-size: 40px; font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(34,211,238,0.6);
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 13px; }

/* ---- 架构图 ---- */
.arch {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px;
  background: linear-gradient(160deg, rgba(16,26,48,0.6), rgba(8,13,26,0.6));
}
.arch-row { display: grid; gap: 12px; margin-bottom: 18px; }
.arch-row:last-child { margin-bottom: 0; }
.arch-label { font-size: 12px; color: var(--muted-2); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.arch-boxes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.arch-box {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(10,16,30,0.8);
  border: 1px solid var(--line);
  font-size: 13px; font-weight: 600;
  text-align: center;
  color: var(--white);
}
.arch-box.cyan { border-color: rgba(34,211,238,0.4); color: var(--cyan); }
.arch-box.blue { border-color: rgba(79,140,255,0.4); color: var(--blue); }
.arch-box.violet { border-color: rgba(139,92,246,0.4); color: var(--violet); }
.arch-box.muted { color: var(--muted); }

/* ---- 联系 ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info .ci { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .ci:last-child { border-bottom: 0; }
.ci-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 19px;
  background: rgba(34,211,238,0.1); border: 1px solid var(--line-strong); color: var(--cyan);
}
.ci h4 { font-size: 15px; font-weight: 650; margin-bottom: 4px; }
.ci p { color: var(--muted); font-size: 14px; }

.contact-form .glass { padding: 34px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(8,13,26,0.85);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row select { appearance: none; }
.form-status { margin: -4px 0 16px; font-size: 13px; line-height: 1.6; min-height: 20px; }
.form-status.is-success { color: #34d399; }
.form-status.is-error { color: #f87171; }

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

/* ---- 响应式 ---- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .grid-3, .grid-4, .pillars, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid, .case-grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .band-item:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(5,8,16,0.98);
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .grid-3, .grid-4, .pillars, .team-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
