/* 本地骨折团购 · 首页独立板块样式（tg- 前缀）
   挂载：index.html 的 #tuangou section（life-entry 之后、MAP-PROMO 之前）
   内容：5 个团购好价（固定价 + 门市价对比）+ 3 家精选酒店（参考起价）+ 出行快捷入口
   口径铁律：对外只出现「虹桥百事通」品牌，不出现第三方平台名与分佣字样。
   下架只需删 index.html 的「本地骨折团购 开始/结束」注释块 + 本文件 link + 本文件 + img/haodian/ + img/jingxuan/ */

.tg-section { margin: 26px 0 30px; }
/* 兼容旧链接 /#booking 的锚点（酒店已并入本板块） */
.tg-anchor { display: block; height: 0; overflow: hidden; }

/* ===== 区块头（紧凑） ===== */
.tg-head { margin-bottom: 18px; }
.tg-eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: linear-gradient(135deg, var(--accent), #e8702a);
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 10px rgba(240,138,36,.26);
}
.tg-title {
  font-family: var(--serif); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15;
  margin: 10px 0 7px; color: var(--primary); letter-spacing: .01em;
}
.tg-title .tg-accent { color: var(--accent); }
.tg-sub { color: var(--text-light); font-size: 14.5px; line-height: 1.65; max-width: 880px; margin: 0; }
.tg-sub strong { color: var(--primary); }
.tg-meta { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 11px; }
.tg-meta span {
  font-size: 12.5px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px;
}

/* ===== 卡片网格：桌面 4 列（8 张 → 2 行，控制板块高度） ===== */
.tg-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-top: 18px;
}
.tg-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ===== 头图 ===== */
.tg-media {
  position: relative; display: block; line-height: 0; overflow: hidden;
  background: #e8ecf3; aspect-ratio: 16 / 9;
}
.tg-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.tg-card:hover .tg-media img { transform: scale(1.04); }
.tg-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,42,91,.26) 0%, rgba(11,42,91,0) 45%);
}
.tg-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: linear-gradient(135deg, #ff6a45, #e23b1e); color: #fff;
  font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 8px;
  box-shadow: 0 3px 10px rgba(226,59,30,.32); letter-spacing: .02em;
}
/* 酒店卡：中性徽标（无「省¥X」，改用卖点） */
.tg-badge--navy {
  background: rgba(255,255,255,.96); color: var(--primary);
  box-shadow: 0 3px 10px rgba(11,42,91,.18);
}
.tg-scene {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(11,42,91,.78); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 8px; line-height: 1.3; backdrop-filter: blur(4px);
}

/* ===== 卡片内容 ===== */
.tg-body { padding: 13px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.tg-body h3 {
  font-family: var(--serif); font-size: 16.5px; line-height: 1.4;
  margin: 0 0 7px; color: var(--text); font-weight: 700;
}
.tg-body h3 small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 5px; }
.tg-desc {
  color: var(--text-light); font-size: 13.5px; line-height: 1.6; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== 价格行（价格一律显示：团购=实价+门市价，酒店=参考起价） ===== */
.tg-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto;
  padding-top: 11px; border-top: 1px dashed var(--border-strong);
}
.tg-now { font-size: 24px; font-weight: 900; color: var(--primary); font-family: var(--font); line-height: 1; }
.tg-now small { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.tg-was { color: var(--muted-2); font-size: 12.5px; text-decoration: line-through; }
.tg-was--plain { text-decoration: none; color: var(--muted); }

/* ===== 购买 / 查看 ===== */
.tg-buy { margin-top: 12px; }
.tg-buy summary {
  cursor: pointer; user-select: none; list-style: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 13.5px;
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 6px rgba(11,42,91,.22); transition: .2s;
}
.tg-buy summary::-webkit-details-marker { display: none; }
.tg-buy summary::after { content: '▾'; transition: transform .2s; }
.tg-buy[open] summary::after { transform: rotate(180deg); }
.tg-buy summary:hover { background: var(--primary-dark); }
.tg-buy-inner {
  margin-top: 10px; padding: 13px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg);
}
.tg-kouling { margin-top: 10px; }
.tg-kouling span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.tg-kouling code {
  display: block; word-break: break-all; margin-bottom: 7px;
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--text);
}
.tg-go { margin-top: 12px; width: 100%; font-size: 13.5px; }

/* ===== 出行快捷入口（单行药丸，控制高度） ===== */
.tg-quick {
  margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
.tg-quick-label { font-size: 13.5px; font-weight: 700; color: var(--primary); }
.tg-pill {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 13px; transition: all .18s ease;
}
.tg-pill:hover { border-color: #c3d5ee; background: var(--primary-soft); color: var(--primary); }

/* ===== 板块脚注 ===== */
.tg-foot {
  margin-top: 16px; padding: 12px 16px;
  background: var(--gold-soft); border: 1px solid #f1e2bb; border-radius: 12px;
  font-size: 13px; color: #7a5d18; line-height: 1.6;
}
.tg-foot a { color: var(--primary); font-weight: 600; }
.tg-foot strong { color: #6a4f14; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) { .tg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  {
  .tg-grid { grid-template-columns: 1fr; gap: 16px; }
  .tg-title { font-size: 24px; }
}
