@charset "utf-8";

/* 链接样式 */
a:link, a:visited, a:active {
    text-decoration: none;
    color: #000;
}

a:active {
    font-size: 12px;
}

a:hover {
    text-decoration: underline;
    text-align: center;
    color: #000;
}

/* 修复：确保侧边栏分类链接显示为 #FF0000，并覆盖通用 a:link 规则 */
a.td-fontff0000,
a.td-fontff0000:link,
a.td-fontff0000:visited {
    color: #FF0000;
    text-decoration: none;
}

    a.td-fontff0000:hover {
        text-decoration: underline;
        color: #FF0000;
    }

/* headerlist */
#headerlist {
    color: #000;
}
/* 评论区样式调整 */

/* 1. “已有几条评论”标题靠左显示 */
#comments > b {
    display: block; /* 将其变为块级元素以控制对齐 */
    text-align: left;
    margin-bottom: 10px; /* 与下方评论列表拉开一点距离 */
}

/* 2. 回复的层级缩进显示 */
.comment-children {
    padding-left: 20px; /* 为回复区域增加左内边距，形成缩进 */
    margin-top: 10px; /* 与父评论内容拉开距离 */
    border-left: 2px solid #e5e5e5; /* 添加一条竖线，增强层级感 */
}

/* 3. 调整回复评论本身的间距 */
.comment-child {
    margin-top: 10px;
}
/* 评论列表：移除默认的数字序号和左侧缩进 */
#comments ol.comment-list {
    list-style-type: none !important;
    padding-left: 0 !important;
}
/* 基础字体和布局 */
.body {
    margin: 0;
    font-size: 12px;
    font-family: "宋体";
}

/* 表格和字体 */
.table_top1 {
    border: 0;
    width: 755px;
    font-size: 12px;
    color: #000000;
    text-align: left;
    border-spacing: 0;
}

.bar, .menufont {
    font-size: 12px;
}

.bodymfont, .bodymfont2, .bodymfont3 {
    font-size: 12px;
    text-align: center;
}

.bodymfont {
    color: red;
}

.bodymfont2 {
    font-weight: bold;
}

.bodymfontr1, .bodymfontr2 {
    font-size: 12px;
    color: #09E;
    text-align: center;
}

td, th {
    border-collapse: collapse;
    margin: 0;
    font-size: 12px;
}

/* 其它表格样式 */
.footertable {
    text-align: center;
}

.border {
    border-right: 1px dotted;
    border-top: 1px dotted;
    border-left: 1px dotted;
    color: #000000;
    border-bottom: 1px dotted;
    border-collapse: collapse;
    background-color: #efefef;
}

/* 分类宽度等 */
.slhr {
    width: 155px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.slhm {
    width: 220px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    float: left;
}

.slhl {
    width: 440px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.slhdiv {
    float: left;
}

/* 分类显示块 */
.showd, .showdr {
    display: inline-block;
    width: 155px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    padding-left: 1px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.showm {
    display: inline-block;
    width: 418px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
}

.showm1 {
    display: inline-block;
    width: 63px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    vertical-align: middle;
}

.showm2 {
    display: inline-block;
    width: 230px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    vertical-align: middle;
}

.showm3 {
    display: inline-block;
    width: 118px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 0px solid #EFEFEF;
    font-size: 12px;
    table-layout: fixed;
    word-break: break-all;
    height: 16px;
    vertical-align: middle;
    text-align:right;
}

.showt {
    display: inline-block;
    width: 418px;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.showm-lb, .showm-lb-bt {
    width: 460px;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    height: 16px;
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;

}

.showm-lb-time {
    width: 115px;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    height: 16px;
}

/* index.css 部分 */
.td-index, .td-index2, .td-index-top {
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid #EFEFEF;
    font-family: 宋体;
    table-layout: fixed;
    word-break: break-all;
    font-size: 9px;
}

.td-index {
    height: 18px;
}

.td-index-top {
    height: 18px;
}

.td-search {
    padding-left: 5px;
    padding-right: 5px;
    border: 1px solid #EFEFEF;
    font-family: 宋体;
    table-layout: fixed;
    word-break: break-all;
    height: 40px;
    font-size: 9px;
}

/* 优化：内容多行省略 */
.clamp-5 {
    line-clamp: 5;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

/* archive.php专用表格样式 */
.td-h18 {
    height: 18px;
}

.td-w72 {
    width: 72px;
}

.td-w75 {
    width: 75px;
}

.td-w210 {
    width: 210px;
}

.td-bg-f5 {
    background-color: #f5f5f5;
}

.td-bg-fff {
    background-color: #fff;
}

.td-center {
    text-align: center;
}

.td-right {
    text-align: right;
}

.td-top {
    vertical-align: top;
}

.td-colspan2 {
}

.td-colspan4 {
}

.td-style5 {
}

.td-font666 {
    color: #666666;
}

.td-font000 {
    color: #000000;
}

.td-fontff6600 {
    color: #FF6600;
}

.td-fontff9933 {
    color: #ff9933;
}

.td-font12 {
    font-size: 12px;
}

.td-font9 {
    font-size: 9px;
}

/* 左中右栏宽度和高度 */
.td-w159 {
    width: 159px;
}

.td-w155 {
    width: 155px;
}

.td-w420 {
    width: 420px;
}

.td-w418 {
    width: 418px;
}

.td-top {
    vertical-align: top;
}

.td-center {
    text-align: center;
}

.td-right {
    text-align: right;
}

.td-bold {
    font-weight: bold;
    padding-top: 5px;
    padding-bottom: 5px;
}

.td-h16 {
    height: 16px;
}

/* 颜色类 */
.td-fontff0000 {
    color: #FF0000;
}

.td-fontff9900 {
    color: #FF9900;
}

.td-font666 {
    color: #666666;
}

.td-font000 {
    color: #000000;
}

.td-fontff6600 {
    color: #FF6600;
}

.td-fontb1b8c2 {
    color: #B1B8C2;
}

.td-border {
    border: 1px solid #EFEFEF;
}

.td-w583 {
    width: 583px;
}

.td-w581 {
    width: 581px;
}

.td-w580 {
    width: 580px;
}

.td-h87 {
    height: 87px;
}

.td-h18 {
    height: 18px;
}

.td-w72 {
    width: 72px;
}

.td-w210 {
    width: 210px;
}

.td-w75 {
    width: 75px;
}

.td-bg-f5 {
    background-color: #f5f5f5;
}

.td-bg-fff {
    background-color: #fff;
}

.td-center {
    text-align: center;
}

.td-right {
    text-align: right;
}

.td-left {
    text-align: left;
}

.td-top {
    vertical-align: top;
}

.td-colspan2 {
}

.td-colspan4 {
}

.td-font000 {
    color: #000000;
}

.td-font666 {
    color: #666666;
}

.td-table-fixed {
    table-layout: fixed;
}

.td-wordbreak {
    word-break: break-all;
}

.td-fontff6600 {
    color: #FF6600;
}

.td-fontff9900 {
    color: #FF9900;
}

.td-fontb1b8c2 {
    color: #B1B8C2;
}

.clamp-5 {
    line-clamp: 5;
    -webkit-line-clamp: 5;
    overflow: hidden;
}

.td-w155 {
    width: 155px;
}


.td-middle {
    vertical-align: middle;
    padding-top: 5px;
    padding-bottom: 5px;
}

.td-fontff0000 {
    color: #FF0000;
    padding-top: 5px;
    padding-bottom: 5px;
}

.td-font999 {
    color: #999999;
}

.td-sidebar-search {
    border: 1px solid #EFEFEF;
    font-size: 9pt;
    font-family: 宋体;
    table-layout: fixed;
    word-break: break-all;
}

.td-sidebar-note {
    border: 1px solid #EFEFEF;
    padding-top: 5px;
    padding-left: 5px;
    padding-bottom: 5px;


}

.td-left {
    text-align: left;
}

.td-center {
    text-align: center;
}
/* 表格分隔线和边框风格（仿原版） */
.table-top-border, .post-table {
    border: 1px solid #c8cbce;
    border-collapse: separate;
    border-spacing: 1px;
    background-color: #c8cbce;
}

    .post-table td, .post-table th {
        background: #fff;
        border: 1px solid #c8cbce;
        padding: 4px;
        font-size: 12px;
    }

    .post-table .td-bg-f5 {
        background: #f5f5f5;
    }

    .post-table .td-bg-fff {
        background: #fff;
    }

#comments :not(input):not(textarea):not(button) {
    color: #777777 !important;
}
/* 默认桌面/通用规则（可放在 main.css / mobile.css 中） */
.logo-cell {
    vertical-align: middle;
}

    .logo-cell img.main-logo {
        display: inline-block;
        max-width: 100%;
        height: auto;
    }

.mobile-logo-text {
    display: none; /* 桌面隐藏文字，移动端显示 */
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-top: 6px;
}
/* 使 header 中的 bar 图片与下方内容等宽并居中（响应式） */
.bar-cell {
    padding: 0;
    text-align: center;
}

    .bar-cell img {
        display: block;
        margin: 0 auto;
        width: 100%;
        max-width: 577px; /* 保留原设计最大宽度，必要时调整为 100% 或 755px */
        height: auto;
        box-sizing: border-box;
    }

.table_top1 {
    box-sizing: border-box; /* 确保宽度计算一致 */
    margin-left: auto;
    margin-right: auto;
}

/* Footer 调整：让 footer 宽度与页面主体保持一致并居中；规范 hr 样式 */
.footer-table {
    width: 100%;
    max-width: 760px; /* 与 header bar 最大宽度对齐，解决横线过长问题 */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 10px; /* 视需要调整左右内边距 */
    width: 760px;
    padding-right: 0px;
    padding-left: 0px;
}

.footer-hr {
    height: 12px; /* 控制横线上下间距，可按需微调 */
}

    .footer-hr hr {
        border: 0;
        height: 1px;
        background: #c8cbce; /* 与 .table-top-border 边框颜色一致 */
        margin: 0;
        max-width: 100%;
        display: block;
    }

/* footer 其余样式保持原样以保证桌面一致性 */
.footer-bar {
    font-size: 9pt;
    color: #333;
}

.footer-link-group {
    font-size: 9pt;
}

.footer-link {
    color: #000;
    text-decoration: none;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.footer-sep {
    color: #000;
}

.footer-stats {
    font-size: 9pt;
}

.footer-orange {
    color: #ff9933;
}

.footer-title {
    font-size: 9pt;
}

.footer-green {
    color: #00FF00;
}

.footer-copyright {
    font-size: 9pt;
}

.footer-powered {
    font-size: 9pt;
}

.footer-brown {
    color: #CC6600;
}

.footer-icp {
    font-size: 9pt;
}

.footer-black {
    color: #000;
}

.td-center {
    text-align: center;
}

.post-body {
    padding-top: 0;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    border-right-width: 5px; /* 仅设置宽度，不会显示边框 */
    line-height: 1.65; /* 新增：正文行距 */
}
.table_top1 td[width="583"] table[bgcolor="#c8cbce"] td {
    padding-top: 5px;
    padding-bottom: 5px;
}
/* 放大整体页面并字体 */
body.zoomed {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), font-size 0.3s cubic-bezier(.4,0,.2,1);
    transform: scale(1.12);
    transform-origin: 50% 0;
    font-size: 15px !important; /* 原12px，放大一号 */
}
body.zoomed td,
body.zoomed th,
body.zoomed .post-body,
body.zoomed .body,
body.zoomed .showm,
body.zoomed .showd,
body.zoomed .showm1,
body.zoomed .showm2,
body.zoomed .showm3 {
    font-size: 15px !important;
}
/* 桌面端：侧边栏分类表头和分类内容居中，且有边框，仅桌面生效 */
@media only screen and (min-width: 768px) {
    .category-header-row > td,
    .category-list-row > td {
        text-align: center !important;
        border: 1px solid #EFEFEF !important;
        vertical-align: middle !important;
        padding: 6px 0 !important;
        background: #fff !important;
    }

        .category-header-row > td strong {
            font-weight: bold;
            font-size: 12px;
        }

    .category-list-td {
        text-align: center !important;
        border: 1px solid #EFEFEF !important;
        background: #fff !important;
        padding: 6px 0 !important;
        font-size: 12px;
    }
    /* 侧边栏表格整体宽度修正，保证表头和内容对齐 */
    #side-td > table.td-w155,
    td[width="159"] > table.td-w155 {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
        /*border-spacing: 0 !important;*/
    }
    /* 分类表头、分类内容、TOP10表头单元格宽度和对齐修正 */
    .category-header-row > td,
    .category-list-row > td,
    .bodymfont > td.showd,
    .bodymfontr1 > td.showd,
    .bodymfontr2 > td.showd {
        width: 100% !important;
        min-width: 0 !important;
        /*box-sizing: border-box !important;*/
        text-align: center !important;
        border: 1px solid #EFEFEF !important;
        /*padding: 6px 0 !important; */
        background: #fff !important;
        vertical-align: middle !important;
    }
    /* 分类内容单元格特殊样式 */
    .category-list-td {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        text-align: center !important;
        border: 1px solid #EFEFEF !important;
        background: #fff !important;
        padding: 6px 0 !important;
        font-size: 12px !important;
    }
    /* 保证TOP10表头不偏移 */
    .bodymfontr1 > td.showd,
    .bodymfontr2 > td.showd {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* 保证侧边栏表格内所有td宽度一致 */
    #side-td table.td-w155 td,
    td[width="159"] table.td-w155 td {
        width: 100% !important;
        min-width: 0 !important;
        /*box-sizing: border-box !important;*/
    }
    .bodymfont > td.showd,
    .bodymfontr1 > td.showd,
    .bodymfontr2 > td.showd,
    tr > td.showd {
        width: 155px !important;
        max-width: 155px !important;
        min-width: 155px !important;
        box-sizing: border-box;
        text-align: left; /* 让文字靠左 */
        /*    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;*/
        padding-left: 4px; /* 可选，微调左边距 */
        height: 27.6px !important;
    }

    .showd, .showdr {
        width: 155px !important;
        box-sizing: border-box;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: left;
        padding-left: 4px;
    }

    .bodymfontr1 > td.showd,
    .bodymfontr2 > td.showd {
        width: 155px !important;
        box-sizing: border-box;
    }

    .showd strong {
        display: inline-block;
        padding-left: 4px;
        text-align: left;
    }

    .td-w155 {
        width: 155px;
        table-layout: fixed;
    }

    #home-left td,
    #home-left .showd {
        width: 155px !important;
        box-sizing: border-box;
    }

    #home-left .td-sidebar-search {
        width: 155px !important;
        box-sizing: border-box;
        padding: 0;
        text-align: center; /* 让内容居中 */
    }
}
