/*
Theme Name: 伴久久主题
Theme URI: https://www.ban99.cn
Description: 伴久久服务主导响应式主题（Astra 子主题），PC/手机同 URL、PHP 服务端渲染，AI 自研零外包
Author: 伴久久
Template: astra
Version: 1.0.0
Text Domain: ban99-frontend
*/

/* ============ 设计变量 ============ */
:root {
  --brand: #0E9E8C;
  --brand-dark: #0c7d72;
  --brand-soft: #E6F7F4;
  --cta: #F26722;
  --cta-dark: #d9521a;
  --ink: #243b3b;
  --muted: #5a7070;
  --faint: #8a9a9a;
  --line: #e3eaea;
  --line-soft: #edf1f1;
  --bg: #f5f8f8;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(15, 60, 60, 0.08);
  --maxw: 1080px;
}

/* ============ 基础 ============ */
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 .8em; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.ban99-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.ban99-section { padding: 26px 0; }
.ban99-section-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.ban99-section-sub { font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.ban99-eyebrow { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 1px; margin-bottom: 6px; }

/* ============ 窄品牌条 ============ */
.ban99-topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2);
}
.ban99-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; min-height: 52px; padding-top: 8px; padding-bottom: 8px;
}
.ban99-logo { display: flex; align-items: center; min-width: 0; }
.ban99-logo-img { display: block; height: 32px; width: auto; max-width: 100%; }
.ban99-top-nav { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: nowrap; white-space: nowrap; }
.ban99-top-nav a { color: var(--muted); white-space: nowrap; }
.ban99-top-phone { font-weight: 700; color: var(--brand); white-space: nowrap; }

/* 价值主张窄条 */
.ban99-value-strip {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px; text-align: center;
  padding: 8px 14px;
}

/* ============ 按钮 ============ */
.ban99-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 22px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-size: 15px; font-weight: 700;
  transition: background .15s ease, transform .1s ease;
}
.ban99-btn-primary { background: var(--cta); color: #fff; }
.ban99-btn-primary:hover { background: var(--cta-dark); color: #fff; }
.ban99-btn-ghost { background: var(--brand-soft); color: var(--brand-dark); }
.ban99-btn-ghost:hover { background: #d4f0eb; color: var(--brand-dark); }
.ban99-btn-block { width: 100%; }
.ban99-link { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.ban99-price-tag { color: var(--cta); font-weight: 800; }

/* ============ 服务卡（首页） ============ */
.ban99-service-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ban99-service-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow);
}
.ban99-service-icon {
  flex: 0 0 46px; width: 46px; height: 46px;
  border-radius: 12px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.ban99-service-body { flex: 1; min-width: 0; }
.ban99-service-name { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.ban99-service-desc { font-size: 12px; color: var(--faint); margin: 0; line-height: 1.5; }
.ban99-service-aside { text-align: right; flex: 0 0 auto; }
.ban99-service-price { font-size: 17px; font-weight: 800; color: var(--cta); }
.ban99-service-price small { font-size: 11px; font-weight: 500; }
.ban99-service-cta { font-size: 12px; color: var(--brand); font-weight: 700; margin-top: 3px; }

/* ============ 价目表（明码标价） ============ */
.ban99-price-block { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.ban99-price-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ban99-price-block-head .ban99-service-icon { width: 40px; height: 40px; flex-basis: 40px; }
.ban99-price-block-name { font-size: 16px; font-weight: 800; }
.ban99-price-block-desc { font-size: 12px; color: var(--faint); margin: 0; }
.ban99-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.ban99-plan-name { font-size: 14px; font-weight: 700; }
.ban99-plan-duration { font-size: 12px; color: var(--faint); }
.ban99-plan-prices { text-align: right; flex: 0 0 auto; }
.ban99-plan-price { font-size: 16px; font-weight: 800; color: var(--ink); }
.ban99-plan-member { font-size: 12px; color: var(--brand); font-weight: 700; }
.ban99-plan-market { font-size: 12px; color: var(--faint); text-decoration: line-through; }
.ban99-plan-promo { font-size: 17px; font-weight: 800; color: var(--cta); line-height: 1.25; }
.ban99-note-card { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 13px 15px; font-size: 12.5px; color: var(--brand-dark); line-height: 1.7; }
.ban99-note-card b { color: var(--brand-dark); }

/* ============ 医院网格/卡片 ============ */
.ban99-hospital-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ban99-hospital-card { display: flex; gap: 12px; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ban99-hospital-thumb { flex: 0 0 104px; width: 104px; min-height: 96px; background: var(--brand-soft); position: relative; }
.ban99-hospital-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ban99-hospital-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--brand); font-weight: 800; font-size: 20px; }
.ban99-hospital-info { flex: 1; min-width: 0; padding: 11px 12px 11px 0; }
.ban99-hospital-name { font-size: 15px; font-weight: 800; margin-bottom: 5px; }
.ban99-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); margin-right: 5px; }
.ban99-hospital-meta { font-size: 12px; color: var(--faint); margin: 6px 0 0; }

/* ============ 筛选/搜索 ============ */
.ban99-filter-bar { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px; margin-bottom: 18px; box-shadow: var(--shadow); }
.ban99-search-row { display: flex; gap: 8px; margin-bottom: 11px; }
.ban99-search-input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--ink); }
.ban99-search-input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.ban99-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ban99-filter-chip { min-height: 36px; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted); cursor: pointer; }
.ban99-filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }

/* ============ 详情页 ============ */
.ban99-detail-hero { position: relative; background: var(--brand-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.ban99-detail-hero img { width: 100%; max-height: 300px; object-fit: cover; }
.ban99-detail-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.ban99-detail-line { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.ban99-detail-line:first-child { border-top: 0; }
.ban99-detail-label { flex: 0 0 78px; color: var(--faint); }
.ban99-detail-value { flex: 1; color: var(--ink); }
.ban99-detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ban99-detail-actions .ban99-btn { flex: 1 1 150px; }

/* ============ 面包屑 ============ */
.ban99-breadcrumb { font-size: 12.5px; color: var(--faint); padding: 14px 0 2px; }
.ban99-breadcrumb a { color: var(--muted); }

/* ============ 信任/页脚 ============ */
.ban99-trust-strip { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; padding: 18px 0; font-size: 13px; color: var(--brand-dark); }
.ban99-trust-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ban99-footer { background: #1f3333; color: #cfe0dd; padding: 28px 0; margin-top: 30px; font-size: 13px; }
.ban99-footer a { color: #7fd4c8; }
.ban99-footer b { color: #fff; }
.ban99-footer-line { margin-bottom: 6px; }
.ban99-footer-icp { margin-top: 8px; color: #9fc4be; }

/* 分页 */
.ban99-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.ban99-page-link { min-width: 42px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); }
.ban99-page-link.current { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }

/* ============ 响应式：mobile-first 向上增强 ============ */
@media (min-width: 700px) {
  body { font-size: 15.5px; }
  .ban99-logo-img { height: 40px; }
  .ban99-service-grid { grid-template-columns: 1fr 1fr; }
  .ban99-hospital-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 30px; }
}
@media (min-width: 980px) {
  .ban99-service-grid { grid-template-columns: 1fr 1fr; }
  .ban99-hospital-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ban99-hospital-thumb { flex-basis: 128px; width: 128px; }
}
