/* ============================================================
   ff（好运来）玩法模块统一样式（酒红 + 金 + 米白 + 墨褐）
   仅在 ff 前台加载；所有规则限定在 #home-remote-content 内。
   层次：
     L1 模块标题条：深酒红渐变 + 亮金文字
     L2 表头：金色渐变 + 深酒红文字
     L3 内容：米白/暖白，斑马纹淡金
     L4 命中：亮金底 + 深红字（比底色更饱和）
   原则：只改颜色/背景/描边/阴影/圆角，不改字号、行高、间距、
        宽度、高度、列宽和任何布局属性。
   ============================================================ */

/* ---------- 通用模块外框 ---------- */
#home-remote-content .open-log {
    background: #fffdf6;
    border-radius: .16rem;
    /* 用外扩阴影代替 border，避免新增边框占用内容宽度（严格零布局影响） */
    box-shadow: 0 0 0 1px rgba(168, 112, 0, .45), 0 .08rem .2rem rgba(120, 70, 0, .14);
}

#home-remote-content .open-log > .content,
#home-remote-content .open-log > .content.bg-fff {
    background: linear-gradient(180deg, #fffdf6 0%, #fff6dd 100%);
    border-radius: .12rem;
    color: #3d2b00;
}

/* ---------- L1 模块标题条：金色（与顶栏一致）+ 深酒红字 ---------- */
#home-remote-content .biaoti {
    background: linear-gradient(135deg, #ffe680 0%, #eac100 60%, #f5cf3a 100%);
    border-radius: .12rem;
    overflow: hidden;
    box-shadow: inset 0 -2px 0 #b8860b;
}

/* 标题图在 ff 中不存在，隐藏破图但保留其 1rem 占位高度 */
#home-remote-content .biaoti img {
    opacity: 0;
}

#home-remote-content .biaoti .text1 {
    color: #8a5a00;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

#home-remote-content .biaoti .text2 {
    color: #a80000;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

/* 行分隔线：保留原 2px 宽度，只换颜色 */
#home-remote-content .open-log > .shangxuxian-000 .text:not(:first-child) {
    border-top-color: rgba(168, 112, 0, .35);
}

/* ---------- 数据语义色（保留红/绿/蓝/紫的可辨识度） ---------- */
#home-remote-content .sanguo-tip {
    color: #3d2b00;
}

#home-remote-content .paiqi1 {
    color: #a80000;
}

#home-remote-content .color-red { color: #c62828; }
#home-remote-content .red { color: #c62828; }
#home-remote-content .color-de0000 { color: #c62828; }
#home-remote-content .p_baxiaoshiliuma { color: #c62828; }
#home-remote-content .color-anhong { color: #b71c1c; }

#home-remote-content .green { color: #2e7d32; }
#home-remote-content .color-00a707 { color: #2e7d32; }
#home-remote-content .color-07c160 { color: #2e7d32; }
#home-remote-content .color-lvse { color: #2e7d32; }

#home-remote-content .blue { color: #1565c0; }
#home-remote-content .color-1e90ff { color: #1565c0; }
#home-remote-content .color-lanse { color: #1565c0; }
#home-remote-content .color-0000ff { color: #1565c0; }

#home-remote-content .purple { color: #6a1b9a; }
#home-remote-content .color-zise { color: #6a1b9a; }
#home-remote-content .color-673ab7 { color: #6a1b9a; }
#home-remote-content .deeppink { color: #c2185b; }

#home-remote-content .color-000 { color: #3d2b00; }
#home-remote-content .huangse { color: #b8860b; }

/* ---------- L4 命中高亮：亮金底 + 深红字 ---------- */
#home-remote-content .bg-ffeb3b,
#home-remote-content .bg-ffeb3b.color-000,
#home-remote-content .bg-ffeb3b.color-red {
    background: #ffb300;
    color: #8a0000;
    border-radius: .06rem;
    box-shadow: inset 0 0 0 1px rgba(138, 0, 0, .18);
}

#home-remote-content .selected {
    background: #ffb300;
    color: #8a0000;
}

#home-remote-content .highlight {
    background: #ffb300;
    color: #8a0000;
    border-color: #e0a800;
    box-shadow: none;
}

/* ---------- 卡片/图例类内容块 ---------- */
#home-remote-content .waibiankuang {
    border-color: rgba(168, 112, 0, .5);
    background: #fffdf6;
    border-radius: .14rem;
}

#home-remote-content .jrtt-tit {
    color: #ffe066;
    background: linear-gradient(135deg, #7a1400 0%, #a80000 100%);
    border-radius: 0 0 .12rem 0;
}

#home-remote-content .qqsh-tip {
    border-bottom-color: rgba(168, 112, 0, .45);
}

#home-remote-content .jmxc-tip {
    color: #3d2b00;
}

/* ---------- 开奖布局优化 4004 模板（波色输尽光等） ---------- */
#home-remote-content .wanfa-ys2-optimized-4004::after {
    background: linear-gradient(180deg, #b30000 0%, #eac100 100%);
}

#home-remote-content .wanfa-ys2-optimized-4004.odd-row {
    background: linear-gradient(135deg, #fff7e0 0%, #ffeec2 100%);
    border-left-color: #b30000;
    border-bottom-color: rgba(168, 112, 0, .35);
}

#home-remote-content .wanfa-ys2-optimized-4004.even-row {
    background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
    border-left-color: #eac100;
    border-bottom-color: rgba(168, 112, 0, .35);
}

#home-remote-content .wanfa-ys2-optimized-4004 p {
    color: #3d2b00;
}

#home-remote-content .wanfa-ys2-optimized-4004 .period-text {
    color: #a80000;
    text-shadow: none;
}

#home-remote-content .wanfa-ys2-optimized-4004 .result-text {
    color: #8a5a00;
    text-shadow: none;
}

#home-remote-content .wanfa-ys2-optimized-4004 .status-text {
    color: #6b4a00;
}

#home-remote-content .wanfa-ys2-optimized-4004 .highlight {
    background: #ffb300;
    color: #8a0000;
    border-color: #e0a800;
    box-shadow: none;
}

/* ---------- L2 精选五不中表格（单双2尾等） ---------- */
#home-remote-content .jingxuan-wubuzhong {
    background: #fffdf6;
}

#home-remote-content .jingxuan-wubuzhong .item:first-child {
    background: linear-gradient(135deg, #7a1400 0%, #a80000 60%, #c40000 100%);
}

#home-remote-content .jingxuan-wubuzhong .item:first-child div {
    color: #ffe066;
}

#home-remote-content .jingxuan-wubuzhong .item div {
    border-color: rgba(168, 112, 0, .45);
}

#home-remote-content .jingxuan-wubuzhong .item:nth-child(even) {
    background: #fff2cf;
}

/* ---------- 绝杀/明细表格块 ---------- */
#home-remote-content .juesha-box {
    background: #a86f00;
}

#home-remote-content .juesha-box .item .text {
    background: #fffdf6;
    color: #3d2b00;
}

#home-remote-content .juesha-box .head .text {
    background: #a80000;
    color: #ffe066;
}

/* ---------- wdx 表格模板（白小姐三头等 9 个模块） ---------- */
#home-remote-content .wdx-table-wrap {
    border-color: rgba(168, 112, 0, .45);
    background: #fffdf6;
    box-shadow: 0 .08rem .2rem rgba(120, 70, 0, .14);
}

/* wdx 的 head 就是模块标题，沿用 L1 金色 + 深酒红字 */
#home-remote-content .wdx-table-head {
    color: #a80000;
    background: linear-gradient(135deg, #ffe680 0%, #eac100 60%, #f5cf3a 100%);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

#home-remote-content .wdx-tr {
    border-top-color: rgba(168, 112, 0, .3);
}

#home-remote-content .wdx-tr--alt {
    background: #fff2cf;
}

#home-remote-content .wdx-td {
    border-right-color: rgba(168, 112, 0, .25);
}

#home-remote-content .wdx-td-issue,
#home-remote-content .wdx-td-res {
    color: #6b4a00;
    background: #ffedb3;
}

#home-remote-content .wdx-td-data {
    color: #a80000;
}

#home-remote-content .wdx-chunk--hit {
    background: #ffb300;
    color: #8a0000;
    box-shadow: inset 0 0 0 1px rgba(138, 0, 0, .15);
}

/* ---------- 精准五行 ---------- */
#home-remote-content .wuxing_list.wuxing_金 { color: #b8860b; }
#home-remote-content .wuxing_list.wuxing_木 { color: #2e7d32; }
#home-remote-content .wuxing_list.wuxing_水 { color: #1565c0; }
#home-remote-content .wuxing_list.wuxing_火 { color: #c62828; }
#home-remote-content .wuxing_list.wuxing_土 { color: #8a5a00; }
