* {
    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;
}

/* 合并后的 container（只保留一份） */
.container {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 10px;
}

/* 顶部登录 */
.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;
}

/* 版块分类 */
/* 首页分区 */
.index-category {
    margin-top: 10px;
    border: 1px solid #dce6f4;
}

.index-category-header {
    background: #eef4fb;
    padding: 6px 10px;
    font-weight: bold;
    border-bottom: 1px solid #dce6f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.index-category-header a {
    color: #2b7de1;
}

.index-category-header a:hover {
    text-decoration: underline;
}

.collapse {
    color: #999;
    cursor: pointer;
}

.index-category-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
}

.index-category-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px dashed #e0e0e0;
    border-right: 1px dashed #e0e0e0;
}

.index-category-item:nth-child(3n) {
    border-right: none;
}

.index-category-icon {
    width: 32px;
    height: 32px;
    background: #ddd;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.index-category-info h4 {
    font-size: 13px;
    margin-bottom: 3px;
}

.index-category-info h4 a {
    color: #2b7de1;
}

.index-category-info h4 a:hover {
    text-decoration: underline;
}

.index-category-info p {
    color: #999;
    line-height: 1.4;
    font-size: 11px;
}

/* 底部 */
.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;
}