/* 视觉层：压在 layui 默认与壹号旧样式之上的统一皮肤。原先内联在 pages/index.html 的 #ui-polish 段，
   逐页对齐后收进这里，整份移除即回到 layui 原貌。
   两条口径：主色一律走 --main-color（五套主题联动），状态色走下面这组语义变量（不跟主题，红永远是危险）。 */

:root {
  --ok-color: #52c41a;
  --ok-bg: #f3fbf6;
  --warn-color: #faad14;
  --danger-color: #e54d42;
  --danger-bg: #fef4f3;
  /* 会员赢（盈亏为正）用蓝，与输的红配对。跟 ok/danger 一样不跟主题走 */
  --profit-color: #2f86f6;
}

/* 字体栈照 SK78：Tahoma 出西文与数字，中文落到微软雅黑 */
body { background-color: #eef1f6 !important; font-family: Tahoma, 微软雅黑, sans-serif; }

/* 顶栏跟主题走：整块 70 高 = 上面品牌条 34 + 导航条 36，两条共用一层底、中间不断色。
   棕皮是壹号原图 其余几套是照它的明暗换成本皮颜色的同一张波浪图 */
body { --hp-img: url("../img/nav-bg-default.png?x8view=yihao&x8rel=yihao-65ed65c6a32afe2d&v=20261025-share-range1"); }
/* 绿皮保持原来的渐变 不铺波浪 二级条也不接顶栏（下面 hp-tall 那几条跳过绿皮） */
body.theme-green { --hp-img: linear-gradient(180deg, #7ac665 1%, #2d5125 99%); }
body.theme-orange { --hp-img: url("../img/nav-bg.png"); }
body.theme-deepblue { --hp-img: url("../img/nav-bg-deepblue.png"); }
body.theme-dark { --hp-img: url("../img/nav-bg-dark.png"); }
body .header { background-color: var(--header-bg) !important; background-repeat: no-repeat; background-size: cover; box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  background-image: var(--hp-img) !important; background-position: center !important; }
body .header .header-box { background: transparent !important; background-image: none !important; height: 34px !important; padding: 0 22px !important; }

/* 品牌位：租户传了 Logo 就只显图，没传只显站名，替代参考件那张破图 logo */
.logo-area .logo img { display: none !important; }
/* 不垫白底：原来为了让深色 logo 在深色顶栏上看得清垫了一层白板加圆角阴影，
   但镂空图放上去就成了一个白方块。尺寸按壹号顶栏量的 28×28，横版图不压扁按比例缩 */
.brand-img { height: 28px; width: auto; max-width: 160px; object-fit: contain; background: transparent; border-radius: 0; box-shadow: none; }
.brand-name { color: #fff; font-size: 24px; font-weight: 700; letter-spacing: 0; }
/* 图和名并排 图没传时这条间距不生效(图是 display:none) */
.logo-area { gap: 5px; }
/* 站名跨品牌条与导航条两层 在整个 70 高的顶栏里上下居中 放大一号；导航按钮居中摆 左边空着碰不到 */
body .header .logo-area { position: absolute; left: 10px; top: 0; height: 70px; display: flex; align-items: center; z-index: 2; }
/* 字体与金色跟惠来顶栏站名一样；立体感靠往右下错开叠三层暗影出厚度 再罩一层柔影 */
body .header .brand-name { font-size: 38px; line-height: 1; font-weight: normal; letter-spacing: 2px; color: #e8d8a0;
  font-family: "STXingkai", "华文行楷", "STKaiti", "KaiTi", "楷体", serif;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .45), 2px 2px 0 rgba(0, 0, 0, .35), 3px 3px 0 rgba(0, 0, 0, .25), 3px 4px 6px rgba(0, 0, 0, .45); }
body .header .brand-img { height: 46px; max-width: 220px; }
/* 站名拿出品牌条以后 右边那组（换皮 在线 账号）没了左边的撑子 自己靠右 */
body .header .header-box .header-right { margin-left: auto; }
/* 顶栏底色随主题深浅不一，右侧文字要够白才在浅色主题上也读得清 */
.header-right, .header-right .dropdown-base1, .header-right .header-user, .header-right .layui-icon { color: rgba(255, 255, 255, .92) !important; }

/* 主题切换：方块 + 白边，选中的那个里面打一个白勾（跟壹号顶栏一致）。
   原来是小圆点、靠加粗白边表示选中，一排点里看不出选了哪个 */
.theme-switcher { display: flex; align-items: center; gap: 5px; }
body .theme-btn {
  position: relative; width: 16px !important; height: 16px !important;
  border-radius: 2px !important; border: 1px solid #fff !important;
  box-shadow: none !important; padding: 0 !important; transition: transform .15s;
}
body .theme-btn:hover { transform: scale(1.15); }
/* 勾用两条边拼出来，省一张图；斜过来正好是个对勾 */
body .theme-btn.selected::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.theme-btn > span { display: none !important; }

/* 一级导航照壹号：一排等宽按钮，白底深字，选中/hover 换成本套皮的深色渐变、白字加粗。
   底色与选中色都由 theme.css 按皮给（那份就是壹号的原值），这里只管尺寸——
   他们一格定宽 100 不随字数伸缩，字号 16，一条 36 高 */
/* 兜底字色：五套皮在 theme.css 里都给了白字，这条只在皮没覆盖时接着 */
.tabs .menu-item, .tabs .layui-tab-title li { color: #fff; }
body .tabs { padding: 0 !important; }
body .tabs .menu-item, body .tabs .layui-tab-title li { width: 100px !important; padding: 0 !important; margin: 0 !important; text-align: center; border-bottom: none !important; box-shadow: none !important; }
/* 导航按钮的立体感：各皮的底色渐变照旧 上面叠一层通用的光 顶上一道白高光 上半截罩淡亮光 底边和右边压暗 字带下沉阴影
   重复写一次类名是为了压过上一条的 box-shadow:none !important */
/* 棕皮底色偏灰 同样的白光叠上去发白 高光单独压一档 */
body { --nav-hl: .25; --nav-gloss: .12; --nav-gloss-end: 0; }
body.theme-orange { --nav-hl: .16; --nav-gloss: .06; --nav-gloss-end: 0; }
/* 绿皮整套保持原样 导航不叠光 */
body.theme-green .tabs .menu-item.menu-item { box-shadow: none !important; text-shadow: none; }
body.theme-green .tabs .menu-item::before { display: none; }
body .tabs .menu-item.menu-item { position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, var(--nav-hl)), inset 0 -2px 0 rgba(0, 0, 0, .28), inset -1px 0 0 rgba(0, 0, 0, .22), inset 1px 0 0 rgba(255, 255, 255, .12) !important;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .4); }
body .tabs .menu-item::before { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 48%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, var(--nav-gloss)), rgba(255, 255, 255, var(--nav-gloss-end))); }

/* 内容区与表格质感。上边距跟壹号一样只留 3px：离导航也好离二级条也好都是这一个数，
   有没有二级 tab 的页面看着是同一种间隔；页面左右缩进只由这里出，见下面视图根节点那条。 */
.main-content { background: #eef1f6; padding: 3px 20px 18px; box-sizing: border-box; }
/* 视图片段的根节点有一半自己写了 inline padding:12px，叠上这里的 20px 就比二级菜单条多缩一截，
   宽度对不齐、上间距也比卡片之间大。一律压掉，缩进只认 .main-content。 */
.main-content > div { padding: 0 !important; }
body .layui-table thead th { background: #f5f7fa !important; color: #3a4256 !important; font-weight: 600 !important; }

/* —— 业务列表页统一质感 —— */
.main-content .custom-tab-search-area { background: #fff !important; border-radius: 10px !important; padding: 13px 16px !important; box-shadow: 0 2px 8px rgba(20, 40, 80, .05); margin-bottom: 14px !important; }
/* 下面几条给还没换组件的老页面兜底，边框与圆角一律跟 .x8-ipt 同值——值不一样就是两套长相 */
.main-content .custom-tab-search-area select, .main-content .custom-tab-search-area input { height: 32px !important; border: 1px solid #dce1e6 !important; border-radius: 5px !important; box-sizing: border-box; }
.main-content .custom-tab-search-area select:focus, .main-content .custom-tab-search-area input:focus { border-color: var(--main-color) !important; }
.main-content .table-area { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(20, 40, 80, .05); padding: 6px; overflow-x: auto; }
.main-content .table-area .layui-table { margin: 0; }
.main-content .layui-table tbody tr:nth-child(even) { background: #fafbfd; }
.main-content .layui-table tbody tr:hover { background: rgba(var(--main-color-rgb), .07) !important; }
.main-content .layui-btn { border-radius: 6px; }
.layui-laypage a:hover, .layui-laypage .layui-laypage-em { color: var(--main-color); }
.layui-laypage .layui-laypage-curr .layui-laypage-em { background: var(--main-color) !important; }

/* —— 弹层统一：圆角 + 柔和阴影 + 精致标题/按钮 —— */
.layui-layer.layui-layer-page { border-radius: 12px !important; box-shadow: 0 16px 48px rgba(20, 40, 80, .20) !important; }
.layui-layer-page .layui-layer-title { background: #f7f9fc !important; color: #1f2d3d !important; font-weight: 600 !important; border-bottom: 1px solid #eef1f6 !important; border-radius: 12px 12px 0 0 !important; }
.layui-layer-page .layui-layer-btn { border-top: 1px solid #eef1f6; padding: 12px 18px 14px !important; }
.layui-layer-page .layui-layer-btn a { border-radius: 6px !important; height: 32px; line-height: 30px; padding: 0 18px; }
.layui-layer-page .layui-layer-btn .layui-layer-btn0 { background: var(--main-color) !important; border-color: var(--main-color) !important; color: #fff !important; }
.layui-layer-page .layui-layer-setwin { top: 15px; right: 15px; }

/* 弹层内表单：标签灰、输入框统一圆角、聚焦主题色 */
.layui-layer-page .layui-layer-content input:not([type=checkbox]):not([type=radio]),
.layui-layer-page .layui-layer-content select { border-radius: 5px !important; }
.layui-layer-page .layui-layer-content .layui-btn { border-radius: 6px; }

/* —— 配置/表单页统一质感（沿用列表页卡片方向，覆盖旧名 .search-area / .form-area / .tip-area）—— */
.main-content .search-area { background: #fff !important; border-radius: 10px !important; padding: 13px 16px !important; box-shadow: 0 2px 8px rgba(20, 40, 80, .05); margin: 0 0 14px !important; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.main-content .search-area > span { color: #5a6478; font-size: 14px; }
.main-content .search-area select, .main-content .search-area input { height: 32px !important; border: 1px solid #dce1e6 !important; border-radius: 5px !important; box-sizing: border-box; }
.main-content .search-area select:focus, .main-content .search-area input:focus { border-color: var(--main-color) !important; }

.main-content .form-area { background: #fff !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(20, 40, 80, .05); padding: 20px 24px !important; margin: 0 0 14px !important; }
.main-content .form-area input, .main-content .form-area select { border-radius: 5px !important; }
.main-content .form-area input:focus, .main-content .form-area select:focus { border-color: var(--main-color) !important; }
/* 表单内小节标题的竖条跟随主题色 */
.main-content .form-area > div[style*="border-left"] { border-left-color: var(--main-color) !important; }

.main-content .tip-area { background: rgba(var(--main-color-rgb), .07) !important; border-radius: 8px !important; padding: 10px 14px !important; margin: 0 0 14px !important; color: #5a6478 !important; font-size: 13px !important; border-left: 3px solid var(--main-color); }

/* 配置页表格容器：去掉旧 inline 外边距，与搜索栏对齐 */
.main-content .table-area { margin: 0 !important; }

/* —— 即时操盘：注单流/敞口卡片化 —— */
.main-content .immediatelyBill .search-area { margin: 0 0 14px !important; }
/* 搜索栏外层已是白卡片，去掉页面内联再套的灰底 */
.main-content .immediatelyBill .search-area > div { background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
/* 注单流 / 当期货量 / 敞口：白卡片容器 */
.main-content .immediatelyBill .feed-area > div,
.main-content .immediatelyBill .right-area > div { background: #fff !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(20, 40, 80, .05); padding: 14px 16px !important; }
.main-content .immediatelyBill .right-area > div + div { margin-top: 14px !important; }
.main-content .immediatelyBill .feed-area .layui-table,
.main-content .immediatelyBill .right-area .layui-table { margin: 10px 0 0 !important; }

/* —— 看板/统计条：主题色浅底（即时操盘当期货量、补货上抛、注单统计）。限定页面，避开 home 自带的 stat-grid —— */
.main-content .immediatelyBill .board-area,
.main-content .repAccount .board-area,
.main-content .billsSearch .stat-area { margin: 0 0 14px !important; }
.main-content .immediatelyBill .board-area > div,
.main-content .repAccount .board-area > div,
.main-content .billsSearch .stat-area > div { background: rgba(var(--main-color-rgb), .07) !important; border-radius: 12px !important; padding: 14px 18px !important; font-size: 14px; }
.main-content .immediatelyBill .board-area > div b,
.main-content .repAccount .board-area > div b,
.main-content .billsSearch .stat-area > div b { color: var(--main-color); }

/* —— 说明页（自动补货/数据备份）卡片化 —— */
.main-content .info { background: #fff !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(20, 40, 80, .05); padding: 22px 26px !important; margin: 0 !important; }
.main-content .info h3 { color: var(--main-color) !important; }

/* —— 报表：概览卡片主题化 + 下钻表格卡片化 —— */
.main-content .overview-area, .main-content .crumb-area { margin: 0 0 14px !important; }
.main-content .overview-area > div > div { background: rgba(var(--main-color-rgb), .07) !important; border-radius: 12px !important; }
.main-content .agents-area, .main-content .category-area { background: #fff !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(20, 40, 80, .05); padding: 14px 16px !important; margin: 0 0 14px !important; }

/* 工具栏（发公告/保存全部等单按钮条）外边距对齐其他块 */
.main-content .bar-area { margin: 0 0 14px !important; }

/* —— 二级菜单：白色卡片条 + 圆角 pill 选中，呼应一级 tab —— */
/* 无二级菜单时不占位：藏掉空的 .custom-tab 外框没有上下内边距 高度自然归零 不用 :has 老内核不认 */
.custom-tab-box > .custom-tab:empty { display: none; }
/* 导航下面那条深色通栏跟壹号一个样子 颜色随主题走：二级菜单条与即时注单彩种条共用这一组 */
body { --bar-bg: #351c0c; --bar-fg: #d8bb99; --bar-on: #f1a700; --bar-sep: #583b20; --bar-line: #dbbc9d;
  --bar-btn: linear-gradient(180deg, #d88700, #593200); }
body.theme-default { --bar-bg: #6e140a; --bar-fg: #f3c9c2; --bar-on: #ffd24a; --bar-sep: #8f2a1e; --bar-line: #f0b8b0;
  --bar-btn: linear-gradient(180deg, #ff6a52, #c4301d); }
body.theme-green { --bar-bg: #223f18; --bar-fg: #c3d9b8; --bar-on: #f5c542; --bar-sep: #3d5f31; --bar-line: #b7d1ac;
  --bar-btn: linear-gradient(180deg, #7ac665, #2d5125); }
body.theme-deepblue { --bar-bg: #0d2c52; --bar-fg: #a6c0dd; --bar-on: #ffc94a; --bar-sep: #24507f; --bar-line: #9db6d3;
  --bar-btn: linear-gradient(180deg, #1963b7, #023f77); }
body.theme-dark { --bar-bg: #3a3f4d; --bar-fg: #cfd5e3; --bar-on: #ffd76a; --bar-sep: #555c6e; --bar-line: #c3c9d6;
  --bar-btn: linear-gradient(180deg, #7d92bd, #4b5670); }

/* 二级菜单：紧贴导航的一整条深色 选中项是主题渐变块 其余浅字 项与项之间一道细竖线。
   带 !important 是要压过 common.css 与 theme.css 里老的实心块和下划线那几套 */
.custom-tab-box { background: var(--bar-bg); margin: 0; padding: 0 3px; border-bottom: none; }

/* 导航下面贴着二级菜单或彩种条时 顶栏那张底一直铺到这条下边 拼成一整张 纹路接着往下走 不再是平的一道深色。
   底图按顶栏加 45 的固定总高铺 有没有这条顶栏纹路都一样；尺寸 --hp-bs 偏移 --hp-x --hp-y 由 header-join.js 按宽度算好 挂 hp-tall */
body.hp-tall:not(.theme-green) .header { background-size: var(--hp-bs) !important; background-position: var(--hp-x) var(--hp-y) !important; }
body.hp-tall:not(.theme-green) .custom-tab-box, body.hp-tall:not(.theme-green) .immediatelyBill > .cz-area:not(:empty),
body.hp-tall:not(.theme-green) .companyList > .tab-area:not(:empty) { position: relative; isolation: isolate; }
body.hp-tall:not(.theme-green) .custom-tab-box::before, body.hp-tall:not(.theme-green) .immediatelyBill > .cz-area:not(:empty)::before,
body.hp-tall:not(.theme-green) .companyList > .tab-area:not(:empty)::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  background-color: var(--header-bg); background-image: var(--hp-img); background-repeat: no-repeat;
  background-size: var(--hp-bs); background-position: var(--hp-x) calc(var(--hp-y) - 70px);
}
.custom-tab-box > .custom-tab { overflow: visible; height: 32px; align-items: flex-end; }
body .custom-tab-title { position: relative; min-width: 94px; height: 31px; line-height: 31px; padding: 0 12px !important;
  box-sizing: border-box; text-align: center; margin: 0; border: none !important; border-radius: 0;
  font-size: 14px; color: var(--bar-fg) !important; background: transparent !important; }
body .custom-tab-title + .custom-tab-title::before { content: ''; position: absolute; left: 0; top: 9px; width: 1px; height: 13px; background: var(--bar-sep); }
body .custom-tab-title.selected::before, body .custom-tab-title.selected + .custom-tab-title::before { display: none; }
body .custom-tab-title:hover { color: #fff !important; background: transparent !important; }
body .custom-tab-title.selected { color: #fff !important; font-weight: 700; background-image: var(--bar-btn) !important; }

/* 用户管理那排层级 tab 是页面自己画的 长相跟二级菜单同一条：贯穿的深色通栏 离下面内容 3px */
/* 上边距 -3px 抵掉 .main-content 的 3px 贴着导航 不靠 :has 清内边距 老内核不认 :has 会露出一道底色缝 */
.companyList > .tab-area:not(:empty) { margin: -3px -20px 3px; padding: 0 3px; background: var(--bar-bg); }
.companyList .x8-utabs { height: 32px; align-items: flex-end; flex-wrap: nowrap; gap: 0; margin: 0; border-bottom: none; }
.companyList .x8-utabs .x8-tab { position: relative; min-width: 94px; height: 31px; line-height: 31px; padding: 0 12px;
  box-sizing: border-box; text-align: center; margin: 0; border: none; font-size: 14px; color: var(--bar-fg); background: transparent; }
.companyList .x8-utabs .x8-tab + .x8-tab::before { content: ''; position: absolute; left: 0; top: 9px; width: 1px; height: 13px; background: var(--bar-sep); }
.companyList .x8-utabs .x8-tab.on::before, .companyList .x8-utabs .x8-tab.on + .x8-tab::before { display: none; }
.companyList .x8-utabs .x8-tab:hover { color: #fff; }
.companyList .x8-utabs .x8-tab.on { color: #fff; font-weight: 700; background-image: var(--bar-btn); }

/* —— 弹层内部：信息块主题浅底、输入聚焦主题色、表格/文本域圆角 —— */
.layui-layer-page .layui-layer-content [style*="f7f8fa"] { background: rgba(var(--main-color-rgb), .06) !important; }
.layui-layer-page .layui-layer-content textarea { border-radius: 6px !important; }
.layui-layer-page .layui-layer-content input:focus,
.layui-layer-page .layui-layer-content select:focus,
.layui-layer-page .layui-layer-content textarea:focus { border-color: var(--main-color) !important; }
/* 弹层里的表：layui 的表是 border-collapse: collapse 的 圆角切不出来 四个角还是方的
   改成 separate 再把竖线收掉 只留横向浅分隔 跟外面列表一个观感 */
.layui-layer-page .layui-layer-content .layui-table {
  border-collapse: separate; border-spacing: 0; border: 1px solid #eef1f5;
  border-radius: 8px; overflow: hidden;
}
.layui-layer-page .layui-layer-content .layui-table th,
.layui-layer-page .layui-layer-content .layui-table td { border: 0 !important; border-bottom: 1px solid #eef1f5 !important; }
.layui-layer-page .layui-layer-content .layui-table thead th { border-bottom-width: 2px !important; }
.layui-layer-page .layui-layer-content .layui-table tbody tr:last-child td { border-bottom: 0 !important; }

/* —— 表格操作列：跟随主题色 + 操作项间距/hover（原 .fixedColor 是写死深蓝）—— */
.main-content .layui-table td.fixedColor { color: var(--main-color); }
.main-content .layui-table td [data-action] { color: var(--main-color); cursor: pointer; transition: opacity .15s; }
.main-content .layui-table td [data-action]:hover { opacity: .66; }

/* —— 表格现代化：弱化网格（去竖线、留横向浅分隔）、加行高，替代 layui 默认的全边框老气感 —— */
.main-content .layui-table,
.main-content .layui-table tr,
.main-content .layui-table th,
.main-content .layui-table td { border-color: #eef1f5 !important; }
.main-content .layui-table th,
.main-content .layui-table td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; }
.main-content .layui-table td { padding-top: 7px !important; padding-bottom: 7px !important; }
.main-content .layui-table thead th { border-bottom-width: 2px !important; }
.main-content .layui-table tbody tr:last-child td { border-bottom: 0 !important; }
/* 自定义分页：控件圆角、跟随主题、间距舒展 */
.main-content .user-table-pagination { margin-top: 4px; }
.main-content .user-table-pagination select { border-radius: 6px !important; border-color: #dfe3ea !important; height: 32px !important; }
.main-content .user-table-pagination .page-btn { border-radius: 6px !important; }

/* —— 版面收紧：按壹号量出来的高度对齐 ——
   原先顶栏 56 / 二级导航 41 / 彩种条 50 / 玩法条 42 / 信息条 62，条与条之间还各留 8px，
   表体要到 302px 才开始，壹号是 181px。差出来的一百多像素全是空的，一屏少看好几行。 */
body .header { position: sticky; top: 0; z-index: 900; }
body .header .header-box { height: 34px !important; }
body .theme-btn { width: 16px !important; height: 16px !important; }

body .tabs { position: sticky; top: 34px; z-index: 890; }
body .tabs .menu-item, body .tabs .layui-tab-title li { font-size: 16px !important; line-height: 36px !important; height: 36px !important; }
body .tabs .layui-tab-title { height: 36px !important; }
/* 退出接在一级菜单后面 外观跟菜单项同一套皮 */
body .tabs .tab-act { display: inline-block; flex: none; cursor: pointer; user-select: none; }

/* 即时注单有彩种条时那条自己贴着导航 不留缝；只有一个彩种不出彩种条时 盘面照全站离导航 3px。
   彩种条与用户管理那排层级 tab 都靠自己的 -3px 上边距抵掉 .main-content 的 3px 不用 :has 清内边距 老内核不认 :has */
.immediatelyBill > .bd-panel { margin-top: 0; }
/* 彩种条：导航下面一整条主题深色 名称一行笔数一行 选中只换字色 项与项之间一道细竖线。
   main-content 左右各留了 20px 这一条要贯穿 所以两边拉回去 */
.immediatelyBill > .cz-area:not(:empty) { margin: -3px -20px 0; background: var(--bar-bg); }
.immediatelyBill .x8-bd-czs { display: flex; gap: 0 !important; padding: 0 3px !important; }
.immediatelyBill .x8-bd-cz { position: relative; width: 100px; height: 45px; padding: 0; border: none;
  display: flex; flex-direction: column; justify-content: center; line-height: 19px; }
.immediatelyBill .x8-bd-cz::after { content: ''; position: absolute; right: 0; top: 9px; width: 1px; height: 27px; background: var(--bar-sep); }
.immediatelyBill .x8-bd-cz .nm, .immediatelyBill .x8-bd-cz em { font-size: 14px; font-weight: 500; color: var(--bar-fg); }
.immediatelyBill .x8-bd-cz.on .nm, .immediatelyBill .x8-bd-cz.on em { color: var(--bar-on); }
.immediatelyBill > .cz-area:not(:empty) + .bd-panel { margin-top: 3px; }

/* 玩法条 + 操盘条 + 表体是一整块，中间只用分割线断开，不再三块各自浮着 */
/* 盘面所有模块共用一条边框色：中性灰 不跟皮走 一处定义处处引用 */
.bd-panel { --bd-line: #dcdcdc; background: #fff; border: 1px solid #e2e7ee; border-radius: 0; margin: 6px 0 0; overflow: hidden; }
.bd-panel > .play-area:not(:empty), .bd-panel > .sub-area:not(:empty) { border-bottom: 1px solid #eef1f5; padding: 6px 10px; }
.bd-panel > .bd-bar { border-bottom: 1px solid #eef1f5; margin: 0 !important; }
.bd-panel > .bd-main { padding: 8px 10px 10px; margin: 0 !important; }
.bd-panel .x8-bd-bar { padding: 5px 10px !important; }
/* 表体已经在这块里了，卡片自己那圈边框和阴影就是重复的 */
.bd-panel .x8-bd-card { border: none; box-shadow: none; margin-bottom: 8px; }
.bd-panel .x8-tb-wrap { border: 1px solid var(--bd-line); box-shadow: none; }
/* 右侧排行榜 组合排行的表：各列有竖线 跟盘面一套边框。
   标题条下面那张表原先顶边被去掉了 看着缺一条 这里补回来（没标题条的组合表由 tb-wrap 自己那圈框收顶边） */
.bd-panel .x8-bd-card .x8-card-hd + .x8-card-bd .x8-tb th { border-top: 1px solid var(--bd-line); }
.bd-panel .x8-bd-aside .x8-tb th, .bd-panel .x8-bd-aside .x8-tb td { border-right: 1px solid var(--bd-line); }
.bd-panel .x8-bd-aside .x8-tb th:last-child, .bd-panel .x8-bd-aside .x8-tb td:last-child { border-right: none; }

/* 玩法 tab 按壹号那样做成方块按钮：一排带边框有间距，不带笔数 */
.bd-panel .x8-tabs { border-bottom: none; gap: 6px; margin: 0; }
.bd-panel .x8-tabs .x8-tab { padding: 4px 14px; font-size: 13px; border: 1px solid var(--bd-line); border-radius: 3px;
  background: #f7f9fc; color: #4a5568; margin-bottom: 0; }
.bd-panel .x8-tabs .x8-tab:hover { border-color: var(--main-color); color: var(--main-color); }
.bd-panel .x8-tabs .x8-tab.on { background: var(--main-color); border-color: var(--main-color); color: #fff; font-weight: 400; }

/* 最大正值/最大负值：居中一行，数字跟着盈亏的红绿走 */
.x8-bd-extremes { display: flex; justify-content: center; gap: 40px; padding: 8px 12px; font-size: 13px; color: #666; }
.x8-bd-ex-i { display: inline-flex; align-items: center; gap: 2px; }
.bd-panel .x8-bd-note { text-align: center; }

/* 赔率那列原先没给宽，剩下的宽度全摊给它，一格里就一个数字飘在中间。
   按内容收紧，多出来的宽度还给注额与盈亏 */
.bd-panel .x8-bd-smodds-h { width: 168px; }
.bd-panel .x8-bd-tbwrap .x8-bd-oddsbox { justify-content: center; }


/* 封盘倒计时用红字：这是盯盘时最先要看的一个数 */
.x8-bd-cd { color: #6b7683; }
.x8-bd-cd .x8-bd-cd-lbl { font-style: normal; }
.x8-bd-cd .x8-bd-cd-close { color: var(--danger-color, #e54d42); font-weight: 700; }
/* 未开盘与已封盘：不在受注 整格压成灰底小标签 跟受注中那档一眼分得开 */
.x8-bd-cd.x8-bd-cd-off { background: #eef1f5; color: #8a95a1; border-radius: 2px; padding: 1px 6px; }

/* —— 盘面表格分块 —— 壹号量出来：组与组之间一条竖线，每格都有格线（走 --bd-line 那条主色浅边），
   表头 31 高、底色随主色浅调，格子高 27。原先线太浅，三组连成一片分不出块。 */
/* 三组之间留缝，各自成块。原先紧贴着，只能靠序号从 1 又跳回 1 才认出换组了 */
/* 每块只按自己的内容高：栅格默认拉成等高，行少的那一组表格结束后还空一截，
   下边框飘在离末行三十几像素的地方，看着就是「末行没线」 */
/* 宫格、档并排、档位条：跟总汇那几组用同一档格线，外面一圈框把整块收住。
   档位条与盘面接成一个盒子，中间不留缝——留缝就成了上下摞的两块 */
.bd-panel .x8-bd-grid, .bd-panel .x8-bd-secrow, .bd-panel .x8-bd-tiers { border-color: var(--bd-line); }
/* 档位条挂在盘面块里 只跟盘面一样宽 不会盖到右边组合排行上。
   跟下面盘面留一道缝 各是各的块 不接成一整条 */
.bd-panel .x8-bd-subhost:not(:empty) { margin-bottom: 4px; }
.bd-panel .x8-bd-gcol .x8-tb th, .bd-panel .x8-bd-gcol .x8-tb td,
.bd-panel .x8-bd-seccol .x8-tb th, .bd-panel .x8-bd-seccol .x8-tb td { border-right-color: var(--bd-line); border-bottom-color: var(--bd-line); }
.bd-panel .x8-bd-gcol + .x8-bd-gcol, .bd-panel .x8-bd-seccol + .x8-bd-seccol { border-left-color: var(--bd-line); }
/* 盘面表头的基础底色（不支持 color-mix 时的回退）：一条宽规则托底 主色浅底在 @supports 里覆盖。
   别在更细的选择器上再写一遍底色 那样特异度更高 会把主色覆盖顶掉 表头就又变回这层灰 */
.bd-panel .x8-tb th, .bd-panel .x8-bd-sechd, .bd-panel .x8-bd-card .x8-card-hd { background: #eef0f8; }
.bd-panel .x8-tb th, .bd-panel .x8-bd-sechd { color: #4a5568; }
/* 项目那一列垫一层主色的浅底：一屏几百格数字，靠这条竖着的浅色带把「哪一项」跟数值分开。
   用 color-mix 从主色现调，五套主题各自跟着走，不写死颜色；不支持时退回那层中性灰 */
.bd-panel .x8-bd-gcol .x8-tb td.x8-bd-td-item,
.bd-panel .x8-bd-seccol .x8-tb td.x8-bd-td-item,
.bd-panel .x8-bd-smcol .x8-tb td.x8-bd-td-item,
.bd-panel .x8-bd-rank .x8-tb td.x8-bd-td-item,
.bd-panel .x8-bd-seq { background: #f4f6fb; }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .bd-panel .x8-bd-gcol .x8-tb td.x8-bd-td-item,
  .bd-panel .x8-bd-seccol .x8-tb td.x8-bd-td-item,
  .bd-panel .x8-bd-smcol .x8-tb td.x8-bd-td-item,
  .bd-panel .x8-bd-rank .x8-tb td.x8-bd-td-item,
  .bd-panel .x8-bd-seq,
  /* 盘面所有表头（序号 项目 赔率 排行榜 组合那些）都跟项目列同一层主色浅底 五套主题各自跟着走 */
  .bd-panel .x8-tb th,
  .bd-panel .x8-bd-sechd,
  .bd-panel .x8-bd-card .x8-card-hd,
  /* 顶部玩法 tab 未选中的也跟主色浅底 选中的仍是主色实底 */
  .bd-panel .x8-tabs .x8-tab:not(.on) { background: color-mix(in srgb, var(--main-color) 10%, #fff); }
}
/* 末行那条下边线要留着：五列里最后一列往往少一两行（49 个号码切五列，末列只有九行），
   把它去掉的话那一列的最后一格（40、49 那种）看着就是缺一条边。
   分档并排（seccol）每列自己一圈框贴着内容 用不着再补末行线 补了就跟外框叠成两条 */
.bd-panel .x8-bd-gcol .x8-tb tbody tr:last-child td { border-bottom: 1px solid var(--bd-line); }

.bd-panel .x8-bd-smgrid { gap: 8px; align-items: start; }
.bd-panel .x8-bd-smcol { border: 1px solid var(--bd-line); border-radius: 3px; overflow: hidden; }
.bd-panel .x8-bd-smcol .x8-tb th,
.bd-panel .x8-bd-smcol .x8-tb td { border-right: 1px solid var(--bd-line) !important; border-bottom: 1px solid var(--bd-line) !important; padding: 4px 8px !important; }
.bd-panel .x8-bd-smcol .x8-tb th:last-child,
.bd-panel .x8-bd-smcol .x8-tb td:last-child { border-right: none !important; }
.bd-panel .x8-bd-smcol .x8-tb tbody tr:last-child td { border-bottom: none !important; }
.bd-panel .x8-bd-smcol .x8-tb th { color: #4a5568; padding: 6px 8px !important; }
/* 列宽照壹号：序号 52 号码 62 赔率 169 注额与盈亏各 145 */
.bd-panel .x8-bd-smcol .x8-bd-seq { width: 52px; }
.bd-panel .x8-bd-smcol .x8-bd-td-item { width: 62px; }
.bd-panel .x8-bd-smcol .x8-bd-smodds-h { width: 169px; }
/* 表体那几张长表同样加深格线 不然一样糊 */
.bd-panel .x8-bd-tbwrap .x8-tb th,
.bd-panel .x8-bd-tbwrap .x8-tb td { border-right: 1px solid var(--bd-line); border-bottom: 1px solid var(--bd-line); }
.bd-panel .x8-bd-tbwrap .x8-tb th:last-child,
.bd-panel .x8-bd-tbwrap .x8-tb td:last-child { border-right: none; }
.bd-panel .x8-bd-tbwrap { border-color: var(--bd-line); }
/* 一个玩法一张卡时卡片标题也要看得出是块的开头。底色不在这写（会盖掉上面 @supports 里的主色浅底），
   走前面那条基础规则 + @supports 主色覆盖 */
.bd-panel .x8-bd-card .x8-card-hd { border: 1px solid var(--bd-line); border-bottom: none; text-align: left; padding: 6px 12px; }

/* 标题条与表格接成一个盒子。原先各自一圈边框加圆角，卡片体还有内边距，
   标题条比表格左右各宽 14px，看着就是被截断的两截。 */
.bd-panel .x8-bd-card .x8-card-bd { padding: 0 !important; }
/* 盘面右侧那几张表的圆角跟注单处理面板一个值（4px）——原先 8px 幅度太大 两块对不上 */
.bd-panel .x8-bd-tbwrap { border-radius: 4px; }
.bd-panel .x8-bd-card .x8-card-hd { border-radius: 4px 4px 0 0; border-bottom: none; }
.bd-panel .x8-bd-card .x8-card-hd + .x8-card-bd .x8-tb-wrap { border-radius: 0 0 4px 4px; border-top: none; }
/* 末行的下边线不能省：块底那条是外框的，行少的那一组会看着缺一条 */
.bd-panel .x8-bd-smcol .x8-tb tbody tr:last-child td { border-bottom: 1px solid var(--bd-line) !important; }
.bd-panel .x8-bd-smcol .x8-tb { border-bottom: none; }

/* 注单处理：外框加 overflow:hidden 会把标题条往里挤 1px，看着就比下面窄一点。
   边框改挂在列表那半边，标题条齐着面板边走 */
.bdside-area .x8-bd-side { border: none !important; border-radius: 4px; }
.bdside-area .x8-bd-sd-bd { border: 1px solid var(--bd-line); border-top: none; border-radius: 0 0 4px 4px; }

/* 切换等接口那半秒：旧盘面原样留着，只挡住点击，不压暗也不转圈。
   压暗那一下明暗跳变加上随后的整块换 DOM，看着就是「页面刷新了一次」——
   而切玩法数据几百毫秒就回来，本来就不需要过场动画。 */
.bd-panel .bd-main { position: relative; }
.bd-panel .bd-main.x8-bd-busy > * { pointer-events: none; }

/* —— 赔率格：加减号与变动动画，按壹号实测的值 ——
   他们那边数字 13px 粗体蓝，加减号 16x16、能点时深色 #111626、到头变灰 #c0c4cc；
   变动时四条 2px 的线沿格子描一圈，1 秒，涨红跌绿(#12d664)。 */
.bd-panel .x8-bd-oddsbox { position: relative; padding: 2px 0; }
.bd-panel .x8-bd-odds { font-weight: 700; }
/* 加减号：无边框无底 就一个图标。加号红 减号深蓝 禁用变浅灰。
   用 CSS 画横竖条 不用字符：+ 和 − 在字体里的垂直重心不一样 怎么对齐都是一个偏上一个偏下。

   自己反向缩一次（--x8-unzoom 是 1/页面缩放系数 由缩放层写在 body 上 没有缩放层时是 1）：
   页面整体缩放时 2px 的条会变成 1.79px 这种分数 浏览器按设备像素取整
   同样的条摆在不同位置上取整方向不一样 一屏里就出现有的粗有的细。
   反向缩回 1:1 之后条又是整数像素 所有加减号一样粗。整个按钮的物理大小也就恒定不变。 */
.bd-panel .x8-bd-step { position: relative; width: 16px; height: 16px; padding: 0; background: none;
  font-size: 0; border-radius: 0; border: none; flex: none; cursor: pointer;
  zoom: var(--x8-unzoom, 1); }
.bd-panel .x8-bd-step[data-bd$="odds-up"] { color: #e54d42; }
.bd-panel .x8-bd-step[data-bd$="odds-down"] { color: #1e50a0; }
.bd-panel .x8-bd-step::before, .bd-panel .x8-bd-step::after { content: ""; position: absolute;
  left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.bd-panel .x8-bd-step::before { width: 9px; height: 2px; }
.bd-panel .x8-bd-step[data-bd$="odds-up"]::after { width: 2px; height: 9px; }
/* 已经到标准赔率上限 或落库中禁用：变浅灰 不再响应 */
.bd-panel .x8-bd-step-off,
.bd-panel .x8-bd-step-off:hover,
.bd-panel .x8-bd-step[disabled] { color: #cdd2da !important; cursor: not-allowed; }

/* 点赔率弹的小冒泡：贴着格子 深色标题条 + 号码 + 新赔率输入 + 最大赔率 + 确定取消 照壹号 */
.x8-odpop { position: absolute; z-index: 9999; width: 200px; background: #fff; border: 1px solid var(--main-color);
  border-radius: 4px; box-shadow: 0 6px 20px rgba(20, 40, 80, .22); font-size: 13px; }
/* 小三角指向被点的那格：默认在冒泡顶上朝上 接着绿色标题条 翻到格子上方时朝下。实心主题色 跟着主题走 */
.x8-odpop-arw { position: absolute; width: 0; height: 0; border: 7px solid transparent; }
.x8-odpop-arw { top: -7px; margin-left: -7px; border-top-width: 0; border-bottom-color: var(--main-color); }
.x8-odpop.x8-odpop-up .x8-odpop-arw { top: auto; bottom: -7px; border-top-width: 7px; border-top-color: var(--main-color); border-bottom-width: 0; }
/* 去掉 number 那种上下增减箭头（本来就是 text 了 这条给老浏览器兜底） */
.x8-odpop-in::-webkit-outer-spin-button, .x8-odpop-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.x8-odpop-hd { background: var(--main-color); color: #fff; font-weight: 600; text-align: center; padding: 6px 10px; border-radius: 3px 3px 0 0; }
.x8-odpop-bd { padding: 10px 12px; }
.x8-odpop-nm { text-align: center; font-weight: 700; color: #1f2d3d; margin-bottom: 8px; }
.x8-odpop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #6b7683; }
.x8-odpop-row b { color: #1f2d3d; }
.x8-odpop-in { flex: 1; width: 0; height: 30px; border: 1px solid #dce1e6; border-radius: 4px; padding: 0 8px; text-align: center; font-size: 14px; font-weight: 700; color: var(--main-color); outline: none; }
.x8-odpop-in:focus { border-color: var(--main-color); box-shadow: 0 0 0 2px rgba(var(--main-color-rgb), .12); }
.x8-odpop-ops { display: flex; gap: 8px; margin-top: 4px; }
.x8-odpop-ops button { flex: 1; height: 30px; border-radius: 4px; cursor: pointer; font-size: 13px; border: 1px solid #dce1e6; background: #fff; color: #5a6478; }
.x8-odpop-ok { background: var(--main-color) !important; border-color: var(--main-color) !important; color: #fff !important; }
.x8-odpop-ok:hover { filter: brightness(1.06); }
.x8-odpop-no:hover { border-color: var(--main-color); color: var(--main-color); }

.x8-bd-tuo { font-style: normal; color: #1e7ff0; margin: 0 4px; }
/* 注额盈亏位数一多 数字不会断行就把格子撑宽 整张表顶出盘面；放不下时在格子里折行 表宽只跟着盘面走 */
.bd-panel .x8-bd-num, .bd-panel .x8-bd-tiern, .bd-panel .x8-bd-cbprofit,
.bd-panel .x8-bd-amt { overflow-wrap: anywhere; }
/* 点盈亏弹的手动补货 照 SK78 那个小弹层 跟调赔冒泡同一副外观 行多一些 标签在左值在右 */
.x8-rppop { width: 240px; }
.x8-rppop .x8-odpop-row { justify-content: flex-start; margin-bottom: 6px; }
.x8-rppop .x8-odpop-row > span { flex: 0 0 60px; text-align: right; }
.x8-rppop .x8-odpop-row > b { flex: 1; min-width: 0; font-weight: 400; word-break: break-all; }
.x8-rppop .x8-odpop-in { height: 28px; text-align: left; font-size: 13px; font-weight: 400; color: #1f2d3d; }
.x8-rppop select.x8-odpop-in { padding: 0 4px; background: #fff; }
.x8-rppop .x8-rp-max { color: var(--main-color); cursor: pointer; text-decoration: underline; }
.x8-rppop .x8-odpop-ok[disabled] { opacity: .5; cursor: not-allowed; }
.x8-rppop .x8-rp-msg { color: #e54d42; font-size: 12px; margin: -2px 0 6px 68px; }
/* 补出之后盖一层 复式整张补组多了要十几秒 不盖的话人看不出在跑 还会接着改金额再点 */
.x8-rppop .x8-rp-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; background: rgba(255, 255, 255, .86); border-radius: 4px; color: var(--main-color); font-size: 13px; }
.x8-rppop .x8-rp-loading .layui-icon { font-size: 26px; }

.x8-bd-tr { position: absolute; background: #e54d42; z-index: 9; opacity: 0; }
.x8-bd-tr.t { left: 0; top: 0; height: 2px; width: 0; }
.x8-bd-tr.b { right: 0; bottom: 0; height: 2px; width: 0; }
.x8-bd-tr.l { left: 0; top: 0; width: 2px; height: 0; }
.x8-bd-tr.r { right: 0; bottom: 0; width: 2px; height: 0; }
.x8-bd-oddsbox.x8-bd-down-anim .x8-bd-tr { background: #12d664; }
.x8-bd-oddsbox.x8-bd-anim .x8-bd-tr { opacity: 1; }
.x8-bd-oddsbox.x8-bd-anim .x8-bd-tr.t, .x8-bd-oddsbox.x8-bd-anim .x8-bd-tr.b { animation: x8-tr-w 1s ease; }
.x8-bd-oddsbox.x8-bd-anim .x8-bd-tr.l, .x8-bd-oddsbox.x8-bd-anim .x8-bd-tr.r { animation: x8-tr-h 1s ease; }
@keyframes x8-tr-w { 0% { width: 0; } 50% { width: 100%; } 100% { width: 100%; opacity: 0; } }
@keyframes x8-tr-h { 0% { height: 0; } 50% { height: 100%; } 100% { height: 100%; opacity: 0; } }

/* 波色项按自己的颜色写：一列全是黑字时红波蓝波绿波要读文字才分得清 */
/* 波色三色：横带的项名与排行榜的号码共用这一套，排行榜的号码不画球全靠颜色认波 */
.x8-bd-label.x8-c-red, .x8-bd-rknum.x8-c-red { color: #d0271a; font-weight: 600; }
.x8-bd-label.x8-c-blue, .x8-bd-rknum.x8-c-blue { color: #1565c0; font-weight: 600; }
.x8-bd-label.x8-c-green, .x8-bd-rknum.x8-c-green { color: #2e7d32; font-weight: 600; }

/* 最大正值恒绿 最大负值恒红，0 也照这个色——它标的是方向不是当前值 */
.x8-bd-ex-i.up .x8-bd-flat, .x8-bd-ex-i.up .x8-bd-up, .x8-bd-ex-i.up .x8-bd-down { color: #2e7d32 !important; }
.x8-bd-ex-i.down .x8-bd-flat, .x8-bd-ex-i.down .x8-bd-up, .x8-bd-ex-i.down .x8-bd-down { color: #d0271a !important; }

/* 表头表体一律居中，跟壹号一致。原先项目列左对齐、数字列右对齐，一屏里三种对齐方式 */
.bd-panel .x8-tb th, .bd-panel .x8-tb td,
.bd-panel .x8-bd-td-item, .bd-panel .x8-bd-num, .bd-panel .x8-bd-td-nums { text-align: center !important; }
/* 含号码那一格球多，居中的同时允许折行 */
.bd-panel .x8-bd-td-nums { white-space: normal; }

/* 描边动画走整格：壹号那边赔率盒撑满整个单元格（格子 201x42、盒子 200x41，上下左右都顶满），
   描的就是格子那圈边。我们原先只包住加减号那一小撮，动画成了格子里再套的小框。
   要顶满就得把格子自己的内边距让出来，padding 挪到盒子里去。 */
/* height:1px 只是给百分比高度一个参照，格子实高照样由行撑开（同 .x8-cell-drill 那处的老办法）。
   宫格的格子除外：那一格里赔率只是最上面一层，下面还叠着注额与盈亏，
   顶满整格会把赔率盒撑到整行高，三层就散成三截 */
.bd-panel .x8-tb td.x8-bd-oddstd:not(.x8-bd-gcell) { padding: 0 !important; height: 1px; }
/* 加减号与数字的间距全站一个样：都按总汇那张表来——加减顶在两边、数字居中 */
.bd-panel .x8-bd-oddsbox { display: flex; width: 100%; height: 100%; box-sizing: border-box;
  align-items: center; justify-content: space-between; padding: 4px 10px; }
.bd-panel .x8-bd-gcell .x8-bd-oddsbox { height: auto; padding: 1px 4px; }
.bd-panel .x8-bd-oddsbox .x8-bd-odds { flex: 1; text-align: center; }
/* 一注多档：一格里一档一个盒上下摞 各带一套加减。中间一条虚线断开 两行数字才不读成一个 */
.bd-panel .x8-bd-oddsbox-t { height: auto; padding: 1px 4px; }
.bd-panel .x8-bd-oddsbox-t + .x8-bd-oddsbox-t { border-top: 1px dashed #e7ebf0; }


/* 筛选条与下面的内容并成一个模块：各自一圈圆角阴影、中间还空 14px 时看着是散着的几张卡。
   全站列表页共用 search-area / stat-area / board-area / crumb-area / table-area 这套命名，
   所以规则写在这里一处，不逐页改。头是筛选条，尾是表格，夹在中间的几块接着白底往下走、只用一条分割线断开。
   后面跟着表格那种筛选条在页面上标 x8-sa-head 不用 :has(~ .table-area) 老内核不认 :has 整条规则会作废 */
.main-content .search-area.x8-sa-head {
  border-radius: 0 !important; margin-bottom: 0 !important;
  box-shadow: none !important; border-bottom: 1px solid #edf0f5;
  /* 筛选栏自己还带一圈壳 外面已经是模块的顶部 再套一层就是两层框 */
  padding: 0 !important; overflow: hidden;
}
.main-content .search-area.x8-sa-head > .x8-filter {
  flex: 1; border: none; border-radius: 0; box-shadow: none; margin: 0; padding: 7px 16px;
}
/* 夹在中间的几块：接着白底往下走 底部一条分割线 */
.main-content .search-area ~ .crumb-area:not(:empty),
.main-content .search-area ~ .stat-area:not(:empty),
.main-content .search-area ~ .quota-area:not(:empty),
.main-content .search-area ~ .board-area:not(:empty) {
  background: #fff !important; margin: 0 !important; padding: 10px 16px !important;
  border-radius: 0 !important; box-shadow: none !important; border-bottom: 1px solid #edf0f5;
}
.main-content .search-area ~ .stat-area > div,
.main-content .search-area ~ .board-area > div {
  background: transparent !important; padding: 0 !important; border-radius: 0 !important;
}
/* 尾块 */
.main-content .search-area ~ .table-area,
.main-content .search-area ~ .agents-area,
.main-content .search-area ~ .category-area {
  border-radius: 0 !important; margin: 0 !important;
}
.main-content .agents-area .x8-tb-wrap,
.main-content .category-area .x8-tb-wrap,
.main-content .table-area .x8-tb-wrap { border: none; border-radius: 0; box-shadow: none; }
/* 空的那几块整条收掉：不收的话在模块中间或末尾开一道白缝 */
.main-content .crumb-area:empty,
.main-content .stat-area:empty,
.main-content .quota-area:empty,
.main-content .board-area:empty,
.main-content .agents-area:empty,
.main-content .category-area:empty { display: none; }
/* 三级视图的根节点有自己的内边距 外壳已经给过缩进 再加一层就跟 tab 条对不齐、上间距也大一截 */
.main-content .rc-body > div { padding: 0 !important; }

/* 从代理列表点会员数进来时的那条「只看某人名下」：搜索条现在是 flex 一行
   它得当行内的末位挂在右头 跟其余控件一条中线 原来那份 margin-top 是当整块摆时留的 */
.main-content .search-area > .mb-from {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  padding-right: 16px; color: #6b7683; font-size: 13px; white-space: nowrap;
}
.main-content .search-area > .mb-from b { color: #3a4256; }
.main-content .search-area > .mb-from .mb-from-clear {
  height: 28px; padding: 0 12px; border: 1px solid #dce1e6; border-radius: 5px;
  background: #fff; color: #5a6478; font-size: 13px; cursor: pointer;
}
.main-content .search-area > .mb-from .mb-from-clear:hover { border-color: var(--main-color); color: var(--main-color); }

/* 报表筛选栏的日期快捷键：跟在两个日期框后面 选中那个上主题色 */
.x8-quick { gap: 4px; }
/* 三组切换按钮改用 layui 按钮 跟「查询」那排一个长相 这里只补按钮之间的间距 */
.x8-quick .layui-btn { margin-right: 4px; }
.x8-quick-b {
  height: 28px; min-width: 46px; padding: 0 8px; border: 1px solid #dce1e6; border-radius: 4px;
  background: #fff; color: #5a6478; font-size: 13px; cursor: pointer; margin-right: 4px;
}
.x8-quick-b:hover { border-color: var(--main-color); color: var(--main-color); }
.x8-quick-b.on { background: var(--main-color); border-color: var(--main-color); color: #fff; }

/* 注单管理那三颗连成一条：直角 相邻两颗共用一条竖线 选中的那颗压在上面免得自己的边被邻居盖住 */
.bm-switch { display: inline-flex; gap: 0; }
.bm-switch .layui-btn { margin: 0 0 0 -1px; border-radius: 0; position: relative; }
.bm-switch .layui-btn:first-child { margin-left: 0; }
.bm-switch .layui-btn.theme-btn-main { z-index: 1; }



/* 已取消注单：整行拉一道横线穿过去 一眼看出这批单是作废的。
   直接给 tr 上 line-through 在表格里不连续（每个格子各画一段），所以用一条绝对定位的线横穿整行 */
.x8-tb tr.x8-void { position: relative; color: #98a2ae; }
.x8-tb tr.x8-void td { position: static; }
.x8-tb tr.x8-void::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid #c3cbd6; pointer-events: none;
}
.x8-void-at { color: var(--danger-color); }

/* 筛选栏强制断行 */
.x8-filter-br { flex-basis: 100%; height: 0; margin: 0; }

/* .x8-op 的手型原先只写在 .x8-tb 里，表外的（面包屑那种）点得动却没有手型 */
.main-content .x8-op { color: var(--main-color); cursor: pointer; }
.main-content .x8-op:hover { opacity: .66; }
.main-content .x8-op.x8-ro { color: #b9c0cc; cursor: not-allowed; text-decoration: none; }
.main-content .crumb-area { color: #6b7683; }

/* 跟在金额后面的小标（手补/自动补）：比正文小一号 灰字 不抢数字 */
.x8-tag-inline { font-style: normal; font-size: 12px; color: #8a95a1; margin-left: 2px; }

/* 开奖历史的两面色：单/小 蓝 双/大 红 和局灰。不跟主题走 跟盘面的语义色一套 */
.x8-dw-b { color: var(--profit-color); }
.x8-dw-r { color: var(--danger-color); }
/* 两层表头：组名那一行居中 底下子列各自一格 */
.x8-tb thead tr + tr th { font-weight: 600; }

.x8-ok { color: var(--ok-color); }

/* ══ 整页一个模块 ══
   前面那套是按块名(search-area/table-area…)去拼头尾的，块名一换就套不上——内部管理那几页
   用的是 quick-area / plate-area / form-area 这些自己起的名字，规则够不着。
   这里换个做法：视图根节点自己就是那张卡片，里面几块一律拍平成它的横带，中间用分割线断开。
   带层级 tab 条的用户管理几页(根节点 .companyList 赚赔设置挂 tab 时也补上这个类)不走这条：tab 条要留在卡片外面；
   首页是多张看板卡片并排的仪表盘，也不是「筛选条+表格」那种单模块页，一并排除。 */
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) {
  background: #fff; border-radius: 0; box-shadow: 0 2px 8px rgba(20, 40, 80, .05); overflow: hidden;
}
/* .x8-tip 除外：那是浮在格子上的提示气泡，挂在视图根节点下只为了跟着页面滚，
   按横带拍平会把它的黑底刷成透明，剩一行白字等于看不见 */
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) > *:not(.x8-tip) {
  background: transparent !important; border-radius: 0 !important; box-shadow: none !important;
  margin: 0 !important; border-bottom: 1px solid #edf0f5;
}
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) > *:last-child {
  border-bottom: none;
}
/* 空块整条收掉：不收的话它那条分割线会在模块里留一道无来由的横线 */
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) > *:empty {
  display: none;
}
/* 块里自带的壳(筛选栏、表格容器)去掉，外面已经是卡片了，里面再套一层就是双层框 */
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) .x8-filter,
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) > * > .x8-card,
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) .x8-tb-wrap {
  background: transparent; border: none; border-radius: 0; box-shadow: none; margin: 0;
}
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) > .search-area {
  padding: 0 !important;
}
.main-content > div:not(.immediatelyBill):not(.home):not(.companyList) > .search-area > .x8-filter {
  padding: 7px 16px;
}

/* 说明文字收起来的那个问号 */
.x8-hint {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 6px; border-radius: 50%;
  background: #dfe4ec; color: #fff; font-size: 11px; font-weight: 700;
  cursor: help; vertical-align: middle; flex: 0 0 auto;
}
.x8-hint:hover { background: var(--main-color); }

/* 档条那两层底色单独调：未选中比表头深一档、hover 再深一点、选中那档的货量格跟主色同系 */
@supports (background: color-mix(in srgb, red 10%, white)) {
  .bd-panel .x8-bd-tiertab:not(.on) .x8-bd-tier { background: color-mix(in srgb, var(--main-color) 26%, #fff); }
  .bd-panel .x8-bd-tiertab:not(.on):hover .x8-bd-tier { background: color-mix(in srgb, var(--main-color) 36%, #fff); }
  .bd-panel .x8-bd-tiertab.on .x8-bd-tiern { background: color-mix(in srgb, var(--main-color) 12%, #fff); }
  /* 组合玩法并排的档头跟档条同一套底色 */
  .bd-panel .x8-bd-sectab:not(.on) .x8-bd-tier { background: color-mix(in srgb, var(--main-color) 26%, #fff); }
  .bd-panel .x8-bd-sectab:not(.on):hover .x8-bd-tier { background: color-mix(in srgb, var(--main-color) 36%, #fff); }
  .bd-panel .x8-bd-sectab.on .x8-bd-tiern { background: color-mix(in srgb, var(--main-color) 12%, #fff); }
}

/* —— 按钮统一跟主色 —— */
/* layui 自带的青绿（#009688）与蓝（#1e9fff）跟站点主色无关 换皮时那几个按钮不跟着走。
   实心按钮一律吃主色 次要按钮留白底灰边（弹层里那个「取消」就是它）
   危险色不动：删除、注销这类要一眼看出来 */
body .layui-btn:not(.layui-btn-primary):not(.layui-btn-danger):not(.layui-btn-warm):not(.layui-btn-disabled) {
  background-color: var(--main-color); border-color: var(--main-color); color: #fff;
}
body .layui-btn:not(.layui-btn-primary):not(.layui-btn-danger):not(.layui-btn-warm):not(.layui-btn-disabled):hover { filter: brightness(1.08); }
body .layui-btn-primary { background-color: #fff; border-color: #dcdfe6; color: #465060; }
body .layui-btn-primary:hover { border-color: var(--main-color); color: var(--main-color); }
/* 弹层底部：确定在左 取消在右（页面里自绘的那几处也按这个顺序摆） */
.layui-layer-page .layui-layer-btn .layui-layer-btn1 { background: #fff; border-color: #dcdfe6; color: #465060; }

/* —— 输入框占位文字：一律中性灰 不跟主色 —— */
body input::placeholder, body textarea::placeholder,
body .x8-ipt::placeholder, body .layui-input::placeholder { color: #98a2ae; opacity: 1; }
body input::-webkit-input-placeholder, body textarea::-webkit-input-placeholder { color: #98a2ae; }


/* —— 可点的文字一律跟主色 —— */
/* 表里的操作项与状态那种点得动的字都走 data-action 这条 无权限的置灰不可点。
   .x8-link 是页面里自己写的链接 原先没样式 会吃到浏览器或 layui 的默认蓝 */
body .x8-link { color: var(--main-color); cursor: pointer; }
body .x8-link:hover { opacity: .66; }
body .x8-link.x8-ro { color: #b9c0cc; cursor: not-allowed; text-decoration: none; }
