/* ==========================================================================
   CFB 中国足球小将 - 移动端高保真样式系统 (无边框极简流 · 沉浸 3:4 海报版)
   阿里妈妈数黑体标题、彻底去勾边、全幅摄影底图+黑透渐变蒙层、圆形反白箭头
   ========================================================================== */

/* 引入阿里妈妈数黑体 (本地高性能 woff2，支持 100~900 全字重匹配，杜绝移动端降级) */
@font-face {
  font-family: 'AlimamaShuHeiTi-Bold';
  src: url('../assets/fonts/AlimamaShuHeiTi-Bold.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 引入行云流浪毛笔书法体：马善政毛笔楷书 (本地轻量 55KB woff2，覆盖全国重点赛区城市名) */
@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('../assets/fonts/MaShanZheng-City-sub.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 引入重装竞技特黑体：阿里巴巴普惠体 3.0 特黑 (115-Black: 极具赛事统治力、字腔饱满舒展、骨架端正厚重) */
@font-face {
  font-family: 'CFB-HeavyBlack';
  src: url('../assets/fonts/PuHuiTi-Black-sub.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 引入斜切竞速标题体：庞门正道标题体 (8°速度倾角、重心稳固、冲击力强) */
@font-face {
  font-family: 'CFB-SpeedTitle';
  src: url('../assets/fonts/PangMenZhengDao-sub.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 引入鸿蒙微圆黑体 (本地微型 5KB woff2 瞬时加载，骨架硬朗转角微弧) */
@font-face {
  font-family: 'CFB-HarmonyBold';
  src: url('../assets/fonts/HarmonyOS-Team-sub.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 引入欧范微扁平现代竞技宽数字：Montserrat ExtraBold (本地 4.6KB woff2 完整字形集) */
@font-face {
  font-family: 'CFB-EuroNum';
  src: url('../assets/fonts/EuroNum-Wide.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* 引入国际顶级体育竞技无衬线窄体：Bebas Neue */
@font-face {
  font-family: 'CFB-SportsNum';
  src: url('../assets/fonts/BebasNeue-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 引入硬朗紧凑竞技副体：Barlow Condensed */
@font-face {
  font-family: 'CFB-Barlow';
  src: url('../assets/fonts/BarlowCondensed-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 品牌色彩：皇家竞技钴蓝 */
  --cfb-royal-blue:     #005BB5;
  --cfb-royal-light:    #006BE6;
  --cfb-royal-deep:     #004B99;
  
  /* 核心行动金：精准采样凯尔特人 MATCH CENTRE 实装金黄 (#F1C136) */
  --cfb-gold:           #F1C136;
  --cfb-gold-hover:     #E5B52C;

  /* 业务状态色 */
  --cfb-status-live:    #EF4444;
  --cfb-status-win:     #10B981;

  /* 文字阶梯 */
  --cfb-text-main:      #18181B;
  --cfb-text-sub:       #71717A;
  --cfb-text-muted:     #A1A1AA;

  /* 结构容器：干净通透无边框 */
  --cfb-border:         #E4E4E7;
  --cfb-border-subtle:  #F4F4F5;
  --cfb-bg-page:        #F5F6F8; /* 极轻柔的球场灰白底 */
  --cfb-bg-card:        #FFFFFF;

  /* 字体排版 Token：重磅超粗体育力量栈 */
  --cfb-font-main:      -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "MiSans", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;
  --cfb-font-title:     "AlimamaShuHeiTi-Bold", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --cfb-font-city:      "Ma Shan Zheng", "Kaiti SC", "STKaiti", "楷体", serif;
  --cfb-font-team:      "CFB-HarmonyBold", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --cfb-font-sport-btn: "CFB-HeavyBlack", "AlibabaPuHuiTi-3-115-Black", -apple-system, sans-serif;
  --cfb-font-num:       "CFB-EuroNum", "Montserrat", "DIN Alternate", -apple-system, sans-serif;
  --cfb-font-vs:        "CFB-EuroNum", "Montserrat", "DIN Alternate", -apple-system, sans-serif;

  /* 精致微倒角：进一步收敛，克制精密（3px - 4px 微倒角，拒绝 90 度但极度紧凑） */
  --cfb-radius-xs:      2px;
  --cfb-radius-sm:      3px;
  --cfb-radius-md:      4px;

  /* 克制轻微弥散阴影 */
  --cfb-shadow-sm:      0 2px 6px rgba(0, 0, 0, 0.04);
  --cfb-shadow-card:    0 4px 14px -2px rgba(0, 91, 181, 0.16);
}

/* 基础重置 (动态视口 100dvh 彻底锁定，杜绝 iOS 视口伸缩死区) */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; /* 现代移动端真实物理视口 */
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-overscroll-behavior: none;
  font-family: var(--cfb-font-main);
  background-color: #004B99;
  color: var(--cfb-text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* 手机视窗壳 (锁定动态视口，彻底对齐屏幕边界) */
.cfb-phone-shell {
  max-width: 430px;
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  background-color: var(--cfb-bg-page);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

/* 开屏转场 (45% 黄金视觉视心修正 · 昂扬挺拔) */
.cfb-splash {
  position: fixed;
  inset: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #005BB5 0%, #004B99 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px) * 0.5); /* 向上微提 32px，端坐于 45% 黄金视心 */
  box-sizing: border-box;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.cfb-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cfb-splash__emblem {
  width: 125px;
  max-width: 36vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 32, 70, 0.15));
  animation: splashPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cfb-splash__text {
  margin-top: 14px;
  color: #FFFFFF;
  font-family: var(--cfb-font-title);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 2px;
  opacity: 0.95;
  animation: splashFade 0.85s ease-out forwards;
}

@keyframes splashPop {
  0% { transform: scale(0.75); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes splashFade {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 0.95; transform: translateY(0); }
}

