/* ============================================================
   home.css —— 首页专有样式（现代风格）
   自包含，仅依赖 layout.css 提供的容器与基础排版。
   ============================================================ */

/* ---------- 英雄区：渐变光晕 + 玻璃卡片 ---------- */
.hero {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 4rem 2rem 3.5rem;
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 15% 0%, #6366f1 0%, #4f46e5 40%, #7c3aed 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(79,70,229,.55);
}
/* 背景柔光球 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}
.hero::before { width: 320px; height: 320px; background: #c4b5fd; top: -120px; right: -60px; }
.hero::after  { width: 260px; height: 260px; background: #22d3ee; bottom: -120px; left: -40px; opacity: .35; }

.hero h1 {
  position: relative;
  color: #fff;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.hero-accent {
  background: linear-gradient(180deg, transparent 62%, rgba(34,211,238,.4) 62%);
  padding: 0 .15em;
}
.hero p {
  position: relative;
  font-size: 1.08rem;
  opacity: .92;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-actions { position: relative; }

/* 按钮（首页专属，避免依赖 bootstrap） */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; font-weight: 600; border-radius: 999px;
  padding: .7rem 1.6rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-primary { background: #fff; color: #4f46e5; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.btn-primary:hover { background: #f1f5ff; }
.btn-outline-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-secondary:hover { background: rgba(255,255,255,.18); color: #fff; }

.hero-stats {
  position: relative;
  margin: 2.2rem auto 0;
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem;
  padding: 1rem 1.6rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.hero-stats b { font-size: 1.25rem; }
.hero-stats span { font-size: .9rem; opacity: .9; }

/* ---------- 区块标题 ---------- */
.section { margin-bottom: 3rem; }
.section-head { text-align: center; margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.3px; }
.section-head p { color: #6b7280; margin: 0; }

/* ---------- 步骤：交替时间线 ---------- */
.steps { display: grid; gap: 1rem; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.3rem 1.4rem;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.step:hover { box-shadow: 0 12px 30px -12px rgba(79,70,229,.35); transform: translateY(-2px); }
.step-no {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 18px -8px rgba(99,102,241,.7);
}
.step h5 { font-size: 1.08rem; margin-bottom: .3rem; }
.step p { color: #6b7280; font-size: .92rem; margin: 0; }

/* ---------- 功能网格（图标卡片） ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-card {
  padding: 1.4rem;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: 0 12px 30px -12px rgba(16,24,40,.25); transform: translateY(-2px); }
.feature-card .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: .9rem;
  background: #eef2ff; color: #4f46e5;
}
.feature-card h6 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; color: #111827; }
.feature-card p { color: #6b7280; font-size: .9rem; margin: 0; line-height: 1.55; }

/* ---------- 说明双栏 ---------- */
.panel {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16,24,40,.04);
  height: 100%;
  overflow: hidden;
}
.panel-head {
  padding: 1rem 1.3rem;
  border-bottom: 1px solid #f0f1f4;
  font-weight: 700; font-size: .98rem;
  display: flex; align-items: center; gap: .5rem;
}
.panel-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #4f46e5; }
.panel-body { padding: 1.3rem; }
.tips { list-style: none; margin: 0; padding: 0; }
.tips li {
  position: relative;
  padding: .55rem 0 .55rem 1.6rem;
  border-bottom: 1px dashed #f0f1f4;
  font-size: .9rem; color: #4b5563;
}
.tips li:last-child { border-bottom: 0; }
.tips li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: #c7d2fe;
}
.tips li strong { color: #111827; }

/* ---------- 栅格 ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -.6rem; }
.row > [class*="col-"] { padding: 0 .6rem; }
.col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: .6rem; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .col-lg-8, .col-lg-4 { flex: 0 0 100%; max-width: 100%; }
  .hero { padding: 3rem 1.3rem; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; }
  .step-no { width: 44px; height: 44px; font-size: 1.2rem; }
  .hero-stats { gap: 1rem; padding: .9rem 1.1rem; }
}
