/* ============================================================
   eSIM Theme — 产品详情页样式
   ============================================================ */

/* 产品页隐藏全局底部导航,由 Buy now 悬浮条接管 */
body.single-product .bottom-nav { display: none; }
body.single-product { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* ---------- 1. 顶部购买区 ---------- */
.product-hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
  padding: 24px 0 0;
}
.product-hero .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.product-hero .breadcrumb a:hover { color: var(--primary); }

.product-top {
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px; margin-bottom: 4px;
}
.product-badge { position: static; transform: none; margin-left: 8px; }
.product-title { font-size: 22px; line-height: 1.35; margin: 10px 0 12px; }
.product-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  background: var(--primary-light); color: var(--primary); border-radius: 999px;
}

.product-top-buy {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.product-price-wrap { display: flex; flex-direction: column; gap: 2px; }
.product-price { font-size: 30px; font-weight: 800; color: var(--text); }
.price-note { font-size: 11px; color: var(--muted); }
.btn-buy { padding: 14px 36px; font-size: 16px; }

/* ---------- 主体 ---------- */
.product-body { padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.product-section { padding: 0; }
.product-section.card { padding: 20px; }
.product-section-title { font-size: 17px; margin: 0 0 16px; }

/* ---------- 2. 功能矩阵 ---------- */
.feature-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border-radius: var(--radius-sm); background: var(--surface);
}
.feature-mark {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 16px; font-weight: 800; color: #fff;
}
.feature-yes .feature-mark { background: #0F9D58; }
.feature-no .feature-mark { background: #C2C9D1; }
.feature-label { font-size: 13px; font-weight: 700; }
.feature-value { font-size: 12px; color: var(--muted); text-align: center; }
.feature-no .feature-label { color: var(--muted); }

/* ---------- 3. Attention ---------- */
.attention-box {
  background: #FFF8E1; border: 1px solid #F4D58D; border-left: 4px solid #F4B400;
  border-radius: var(--radius); padding: 16px 18px;
}
.attention-title { font-size: 15px; margin: 0 0 8px; color: #8a6d1a; }
.attention-box p { margin: 0; font-size: 14px; color: #6b5a1e; line-height: 1.7; }

/* ---------- 4. 参数图标列表 ---------- */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.spec-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px; border-radius: var(--radius-sm); font-size: 14px;
}
.spec-item:nth-child(odd) { background: var(--surface); }
.spec-icon { font-size: 18px; width: 26px; text-align: center; }
.spec-label { color: var(--muted); min-width: 84px; }
.spec-value { font-weight: 600; margin-left: auto; text-align: right; }

/* ---------- 5. 折叠区 / 7. FAQ(共用 details 样式) ---------- */
.fold summary, .faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  font-size: 15px; font-weight: 600; padding: 16px 40px 16px 0;
}
.fold summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.fold summary::after, .faq-item summary::after {
  content: "▾"; position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%); color: var(--muted); transition: transform .18s;
}
.fold[open] summary::after, .faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.fold { padding: 4px 20px; }
.fold-body { padding: 4px 0 16px; font-size: 14px; line-height: 1.8; color: var(--text); }

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item p { margin: 0; padding: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- 6. 覆盖国家表 ---------- */
.networks-table-wrap { overflow-x: auto; }
.networks-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.networks-table th {
  text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 700;
  color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 2px solid var(--border);
}
.networks-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.networks-table tr:last-child td { border-bottom: none; }
.networks-table tr:hover td { background: var(--surface); }
.nt-flag { font-size: 18px; margin-right: 4px; }
.nt-tech {
  display: inline-block; padding: 2px 10px; font-size: 12px; font-weight: 700;
  background: var(--surface); color: var(--muted); border-radius: 999px;
}
.nt-tech.nt-5g { background: var(--primary-light); color: var(--primary); }

/* ---------- 6.5 可用充值包 ---------- */
.topup-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.topup-note-sub { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.topup-note-sub a { color: var(--primary); font-weight: 600; }
.topup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.topup-item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 8px; font-size: 14px; border-bottom: 1px solid var(--border);
}
.topup-item:last-child { border-bottom: none; }
.topup-price { font-weight: 700; }

/* ---------- 8. Buy now 悬浮条(移动端) ---------- */
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
}
.buy-bar-info { display: flex; flex-direction: column; min-width: 0; }
.buy-bar-name {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.buy-bar-price { font-size: 18px; font-weight: 800; }
.buy-bar .btn { white-space: nowrap; padding: 12px 26px; }

/* ============================================================
   桌面端 ≥ 992px
   ============================================================ */
@media (min-width: 992px) {
  body.single-product { padding-bottom: 0; }
  .buy-bar { display: none; }

  .product-hero { padding-top: 36px; }
  .product-top {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 28px 32px;
  }
  .product-title { font-size: 30px; }
  .product-top-buy {
    flex-direction: column; align-items: flex-end; gap: 12px;
    padding-top: 0; border-top: none; flex: none;
  }
  .product-price { font-size: 34px; }

  .product-body { padding: 28px 16px 64px; gap: 20px; }
  .product-section.card { padding: 28px 32px; }
  .product-section-title { font-size: 20px; }
  .spec-list { grid-template-columns: 1fr 1fr; gap: 2px 32px; }
  .feature { padding: 18px; }
  .fold { padding: 8px 32px; }
}
