/* ============ 多页面扩展样式（SEO/GEO 版） ============ */

/* 面包屑导航 */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "›"; color: #bae6fd; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* 子页面顶部横幅 */
.page-hero {
  position: relative;
  background: var(--gradient);
  color: #fff;
  padding: 72px 0 88px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 380px at 88% 10%, rgba(255,255,255,.13), transparent 60%),
    radial-gradient(ellipse 460px 420px at 8% 95%, rgba(34,211,238,.22), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-tag { background: rgba(255,255,255,.18); color: #fff; }
.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.3;
  color: #fff;
  margin-bottom: 14px;
  max-width: 760px;
}
.page-hero .page-lead { font-size: 16.5px; color: rgba(255,255,255,.88); max-width: 680px; }
.page-hero .page-lead strong { color: #a5f3fc; }

/* 详细正文排版 */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--ink);
  margin: 52px 0 18px;
  padding-left: 14px;
  border-left: 5px solid var(--primary-light);
  line-height: 1.35;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; color: var(--ink); margin: 30px 0 12px; }
.prose p { margin-bottom: 14px; font-size: 15.5px; }
.prose ul { margin: 0 0 18px 4px; }
.prose ul li { position: relative; padding: 5px 0 5px 26px; font-size: 15px; }
.prose ul li::before {
  content: "";
  position: absolute; left: 4px; top: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
}
.prose strong { color: var(--ink); }

/* 数据表格 */
.data-table-wrap { overflow-x: auto; margin: 20px 0 26px; border-radius: 14px; border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; }
.data-table caption { caption-side: top; text-align: left; padding: 14px 18px; color: var(--muted); font-size: 13px; }
.data-table th, .data-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--bg-alt); color: var(--ink); font-weight: 600; white-space: nowrap; }
.data-table tbody tr:hover { background: #f8fcff; }
.data-table td strong { color: var(--primary); }

/* FAQ（details/summary 语义化手风琴，利于爬虫与 AI 抓取） */
details.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
details.faq-item[open] { box-shadow: var(--shadow); border-color: #bae6fd; }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .faq-icon {
  font-style: normal; font-size: 22px; font-weight: 400;
  color: var(--primary-light); transition: transform .3s ease; flex-shrink: 0;
}
details.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
details.faq-item .faq-a { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
details.faq-item .faq-a a { color: var(--primary); font-weight: 600; }
details.faq-item .faq-a a:hover { text-decoration: underline; }
.faq-group-title { font-size: 19px; color: var(--ink); margin: 38px 0 18px; }

/* 查看更多链接 */
.section-more { text-align: center; margin-top: 40px; }
.section-more a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 15px;
}
.section-more a:hover { text-decoration: underline; }

/* 产品详情列表（产品中心页） */
.product-detail { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; padding: 36px 0; border-bottom: 1px dashed var(--border); }
.product-detail:last-of-type { border-bottom: none; }
.product-detail .product-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 300px; }
.product-detail .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail h3 { font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.product-detail .price { font-size: 28px; margin: 6px 0 12px; }
.product-detail p { font-size: 15px; margin-bottom: 10px; }
.product-detail ul { margin: 12px 0 0; }
.product-detail ul li { padding: 4px 0 4px 24px; position: relative; font-size: 14.5px; }
.product-detail ul li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}

/* 套餐说明列表 */
.plan-detail-ul li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; }
.plan-detail-ul li::before {
  content: "✓"; position: absolute; left: 2px;
  color: var(--primary); font-weight: 700;
}

/* 时间线（关于我们） */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(#bae6fd, var(--primary-light));
}
.timeline-item { position: relative; padding: 0 0 30px 22px; }
.timeline-item::before {
  content: ""; position: absolute; left: -24px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary-light); box-shadow: 0 0 0 5px #e0f2fe;
}
.timeline-item time { display: block; font-size: 13px; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.timeline-item h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.timeline-item p { font-size: 14.5px; color: var(--muted); }

/* 品牌数字（关于我们） */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item { text-align: center; padding: 30px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.value-item strong { display: block; font-size: 34px; color: var(--primary); font-family: Georgia, serif; margin-bottom: 6px; }
.value-item span { font-size: 13.5px; color: var(--muted); }

/* 404 */
.error-page { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 60px 20px; }
.error-page .code { font-size: 96px; font-weight: 800; color: var(--primary-light); font-family: Georgia, serif; line-height: 1; }
.error-page h1 { font-size: 22px; color: var(--ink); margin: 0; }
.error-page p { color: var(--muted); margin: 0 0 18px; }

/* 响应式补充 */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-detail .product-img { height: 240px; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 52px 0 64px; }
}

/* ============ 配送范围：区县街道/地标卡片 ============ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.area-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  transition: box-shadow .25s, transform .25s;
}
.area-card:hover { box-shadow: 0 10px 28px rgba(2, 132, 199, .10); transform: translateY(-3px); }
.area-card h3 {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 4px; font-size: 18px; color: var(--ink);
}
.area-card h3 small {
  font-size: 12px; font-weight: 600; color: var(--primary);
  background: #ecfeff; border: 1px solid #bae6fd;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.area-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.area-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.area-chips .chip { padding: 4px 12px; font-size: 12.5px; border-radius: 999px; }
.area-landmarks { margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--border); }
.area-landmarks .lm-label {
  font-size: 12px; font-weight: 700; color: var(--primary);
  margin-right: 2px; align-self: center; white-space: nowrap;
}
.area-landmarks .chip {
  background: #fffbeb; border-color: #fde68a; color: #92400e;
}
.area-landmarks .chip:hover { background: #f59e0b; border-color: #f59e0b; color: #fff; }

/* ============ 配送地图（构建期内联 SVG） ============ */
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 4px 0 18px; font-size: 13.5px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 15px; height: 15px; border-radius: 4px; display: inline-block; border: 1px solid rgba(255,255,255,.75); box-shadow: 0 1px 3px rgba(2,32,56,.18); }
.lg-2h { background: #0369a1; } .lg-4h { background: #38bdf8; } .lg-day { background: #14b8a6; } .lg-next { background: #bae6fd; }
.map-wrap { position: relative; background: linear-gradient(180deg, #f0f9ff, #e0f2fe); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; user-select: none; }
#coverageMapSvg { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
#coverageMapSvg.dragging { cursor: grabbing; }
.map-district { stroke: #fff; stroke-width: 1.1; transition: filter .18s; }
.map-district.eta-2h { fill: #0369a1; }
.map-district.eta-4h { fill: #38bdf8; }
.map-district.eta-day { fill: #14b8a6; }
.map-district.eta-next { fill: #bae6fd; }
.map-district.eta-off { fill: #cbd5e1; }
.map-district:hover, .map-district.hover { filter: brightness(1.14) drop-shadow(0 2px 6px rgba(2,132,199,.4)); stroke-width: 2; }
.map-label { font-size: 14px; font-weight: 600; fill: #fff; text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(3,45,66,.55); stroke-width: 2.6px; letter-spacing: .5px; }
.map-label-sm { font-size: 11px; display: none; }
#coverageMapSvg.zoomed .map-label-sm { display: block; }
.map-tip { position: absolute; z-index: 6; max-width: 300px; min-width: 190px; background: rgba(255,255,255,.97); border: 1px solid #bae6fd; border-radius: 10px; box-shadow: 0 10px 26px rgba(2,32,56,.18); padding: 10px 14px; font-size: 12.5px; color: var(--ink); pointer-events: none; line-height: 1.75; }
.map-tip h4 { margin: 0 0 2px; font-size: 14.5px; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.map-tip .tip-eta { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: #fff; white-space: nowrap; }
.tip-eta.eta-2h { background: #0369a1; } .tip-eta.eta-4h { background: #0ea5e9; } .tip-eta.eta-day { background: #14b8a6; } .tip-eta.eta-next { background: #7dd3fc; color: #075985; }
.map-tip .tip-note { color: var(--muted); margin: 2px 0 4px; font-size: 12px; }
.map-tip .tip-row b { color: var(--primary); font-weight: 600; }
.map-tip .tip-go { color: #64748b; font-size: 12px; }
.map-ctrl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.map-ctrl button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #bae6fd; background: rgba(255,255,255,.94); color: #0369a1; font-size: 17px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(2,32,56,.12); transition: all .15s; line-height: 1; }
.map-ctrl button:hover { background: #0369a1; color: #fff; }
.map-hint { text-align: center; margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.area-card.flash { animation: areaFlash 1.8s ease; }
@keyframes areaFlash { 0%, 100% { box-shadow: none; } 15%, 55% { box-shadow: 0 0 0 3px rgba(14,165,233,.5); } }
@media (max-width: 1024px) {
  .area-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .map-tip { max-width: 230px; font-size: 12px; }
  .map-ctrl { right: 8px; top: 8px; }
}

/* chip-link-style: 覆盖范围内的chip可点击 */
.coverage-chips a.chip,
.area-chips a.chip {
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.coverage-chips a.chip:hover,
.area-chips a.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, .25);
}
