/* ==========================================================================
   官网首页专属样式（依赖 base.css 的令牌与布局工具）
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  background:
    radial-gradient(1100px 460px at 78% -8%, var(--brand-100) 0%, var(--glow-brand-100) 62%),
    radial-gradient(760px 420px at 8% 4%, var(--brand-050) 0%, var(--glow-brand-050) 60%),
    var(--bg);
}

.hero .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(28px, 4.6vw, 42px);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-copy .hero-sub {
  margin-top: 18px;
  font-size: clamp(16px, 2.1vw, 18px);
  color: var(--ink-500);
  max-width: 30em;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-400);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .phone {
  max-width: 268px;
  transform: rotate(-1.6deg);
}

.hero-visual .phone-float {
  position: absolute;
  left: -6px;
  bottom: -26px;
  width: 124px;
  padding: 8px;
  border-radius: 24px;
  background: var(--float-card-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.hero-visual .phone-float img {
  border-radius: 17px;
}

.hero-visual .phone-float span {
  display: block;
  padding: 8px 4px 2px;
  font-size: 12px;
  color: var(--ink-400);
  text-align: center;
}

/* --------------------------------------------------------------------------
   信任条
   -------------------------------------------------------------------------- */
.trust {
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
}

.trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 34px;
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: var(--ink-500);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
}

/* --------------------------------------------------------------------------
   闭环流程
   -------------------------------------------------------------------------- */
.flow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.flow-step::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand-500);
}

.flow-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 14.5px;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   功能展示：图文交替
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
  padding: 44px 0;
}

.feature + .feature {
  border-top: 1px solid var(--line-soft);
}

/* 交替版式：图文左右互换（媒体列排到前） */
.feature.flip .feature-media {
  order: -1;
}

.feature-copy .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.feature-copy h3 {
  font-size: clamp(21px, 3vw, 26px);
}

.feature-copy > p {
  margin-top: 14px;
  color: var(--ink-500);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  font-size: 15px;
  color: var(--ink-700);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--brand-400);
}

.feature-media .phone {
  max-width: 268px;
}

.feature-media--wide {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}

.feature-media--wide img {
  width: 100%;
  /* 截图本身很长，限高并顶部对齐，避免整行被拉高留出大片空白 */
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
}

/* --------------------------------------------------------------------------
   数据亮点
   -------------------------------------------------------------------------- */
.stats-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--brand-600);
  line-height: 1.2;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-500);
}

/* --------------------------------------------------------------------------
   场景 / 适配
   -------------------------------------------------------------------------- */
.adapt {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.adapt .card {
  background: var(--bg-soft);
  border-color: var(--line-soft);
}

/* --------------------------------------------------------------------------
   引导区
   -------------------------------------------------------------------------- */
.cta {
  padding: 56px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1677f5 0%, #4b95f8 55%, #56b4ff 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(22, 119, 245, 0.24);
}

.cta h2 {
  color: #fff;
  font-size: clamp(22px, 3.4vw, 30px);
}

.cta p {
  margin: 14px auto 0;
  max-width: 46em;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--brand-600);
  box-shadow: none;
}

.cta .btn-primary:hover {
  background: var(--brand-050);
}

.cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.cta .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero {
    padding: 60px 0 56px;
  }

  .hero .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 0;
  }

  .feature.flip .feature-media {
    order: 0;
  }

  .feature-copy {
    text-align: center;
  }

  .feature-list {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 44px 0 40px;
  }

  .hero-visual .phone {
    max-width: 232px;
  }

  .hero-visual .phone-float {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .cta {
    padding: 40px 22px;
    border-radius: var(--radius-lg);
  }

  .feature-media--wide {
    border-radius: var(--radius);
  }
}