/* v02 · material-tonal — 色面分层 + 大圆角，全站零阴影、零边框 */

:root {
  --surface: #FFFFFF;
  --surface-container: #F5F6F8;
  --surface-high: #EEF1F6;
  --inverse-surface: #1C1B1F;
  --on-inverse-muted: #C9C7CF;
  --text: #1C1B1F;
  --muted: #5A5F6A;
  --primary: #0B57D0;
  --primary-dark: #0846AE;
  --primary-container: #D3E3FD;
  --on-primary-container: #0B2A6B;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, p { margin: 0; }

h2 { font-size: 30px; font-weight: 500; line-height: 1.35; }

a { color: inherit; }

a:focus-visible, label:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 999px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

.ico {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chev {
  width: 14px; height: 14px;
  margin-left: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
}

/* ---------- 顶部导航：56px，pill 悬停，右侧 pill 按钮 ---------- */

.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.brand svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-links a:hover { background: var(--surface-high); }

.nav-extras {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-extras .nav-text {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-extras .nav-text:hover {
  background: var(--surface-high);
  color: var(--text);
}

.nav-console {
  display: inline-flex;
  align-items: center;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-console:hover { background: var(--primary-dark); }

.nav-burger {
  display: none;
  width: 42px; height: 42px;
  margin-left: 4px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-burger:hover { background: var(--surface-high); }

.mobile-panel { display: none; }

/* ---------- hero ---------- */

.hero {
  padding: 128px 0 112px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--surface-high);
  color: var(--muted);
  font-size: 13px;
}

.hero h1 {
  max-width: 760px;
  margin: 32px auto 28px;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.18;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 44px;
  font-size: 17px;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-tonal { background: var(--surface-high); color: var(--text); }
.btn-tonal:hover { background: #E2E8F1; }

.btn-inverse { background: var(--primary-container); color: var(--on-primary-container); }
.btn-inverse:hover { background: #C3D8FC; }

/* ---------- 区块通用 ---------- */

.section { padding: 96px 0; }

.band { background: var(--surface-container); }

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.icon-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-high);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.icon-circle.on-band { background: var(--surface); }

.icon-circle.lg { width: 48px; height: 48px; }

.lead { font-size: 16px; font-weight: 500; color: var(--text); }

/* ---------- 四条业务线：2×2 大卡 ---------- */

.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.biz-card {
  background: var(--surface-high);
  border-radius: 28px;
  padding: 36px;
}

.biz-card .icon-circle { background: var(--surface); margin-bottom: 24px; }

.biz-card h3 { font-size: 21px; font-weight: 500; line-height: 1.4; }

.biz-card .lead { margin: 6px 0 12px; }

.biz-card p:not(.lead) { font-size: 15px; color: var(--muted); }

/* ---------- 为什么是端侧：三栏 ---------- */

.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.edge-item .icon-circle { margin-bottom: 20px; }

.edge-item h3 { font-size: 19px; font-weight: 500; }

.edge-item .lead { margin: 4px 0 10px; }

.edge-item p:not(.lead) { font-size: 15px; color: var(--muted); }

/* ---------- 产品：3 列卡片 ---------- */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.prod-card {
  background: var(--surface-container);
  border-radius: 24px;
  padding: 30px 28px;
  transition: transform 0.18s ease;
}

.prod-card:hover { transform: translateY(-2px); }

.prod-tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 10px;
}

.prod-card h3 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }

.prod-card p:not(.prod-tag) { font-size: 15px; color: var(--muted); }

/* ---------- 客户案例：4 等宽块 + 3px 竖条 ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}

.case {
  position: relative;
  padding-left: 20px;
}

.case::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
}

.case h3 { font-size: 18px; font-weight: 500; }

.case .lead { font-size: 15px; margin: 4px 0 10px; }

.case p:not(.lead) { font-size: 15px; color: var(--muted); }

/* ---------- 白皮书：三行 ---------- */

.wp-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wp-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 20px 0;
}

.wp-item h3 { font-size: 19px; font-weight: 500; }

.wp-item p { font-size: 15px; color: var(--muted); margin-top: 4px; }

/* ---------- CTA：inverse surface ---------- */

.cta {
  background: var(--inverse-surface);
  border-radius: 32px;
  padding: 76px 40px;
  text-align: center;
}

.cta h2 { color: #FFFFFF; }

.cta-body {
  max-width: 620px;
  margin: 18px auto 40px;
  font-size: 16px;
  color: var(--on-inverse-muted);
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--surface-container);
  padding: 52px 0 44px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.foot-top .brand { margin-right: 0; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.foot-links a {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.foot-links a:hover {
  background: var(--surface-high);
  color: var(--text);
}

.foot-copy {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1100px) {
  .hide-md { display: none; }
}

@media (max-width: 920px) {
  .nav-links, .nav-extras .nav-text { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-toggle:checked ~ .mobile-panel { display: block; }

  .mobile-panel {
    padding: 10px 24px 24px;
    display: none;
  }

  .mobile-panel a {
    display: block;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 15px;
    text-decoration: none;
  }

  .mobile-panel a:hover { background: var(--surface-high); }

  .mp-extras {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mp-extras a {
    padding: 8px 18px;
    background: var(--surface-container);
    font-size: 14px;
    color: var(--muted);
  }
}

@media (min-width: 921px) {
  .mobile-panel { display: none !important; }
}

@media (max-width: 1000px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
}

@media (max-width: 820px) {
  .biz-grid { grid-template-columns: 1fr; }
  .edge-grid { grid-template-columns: 1fr; gap: 28px; }
  .edge-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 18px;
  }
  .edge-item .icon-circle { margin-bottom: 0; grid-row: span 3; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 16px; }
  h2 { font-size: 24px; }
  .hero { padding: 88px 0 72px; }
  .hero h1 { font-size: 42px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .biz-card { padding: 30px 26px; }
  .cta { padding: 56px 24px; }
}

@media (max-width: 620px) {
  .prod-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
