/* 走势图样式：版式对齐 m.55123.cn/zs 的走势图页面 */

.page-chart { background: #fff; }
.page-chart .m-wrap { background: #fff; padding-bottom: 0; }
.page-chart .cb-bar {
    background: -webkit-linear-gradient(left, #ff4824, #cd302e);
    background: linear-gradient(90deg, #ff4824, #cd302e);
}
.page-chart .cb-title { color: #fafafa; font-size: 16px; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }

/* 顶部入口条：开机号 / 试机号 / 开奖结果 / 预测 */
.zsx-nav {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}
.zsx-nav a {
    flex: 1;
    padding: 9px 0 8px;
    text-align: center;
    font-size: 15px;
    color: #0b8f43;
    text-decoration: none;
    border-right: 1px solid #f0f0f0;
}
.zsx-nav a:last-child { border-right: 0; }
.zsx-nav a.new { color: #d2382c; }

/* 走势图表格 */
.zsx-chart { position: relative; background: #fff; }
.zsx-scroll {
    position: relative;
    overflow: auto;
    max-height: calc(100vh - 134px);
    background: #fff;
    border-top: 1px solid #ddd;
}
.zsx-canvas { position: relative; display: inline-block; min-width: 100%; }
.zsx-lines {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    pointer-events: none;
}
.zsx-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 11px;
    font-family: "宋体", SimSun, sans-serif;
    color: #878899;
    background: #fff;
}
.zsx-table th,
.zsx-table td {
    padding: 0;
    text-align: center;
    height: 20px;
    line-height: 20px;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
    white-space: nowrap;
    font-weight: 400;
    overflow: hidden;
}

/* 表头 */
.zsx-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #666;
    color: #fff;
    font-size: 11px;
    height: 20px;
    line-height: 20px;
    border-right: 1px solid #7d7d7d;
    border-bottom: 1px solid #7d7d7d;
    font-family: "宋体", SimSun, sans-serif;
}
.zsx-table thead tr:nth-child(2) th { top: 20px; }
.zsx-table thead th.zsx-group.wide { text-align: left; padding-left: 8px; }
.zsx-table thead th.zsx-qh {
    z-index: 6;
    left: 0;
    background: #fff6e5;
    color: #333;
    border-right: 1px solid #dfdfdf;
}
.zsx-set { display: block; padding: 1px 0 0; text-decoration: none; color: #333; font-size: 10px; line-height: 10px; }
.zsx-set em { display: block; font-style: normal; color: #ff8800; font-size: 11px; line-height: 12px; }

/* 固定期号列 */
.zsx-table td.zsx-qh,
.zsx-table tfoot th.zsx-qh {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
    color: #333;
    font-size: 10px;
    border-right: 1px solid #dfdfdf;
}
.zsx-table tfoot th.zsx-qh { background: #fff; }
.zsx-table .zsx-presele td.zsx-qh { background: #f7f7f7; color: #999; }

/* 试机号 / 出号 */
.zsx-table td.zsx-trial { background: #faead4; color: #878899; }
.zsx-table td.zsx-draw { background: #faead4; color: #333; font-weight: 700; letter-spacing: .5px; }
.zsx-table th.zsx-vert { font-size: 10px; line-height: 9px; color: #fff; }

/* 分组底色 */
.zsx-table td.zsx-cell.f4 { background: #f4f4f4; }
.zsx-table td.zsx-cell.cream { background: #faead4; }
.zsx-table td.zsx-cell.white { background: #fff; }
.zsx-table td.zsx-miss.gray { color: #878899; }
.zsx-table td.zsx-miss.cream { color: #cb977b; }
.zsx-table td.zsx-miss.lb { color: #b6bccb; }
.zsx-table td.zsx-num.sum { background: #faead4; color: #333; font-weight: 700; }
.zsx-table td.zsx-text { color: #333; }

/* 号码球 */
.ball {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    font-style: normal;
    letter-spacing: 0;
    vertical-align: middle;
}
.ball.red { background: #df4545; }
.ball.blue { background: #1d71a9; }
.ball.green { background: #2f9e62; }
.ball.orange { background: #e0872c; font-size: 9px; }
.ball.pill { width: auto; min-width: 18px; padding: 0 3px; border-radius: 9px; font-size: 9px; }
.tag { display: inline-block; min-width: 26px; padding: 0 3px; border-radius: 2px; color: #fff; font-size: 10px; line-height: 15px; }
.tag-zu6 { background: #3d7ec9; }
.tag-zu3 { background: #e0a106; }
.tag-bao { background: #e4453b; }

/* 预选行 */
.zsx-presele td.presele { background: #f7f7f7; }
.pre-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 16px;
    border-radius: 8px;
    color: #333;
    font-size: 10px;
    font-style: normal;
    line-height: 16px;
    background: #dfdfdf;
    cursor: pointer;
}
.pre-ball.on { background: #df4545; color: #fff; }
.zsx-table .zsx-presele td { height: 19px; line-height: 19px; }

/* 表尾统计 */
.zsx-table tfoot td,
.zsx-table tfoot th {
    background: #fff;
    height: 22px;
    line-height: 22px;
    color: #666;
    font-size: 11px;
}
.zsx-table tfoot th.zsx-qh { font-size: 10px; color: #666; }
.zsx-table .zsx-bar-row td,
.zsx-table .zsx-bar-row th { height: 46px; background: #fff; }
.zsx-table td.zsx-bar { background: #fff; }
.zsx-table td.zsx-bar b {
    display: block;
    height: 16px;
    line-height: 14px;
    font-size: 10px;
    font-weight: 400;
    color: #666;
}
.zsx-table td.zsx-bar span {
    display: block;
    width: 9px;
    margin: 0 auto;
    background: #a463cc;
    border-radius: 1px;
}
.zsx-table .zsx-stat th .notes { display: inline-block; font-size: 10px; color: #666; }
.zsx-table .zsx-stat th .notes i { font-style: normal; color: #bbb; font-size: 9px; margin-left: 1px; }
.zsx-table .zsx-stat th .notes em { display: none; }

/* 缺数据 */
.zsx-empty { padding: 40px 16px; text-align: center; color: #888; font-size: 13px; }

/* 标题：不作为视觉元素，只给搜索引擎与读屏 */
.zsx-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* 不带遗漏 / 遗漏分层 */
.zsx-table.hide-miss td.zsx-miss { color: transparent !important; }
.zsx-table.hide-miss td.zsx-miss.cream { color: #faead4 !important; }
.zsx-table.zsx-layer td.zsx-miss { background: #eef4fb !important; }
.zsx-table.zsx-layer td.zsx-miss.lv2 { background: #e3edfa !important; }
.zsx-table.zsx-layer td.zsx-miss.lv3 { background: #fff2d1 !important; }
.zsx-table.zsx-layer td.zsx-miss.lv4 { background: #ffe0da !important; }

/* 热门走势 */
.zsx-hot { padding: 8px 8px 6px; background: #fff; }
.zsx-hot h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}
.zsx-hot h3::before {
    content: "";
    width: 4px;
    height: 15px;
    background: #e0872c;
    display: inline-block;
}
.zsx-hot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zsx-hot-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 3px;
    border: 1px solid #cbb290;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.zsx-hot-grid a.on { color: #cb3a34; border-color: #cb3a34; }

/* 设置面板 */
.zsx-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 60;
    display: none;
}
.zsx-panel {
    position: fixed;
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - 96px);
    overflow: auto;
    background: #fff;
    border-radius: 4px;
    z-index: 61;
    display: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
}
.zsx-panel h4 {
    margin: 0;
    padding: 0 12px;
    height: 38px;
    line-height: 38px;
    font-size: 15px;
    color: #fff;
    background: #333;
    font-weight: 400;
}
.zsx-panel .row { padding: 10px 12px 0; }
.zsx-panel .row p { margin: 0 0 6px; font-size: 13px; color: #333; }
.zsx-panel .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.zsx-panel .opts a,
.zsx-panel .opts label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    background: #fff;
}
.zsx-panel .opts a.on { border-color: #cb3a34; color: #cb3a34; }
.zsx-panel select {
    width: 100%;
    height: 32px;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    background: #fff;
    font-size: 13px;
    color: #333;
}
.zsx-panel .acts { display: flex; gap: 10px; padding: 14px 12px 16px; }
.zsx-panel .acts button {
    flex: 1;
    height: 36px;
    border-radius: 3px;
    border: 1px solid #dcdcdc;
    background: #f7f7f7;
    font-size: 14px;
    color: #333;
}
.zsx-panel .acts button.ok { background: #cb3a34; border-color: #cb3a34; color: #fff; }

/* 走势图目录（对齐参考站 /zs 分组样式） */
.page-zst { background: #fff; }
.page-zst .m-wrap { background: #fff; padding-bottom: 0; }
.page-zst .cb-bar {
    background: -webkit-linear-gradient(left, #ff4824, #cd302e);
    background: linear-gradient(90deg, #ff4824, #cd302e);
}
.zsx-cat { padding: 8px 8px 4px; background: #fff; overflow-x: hidden; }
.zsx-cat .grp { margin-bottom: 8px; }
.zsx-cat .grp-head {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 8px;
    background: #fff3e2;
    border: 1px solid #f0ddc4;
}
.zsx-cat .grp-head img { width: 22px; height: 22px; }
.zsx-cat .grp-head h2 { margin: 0; font-size: 15px; color: #cb3a34; font-weight: 700; }
.zsx-cat .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 0 2px;
}
.zsx-cat .grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 30px;
    padding: 0 4px;
    border: 1px solid #cbb290;
    border-radius: 2px;
    background: #fff;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* —— 形态标记底色（重号/连号/斜连/斜跳/竖连/折号） —— */
.zsx-table td.mk-r{background:#ffe0dd}
.zsx-table td.mk-b{background:#dcf0ff}
.zsx-table td.mk-g{background:#e2f6dd}
.zsx-table td.mk-o{background:#fff0d2}
.zsx-table td.mk-p{background:#eee2ff}
.zsx-table td.mk-y{background:#ffe6f2}

.zsx-table th.zsx-group.narrow{white-space:normal;line-height:1.05;padding:0 2px;font-size:12px}

/* 目录页按钮：三列下长标题按单行省略，避免文字越过描边 */
.zsx-cat .grid a{display:block;line-height:28px;text-align:center;font-size:11px;padding:0 2px}
