/* 金牛版 资料区：深色多彩主题（深色模块底 + 亮色标题条，按位置轮换 金棕/酒红/翡翠/藏蓝/铜橙/紫檀/孔雀青/银灰 八套配色） */
.zl-box {
    --u: min(1px, 0.125vw);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.zl {
    --bg: #3a2c18;
    --bg2: #46351e;
    --c: #f3dfa2;
    --c2: #fff4d6;
    --r: #ffb347;
    --r2: #ffd54a;
    --q: #e8b84a;
    --hd1: #f6d365;
    --hd2: #c8921a;
    --bd: #c8921a;
    --ft: #271d0f;
    --ftc: #cdbd90;
    --line: rgba(232, 184, 74, 0.22);
    background: var(--bg);
    color: var(--c);
    border: 2px solid var(--bd);
    border-radius: calc(var(--u) * 6);
    box-shadow: 0 0 0 1px #000, 0 3px 10px rgba(0, 0, 0, 0.45);
    font-size: calc(var(--u) * 19);
    font-weight: 700;
    line-height: 1.5;
    overflow: hidden;
}

/* 金棕 */
.zl-p1, .zl-p9 { }
/* 酒红 */
.zl-p2, .zl-p11 { --bg: #4d2029; --bg2: #5a2733; --ft: #34141b; --ftc: #e3bcc6; --c: #ffdde4; --c2: #fff2f5; --r: #ff8fae; --r2: #ffbccf; --q: #ff9db8; --hd1: #ffc2d1; --hd2: #e0617f; --bd: #d04a6d; --line: rgba(255, 157, 184, 0.22); }
/* 翡翠 */
.zl-p3, .zl-p12 { --bg: #1f4034; --bg2: #284c3e; --ft: #142b22; --ftc: #bfe3d0; --c: #d7f5e6; --c2: #f0fff7; --r: #7dedb8; --r2: #b5ffd9; --q: #8fe6bf; --hd1: #b4f2d4; --hd2: #4fbf90; --bd: #3aa87a; --line: rgba(143, 230, 191, 0.22); }
/* 藏蓝 */
.zl-p4, .zl-p10 { --bg: #1f3152; --bg2: #283c64; --ft: #15233f; --ftc: #bcd0ee; --c: #d9e8ff; --c2: #f2f8ff; --r: #7cc4ff; --r2: #b0dcff; --q: #8fcbff; --hd1: #bde0ff; --hd2: #5a9be0; --bd: #4a89cf; --line: rgba(143, 203, 255, 0.22); }
/* 铜橙 */
.zl-p5 { --bg: #502f1b; --bg2: #5e3921; --ft: #38210f; --ftc: #e6c6a6; --c: #ffe0c4; --c2: #fff1e3; --r: #ffa05c; --r2: #ffc395; --q: #ffb27a; --hd1: #ffcfa0; --hd2: #de8a42; --bd: #cc7630; --line: rgba(255, 178, 122, 0.22); }
/* 紫檀 */
.zl-p6 { --bg: #3d2a5c; --bg2: #48336e; --ft: #2b1c44; --ftc: #d3c1ee; --c: #e9ddff; --c2: #f7f1ff; --r: #c9a5ff; --r2: #dfc8ff; --q: #cfb1ff; --hd1: #e0cdff; --hd2: #a47ae6; --bd: #8f62d6; --line: rgba(207, 177, 255, 0.22); }
/* 孔雀青 */
.zl-p7 { --bg: #18454c; --bg2: #1f535c; --ft: #10313a; --ftc: #b6e3e8; --c: #d0f3f6; --c2: #effcfd; --r: #6fe3ec; --r2: #a8f0f5; --q: #7be6ee; --hd1: #a6eef3; --hd2: #3fb5c1; --bd: #2ea0ac; --line: rgba(123, 230, 238, 0.22); }
/* 银灰 */
.zl-p8 { --bg: #363943; --bg2: #40444f; --ft: #272a32; --ftc: #c6cad6; --c: #eceff4; --c2: #ffffff; --r: #ffd36a; --r2: #ffe6a0; --q: #ffd36a; --hd1: #eef0f6; --hd2: #b4bacb; --bd: #9aa1b5; --line: rgba(200, 206, 222, 0.22); }

/* 标题条：浅色渐变 + 深色字，两侧菱形装饰 */
.zl-h {
    position: relative;
    padding: calc(var(--u) * 6) calc(var(--u) * 8);
    background: linear-gradient(180deg, var(--hd1) 0%, var(--hd2) 100%);
    border-bottom: 2px solid #000;
    color: #1d1405;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
    text-align: center;
    font-size: 1.3em;
    font-weight: 900;
    letter-spacing: calc(var(--u) * 2);
}

.zl-h::before,
.zl-h::after {
    content: "\25C6";
    margin: 0 calc(var(--u) * 6);
    font-size: 0.6em;
    vertical-align: middle;
    color: #1d1405;
    opacity: 0.7;
}

.zl-sub {
    padding: calc(var(--u) * 3) calc(var(--u) * 6);
    background: var(--ft);
    text-align: center;
    font-size: 0.82em;
    color: var(--ftc);
}

.zl-th,
.zl-r {
    display: grid;
    grid-template-columns: var(--g);
    align-items: center;
    text-align: center;
}

.zl-th {
    background: var(--ft);
    color: var(--q);
    font-size: 0.9em;
    padding: calc(var(--u) * 3) calc(var(--u) * 4);
    border-bottom: 1px solid var(--bd);
}

.zl-r {
    padding: calc(var(--u) * 5) calc(var(--u) * 4);
    border-top: 1px solid var(--line);
}

.zl-r:first-of-type { border-top: 0; }
.zl-r:nth-child(even) { background: var(--bg2); }
.zl-r .q { color: var(--q); }
.zl-r .c { padding: 0 calc(var(--u) * 3); word-break: break-all; }
.zl-r .v { white-space: nowrap; }

.zl .ln { display: block; }
.zl-r.zl-x { display: block; text-align: center; }
.zl-r.zl-x .ln + .ln { margin-top: calc(var(--u) * 2); }
.zl-r.zl-lf { text-align: left; }

/* 文字配色：每一行的期号、名称、推荐项各取一种亮色，行与行之间轮换，整体花花绿绿 */
.zl-r:nth-child(8n+1) { --a: #ff9a9a; --b: #7df0ff; --d: #ffe066; }
.zl-r:nth-child(8n+2) { --a: #ffc266; --b: #ff9ee0; --d: #7dffb0; }
.zl-r:nth-child(8n+3) { --a: #fff07a; --b: #9fc2ff; --d: #ff9a9a; }
.zl-r:nth-child(8n+4) { --a: #8dffb4; --b: #ffc266; --d: #d9a8ff; }
.zl-r:nth-child(8n+5) { --a: #7df0ff; --b: #fff07a; --d: #ff9ee0; }
.zl-r:nth-child(8n+6) { --a: #a9c4ff; --b: #8dffb4; --d: #ffc266; }
.zl-r:nth-child(8n+7) { --a: #e0b3ff; --b: #ff9a9a; --d: #7df0ff; }
.zl-r:nth-child(8n+8) { --a: #ff9ee0; --b: #a9c4ff; --d: #fff07a; }
.zl .k { color: var(--c); }
.zl .kk { color: var(--c2); }
.zl .nm { color: var(--b, var(--c2)); }
.zl .r,
.zl-r .gd,
.zl-r .cy,
.zl-r .or,
.zl-r .mg,
.zl-r .gn,
.zl-r .bl,
.zl-r .pp { color: var(--d, var(--r)); }
.zl .r.hl { color: #b00000 !important; }
.zl .qq,
.zl-r .q { color: var(--a, var(--q)); }
/* 底部说明里每类名称的彩色标签 */
.zl-foot .gd { color: #ffe066; }
.zl-foot .cy { color: #7df0ff; }
.zl-foot .or { color: #ffb86b; }
.zl-foot .mg { color: #ff9ee0; }
.zl-foot .gn { color: #8dffb4; }
.zl-foot .bl { color: #9fc2ff; }
.zl-foot .pp { color: #d9a8ff; }
.zl .gy { color: var(--ftc); }
.zl .no { color: var(--ftc); opacity: 0.85; font-style: normal; }
.zl .tag { font-size: 0.75em; }

/* 模块底部说明 */
.zl-foot {
    padding: calc(var(--u) * 4) calc(var(--u) * 6);
    border-top: 1px solid var(--bd);
    background: var(--ft);
    color: var(--ftc);
    text-align: center;
    font-size: 0.8em;
    line-height: 1.6;
}

.zl-foot .ln { display: block; }

.zl b { font-weight: 700; }
.zl b.h { color: #b00000; }

/* 命中高亮：黄底 + 深红字 + 橙色呼吸光晕（深色底上依然醒目） */
.zl b.h,
.zl .hl {
    background: linear-gradient(180deg, #fff9a8, #ffe600);
    border-radius: calc(var(--u) * 4);
    box-shadow: 0 0 0 1px #ff9800, 0 0 calc(var(--u) * 8) rgba(255, 170, 0, 0.9);
    padding: 0 calc(var(--u) * 3);
    margin: 0 calc(var(--u) * 1);
    animation: zl-hit 1.4s ease-in-out infinite;
}

@keyframes zl-hit {
    0%, 100% { box-shadow: 0 0 0 1px #ff9800, 0 0 calc(var(--u) * 4) rgba(255, 170, 0, 0.6); }
    50% { box-shadow: 0 0 0 1px #ff5200, 0 0 calc(var(--u) * 12) rgba(255, 120, 0, 1); }
}

@media (prefers-reduced-motion: reduce) { .zl b.h, .zl .hl { animation: none; } }

/* 底部固定图片与页脚（参照 vp21896.com） */
.zl-fixed {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.zl-fixed img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

/* ---------- 顶部吸顶导航 / 站名跳转按钮 / 精华帖子 / 彩图区 ---------- */
:root {
    --zh1: #2a2113;
    --zh2: #120e08;
    --zhac: #f6d365;
    --zhnv: #3a2c18;
}

.zh-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(180deg, var(--zh1), var(--zh2));
    border-radius: 0 0 8px 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.zh-blank {
    flex: none;
    height: 86px;
    margin-bottom: -5px;
}

.zh-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 10px;
}

.zh-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1;
    text-decoration: none;
}

.zh-logo span {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.zh-logo small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--zhac);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.kaijiang_qu {
    position: sticky;
    top: var(--zhh, 86px);
    z-index: 40;
}

.zh-logo b {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    color: transparent;
    background: linear-gradient(180deg, #fffbe0 0%, var(--zhac) 55%, #e2a21c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55));
}

.zh-logo em {
    font-style: normal;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.zh-quan {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 50px;
    height: 50px;
}

.zh-quan img {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    animation: zh-spin 5s linear infinite;
}

.zh-home {
    color: #fff;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}

.zh-home i {
    display: block;
    margin-bottom: 2px;
    font-style: normal;
    font-size: 20px;
}

.zh-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.75);
    background: var(--zhnv);
}

.zh-nav ul,
.zh-sub ul,
.zl-bbs ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zl-bbs ul {
    display: block;
}

.zh-nav li {
    flex: 1;
    min-width: 0;
}

.zh-nav li + li a {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.zh-nav a {
    display: block;
    height: 30px;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.zh-nav li:nth-child(1) a { color: #ffd8d2; }
.zh-nav li:nth-child(2) a { color: #d3f5ff; }
.zh-nav li:nth-child(3) a { color: #d6ffd6; }
.zh-nav li:nth-child(4) a { color: #ffeeb0; }
.zh-nav li:nth-child(5) a { color: #ead6ff; }

.zh-nav li a:hover,
.zh-nav li a:active {
    color: var(--zh2);
    background: var(--zhac);
}

.zh-sub {
    flex: none;
    padding: 8px 4px 6px;
    background: linear-gradient(180deg, var(--zh1), var(--zh2));
    border: 2px solid var(--zhac);
    border-radius: 8px;
    box-shadow: 0 0 0 1px #000;
}

.zh-sub ul {
    justify-content: space-around;
}

.zh-sub li {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.zh-sub a {
    display: block;
    padding: 2px 3px;
    color: #fff;
    text-decoration: none;
}

.zh-sub i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(76px, 100%);
    aspect-ratio: 1;
    margin: 0 auto 5px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-style: normal;
    font-size: clamp(28px, 9vw, 44px);
    font-weight: 900;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 0 8px rgba(255, 255, 255, 0.35);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.45);
    animation: zh-pop 0.7s both;
}

.zh-sub li:nth-child(1) i { background: linear-gradient(150deg, #ff7a6b, #c9261b); }
.zh-sub li:nth-child(2) i { background: linear-gradient(150deg, #ffb23f, #d9731a); animation-delay: 0.08s; }
.zh-sub li:nth-child(3) i { background: linear-gradient(150deg, #5fd68a, #1f9456); animation-delay: 0.16s; }
.zh-sub li:nth-child(4) i { background: linear-gradient(150deg, #58b6ff, #1f62c9); animation-delay: 0.24s; }
.zh-sub li:nth-child(5) i { background: linear-gradient(150deg, #c48bff, #7a36c9); animation-delay: 0.32s; }

.zh-sub span {
    display: block;
    overflow: hidden;
    color: var(--zhac);
    font-size: 14px;
    font-weight: 800;
    text-shadow: 0 2px 1px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.zh-sub a:hover i {
    transform: scale(1.06);
}

@keyframes zh-spin {
    to { transform: rotate(360deg); }
}

@keyframes zh-pop {
    0% { opacity: 0; transform: translateY(-24px) scale(0.6); }
    70% { opacity: 1; transform: translateY(4px) scale(1.05); }
    100% { transform: none; }
}

.zl-art-p {
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: #8a6d1d;
}

.zl-bbs {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    background: #fffdf6;
    border: 2px solid var(--zhac);
    border-radius: 6px;
    box-shadow: 0 0 0 1px #000, 0 3px 10px rgba(0, 0, 0, 0.35);
}

.zl-bbs-h {
    font-size: 22px;
    font-weight: 900;
    line-height: 40px;
    color: var(--zhac);
    text-align: center;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.7);
    background: linear-gradient(180deg, var(--zh1), var(--zh2));
}

.zl-bbs li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 22px 0 42px;
    background: url(../image/tj.gif) 5px center no-repeat;
    overflow: hidden;
    color: #222;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid #e3d6b0;
}

.zl-bbs li a::after {
    content: "›";
    position: absolute;
    right: 8px;
    color: #c0392b;
    font-size: 22px;
}

.zl-bbs li b {
    flex: none;
    padding: 0 6px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    background: linear-gradient(180deg, #ff6b5a, #d62b1a);
}

.zl-bbs li span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.zl-bbs li:nth-child(6n+1) span { color: #c0392b; }
.zl-bbs li:nth-child(6n+2) span { color: #1f62c9; }
.zl-bbs li:nth-child(6n+3) span { color: #1f8a4c; }
.zl-bbs li:nth-child(6n+4) span { color: #b5651d; }
.zl-bbs li:nth-child(6n+5) span { color: #7a36c9; }
.zl-bbs li:nth-child(6n) span { color: #c2185b; }

.zl-bbs li a:hover {
    background-color: #fff1c9;
}

.zl-xjct {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 2px solid var(--zhac);
    box-shadow: 0 0 0 1px #000, 0 3px 10px rgba(0, 0, 0, 0.35);
    font-size: 16px;
    line-height: 1.75;
}

.zl-xjct th {
    padding: 4px;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, var(--zh1), var(--zh2));
}

.zl-xjct td {
    padding: 0;
    text-align: center;
    border: 1px dashed #c0c0c0;
}

.zl-xjct td a {
    display: block;
    padding: 4px 2px;
    color: #1f62c9;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.zl-xjct td:nth-child(4n+2) a { color: #c0392b; }
.zl-xjct td:nth-child(4n+3) a { color: #1f8a4c; }
.zl-xjct td:nth-child(4n) a { color: #7a36c9; }

.zl-xjct td a:hover {
    background: #fff1c9;
}

#zlLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    overflow: auto;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}

#zlLightbox img {
    display: block;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .zh-logo b { font-size: 25px; }
    .zh-logo em { font-size: 14px; }
    .zh-nav a { font-size: 12px; }
    .zh-sub span { font-size: 13px; }
    .zl-bbs li a { font-size: 14px; }
    .zl-xjct td a { font-size: 14px; }
}

.zl-footer {
    padding: 4px;
    border-radius: 5px;
    border: 1px solid #c8921a;
    background: linear-gradient(135deg, #14100a 0%, #4a3208 38%, #8a6410 62%, #1c1408 100%);
    color: #fff3c4;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-all;
}

.zl-footer dl {
    padding: 0 10%;
    margin: 0;
}

.zl-footer dt {
    padding: 5px 0;
    font-weight: 700;
    border-bottom: solid 1px rgba(0, 0, 0, 0.7);
}

.zl-footer dd {
    margin: 0;
    padding: 5px 0;
    border-bottom: solid 1px rgba(0, 0, 0, 0.7);
}

.zl-footer dd:last-child {
    border-bottom: 0;
}

.zl-footer .zl-ad-link {
    color: #1d1405;
    background: #ffd54a;
    text-decoration: none;
}
