/* ===== 全局 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 12px;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: #333;
}

/* ===== 顶部登录 ===== */
.top-login-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.login-row input[type="text"],
.login-row input[type="password"] {
    border: 1px solid #ccc;
    padding: 2px 5px;
    width: 120px;
}

.checkbox {
    font-size: 12px;
    margin-left: 5px;
}

.link {
    color: #666;
    margin-left: 5px;
}

.btn-login {
    padding: 2px 10px;
    cursor: pointer;
}

/* ===== 蓝色导航 ===== */
.nav-bar {
    background: #2b7de1;
    color: #fff;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 3px 3px 0 0;
}

.nav-title {
    font-size: 14px;
    font-weight: bold;
}

.quick-nav {
    background: #fff;
    color: #333;
    border: none;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: pointer;
}

/* ===== 搜索栏 ===== */
.search-bar {
    background: #f2f2f2;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    border: 1px solid #ccc;
    padding: 3px;
    width: 180px;
}

.search-box select {
    border: 1px solid #ccc;
    padding: 2px;
    margin: 0 5px;
}

.btn-search {
    background: #2b7de1;
    color: #fff;
    border: none;
    padding: 3px 10px;
    cursor: pointer;
}

.hot-keywords {
    color: #666;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-keywords a {
    color: #333;
    margin: 0 2px;
}

/* ===== 统计栏 ===== */
.stats-bar {
    background: #f9f9f9;
    padding: 5px 15px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.path {
    color: #666;
    margin-bottom: 3px;
}

.stats {
    color: #666;
}

/* ===== 主体容器 ===== */
.container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 10px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
}

.breadcrumb a {
    color: #2d64b3;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

/* ===== 公告 ===== */
.notice {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 8px 12px;
    font-size: 12px;
    color: #8a6d3b;
    margin-bottom: 10px;
}

/* ===== 版块标题 ===== */
.section-header {
    background: #2b7de1;
    color: #fff;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 3px 3px 0 0;
}

.section-header .sub {
    font-size: 11px;
    font-weight: normal;
    color: #e0eaff;
    margin-left: 8px;
}

/* ===== 帖子列表表格（适配 HTML class="thread-table"） ===== */
.thread-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d5e3f3;
    border-top: none;
    font-size: 12px;
}

.thread-table th {
    background: #f2f7fd;
    padding: 8px 10px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #d5e3f3;
    font-size: 12px;
    text-align: center;
}

.thread-table th.thread-info {
    text-align: left;
}

.thread-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.thread-table tr:hover td {
    background: #f9fcff;
}

/* 列宽与对齐 */
.thread-table .thread-icon {
    width: 40px;
    text-align: center;
    font-size: 14px;
}

.thread-table .thread-info {
    width: auto;
}

.thread-table .thread-replies {
    width: 60px;
    text-align: center;
    color: #666;
}

.thread-table .thread-time {
    width: 130px;
    text-align: center;
    color: #666;
    font-size: 11px;
    line-height: 1.5;
}

/* 帖子标题 */
.thread-table .post-title {
    color: #2d64b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.thread-table .post-title:hover {
    text-decoration: underline;
    color: #1e6bc7;
}

/* 帖子元信息 */
.thread-table .post-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.thread-table .post-meta span {
    color: #888;
}

/* ===== 分页（适配 HTML class="pagination"） ===== */
.pagination {
    margin: 15px 0;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid #d5e3f3;
    background: #fff;
    color: #2d64b3;
    text-decoration: none;
    font-size: 12px;
}

.pagination a:hover {
    background: #2d64b3;
    color: #fff;
}

.pagination a.active {
    background: #2d64b3;
    color: #fff;
    font-weight: bold;
}

/* ===== 底部 ===== */
.footer-links {
    display: flex;
    justify-content: left;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.footer-links a {
    color: #666;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 11px;
    color: #999;
    line-height: 1.5;
}

.copyright-right {
    text-align: right;
}

/* ===== 门控遮罩 ===== */
.gate-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.gate-mask.show {
    display: flex;
}

.gate-box {
    background: #fff;
    border-radius: 10px;
    padding: 30px 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gate-box h2 {
    color: #333;
    margin-bottom: 10px;
}

.gate-box .question {
    margin: 15px 0 10px;
    color: #555;
    line-height: 1.6;
}

.gate-step {
    display: none;
}

.gate-step.active {
    display: block;
}

.gate-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.gate-box button {
    width: 100%;
    padding: 10px;
    background: #2b7de1;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.gate-box button:hover {
    background: #1e6bc7;
}

.gate-box .hint {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
}

.gate-box .error-msg {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 10px;
    min-height: 18px;
}

.maintenance h3 {
    font-size: 20px;
    color: #f39c12;
    margin-bottom: 10px;
}

.maintenance p {
    color: #666;
    margin: 5px 0;
}

.maintenance .countdown {
    color: #999;
    font-size: 12px;
    margin: 15px 0 10px;
}

.maintenance .countdown span {
    color: #e74c3c;
    font-weight: bold;
    font-size: 16px;
}

.btn-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: #2b7de1;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none;
}