/* =====================================================
   ContactX · Homepage Styles
   ===================================================== */

main {
  margin-top: var(--nav-height);
  flex: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-height) + 96px) 24px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* 唯一一处装饰：细网格点阵作底纹（克制、不抢内容） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 35%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 60% at 50% 35%, #000 30%, transparent 75%);
  opacity: .6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .sub {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 38px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-cta-secondary {
  font-size: 14px;
  color: var(--muted);
}

.hero-cta-secondary a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-bottom: 1px;
}

.hero-cta-secondary a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 104px 24px;
}

.section-head {
  max-width: var(--max-width);
  margin: 0 auto 56px;
}

.section-head.center {
  text-align: center;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
}

.section-head.center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 功能卡 ---------- */
.features-section {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px -18px rgba(20,30,60,.18);
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-description {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 关于 ---------- */
.about-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.about-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}

.about-text p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg);
  margin-bottom: 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.stat-item {
  padding: 26px 18px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: calc(var(--nav-height) + 64px);
    padding-bottom: 76px;
  }

  .section {
    padding: 76px 20px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}
