/* ============================================================
 * dark-band-text-fix-v1.css
 * 2026-12-05 逐页浏览器审核修正层
 *
 * 问题根因：
 *   site-design-tokens-v1.css 全局给标题/正文/链接设了
 *   -webkit-text-fill-color: var(--bhmz-brand/ink) !important（蓝色）。
 *   -webkit-text-fill-color 优先级高于 color，且 WebKit/Chrome 实际
 *   按它渲染文字，于是把深底区块原本的白色 color 又"染"回蓝色，
 *   出现"蓝底蓝字"看不清。
 *
 * 修复原理：
 *   1) 对已有完善 color 规则的元素（dining-reference-suite / 深底
 *      区块），让 -webkit-text-fill-color 跟随 color（currentColor），
 *      这样原规则里的白色/浅白/金色全部正确显示，无需重写颜色。
 *   2) 对没有白字规则的新版深底 class（.bd-*/.dm-*/.dr31-* /
 *      .suite-navigation），补 color 与 fill 一起设为白色/金色。
 *
 * 只改文字颜色，不改布局、结构、业务逻辑。年夜饭页自动排除。
 * ============================================================ */

/* ---------- 1. dining-reference-suite 页面：让 fill 跟随已有 color 规则 ----------
 * 这些页面在 dining-reference-suite.css 里已有成套的深/浅底 color 规则，
 * 只是缺少 -webkit-text-fill-color。用 currentColor 让 fill 继承 color，
 * 原有配色（白/浅白/金/深蓝）即可正确呈现。
 * 使用同等高优先级（html body.class ...）+ !important，且本文件最后加载。 */
html body.dining-reference-suite main :is(h1, h2, h3, h4, h5, h6, p, a, span, strong, b, em, small, li, button, time, figcaption, label) {
  -webkit-text-fill-color: currentColor !important;
}

/* ---------- 2. 新版深底 class 补白字（无现成规则的部分） ---------- */

/* 首屏（.bd-hero / .dm-hero）：覆盖 reference-suite 的高优先级深蓝标题 */
html body.dining-reference-suite main :is(.bd-hero, .dm-hero, .dr31-hero) h1 {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
html body.dining-reference-suite main :is(.bd-hero, .dm-hero, .dr31-hero) h2 {
  color: rgba(255, 255, 255, .92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .92) !important;
}
html body.dining-reference-suite :is(.bd-hero-desc, .dr31-copy > p, .dm-hero-copy > p) {
  color: rgba(255, 255, 255, .82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .82) !important;
}
/* 首屏眉标金色 */
html body.dining-reference-suite :is(.bd-eyebrow, .dr31-kicker, .dm-kicker) {
  color: var(--bhmz-gold, #D4A65A) !important;
  -webkit-text-fill-color: var(--bhmz-gold, #D4A65A) !important;
}
/* 首屏面包屑：浅白（当前 color 规则为 #7b8994，在深底上偏灰，统一提亮） */
html body.dining-reference-suite :is(.suite-breadcrumbs, .dr31-breadcrumbs),
html body.dining-reference-suite :is(.suite-breadcrumbs, .dr31-breadcrumbs) a {
  color: rgba(255, 255, 255, .80) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .80) !important;
}
/* 首屏按钮：主按钮金底深蓝字、次按钮白底深蓝字——保持原设计，仅确保 fill 跟随 */
html body.dining-reference-suite :is(.bd-btn-primary, .dm-btn-primary, .dr31-primary, .bd-btn-light, .dm-btn-light, .dr31-secondary) {
  -webkit-text-fill-color: currentColor !important;
}

/* ---------- 3. 深蓝底锚点导航条（nav.suite-navigation） ---------- */
html body:not(.new-year-dinner-page) .suite-navigation a {
  color: rgba(255, 255, 255, .82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .82) !important;
}
html body:not(.new-year-dinner-page) .suite-navigation a:hover,
html body:not(.new-year-dinner-page) .suite-navigation .active a,
html body:not(.new-year-dinner-page) .suite-navigation li.active a {
  color: var(--bhmz-gold, #D4A65A) !important;
  -webkit-text-fill-color: var(--bhmz-gold, #D4A65A) !important;
}

/* ---------- 4. 非 reference-suite 的深底区块（兜底） ---------- */
html body:not(.new-year-dinner-page) :is(.bd-soft, .bd-book-section, .bd-book-grid, .bd-visit, .bd-scene-grid,
  .dm-scenes-reference, .dm-scene-card, .dm-cta, .dm-flavor-card,
  .dr31-scenes, .dr31-gallery-block, .dr31-booking, .suite-order) :is(h2, h3, h4, strong, b) {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
html body:not(.new-year-dinner-page) :is(.bd-soft, .bd-book-section, .bd-book-grid, .bd-visit, .bd-scene-grid,
  .dm-scenes-reference, .dm-scene-card, .dm-cta, .dm-flavor-card,
  .dr31-scenes, .dr31-gallery-block, .dr31-booking, .suite-order) :is(p, li, small, span, em, time, figcaption, .desc, .summary, .meta) {
  color: rgba(255, 255, 255, .80) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .80) !important;
}
html body:not(.new-year-dinner-page) :is(.bd-soft, .bd-book-section, .bd-book-grid, .bd-visit, .bd-scene-grid,
  .dm-scenes-reference, .dm-scene-card, .dm-cta, .dm-flavor-card,
  .dr31-scenes, .dr31-gallery-block, .dr31-booking, .suite-order) a {
  color: rgba(255, 255, 255, .88) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .88) !important;
}

/* ---------- 5. 深底区块金色眉标（通用兜底） ---------- */
html body:not(.new-year-dinner-page) :is(.bd-heading, .dm-section-head, .dr31-subhead) :is(.eyebrow, .bd-small-label, .dm-kicker) {
  color: var(--bhmz-gold, #D4A65A) !important;
  -webkit-text-fill-color: var(--bhmz-gold, #D4A65A) !important;
}

/* ---------- 6. 首屏白字加强描边阴影 ----------
 * 12-03 定稿为"无遮罩 + 白字 + 阴影"。文案改为白色后，部分页面
 * 菜品照片的白盘子会吃掉白字，这里加强阴影，让白字在明暗底上都清楚。
 * 不恢复遮罩、不改图片、不改轮播。 */
html body.dining-reference-suite :is(.bd-hero-copy, .dm-hero-copy, .dr31-copy) :is(h1, h2, h3, p, span, strong) {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 2px 14px rgba(3, 21, 49, .75) !important;
}

/* ---------- 7. 统一内页首屏幻灯片高度 ----------
 * 修改前各页首屏高度不一（首页774 / 到店721 / 菜品720 / 包间720 /
 * 团餐620），统一为 720px，使上下留白一致。首页首屏为独立设计，保持原样。 */
html body.dining-reference-suite main :is(.bd-hero, .dm-hero, .dr31-hero) {
  min-height: 720px !important;
}
html body.boxed-meal-page :is(.bmw2-hero, .bmw2-hero-media) {
  min-height: 720px !important;
}

/* ---------- 8. 返工：恢复被第4条兜底规则误伤的图标与按钮（2026-12-05 用户反馈） ----------
 * 第4条把所有 span/strong/a 染白，导致场景图标变成白圆饼、金色按钮变成白字。
 * 这里按"底色决定字色"恢复：金底配深蓝字、蓝底配白字、图标恢复金色。
 * 只改文字颜色，不改布局、图片、按钮尺寸与业务逻辑。 */

/* 8.1 场景图标：淡金底 + 金色字/图形（不再被染白）。
 * 注意：图标本身可能就是带 class 的 span（如 <span class="dm-scene-icon">家</span>），
 * 所以必须直接选中它自身，并追加更高优先级覆盖第4条兜底规则。 */
html body.dining-reference-suite main :is(.dm-scene-icon, .dr31-scene-icon, .bd-scene-icon),
html body.dining-reference-suite main :is(.dm-scene-icon, .dr31-scene-icon, .bd-scene-icon) :is(span, i, svg, .site-icon) {
  color: #D4A65A !important;
  -webkit-text-fill-color: #D4A65A !important;
  stroke: #D4A65A !important;
}
html body.dining-reference-suite :is(#occasions, .dm-scenes-reference, .dr31-scenes) :is(.dm-scene-icon, .dr31-scene-icon, .bd-scene-icon) {
  color: #D4A65A !important;
  -webkit-text-fill-color: #D4A65A !important;
}

/* 8.2 次按钮（金底/白底）：统一深蓝字；蓝底主按钮保持白字不动 */
html body:not(.new-year-dinner-page) :is(
  .secondary-btn, .btn-outline, .home-hero-secondary, .bd-btn-light, .dm-btn-light,
  .dm-btn-outline, .dr31-secondary, .btn-gold, .daily-outline, .boxed-book-button,
  .home-activity-actions button
),
html body:not(.new-year-dinner-page) :is(
  .secondary-btn, .btn-outline, .home-hero-secondary, .bd-btn-light, .dm-btn-light,
  .dm-btn-outline, .dr31-secondary, .btn-gold, .daily-outline, .boxed-book-button,
  .home-activity-actions button
) :is(svg, i) {
  color: #0B2D5A !important;
  -webkit-text-fill-color: #0B2D5A !important;
  stroke: #0B2D5A !important;
}

/* 8.3 首屏照片：去掉纯白遮罩，让真实包间/菜品照片透出来。
 * 左侧文字区改用深蓝渐变（白字压深蓝清楚，与首页/宴会实录一致），
 * 右侧渐变到透明，照片主体完全露出。只影响遮罩层，不改图片与布局。 */
html body.dining-reference-suite :is(.dr31-hero-media, .suite-hero-media, .dm-hero-media)::after {
  background: linear-gradient(90deg,
    rgba(9,38,74,.94) 0%,
    rgba(9,38,74,.84) 24%,
    rgba(11,45,90,.55) 42%,
    rgba(11,45,90,.20) 58%,
    rgba(11,45,90,.04) 74%,
    rgba(11,45,90,0) 100%) !important;
}

/* ---------- 8.4 预约表单白底卡片：恢复原版文字色（第4条误伤） ----------
 * 预约表单位于白色卡片 .dr31-booking / .suite-order-inner 内，
 * 第4条把它当深底区块，把字段标签/补充需求/免责声明全染成白字，
 * 压在白底上几乎看不见。按 12-03 原版 dining-rooms-bluewhite-v51324.css
 * 恢复原色：字段标签 #40566d、展开标题 #29486f、+号 #1559ae、说明 #93a2b2。
 * 只改文字颜色，不改表单结构、字段、提交逻辑与尺寸。 */
html body.dining-reference-suite :is(.dr31-booking, .suite-order-inner) .booking-field > span,
html body.dining-reference-suite :is(.dr31-booking, .suite-order-inner) .booking-date-picker label > span {
  color: #40566D !important;
  -webkit-text-fill-color: #40566D !important;
}
html body.dining-reference-suite :is(.dr31-booking, .suite-order-inner) .booking-more-fields > summary,
html body.dining-reference-suite :is(.dr31-booking, .suite-order-inner) .booking-more-fields > summary span {
  color: #29486F !important;
  -webkit-text-fill-color: #29486F !important;
}
html body.dining-reference-suite :is(.dr31-booking, .suite-order-inner) .booking-more-fields > summary b {
  color: #1559AE !important;
  -webkit-text-fill-color: #1559AE !important;
  background: #DFEAFA !important;
}
html body.dining-reference-suite :is(.dr31-booking, .suite-order-inner) :is(.booking-more-fields small, .booking-disclaimer) {
  color: #93A2B2 !important;
  -webkit-text-fill-color: #93A2B2 !important;
}

/* ---------- 8.5 底部 CTA 深蓝区块（.dr31-cta / .dm-cta）：让 fill 跟随原版 color ----------
 * 原版 dining-rooms-bluewhite-v51324.css / dining-reference-suite.css 已定义
 * 该区块 h2/p 白字、首个按钮白字半透底、末个按钮深蓝字白底，但全局
 * -webkit-text-fill-color 把标题/正文/按钮文字染成深蓝，压在深蓝底上几乎看不见。
 * 这里仅让 fill 跟随已有 color（currentColor），不重写颜色、不动按钮样式与文案。 */
html body.dining-reference-suite :is(.dr31-cta, .dm-cta) :is(h1, h2, h3, p, span, a, small, strong, b, i) {
  -webkit-text-fill-color: currentColor !important;
}
html body.dining-reference-suite :is(.dr31-cta, .dm-cta) :is(h2, p) {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
html body.dining-reference-suite :is(.dr31-cta, .dm-cta) p {
  color: rgba(255, 255, 255, .82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, .82) !important;
}
html body.dining-reference-suite :is(.dr31-cta, .dm-cta) > div > a:first-child {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
html body.dining-reference-suite :is(.dr31-cta, .dm-cta) > div > a:last-child {
  color: #0D3B66 !important;
  -webkit-text-fill-color: #0D3B66 !important;
}

/* ---------- 6. 2026-12-05 修正：.dm-flavor-card 是白底卡片，误入上方深底白字兜底 ----------
   原兜底规则特异性为 (0,2,3)，此处用 (0,3,3) 更高优先级恢复原设计色值。
   仅作用于菜品页「几种味道」白底卡片的文字，不影响深底的 .dm-cta / .dm-scenes-reference。 */
html body:not(.new-year-dinner-page) .dm-flavor-card .dm-flavor-copy :is(h3, h4, strong, b) {
  color: var(--dm-deep, #07356f) !important;
  -webkit-text-fill-color: var(--dm-deep, #07356f) !important;
}
html body:not(.new-year-dinner-page) .dm-flavor-card .dm-flavor-copy :is(p, li, small, span, em, time) {
  color: #71869b !important;
  -webkit-text-fill-color: #71869b !important;
}

/* ---------- 7. 2026-12-05 修正：/dining 白底菜品卡片 .bd-dish-body 文字被刷白 ----------
   第4条深底兜底通过 :is() 命中了白底的 .bd-dish-body，把标签/h3/菜名链接/描述刷成白色。
   这里用更高特异性（html+body.class+section+class+伪类）恢复 12-03 原版色值：
   标签 #3976a8、标题与菜名 var(--bd-deep,#0b3e72)、描述 #7b8fa2。 */
html body.bhmz-dining-v111.dining-reference-suite .bd-dish-body > span {
  color: #3976a8 !important;
  -webkit-text-fill-color: #3976a8 !important;
}
html body.bhmz-dining-v111.dining-reference-suite .bd-dish-body :is(h3, h3 a, strong) {
  color: var(--bd-deep, #0b3e72) !important;
  -webkit-text-fill-color: var(--bd-deep, #0b3e72) !important;
}
html body.bhmz-dining-v111.dining-reference-suite .bd-dish-body p {
  color: #7b8fa2 !important;
  -webkit-text-fill-color: #7b8fa2 !important;
}

/* ---------- 8.6 2026-12-05 修正：/dining 到店信息区白底表单标签 + 金按钮蓝字 ----------
 * (a) 第4条把 .bd-book-section 当深底，把右侧白底表单的字段标签刷成白字看不见。
 *     8.4 段只修了包间页的 .dr31-booking/.suite-order-inner，这里补上 .bd-book-section。
 * (b) 金按钮/描边按钮原设计是白字（dining-no-shade-final.css），但 8.2 段把
 *     .bd-btn-light 的 -webkit-text-fill-color 刷成深蓝，压过 color 变成蓝字。
 *     这里让 fill 跟随 color（白），恢复原设计。只改文字，不改结构/尺寸/提交逻辑。 */
html body.dining-reference-suite .bd-book-section .booking-field > span,
html body.dining-reference-suite .bd-book-section .booking-date-picker label > span {
  color: #40566D !important;
  -webkit-text-fill-color: #40566D !important;
}
html body.dining-reference-suite .bd-book-section .booking-more-fields > summary,
html body.dining-reference-suite .bd-book-section .booking-more-fields > summary span {
  color: #29486F !important;
  -webkit-text-fill-color: #29486F !important;
}
html body.dining-reference-suite .bd-book-section .booking-more-fields > summary b {
  color: #1559AE !important;
  -webkit-text-fill-color: #1559AE !important;
}
html body.dining-reference-suite .bd-book-section :is(.booking-more-fields small, .booking-disclaimer, .booking-form-error) {
  color: #93A2B2 !important;
  -webkit-text-fill-color: #93A2B2 !important;
}
html body.dining-reference-suite .bd-visit-actions .bd-btn,
html body.dining-reference-suite .bd-visit-actions .bd-btn:hover {
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
