/* 虹桥本地骨折团购 · 独立聚合页 /tuangou.html（复用 tuangou.css 的卡片样式）
   版式：品牌渐变 banner → 吸顶分类条 → 卡片网格 → 出行直达 → 说明区
   口径铁律：对外只出现「虹桥百事通」品牌，不出现第三方平台名与分佣字样 */

/* ===== 页头 banner ===== */
.tg-hero {
  background: linear-gradient(135deg, #0B2A5B 0%, #16407F 62%, #1B4A8C 100%);
  color: #fff; padding: 42px 0 40px; margin-bottom: 26px;
  position: relative; overflow: hidden;
}
.tg-hero::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, .18) 0%, rgba(255, 214, 120, 0) 68%);
}
.tg-hero-inner { display: flex; gap: 34px; align-items: flex-start; position: relative; z-index: 1; }
.tg-hero-main { flex: 1 1 auto; min-width: 0; }
.tg-hero-eyebrow {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: var(--gold);
}
.tg-hero-eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--gold); margin-right: 9px; border-radius: 2px;
}
.tg-hero-title {
  font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700;
  line-height: 1.2; margin: 13px 0 12px; letter-spacing: .01em;
}
.tg-hero-accent { color: var(--gold); }
.tg-hero-sub {
  margin: 0; max-width: 720px; font-size: 14.5px; line-height: 1.8; color: #D5E1F3;
}
.tg-hero-sub strong { color: #fff; font-weight: 600; }
.tg-hero-meta {
  display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 16px; font-size: 12.5px; color: #A9BEDD;
}
.tg-hero-meta span:not(:first-child)::before { content: "·"; margin-right: 14px; color: #55719B; }

/* 右侧两张小说明卡 */
.tg-hero-side { flex: 0 0 288px; display: flex; flex-direction: column; gap: 12px; }
.tg-hero-card {
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(4px);
}
.tg-hero-card--quiet { background: rgba(255, 255, 255, .05); }
.tg-hero-card-t {
  display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 6px;
}
.tg-hero-card p { margin: 0; font-size: 12.5px; line-height: 1.7; color: #D3E0F2; }

/* ===== 主体 ===== */
.tg-page { padding-bottom: 46px; }

/* 吸顶分类条 */
.tg-toolbar {
  position: sticky; top: 68px; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; margin-bottom: 20px;
  background: rgba(255, 255, 255, .93); border: 1px solid #e7ecf4; border-radius: 14px;
  box-shadow: 0 8px 22px rgba(11, 42, 91, .06); backdrop-filter: blur(10px);
}
.tg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-chip {
  border: 1px solid #e0e8f2; background: #fff; color: #47576e;
  font-size: 13px; font-weight: 600; font-family: var(--font);
  padding: 7px 15px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tg-chip:hover { color: var(--primary); border-color: #c3d5ee; }
.tg-chip.is-on {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 5px 14px rgba(11, 42, 91, .16);
}
.tg-toolbar-meta { font-size: 12.5px; color: #8a97a8; white-space: nowrap; }

/* ===== 卡片网格：复用 .tg-card，只改宽度约束 ===== */
.tg-grid-page { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tg-grid-page .tg-card { flex: 0 0 auto; width: auto; margin-right: 0; }
/* [hidden] 需显式声明，否则被 .tg-card 的 display:flex 覆盖 */
.tg-grid-page .tg-card[hidden] { display: none; }

/* ===== 通用区块 ===== */
.tg-block {
  margin-top: 34px; padding: 24px 26px;
  background: #fff; border: 1px solid #e7ecf4; border-radius: 18px;
  box-shadow: 0 6px 20px rgba(11, 42, 91, .05);
}
.tg-block-head { margin-bottom: 14px; }
.tg-block-head h2 {
  font-family: var(--serif); font-size: 20px; margin: 0 0 5px; color: var(--primary); font-weight: 700;
}
.tg-block-head p { margin: 0; font-size: 13px; color: #8a97a8; }

/* 出行直达：药丸稍大一点 */
.tg-quick--page { margin-top: 0; padding-top: 0; border-top: 0; gap: 10px; }
.tg-quick--page .tg-pill { padding: 9px 18px; font-size: 13px; }

/* ===== 说明区 ===== */
.tg-block--notice { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); }
.tg-notice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tg-notice-item { border-left: 2px solid #e3e9f1; padding-left: 14px; }
.tg-notice-t {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--primary); margin-bottom: 6px;
}
.tg-notice-item p { margin: 0; font-size: 12.5px; line-height: 1.75; color: #6b7789; }
.tg-notice-item a { color: var(--primary); font-weight: 600; }
.tg-notice-item strong { color: #4d5a6c; }

/* ===== 底部返回 ===== */
.tg-back {
  margin-top: 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px;
}
.tg-back a { color: var(--primary); font-weight: 600; text-decoration: none; }
.tg-back a:hover { text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
  .tg-grid-page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-notice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .tg-hero-inner { flex-direction: column; gap: 20px; }
  .tg-hero-side { flex: 0 0 auto; width: 100%; flex-direction: row; }
  .tg-hero-card { flex: 1; }
}
@media (max-width: 900px) {
  .tg-grid-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-hero { padding: 32px 0 30px; }
  .tg-hero-side { flex-direction: column; }
  .tg-toolbar { top: 60px; }
}
@media (max-width: 620px) {
  .tg-grid-page { grid-template-columns: 1fr; gap: 16px; }
  .tg-notice-grid { grid-template-columns: 1fr; }
  .tg-block { padding: 18px 16px; }
  .tg-toolbar { padding: 10px; }
  .tg-chip { font-size: 12.5px; padding: 6px 12px; }
  .tg-toolbar-meta { display: none; }
}
