/* ==========================================================================
   CFB 中国足球小将 - 杯赛独立落地专题页 (Tournament Detail Page)
   ========================================================================== */

/* ==========================================================================
   独立杯赛落地专题页 / 全屏侧滑主页 (#tournamentDetailPage)
   ========================================================================== */
.cfb-tournament-page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #F8FAFC;
  z-index: 1500; /* 高于 TabBar (1000) 与 Header，实现彻底全屏覆盖 */
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
}

.cfb-tournament-page.is-open {
  transform: translate3d(0, 0, 0);
}

.cfb-tournament-page__header {
  height: 44px; /* 严格贴齐微信小程序标准自定义导航栏高度 (iOS 44px 规范) */
  background: linear-gradient(135deg, #0A192F 0%, #064E3B 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #FFFFFF;
  flex-shrink: 0;
  z-index: 10;
  transition: background 0.3s ease;
}

.cfb-tournament-page__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cfb-tournament-hub-hero {
  position: relative;
  padding: 18px 16px 14px 16px;
  background: linear-gradient(135deg, #0A1E38 0%, #0F3A2C 50%, #064E3B 100%),
              radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.28) 0%, transparent 60%);
  color: #FFFFFF;
  transition: background 0.3s ease, padding-right 0.2s ease;
  overflow: hidden;
}

/* 当激活右侧国旗时，右侧预留 104px 避让安全区，标题与标签呼吸感充足 */
.cfb-tournament-hub-hero.has-flag {
  padding-right: 104px;
}

/* 当激活国内城市书法水印时，右侧预留 76px 优雅避让区 */
.cfb-tournament-hub-hero.has-city {
  padding-right: 76px;
}

/* 延续列表页标准设计语言：右侧等比横向展开国旗板块与半透明分割线 */
.cfb-tournament-hub-hero__flag {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 96px; /* 匹配海报高度(~78px)的横向比例 (96:78 ≈ 1.23:1)，彻底恢复横版国旗的真实黄金比例 */
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.16);
}

.cfb-tournament-hub-hero.has-flag .cfb-tournament-hub-hero__flag {
  display: block;
}

/* 延续列表页标准设计语言：国内杯赛专属右侧行楷错位书法水印 (无外框轻盈浮水印) */
.cfb-tournament-hub-hero__city-watermark {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  font-family: var(--cfb-font-city), "Ma Shan Zheng", "Kaiti SC", "STKaiti", "楷体", serif;
  font-weight: 400; /* 保持马善政毛笔行楷原汁原味笔锋，杜绝系统人造加粗糊化飞白 */
  color: rgba(255, 255, 255, 0.42); /* 提升对比度与可见度 */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 255, 255, 0.15);
  letter-spacing: -2px;
  line-height: 1;
}

.cfb-tournament-hub-hero.has-city .cfb-tournament-hub-hero__city-watermark {
  display: flex;
}

/* 针对暖色底色（如 2034杯红金底色、女足集训营等）采用温润浅金微光 */
.cfb-tournament-hub-hero.is-warm .cfb-tournament-hub-hero__city-watermark {
  color: rgba(254, 240, 138, 0.48);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 10px rgba(251, 191, 36, 0.25);
}

/* 2字标准毛笔行楷错位 (如 芜湖、通州、苏州、新疆) */
.cfb-tournament-hub-hero__city-watermark.is-len-2 {
  font-size: 32px; /* 相比列表小卡片的 24px，在海报大画幅中更显苍劲大气 */
}
.cfb-tournament-hub-hero__city-watermark.is-len-2 span:first-child {
  transform: translate(-3px, -5px) rotate(-3deg);
  display: inline-block;
}
.cfb-tournament-hub-hero__city-watermark.is-len-2 span:last-child {
  transform: translate(3px, 5px) rotate(2deg);
  display: inline-block;
  margin-left: -8px; /* 负边距让两字笔意咬合，产生苍劲连笔 */
}

/* 3字紧凑流线 (如 乌鲁木) */
.cfb-tournament-hub-hero__city-watermark.is-len-3 {
  font-size: 22px;
  letter-spacing: -2px;
}
.cfb-tournament-hub-hero__city-watermark.is-len-3 span:nth-child(1) {
  transform: translate(-3px, -4px);
  display: inline-block;
}
.cfb-tournament-hub-hero__city-watermark.is-len-3 span:nth-child(2) {
  transform: translate(0, 1px);
  display: inline-block;
  margin-left: -5px;
}
.cfb-tournament-hub-hero__city-watermark.is-len-3 span:nth-child(3) {
  transform: translate(3px, 5px);
  display: inline-block;
  margin-left: -5px;
}

.cfb-tournament-hub-hero__title {
  font-family: var(--cfb-font-title), var(--cfb-font-main);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.cfb-tournament-hub-hero__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.cfb-tournament-hub-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #CBD5E1;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cfb-tournament-hub-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cfb-tournament-hub-hero__pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #FFFFFF;
  white-space: nowrap;
  letter-spacing: 0.2px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-left: 2px;
}

.cfb-tournament-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #FFFFFF;
  margin: 12px;
  padding: 12px 8px;
  border-radius: var(--cfb-radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cfb-tour-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cfb-tour-stat-num {
  font-family: var(--cfb-font-num);
  font-size: 21px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.2px;
  line-height: 1;
}

.cfb-tour-stat-label {
  font-size: 11px;
  color: #475569;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: 0.1px;
}
