/* =====================================================================
   余安高端陪护 · 首页样式
   ===================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 78px 0 86px;
  background:
    radial-gradient(circle at 88% 12%, rgba(51, 182, 228, 0.20), transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(141, 198, 63, 0.18), transparent 44%),
    var(--grad-brand);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 66%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 62%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 26px;
  backdrop-filter: blur(4px);
}

.hero-tag svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 3px;
  margin-bottom: 22px;
}

.hero h1 .l1 { color: #fff; }
.hero h1 .l2 { color: #DDF3A8; }
.hero h1 .l3 { color: #FFE28A; }

.hero-desc {
  font-size: 17px;
  line-height: 1.85;
  opacity: 0.94;
  margin-bottom: 34px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-actions .btn-primary:hover {
  background: #F0FADF;
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.hero-features {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.hero-features .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-features .dot svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero 品牌卡 */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 26px;
  padding: 34px 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.hero-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card-head img {
  width: 62px;
  height: auto;
}

.hero-card-head h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.hero-card-head p {
  font-size: 11px;
  letter-spacing: 1px;
  opacity: 0.8;
}

.hero-card-slogan {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #DDF3A8;
  margin: 22px 0 20px;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hero-card-cell {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}

.hero-card-cell .num {
  font-size: 24px;
  font-weight: 800;
  color: #FFE28A;
  line-height: 1.2;
}

.hero-card-cell .lab {
  font-size: 13px;
  opacity: 0.88;
  margin-top: 4px;
}

.hero-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  opacity: 0.9;
}

.hero-card-foot svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: #DDF3A8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 数据承诺条 ---------- */
.stats {
  padding: 44px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 46px;
  background: var(--line);
}

.stat-item:hover {
  background: var(--bg);
  transform: translateY(-4px);
}

.stat-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-num span {
  font-size: 20px;
  color: var(--blue);
  margin-left: 2px;
  font-weight: 700;
}

.stat-label {
  font-size: 15px;
  color: var(--text-3);
}

/* ---------- 关于余安 / 四大核心定位 ---------- */
.about-brief {
  background: var(--bg);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px 30px;
  transition: all 0.35s ease;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-no {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 34px;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
}

/* ---------- 六大服务场景 ---------- */
.services {
  background: #fff;
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scene-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.35s ease;
  overflow: hidden;
}

.scene-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  border-color: var(--primary-soft);
  transform: translateY(-8px);
}

.scene-card.feature {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.scene-card.feature h3,
.scene-card.feature .en,
.scene-card.feature p {
  color: #fff;
}

.scene-tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #FFE28A;
  color: #8A5A00;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.scene-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(10, 64, 96, 0.08);
}

.scene-card.feature .scene-icon {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.scene-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene-card.feature .scene-icon svg {
  stroke: #fff;
}

.scene-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.scene-card .en {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--blue);
  margin-bottom: 12px;
  font-weight: 600;
}

.scene-card p:last-child {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
}

/* ---------- 对比表 ---------- */
.compare {
  background: var(--bg);
}

.compare-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-row {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 1.1fr;
  align-items: stretch;
}

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

.compare-col {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.compare-head .compare-col {
  padding: 22px 24px;
  font-weight: 700;
  font-size: 16px;
}

.compare-col.dim {
  color: var(--text-3);
  font-weight: 600;
  background: #FAFCFD;
}

.compare-col.brand {
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 600;
}

.compare-col.plain {
  color: var(--text-3);
}

.compare-head .compare-col.brand {
  background: var(--grad-brand);
  color: #fff;
  justify-content: center;
}

.compare-head .compare-col.brand img {
  width: 34px;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 3px 5px;
}

.compare-head .compare-col.plain {
  background: #F3F6F8;
  color: var(--text-2);
  justify-content: center;
}

.compare-head .compare-col.dim {
  background: #F3F6F8;
  justify-content: flex-start;
}

.compare-col i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compare-col i svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare-col i.yes {
  background: var(--primary);
}

.compare-col i.yes svg {
  stroke: #fff;
}

.compare-col i.no {
  background: #EDF1F4;
}

.compare-col i.no svg {
  stroke: #93A5B4;
}

/* ---------- 五大核心优势 ---------- */
.advantages {
  background: #fff;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.advantage-card {
  display: flex;
  gap: 18px;
  padding: 28px 26px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: transparent;
}

.advantage-card.accent {
  background: var(--blue-soft);
  border-color: transparent;
}

.advantage-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--grad-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advantage-card.accent .advantage-icon {
  background: var(--grad-blue);
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.advantage-content p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
}

/* ---------- 六步流程 ---------- */
.process {
  background: var(--grad-brand);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 62%);
  border-radius: 50%;
}

.process .section-title h2,
.process .section-title p,
.process .section-title .eyebrow {
  color: #fff;
}

.process .section-title .line {
  background: rgba(255, 255, 255, 0.6);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 2;
}

.process-step {
  padding: 30px 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
}

.process-step .step-num {
  font-size: 30px;
  font-weight: 800;
  color: #FFE28A;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.process-step h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.75;
}

.process-standards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  position: relative;
  z-index: 2;
}

.process-standards span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ---------- 六重保障 ---------- */
.guarantees {
  background: var(--bg);
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guarantee-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  transition: all 0.3s ease;
}

.guarantee-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-soft);
}

.guarantee-no {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.guarantee-no::after {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--primary-mid);
  border-radius: 2px;
}

.guarantee-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.guarantee-card p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.75;
}

/* ---------- 服务方案 ---------- */
.plans {
  background: #fff;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
}

.plan-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.plan-card.featured {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 44px rgba(51, 176, 51, 0.24);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFE28A;
  color: #8A5A00;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.plan-card.featured h3,
.plan-card.featured .plan-en,
.plan-card.featured li {
  color: #fff;
}

.plan-en {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 22px;
}

.plan-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-2);
}

.plan-card li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-card.featured li svg {
  stroke: #DDF3A8;
}

.plan-card .btn {
  width: 100%;
}

.plan-card.featured .btn-primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(135deg, #0A4060 0%, #0A7A66 100%);
  padding: 84px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(51, 182, 228, 0.28), transparent 62%);
  border-radius: 50%;
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(141, 198, 63, 0.24), transparent 62%);
  border-radius: 50%;
}

.cta h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.cta p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

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

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1024px) {
  .hero .container { gap: 40px; }
  .hero h1 { font-size: 42px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .scenes-grid,
  .advantages-grid,
  .guarantees-grid,
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .hero { padding: 52px 0 60px; }
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 { font-size: 36px; letter-spacing: 2px; }
  .hero-desc { font-size: 15px; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item + .stat-item::before { display: none; }

  .compare-row { grid-template-columns: 1fr; }
  .compare-row .compare-col.dim { padding-bottom: 6px; background: #F3F6F8; }
  .compare-row .compare-col.brand,
  .compare-row .compare-col.plain { padding-top: 12px; }
  .compare-head .compare-col.brand,
  .compare-head .compare-col.plain { justify-content: flex-start; }
  .compare-head .compare-col.dim { display: none; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 30px; }
  .pillars-grid,
  .scenes-grid,
  .advantages-grid,
  .guarantees-grid,
  .process-steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 34px; }
  .cta h2 { font-size: 27px; letter-spacing: 2px; }
  .cta-actions .btn { width: 100%; }
}
