/* ===========================================================
   首页优化层 · home-optimized.css
   只在 #s-home 生效，最后加载，用来收拾前面主题层互相打架的 !important。

   改的四件事（都是量出来的，不是审美偏好）：
   1) 挡位选中态：实测选中chip是「白底 + 白字」→ 完全看不见；
      未选中的反而是绿底。状态语言反了。现在：选中=实心绿+白字，
      未选=白底绿框深字，未解锁=浅灰虚线（不再像个坏掉的空框）。
   2) 挡位短标签实测 22px，而 chip 只有 51px 宽 →「免费」被迫竖排。
      统一 16px/15px 且 nowrap。
   3) 席位行原本是 9 个一模一样的「＋」，零信息量 →
      加「已就位 X/10 · 满 10 人开局」，空位弱化成浅色小加号。
   4) 余额不足时 CTA 是一大块浅灰、没有出路 →
      文案压短，右侧给「去充值 ›」。

   配色沿用当前主题变量（--panel-line-strong = 品牌绿），
   换主题时不会锁死成微信绿。
   =========================================================== */

#phone #app #s-home.home-ocean {
  --home-brand: var(--panel-line-strong, #07c160);
  --home-ink: #191919;
  --home-ink-2: #6b7a70;
  --home-line: #d9ecdf;
  --home-surface: #ffffff;
  --home-bg: #f5f7f6;
}

/* ---------------- 0. 顶部账户栏：合成"一条" ----------------
   之前这里是三套视觉语言拼在一起，看着不像一个整体：
     · 用户区 = 实心绿胶囊（里面还套了个**暗蓝渐变圆**做头像底）
     · 余额   = 纯白胶囊（里面塞了张自带黑底的金币素材）
     · 铃铛   = 自带黑底的素材方块
   现在统一成：一条白底圆角栏（浅绿描边 + 极淡投影），
   内部只保留两种色阶 —— 深色文字 + 浅绿分组（余额胶囊、头像底），
   金币与铃铛换成透明底素材（coin-flat / bell-flat），不再有黑方块。 */
#phone #app #s-home.home-ocean .hud-top {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 54px !important;
  padding: 5px 7px 5px 5px !important;
  background: var(--home-surface) !important;
  border: 1px solid var(--home-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 10px rgba(6, 44, 27, 0.06) !important;
}

/* 用户区：不再是自己一块绿底，融进整条 */
#phone #app #s-home.home-ocean .hud-top .home-profile {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--home-ink) !important;
}
#phone #app #s-home.home-ocean .hud-top .home-profile:active { background: #f1f9f4 !important; }

/* 头像：暗蓝渐变 → 浅绿渐变（和整条的浅绿分组同一色系） */
#phone #app #s-home.home-ocean .hud-top .hud-avatar {
  background-image: linear-gradient(160deg, #eafaf0, #c7ecd8) !important;
  border: 2px solid #8fd8af !important;
  box-shadow: none !important;
}
#phone #app #s-home.home-ocean .hud-top .hud-who { gap: 1px !important; }
#phone #app #s-home.home-ocean .hud-top .hud-who__name {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: var(--home-ink) !important;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#phone #app #s-home.home-ocean .hud-top .hud-who .dim {
  font-size: 10.5px !important;
  color: var(--home-ink-2) !important;
}
#phone #app #s-home.home-ocean .hud-top .badge-vip {
  font-size: 10.5px !important;
  background: #eafaf0 !important;
  color: #0b7a48 !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 1px 5px !important;
}

/* 余额：从"白胶囊"变成整条里的浅绿分组 */
#phone #app #s-home.home-ocean .hud-top .hud-balance {
  height: 40px !important;
  padding: 0 4px 0 9px !important;
  gap: 6px !important;
  background: #f1f9f4 !important;
  border: 1px solid #d7ecdf !important;
  border-radius: 999px !important;
  color: var(--home-ink) !important;
  box-shadow: none !important;
}
#phone #app #s-home.home-ocean .hud-top .home-coin {
  width: 19px !important;
  height: 19px !important;
  object-fit: contain !important;
  flex: 0 0 auto;
}
#phone #app #s-home.home-ocean .hud-top .hud-balance__num {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--home-ink) !important;
}
#phone #app #s-home.home-ocean .hud-top .hud-balance__unit {
  font-size: 11px !important;
  color: var(--home-ink-2) !important;
  margin-left: 1px !important;
}
#phone #app #s-home.home-ocean .hud-top .home-topup {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;
  background: #07c160 !important;
  color: #fff !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

/* 铃铛：去掉素材黑底，做一个同色系的圆形按钮位 */
#phone #app #s-home.home-ocean .hud-top .hud-bell {
  width: 38px !important;
  min-width: 38px !important;
  height: 40px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
#phone #app #s-home.home-ocean .hud-top .hud-bell:active { background: #f1f9f4 !important; }
#phone #app #s-home.home-ocean .hud-top .hud-bell img {
  width: 23px !important;
  height: 23px !important;
  object-fit: contain !important;
}

/* ---------------- 1+2. 挡位 ---------------- */
#phone #app #s-home.home-ocean .tier-row {
  gap: 6px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#phone #app #s-home.home-ocean .tier-row .tier-chip {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 58px !important;
  padding: 8px 4px 7px !important;
  border-radius: 12px !important;
  background: var(--home-surface) !important;
  border: 1.5px solid var(--home-line) !important;
  box-shadow: none !important;
  transform: none !important;
}

#phone #app #s-home.home-ocean .tier-row .tier-chip__short {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: var(--home-ink) !important;
  white-space: nowrap;
}

#phone #app #s-home.home-ocean .tier-row .tier-chip__name {
  margin: 0 !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  color: var(--home-ink-2) !important;
  white-space: nowrap;
}

/* 只有一行场名的档位（1U）：字号提到与「金额」同级并居中 */
#phone #app #s-home.home-ocean .tier-row .tier-chip__name--only {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--home-ink) !important;
}
#phone #app #s-home.home-ocean .tier-row .tier-chip--on .tier-chip__name--only { color: #fff !important; }
#phone #app #s-home.home-ocean .tier-row .tier-chip--lock .tier-chip__name--only { color: #a8b2ab !important; }

/* 免费档：浅底 + 绿字，与付费档同一套绿，但一眼能区分 */
#phone #app #s-home.home-ocean .tier-row .tier-chip--free {
  background: #eaf9f0 !important;
  border-color: #9fe0bd !important;
}
#phone #app #s-home.home-ocean .tier-row .tier-chip--free .tier-chip__short {
  font-size: 15px !important;
  color: #0a7a48 !important;
}
#phone #app #s-home.home-ocean .tier-row .tier-chip--free .tier-chip__name { color: #3f7d5f !important; }

/* 付费档（1U–50U）：回到统一的实心绿，深绿字保证对比度 */
#phone #app #s-home.home-ocean .tier-row .tier-chip:not(.tier-chip--free) {
  background: var(--home-brand) !important;
  border-color: var(--home-brand) !important;
}
#phone #app #s-home.home-ocean .tier-row .tier-chip:not(.tier-chip--free) .tier-chip__short { color: #102b1b !important; }
#phone #app #s-home.home-ocean .tier-row .tier-chip:not(.tier-chip--free) .tier-chip__name { color: rgba(6, 44, 27, 0.72) !important; }

/* 选中态：深绿 + 白字 + 白色底标记，在满屏绿里也一眼看得出选的是哪个
   （选择器刻意写成 .tier-chip.tier-chip--on，与上面带 :not() 的那条同级，靠顺序取胜） */
#phone #app #s-home.home-ocean .tier-row .tier-chip.tier-chip--on,
#phone #app #s-home.home-ocean .tier-row .tier-chip--free.tier-chip--on {
  background: #075f32 !important;
  border-color: #075f32 !important;
  box-shadow: 0 6px 16px rgba(7, 95, 50, 0.32) !important;
}
#phone #app #s-home.home-ocean .tier-row :is(.tier-chip.tier-chip--on, .tier-chip--free.tier-chip--on) .tier-chip__short {
  color: #fff !important;
}
#phone #app #s-home.home-ocean .tier-row :is(.tier-chip.tier-chip--on, .tier-chip--free.tier-chip--on) .tier-chip__name {
  color: rgba(255, 255, 255, 0.9) !important;
}
#phone #app #s-home.home-ocean .tier-row .tier-chip.tier-chip--on .tier-chip__mark { background: #fff !important; }

/* 未解锁：浅灰虚线 + 灰字，看得出「还没到」而不是「坏了」 */
#phone #app #s-home.home-ocean .tier-row .tier-chip--lock {
  opacity: 1 !important;
  filter: none !important;
  background: #f4f6f4 !important;
  border: 1.5px dashed #dbe2dc !important;
}
#phone #app #s-home.home-ocean .tier-row .tier-chip--lock .tier-chip__short,
#phone #app #s-home.home-ocean .tier-row .tier-chip--lock .tier-chip__name { color: #a8b2ab !important; }

/* ---------------- 3. 席位行（当前未使用，样式保留备用） ----------------
   需求变更：整行席位已从首页移除（home.js 里不再渲染 .home-seats）。
   下面这套样式保留 —— 以后若要把席位加回来（真实占位或空位「＋」）可直接复用。
   注：主题层会把所有 button 刷成绿底，所以加回来时必须显式覆盖底色，否则会露绿边。 */
#phone #app #s-home.home-ocean .home-seats {
  padding: 9px 10px !important;
  border-radius: 14px !important;
  background: var(--home-surface) !important;
  border: 1px solid var(--home-line) !important;
  gap: 3px !important;
}
#phone #app #s-home.home-ocean .home-seats .home-seat {
  min-height: 34px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0;
}
#phone #app #s-home.home-ocean .home-seats .home-seat-open {
  width: 100%;
  max-width: 32px;
  aspect-ratio: 1;
  margin: 0 auto;
  background: #f6faf7 !important;
  border: 1px dashed #bcd4c4 !important;
  border-radius: 50% !important;
  color: #9db3a6 !important;
  font-size: 17px !important;
  line-height: 1 !important;
}
#phone #app #s-home.home-ocean .home-seats .home-seat-open:active { background: #eaf6ef !important; }

/* 万一以后又渲染真实头像，这里保证它铺满整圆、不露绿边 */
#phone #app #s-home.home-ocean .home-seats .home-seat .p-slot {
  width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  aspect-ratio: 1 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  font-size: 27px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
#phone #app #s-home.home-ocean .home-seats .home-seat .p-slot img,
#phone #app #s-home.home-ocean .home-seats .home-seat .p-slot > * {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
}

/* ---------------- 4. 主按钮：还原成原来的单个「开始匹配」 ----------------
   配色与禁用态交回主题层，这里只统一尺寸，不再拆出「去充值」次按钮。 */
#phone #app #s-home.home-ocean .home-body > .btn-gold {
  width: 100%;
  min-height: 54px;
  border-radius: 13px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

/* ---------------- 主视觉：新的绿色 banner + 真文字标题 ----------------
   原来标题和标语是烤进图片里的（窄屏会被裁、也没法跟着主题换色），
   现在图片只负责画面，文字用 HTML 渲染。 */
#phone #app #s-home.home-ocean .home-hero__shade {
  background: linear-gradient(
    180deg,
    rgba(6, 60, 40, 0.16) 0%,
    rgba(6, 60, 40, 0) 30%,
    rgba(4, 48, 32, 0.26) 60%,
    rgba(3, 40, 27, 0.66) 86%,
    var(--bg-0) 100%
  ) !important;
}

#phone #app #s-home.home-ocean .home-hero .home-title__main {
  font-size: clamp(30px, 10.5vw, 44px) !important;
  letter-spacing: 4px !important;
  background: linear-gradient(180deg, #ffffff 6%, #eafff3 36%, #a9e6c6 66%, #ffffff 98%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  transform: none !important;
  filter: drop-shadow(0 2px 0 rgba(4, 48, 32, 0.5)) drop-shadow(0 10px 22px rgba(3, 38, 25, 0.42)) !important;
}

#phone #app #s-home.home-ocean .home-hero .home-title__sub {
  margin-top: 4px !important;
  font-size: 12.5px !important;
  letter-spacing: 1.6px !important;
  color: #eafff3 !important;
  text-shadow: 0 2px 10px rgba(3, 38, 25, 0.7) !important;
}
#phone #app #s-home.home-ocean .home-hero .home-title__sub::before,
#phone #app #s-home.home-ocean .home-hero .home-title__sub::after {
  color: #7fe6ad !important;
  opacity: 0.9 !important;
}

/* 标语落在亮薄荷天空上，深绿字比白字清楚得多 */
#phone #app #s-home.home-ocean .home-hero__slogan {
  right: 16px !important;
  top: 16% !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: #0b5c3a !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}
#phone #app #s-home.home-ocean .home-hero__slogan :is(b, span) { display: block; }
#phone #app #s-home.home-ocean .home-hero__slogan b { font-weight: 700 !important; }
#phone #app #s-home.home-ocean .home-hero__slogan .u {
  display: inline-block;
  margin-top: 4px;
  color: #0e7a4c !important;
  border-bottom: 2px solid #35b878 !important;
}

/* ---------------- 排名奖励外框：跟页面同色 ----------------
   主题层把 .home-rewards 刷成纯白 (#ffffff)，比页面底色 (#f5f7f6) 亮一档，
   大块白底看着"白得发亮"。改成页面同色、去掉边框，
   让里面三张白卡自己当卡片（卡片本身仍是白色 + 绿边）。 */
#phone #app #s-home.home-ocean .home-rewards {
  background: var(--home-bg) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* ---------------- 5. 排名奖励：奖牌居中、文字居中的竖版卡片 ----------------
   原来是「奖牌贴左边 + 文字紧随」的横向排法：奖牌顶在最左，卡片右侧留一大片空白，
   三个卡片看起来左重右轻。改成竖版居中：奖牌在上、名次/奖金/条件依次居中。
   图标比例仍按素材 121×130 contain，不裁切。 */
#phone #app #s-home.home-ocean .bounty:not(.bounty--wide) {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 5px;
  min-height: 132px;
  padding: 10px 6px 9px !important;
}

/* 三张奖牌素材的"物体大小"不一样（银牌圆盘明显偏大），已在生成阶段按物体外接框
   统一缩放到 104×104 画布、物体高 87px，所以这里直接用同一个正方形尺寸即可。
   再写死 aspect-ratio 反而会把它们各自 letterbox 成不同大小。 */
/* 奖牌是透明底图片，**不能留 box-shadow / border-radius**：
   方框阴影会在透明图周围按方框投出一圈影，看着像"奖牌底下压了个白方块"。 */
#phone #app #s-home.home-ocean .bounty .bounty__medal {
  width: 52px !important;
  height: 52px !important;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain !important;
  object-position: center;
  align-self: center;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

#phone #app #s-home.home-ocean .bounty .bounty__meta {
  align-items: center;
  gap: 1px;
}
#phone #app #s-home.home-ocean .bounty .bounty__rank { font-size: 12px !important; line-height: 1.25; }
#phone #app #s-home.home-ocean .bounty .bounty__val { font-size: 19px !important; line-height: 1.2; }
#phone #app #s-home.home-ocean .bounty .bounty__pct { font-size: 9.5px !important; }

/* 免费体验那张是通栏卡（图标是 solo-icon），保持横排 */
#phone #app #s-home.home-ocean .bounty--wide {
  flex-direction: row;
  text-align: left;
  min-height: 66px;
  padding: 12px !important;
}
#phone #app #s-home.home-ocean .bounty--wide .bounty__medal {
  width: 36px !important;
  height: 36px !important;
  box-shadow: none;
}
#phone #app #s-home.home-ocean .bounty--wide .bounty__meta { align-items: flex-start; }

/* ---------------- 6. 首页图标：统一"物体大小" ----------------
   七个图标素材（礼盒 / 清单 / 两张单人卡 / 三张奖牌）都已在生成阶段归一：
   物体高度 = 画布 104px 的 84%，画布统一 104×104。所以这里只写同一个尺寸，
   不要再各写一套 aspect-ratio —— 那正是之前"同一排图标大小不一"的来源。 */
#phone #app #s-home.home-ocean .quick .quick__icon {
  width: 46px !important;
  height: 46px !important;
  aspect-ratio: auto;
  object-fit: contain !important;
  border-radius: 11px !important;
  flex: 0 0 auto;
}
#phone #app #s-home.home-ocean .quick {
  padding: 8px 10px !important;
  gap: 8px !important;
}
/* 免费卡片上的 3/3：字号收到 12.5px（读起来是"计数"不是标题），
   颜色直接继承标题 —— 跟「免费体验」同一个颜色。 */
#phone #app #s-home.home-ocean .quick .quick__big {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: inherit !important;
  vertical-align: 1.5px;
  margin-left: 1px;
}
#phone #app #s-home.home-ocean .quick .quick__title { font-size: 13px !important; }
#phone #app #s-home.home-ocean .quick .quick__sub { font-size: 10.5px !important; }

#phone #app #s-home.home-ocean .solo-card .solo-card__icon {
  width: 52px !important;
  height: 52px !important;
  aspect-ratio: auto;
  object-fit: contain !important;
  border-radius: 11px !important;
  flex: 0 0 auto;
}
#phone #app #s-home.home-ocean .solo-card {
  padding: 8px 10px !important;
  gap: 9px !important;
}

/* ---------------- 层次：登录条不再抢主视觉的绿 ---------------- */
#phone #app #s-home.home-ocean .wallet-bar.is-cta {
  padding: 11px 13px !important;
  border-radius: 12px !important;
  background: var(--home-surface) !important;
  border: 1px solid var(--home-line) !important;
  color: var(--home-ink) !important;
}
#phone #app #s-home.home-ocean .wallet-bar.is-cta :is(span, .ocean-icon) { color: var(--home-ink) !important; }
#phone #app #s-home.home-ocean .wallet-bar__hint { color: var(--home-brand) !important; font-weight: 700 !important; }
#phone #app #s-home.home-ocean .wallet-bar.is-on {
  padding: 11px 13px !important;
  border-radius: 12px !important;
  background: #f4fbf6 !important;
  border: 1px solid #b9e6cd !important;
  color: var(--home-ink) !important;
}

/* 余额右侧的「＋」：做成明确的充值按钮，而不是孤立的加号 */
#phone #app #s-home.home-ocean .home-topup {
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 10px !important;
  background: var(--home-brand) !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
#phone #app #s-home.home-ocean .hud-balance { gap: 5px !important; }
#phone #app #s-home.home-ocean .hud-balance__unit { margin-left: 0 !important; color: var(--home-ink-2) !important; }

/* ---------------- 底部导航：7 项挤在 390px 里，收紧一点 ---------------- */
#phone #app #s-home.home-ocean .home-bottom-nav {
  min-height: 58px !important;
  padding: 2px 4px calc(env(safe-area-inset-bottom, 0px) + 2px) !important;
}
#phone #app #s-home.home-ocean .home-nav-item {
  gap: 2px !important;
  min-height: 46px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}
#phone #app #s-home.home-ocean .home-nav-item .ocean-icon { width: 20px !important; height: 20px !important; }
