/* ============================================================
   星捷数智 · 企业官网样式
   深色工业风 / 蓝金点缀 / 响应式 / 零依赖
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-2: #0d131c;
  --card: #121a26;
  --card-2: #16202f;
  --line: #22304a;
  --text: #e6edf5;
  --text-dim: #93a1b5;
  --blue: #3b9dff;
  --blue-deep: #1e6fd9;
  --gold: #d8a83e;
  --gold-soft: #e7c46a;
  --radius: 10px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

.mono { font-family: "JetBrains Mono", Consolas, "Courier New", monospace; }

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

/* ---------- 顶部导航 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

.brand-mark {
  width: 30px; height: 30px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--gold) 100%);
  border-radius: 3px;
}

.brand-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: none;
  display: block;
  background: #fff;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-dim);
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active {
  color: var(--blue);
  background: rgba(59, 157, 255, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(59,157,255,.12), transparent),
    radial-gradient(ellipse 40% 40% at 15% 85%, rgba(216,168,62,.07), transparent),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,48,74,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,48,74,.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero .container { position: relative; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(18,26,38,.7);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
  max-width: 16em;
}
.hero h1 .hl {
  background: linear-gradient(92deg, var(--blue) 10%, var(--gold-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin: 24px 0 40px;
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 18px);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  box-shadow: 0 6px 24px rgba(46,124,246,.3);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(46,124,246,.45); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(18,26,38,.5);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- 数据条 ---------- */
.statbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.statbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  font-family: Consolas, monospace;
}
.stat-num .pending { color: var(--gold); font-size: 18px; }
.stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ---------- 通用区块 ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head.center .kicker { justify-content: center; }
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.section-head.center .kicker::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.35;
}
.section-head p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------- 卡片网格 ---------- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .2s, border-color .2s, background .2s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,157,255,.5);
  background: var(--card-2);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent 70%);
  opacity: 0;
  transition: opacity .2s;
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(59,157,255,.1);
  border: 1px solid rgba(59,157,255,.25);
  margin-bottom: 20px;
}
.card:nth-child(even) .card-icon {
  background: rgba(216,168,62,.1);
  border-color: rgba(216,168,62,.3);
}

.card h3 { font-size: 18px; margin-bottom: 10px; letter-spacing: .5px; }
.card p { font-size: 14px; color: var(--text-dim); line-height: 1.8; }

/* ---------- 五层架构 ---------- */
.layers { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }

.layer {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 20px 24px;
  transition: border-color .2s, background .2s;
}
.layer:hover { background: var(--card-2); border-left-color: var(--gold); }
.layer-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.layer-name .idx {
  font-family: Consolas, monospace;
  font-size: 12px;
  color: var(--gold);
  border: 1px solid rgba(216,168,62,.4);
  border-radius: 4px;
  padding: 1px 7px;
}
.layer p { font-size: 14px; color: var(--text-dim); }

.layer-arrow {
  text-align: center;
  color: var(--line);
  font-size: 18px;
  line-height: 1;
  margin: -6px 0;
}

/* ---------- 流程步骤 ---------- */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: step; }

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: Consolas, monospace;
  font-size: 30px;
  font-weight: 800;
  color: rgba(59,157,255,.25);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--text-dim); }

/* ---------- 标准引用表 ---------- */
.std-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.std-table th, .std-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.std-table th {
  background: var(--card-2);
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 1px;
}
.std-table tr:last-child td { border-bottom: none; }
.std-table td:first-child {
  font-family: Consolas, monospace;
  color: var(--blue);
  white-space: nowrap;
}
.std-table .note { color: var(--text-dim); }

/* ---------- 占位标注 ---------- */
.placeholder {
  display: inline-block;
  font-family: Consolas, monospace;
  font-size: 13px;
  color: var(--gold);
  border: 1px dashed rgba(216,168,62,.55);
  background: rgba(216,168,62,.07);
  border-radius: 6px;
  padding: 3px 10px;
}

.case-slot {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  color: var(--text-dim);
}

/* ---------- 实施案例卡片 ---------- */
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.case-head {
  padding: 30px 34px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(59,157,255,.06), rgba(216,168,62,.05));
}
.case-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--blue);
  border: 1px solid rgba(59,157,255,.4);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.case-head h3 { font-size: clamp(19px, 2.4vw, 24px); margin-bottom: 10px; }
.case-meta { font-size: 13px; color: var(--text-dim); }
.case-body { padding: 28px 34px 32px; }
.case-block { margin-bottom: 22px; }
.case-block:last-child { margin-bottom: 0; }
.case-block h4 {
  font-size: 14px;
  color: var(--gold-soft);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.case-block h4::before { content: "▸ "; color: var(--blue); }
.case-block p { font-size: 14.5px; color: var(--text-dim); line-height: 1.9; }

/* ---------- 双栏 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.split p { color: var(--text-dim); margin-bottom: 14px; font-size: 15px; }

.check-list { list-style: none; margin-top: 20px; }
.check-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid rgba(34,48,74,.5);
}
.check-list li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: var(--gold);
}

/* ---------- 表单 ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--blue);
}
.form-row textarea { min-height: 120px; resize: vertical; }

.form-tip {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.form-tip.ok { color: #4ade80; }

/* ---------- 联系信息块 ---------- */
.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(34,48,74,.5);
}
.contact-item .ci {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 10px;
  background: rgba(59,157,255,.1);
  border: 1px solid rgba(59,157,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-item h4 { font-size: 14px; color: var(--text-dim); font-weight: 500; }
.contact-item p { font-size: 16px; margin-top: 2px; }

/* ---------- CTA ---------- */
.cta-band {
  background:
    radial-gradient(ellipse 50% 80% at 50% 120%, rgba(59,157,255,.14), transparent),
    var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 90px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); margin-bottom: 34px; }

/* ---------- 证书展示 ---------- */
.cert-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.cert-card:hover { transform: translateY(-4px); border-color: rgba(216,168,62,.45); }
.cert-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-bottom: 1px solid var(--line);
}
.cert-body { padding: 20px 22px; }
.cert-body h3 { font-size: 16px; margin-bottom: 8px; color: var(--gold-soft); }
.cert-body p { font-size: 13px; color: var(--text-dim); line-height: 1.8; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 13px; color: var(--text-dim); transition: color .2s; }
.footer ul a:hover { color: var(--blue); }
.footer-desc { font-size: 13px; color: var(--text-dim); max-width: 340px; margin-top: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(34,48,74,.5);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- 页面头（子页） ---------- */
.page-hero {
  padding: 150px 0 70px;
  background:
    radial-gradient(ellipse 50% 60% at 70% 10%, rgba(59,157,255,.1), transparent),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: 1px; }
.page-hero p { margin-top: 16px; color: var(--text-dim); max-width: 640px; font-size: 16px; }

/* ---------- 滚动渐入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .layer { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 64px 0; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 15px; }
}
