/* ===========================================================
   深核 DeepCore — 科技深色风 共享样式
   颜色/品牌可全局替换：品牌名搜索 "深核 / DeepCore"
   =========================================================== */

:root {
  --bg: #070b16;
  --bg-2: #0b1224;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(120, 160, 255, 0.12);
  --border-strong: rgba(120, 160, 255, 0.28);
  --text: #e8edf7;
  --text-dim: #9aa6c0;
  --text-faint: #647196;
  --accent: #3ad1ff;
  --accent-2: #7b5cff;
  --accent-3: #2bf5b8;
  --grad: linear-gradient(120deg, #3ad1ff 0%, #7b5cff 60%, #ff5cc8 100%);
  --grad-soft: linear-gradient(120deg, rgba(58,209,255,0.16), rgba(123,92,255,0.16));
  --glow: 0 0 40px rgba(58, 209, 255, 0.25);
  --radius: 16px;
  --maxw: 1180px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "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.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* 背景网格 + 光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.22), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

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

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

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

/* ===================== 导航 ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 22, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.brand .logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--grad);
  box-shadow: var(--glow);
  position: relative;
}
.brand .logo::after {
  content: "";
  position: absolute; inset: 7px;
  border: 2px solid rgba(7,11,22,0.9);
  border-radius: 4px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 15px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--grad);
}
.nav-cta {
  padding: 9px 20px !important;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text) !important;
}
.nav-cta:hover { box-shadow: var(--glow); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px;
  background: var(--text); border-radius: 2px; transition: 0.25s;
}

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: #061018;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(58,209,255,0.45); }
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ===================== 通用区块 ===================== */
section { padding: 96px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--grad-soft);
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.section-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 620px;
  margin-top: 16px;
}
.section-head { margin-bottom: 56px; }

/* ===================== Hero ===================== */
.hero { padding: 120px 0 100px; text-align: center; position: relative; }
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  max-width: 660px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===================== 卡片网格 ===================== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card .tag-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.card-num {
  position: absolute; top: 20px; right: 24px;
  font-size: 48px; font-weight: 800;
  color: rgba(255,255,255,0.04);
}

/* ===================== 数据条 ===================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.stat .num {
  font-size: 40px; font-weight: 800; line-height: 1;
}
.stat .label { color: var(--text-dim); font-size: 14px; margin-top: 10px; }

/* ===================== 服务详情块 ===================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.feature:first-of-type { border-top: none; }
.feature.reverse .feature-visual { order: -1; }
.feature h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.feature .lead { color: var(--text-dim); font-size: 16px; margin-bottom: 24px; }
.feature ul { list-style: none; display: grid; gap: 12px; }
.feature li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text); font-size: 15px;
}
.feature li::before {
  content: "›";
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.4;
}
.feature-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 28px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.feature-visual::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(58,209,255,0.14), transparent 55%);
}

/* 模拟终端 / 代码块 */
.mock {
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.mock-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar i:nth-child(1){ background:#ff5f57;} .mock-bar i:nth-child(2){background:#febc2e;} .mock-bar i:nth-child(3){background:#28c840;}
.mock-line { color: var(--text-dim); margin: 6px 0; }
.mock-line .k { color: var(--accent); }
.mock-line .v { color: var(--accent-3); }
.mock-line .c { color: var(--text-faint); }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flow-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--surface);
  position: relative;
}
.flow-step .step-n {
  font-family: monospace;
  font-size: 13px; color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 2px 9px;
  display: inline-block; margin-bottom: 14px;
}
.flow-step h4 { font-size: 17px; margin-bottom: 8px; }
.flow-step p { color: var(--text-dim); font-size: 14px; }

/* ===================== 案例 ===================== */
.case {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 28px;
}
.case-top {
  padding: 32px 36px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 16px;
  background: var(--grad-soft);
  border-bottom: 1px solid var(--border);
}
.case-top h3 { font-size: 24px; font-weight: 800; }
.case-top .sector { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.case-body { padding: 32px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.case-block h5 {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.case-block p { color: var(--text-dim); font-size: 15px; }
.case-metrics { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; }
.case-metric .m-num { font-size: 30px; font-weight: 800; }
.case-metric .m-label { font-size: 13px; color: var(--text-dim); }

/* ===================== CTA 区 ===================== */
.cta-band {
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 64px 32px;
  background: var(--grad-soft);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); max-width: 540px; margin: 0 auto 30px; font-size: 17px; }

/* ===================== 表单 ===================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 130px; }

.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: center;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; background: var(--surface);
}
.contact-card .ci {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  flex-shrink: 0;
}
.contact-card .label { font-size: 13px; color: var(--text-faint); }
.contact-card .value { font-size: 16px; font-weight: 600; }

/* ===================== 页脚 ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer p { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer h6 { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--text-dim); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint); font-size: 13px;
}

/* ===================== 动效 ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== 响应式 ===================== */
@media (max-width: 900px) {
  .grid-3, .stats, .flow, .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature, .case-body, .form-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-visual { order: 0; }
  section { padding: 72px 0; }
  .nav-links {
    position: fixed; top: 68px; right: 0;
    width: 260px; height: calc(100vh - 68px);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .grid-3, .stats, .flow, .footer-grid { grid-template-columns: 1fr; }
  .case-metrics { gap: 20px; }
}
