/* ============================================================
   eSIM Theme — 首页样式(移动端优先)
   ============================================================ */

/* 通用 .section/.plan-card 样式在 main.css(全站复用) */

/* ---------- 1. Hero(默认,线上现状,保持不变)---------- */
.home-hero {
  background: #1262C9 url(../img/hero-bg.svg) center / cover no-repeat;
  color: #fff; text-align: center;
  padding: 56px 0 64px;
}
.home-hero h1 { font-size: 28px; line-height: 1.3; margin: 0 0 10px; }
.hero-sub { margin: 0 auto 28px; max-width: 560px; opacity: .92; font-size: 15px; }
.hero-search { position: relative; max-width: 560px; margin: 0 auto; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  margin-top: 24px; font-size: 13px; opacity: .92;
}

/* ============================================================
   1b. Hero — Neo Travel Tech(预览专用,?hero_preview=1)
   全部作用域收敛在 .neo-hero 下,不影响默认首页
   移动端优先:单列居中、eSIM 卡隐藏、无横向滚动
   ============================================================ */
.neo-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(120% 90% at 82% -10%, #155fd0 0%, transparent 55%),
    linear-gradient(150deg, #07142e 0%, #0B2A6B 52%, #0E3E92 100%);
  padding: 40px 0 48px;
}
.neo-hero .home-hero-bg { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.neo-hero .home-hero-inner { position: relative; z-index: 2; }
.neo-hero .home-hero-copy { text-align: center; }
.neo-hero .hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px;
}
.neo-hero .hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; font-weight: 600; color: #DCEBFF;
}
.neo-hero .hero-badge .esim-ic { width: 15px; height: 15px; color: #7DE9FF; }
.neo-hero h1 {
  font-size: 27px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin: 0 0 12px;
}
.neo-hero h1 em {
  font-style: normal; color: #5BE6FF;
  background: linear-gradient(120deg, #46E0FF, #7CFFC4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.neo-hero .hero-sub { margin: 0 auto 24px; max-width: 560px; color: #C5D6F2; font-size: 15px; opacity: 1; }
.neo-hero .hero-search { position: relative; max-width: 560px; margin: 0 auto; z-index: 5; }
.neo-hero .chips-box { box-shadow: 0 18px 44px rgba(3, 20, 55, .42); }
.neo-hero .chips-go {
  background: linear-gradient(135deg, #2E8BFF, #1A73E8); color: #fff;
  box-shadow: 0 8px 18px rgba(7, 42, 96, .4);
}
.neo-hero .chips-go:hover { background: linear-gradient(135deg, #1A73E8, #0E47A8); }
.neo-hero .hero-stats {
  display: flex; justify-content: center; gap: 22px; margin-top: 22px; font-size: 12px; color: #AFC4E6;
}
.neo-hero .hero-stats b { display: block; color: #fff; font-size: 18px; }
.neo-hero .home-hero-chip { display: none; }

/* ---------- 2. 目的地圆形网格 ---------- */
.dest-circle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px;
}
.dest-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dest-circle-flag {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; font-size: 30px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.dest-circle:hover .dest-circle-flag {
  transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow);
}
.dest-circle-name { font-size: 13px; font-weight: 500; }
.dest-circle:hover .dest-circle-name { color: var(--primary); }

/* ---------- 3. 套餐 Tab + 卡片 ---------- */
.plans-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 24px;
}
.tab-btn {
  padding: 9px 22px; font-size: 14px; font-weight: 600;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  transition: .18s;
}
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- 4. How it works ---------- */
.home-how { background: var(--surface); }
.how-inner { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.how-steps { width: 100%; max-width: 560px; }
.how-steps .section-title { text-align: left; }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps-list li { display: flex; gap: 16px; }
.step-num {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 18px; font-weight: 800;
}
.steps-list h3 { margin: 6px 0 4px; font-size: 16px; }
.steps-list p { margin: 0; font-size: 14px; color: var(--muted); }
.how-phone svg { width: 190px; height: auto; filter: drop-shadow(0 16px 32px rgba(15,23,42,.18)); }

/* ---------- 5. 运营商 logo 墙 ---------- */
.carrier-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.carrier-pill {
  padding: 10px 20px; font-size: 14px; font-weight: 700; color: #9AA5B1;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  transition: .18s; white-space: nowrap;
}
.carrier-pill:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- 6. 评价区 ---------- */
.reviews-score { text-align: center; color: var(--muted); margin: -12px 0 24px; font-size: 14px; }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card { padding: 20px; }
.review-stars { color: #F4B400; font-size: 15px; letter-spacing: 2px; margin-bottom: 8px; }
.review-card p { margin: 0 0 12px; font-size: 14px; }
.review-card footer { font-size: 13px; color: var(--muted); }

/* ---------- 7. 博客 ---------- */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.blog-card { overflow: hidden; transition: box-shadow .18s, transform .18s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15,23,42,.12); }
.blog-thumb {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; background: var(--primary-light); overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-thumb-ph { font-size: 40px; }
.blog-illu { width: 100%; height: 100%; display: block; object-fit: cover; }
.blog-body { padding: 16px 18px 18px; }
.blog-body time { font-size: 12px; color: var(--muted); }
.blog-body h3 { margin: 6px 0 8px; font-size: 16px; line-height: 1.4; }
.blog-card:hover h3 { color: var(--primary); }
.blog-body p { margin: 0; font-size: 13px; color: var(--muted); }

/* ============================================================
   平板 ≥ 600px
   ============================================================ */
@media (min-width: 600px) {
  .dest-circle-grid { grid-template-columns: repeat(6, 1fr); }
  .reviews-grid, .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 平板 ≥ 768px */
@media (min-width: 768px) {
  .neo-hero { padding: 60px 0 68px; }
  .neo-hero h1 { font-size: 38px; }
  .neo-hero .hero-sub { font-size: 16px; }
}

/* ============================================================
   桌面端 ≥ 992px
   ============================================================ */
@media (min-width: 992px) {
  .home-hero { padding: 96px 0 104px; }
  .home-hero h1 { font-size: 44px; }
  .home-hero .hero-sub { font-size: 17px; }

  /* neo:左文案 + 右漂浮 eSIM 卡 */
  .neo-hero { padding: 88px 0 96px; }
  .neo-hero .home-hero-inner { display: flex; align-items: center; gap: 48px; }
  .neo-hero .home-hero-copy { text-align: left; flex: 1; min-width: 0; }
  .neo-hero .hero-badges, .neo-hero .hero-stats { justify-content: flex-start; }
  .neo-hero .hero-sub, .neo-hero .hero-search { margin-left: 0; margin-right: 0; }
  .neo-hero h1 { font-size: 46px; }
  .neo-hero .hero-sub { font-size: 17px; }

  .neo-hero .home-hero-chip {
    display: block; position: relative; flex: none;
    width: 300px; height: 188px; border-radius: 20px; overflow: hidden;
    background: linear-gradient(140deg, #1f7bff, #0c3f9e 70%);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 30px 60px rgba(3, 20, 55, .5);
    transform: rotate(7deg);
  }
  .neo-hero .chip-gloss { position: absolute; inset: 0; background: radial-gradient(80% 60% at 20% 0%, rgba(255,255,255,.28), transparent 60%); }
  .neo-hero .chip-esim { position: absolute; right: 16px; top: 14px; font-size: 11px; font-weight: 800; letter-spacing: .12em; opacity: .9; }
  .neo-hero .chip-pad { position: absolute; left: 20px; top: 24px; width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #ffe08a, #f2b73d); box-shadow: inset 0 0 0 1.5px rgba(120,80,0,.32); }
  .neo-hero .chip-ttl { position: absolute; left: 20px; bottom: 46px; font-weight: 800; font-size: 17px; }
  .neo-hero .chip-meta { position: absolute; left: 20px; bottom: 20px; font-size: 12px; color: #cfe0ff; letter-spacing: .04em; }
  .neo-hero .chip-wave { position: absolute; right: 18px; bottom: 16px; width: 30px; height: 30px; color: #bfe0ff; }

  .dest-circle-grid { grid-template-columns: repeat(9, 1fr); }
  .dest-circle-flag { width: 72px; height: 72px; font-size: 34px; }

  .how-inner { flex-direction: row; justify-content: center; gap: 72px; }
  .how-phone svg { width: 220px; }
}
