* {
    box-sizing: border-box;
    border: 0;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
    color: #050505;
    background: #effff3;
}

body {
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.container {
    width: 100%;
    /* 与首页一致（2026-09-18：原为 720px，比首页的 52rem 窄，会让固定头部比正文宽出来） */
    max-width: 52rem;
    margin: 0 auto;
    background: #effff3;
}

/* 头部样式已移除（2026-09-18）：内页头部与首页统一走首页那套结构
 * （#logo + .nav#nav2，见 view/template/000/{bbs,qnzl}/index.phtml），
 * 样式由 home.css / page.css 提供。这里若再写 .header/.logo/.detail-back/.kj/.ifkj
 * 就会覆盖回去、两边又不一致，所以一律不再声明。
 */

/* 内页头部「返回」（2026-09-18 恢复，按需求保留）：只有 bbs / qnzl 会加载本文件，
 * 首页不加载，所以首页头部不受影响。用绝对定位而不是 float —— 浮动框只会对齐到
 * 行盒顶部，会显得偏上；#logo 本身是 position:fixed，天然就是定位父级。 */
.header-side {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.header-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    line-height: 30px;   /* = height，让文字在按钮里上下居中（悬殊的行高会顶在上边） */
    white-space: nowrap;
    text-decoration: none;
    background: rgba(0, 0, 0, .2);
}

.header-back:active {
    background: rgba(0, 0, 0, .36);
}

.content {
    padding: 5px 0 0;
}

.box {
    margin: 5px 0;
    overflow: hidden;
    border-radius: 5px;
    background-image: linear-gradient(to right, #00ff6d, #2ebb35, #07ca2b);
}

.pad {
    padding: 4px 4px;
}

.list-title {
    height: 38px;
    padding: 0;
    color: #075d20;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom: 1px solid #8edda1;
    font-size: 20pt;
    font-weight: bold;
    line-height: 33px;
    text-align: center;
    text-shadow: 1px 1px 1px #c5f6d0;
    background: linear-gradient(transparent, #f7f3f3);
}

.duilianpt {
    table-layout: auto;
    overflow: hidden;
    border-radius: 5px;
    color: #000;
    background: #fff;
}

.detail-body h1 {
    margin: 0 0 10px;
    padding: 6px 24px 8px;
    color: #fff;
    background: #2ebb35;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

.detail-body p {
    margin: 0;
    padding: 8px 26px;
    border-bottom: 1px solid #b9e9c5;
    color: #000;
    font-family: SimSun, "Songti SC", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

.qnzl-detail p {
    overflow-x: visible;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.detail-body p + p {
    margin-top: 6px;
}

.detail-body b,
.detail-body strong {
    color: #078a27;
}

.bbs-keyword {
    color: #078a27;
    font-weight: 900;
}

.post-list {
    margin: 0;
    padding: 0;
    text-align: center;
}

.post-list li {
    display: flex;
    align-items: stretch;
    padding: 0;
    border-bottom: 1px solid #b9e9c5;
    background-color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 30px;
}

.post-forum-list {
    margin: 0;
}

.post-forum-list a {
    display:block;
    color:inherit;
    text-decoration:none;
}

.post-ext {
    display: block;
    padding: 20px 0;
    border-bottom: 1px solid #b9e9c5;
    background-color: #00ff6d12;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    line-height: 30px;
}


.post-ext p {
    text-align: left;
    margin-left: 20px;
    padding-left: 4em;
    text-indent: -3em;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
    border-bottom: none;
}

.post-list .post-period,
.post-list .post-predict,
.post-list .post-result {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    min-width: 0;
}

.post-list .post-period {
    flex: 0 0 15%;
}

.post-list .post-result {
    flex: 0 0 20%;
}

.post-list .post-predict {
    flex: 1 1 auto;
    display: block;
    text-align: center;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.post-list .post-predict br {
    display: block;
    content: "";
}

.post-list .post-predict span {
    display: inline-block;
}

.detail-body span,
.detail-body em,
.detail-body font {
    font-style: normal;
}

.detail-body .hit,
.detail-body mark {
    padding: 0 2px;
    color: #f00;
    background: #ff0;
}

.foot-img {
    padding: 10px;
}

.foot-img p {
    margin: 5px 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.pb-head {
    padding-left: 1rem;
    padding-right: 1rem;
}

.pb-tit {
    margin-bottom: .5rem;
    padding-top: .5rem;
    color: hsl(51, 100%, 57%);
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    text-shadow: -1px -1px 0 #614a00, 1px -1px 0 #614a00, -1px 1px 0 #614a00, 2px 2px 0 #614a00;
}

.pb-content {
    background: #fff;
    padding: .3rem .3rem;
    font-size: 1.3rem;
}

.pb-content li {
    padding: .3rem 0;
    border-bottom: 1px solid #ddd;
}

.pb-content li:last-child {
    border-bottom: 0;
}

.pb-content li span {
    display: flex;
    float: right;
}

.tzlb-content {
    background: #fff;
    font-size: 1.5rem;
    text-align: center;
}

.tzlb-content li {
    margin: 5px 0;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #aaa;
    border-left: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    font-weight: bold;
}

.tzlb-content li:last-child {
    border-bottom: 1px solid #aaa;
}

.tzlb-content li span {
    font-size: 1.1rem;
}

.tzlb-content li font {
    margin-left: .2rem;
    padding: .1rem;
    border: .1rem solid #f00;
    border-radius: .3rem;
    color: #f00;
    font-size: .9rem;
    vertical-align: middle;
}

.br-12 {
    border-radius: 3px;
    overflow: hidden;
}

.wr { color: #f00 !important; }
.wg { color: #080 !important; }
.wb { color: #00f !important; }
.wp { color: #f0f !important; }
.wy { color: #ff0 !important; }
.wo { color: #f60 !important; }
.ww { color: #fff !important; }
.wbl { color: #000 !important; }
@media (max-width: 640px) {
    .container,
    .header {
        max-width: 480px;
    }

    .logo {
        min-height: 46px;
    }

    .logo img {
        width: 170px;
    }

    .content {
        padding: 4px 0 0;
    }

    .tzlb-content {
        background: #fff;
        font-size: 1.3rem;
        text-align: center;
    }

    .list-title {
        height: 36px;
        font-size: 16pt;
        line-height: 32px;
    }

    .duilianpt td,
    .duilianpt th {
        font-size: 12pt;
    }

    .detail-body h1 {
        margin-bottom: 8px;
        padding: 6px 10px;
        font-size: 16px;
    }

    .detail-body p {
        padding: 7px 10px;
        font-size: 10pt;
        line-height: 1.45;
        white-space: normal;
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    .post-list li {
        font-size: 14px;
        line-height: 18px;
    }

    .post-list .post-period,
    .post-list .post-predict,
    .post-list .post-result {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .post-ext {
        font-size: 16px;
    }

    .post-ext p {
        margin-left: 20px;
        padding-left: 4em;
        text-indent: -3em;
        padding-top: 0;
        padding-bottom: 0;
    }

    .qnzl-detail p {
        overflow-x: visible;
        white-space: normal;
        word-break: break-all;
        overflow-wrap: anywhere;
        scrollbar-width: auto;
    }

    .detail-body p + p {
        margin-top: 4px;
    }
}
