/* 亿源 · 约束配置平台 官网样式 */
:root {
  --ink: #0a1020;
  --ink-2: #1b2437;
  --muted: #5c667d;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --accent: #1f5eff;
  --accent-soft: #eaf0ff;
  --accent-2: #0fb6a6;
  --radius: 14px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- 顶部导航 ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

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

.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #6b8cff 55%, var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.6px;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-2);
}

.nav-links a { padding: 6px 2px; position: relative; }
.nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 94, 255, 0.22);
}
.btn-primary:hover { background: #1549d6; transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-2);
  background: #fff;
}
.btn-ghost:hover { border-color: #c9d4ee; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% -10%, #e9f0ff 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(620px 320px at 8% 4%, #eafaf7 0%, rgba(255, 255, 255, 0) 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #d8e3ff;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.22;
  margin: 20px 0 16px;
  letter-spacing: -0.6px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 520px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stats b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.stats span { font-size: 12.5px; color: var(--muted); }

/* 架构示意图 */
.arch-card {
  background: #0a1020;
  border-radius: 18px;
  padding: 22px;
  color: #cdd6ea;
  box-shadow: 0 24px 60px rgba(10, 16, 32, 0.28);
}

.arch-card h4 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.arch-card p { margin: 0 0 16px; font-size: 12px; color: #8494b5; }

.layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 12.5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.layer .name { color: #fff; font-weight: 600; }
.layer .cnt { color: #8fa2c8; font-size: 11.5px; }
.layer.hot {
  background: linear-gradient(90deg, rgba(31, 94, 255, 0.32), rgba(15, 182, 166, 0.18));
  border-color: rgba(107, 140, 255, 0.5);
}

/* ---------- 通用区块 ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 720px; margin-bottom: 42px; }
.sec-head .kicker {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.sec-head h2 {
  font-size: 32px;
  line-height: 1.3;
  margin: 10px 0 12px;
  letter-spacing: -0.4px;
}
.sec-head p { color: var(--muted); margin: 0; font-size: 15.5px; }

.grid { display: grid; gap: 18px; }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: 0.2s ease;
}
.card:hover { border-color: #cdd8ef; box-shadow: 0 12px 30px rgba(16, 30, 62, 0.07); transform: translateY(-2px); }

.card .ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.2px; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

.card .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

/* 模块网格 */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  background: #fff;
}
.module .layer-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.6px;
}
.module h4 { margin: 6px 0 6px; font-size: 15px; }
.module p { margin: 0; font-size: 13px; color: var(--muted); }

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
thead th {
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
  background: #fbfcfe;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid #f0f3f9; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: #fafcff; }

.pill {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3ff;
  color: #3358c4;
}
.pill.green { background: #e8f9f4; color: #0a8f7e; }
.pill.gray { background: #f1f3f7; color: #6a7288; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  position: relative;
}
.step .n {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
}
.step h4 { margin: 6px 0 6px; font-size: 14.5px; }
.step p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* 关于 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.info-list { display: grid; gap: 0; }
.info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.info-row span:first-child { color: var(--muted); font-size: 13px; }
.info-row span:last-child { color: var(--ink); }

.contact-card {
  background: linear-gradient(160deg, #0a1020, #16224a);
  border-radius: 18px;
  padding: 34px;
  color: #dfe6f5;
}
.contact-card h3 { color: #fff; margin: 0 0 8px; font-size: 20px; }
.contact-card p { color: #98a6c6; font-size: 14px; margin: 0 0 22px; }
.contact-card a.mail {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}
.contact-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.contact-card li { font-size: 13.5px; color: #b9c4dd; display: flex; gap: 10px; }
.contact-card li b { color: #fff; font-weight: 600; min-width: 52px; }

/* 页脚 */
footer.site {
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  background: #fff;
}
.foot {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.foot .company { max-width: 520px; line-height: 1.8; }
.foot .company strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 14px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--accent); }

/* 法务页 */
.legal { max-width: 820px; margin: 0 auto; padding: 64px 24px 96px; }
.legal h1 { font-size: 32px; margin: 0 0 8px; letter-spacing: -0.4px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 34px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 14.5px; color: #2a3347; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }

/* 响应式 */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .hero h1 { font-size: 36px; }
  .g5, .g4, .g3 { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 29px; }
  section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .g5, .g4, .g3, .g2, .modules, .flow { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 25px; }
}
