* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    /*font-size: 16px;*/
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 顶部头部区域 */
.header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    height: 36px;
}

.header-left {
    display: flex;
    gap: 12px;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.header a:hover,
.header a:active {
    color: #ff6600;
}

.user-status {
    color: #333;
    font-weight: normal;
}

.message-badge {
    background-color: #ff4444;
    color: #fff;
    padding: 1px 5px;
    font-size: 13px;
    margin-left: 3px;
}

/* 顶部导航栏 */
.top-nav {
    background: #FFCC00;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2px;
    height:126px;
}
.top-nav::-webkit-scrollbar {
    display: none;
}


.top-nav::-webkit-scrollbar {
    display: none;
}

.nav-item {
    text-decoration: none;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
    display: inline-block;
    flex-shrink: 0;
    width: calc(25% - 1.6px);
    box-sizing: border-box;
    text-align: center;
    background-color: #ffd850;
    line-height: 30px;
    height:30px;
    white-space: nowrap;
    overflow: hidden;
    /*text-overflow: ellipsis;*/
}


.nav-item:visited {
    color: #551A8B;
}

.nav-item:hover, .nav-item:active {
    color: #FF0000;
}

/* 主内容区 */
.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: #fff;
    min-height: calc(100vh - 50px);
}

/* 页面标题 */
.page-title {
    background: #fff;
    color: #663300;
    padding: 5px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.page-title-left {
    flex-shrink: 0;
    width: auto;
}

.page-title-right {
    flex: 1;
    min-width: 0;
}

.page-title-right input{
    height:25px;line-height:25px;
}


/* 版主信息 */
.moderator-info {
    background-color: #fff;
    padding: 5px 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 10px;
}

.moderator-info-left {
    flex-shrink: 0;
    width: auto;
}

.moderator-info-right {
    flex: 1;
    min-width: 0;
    font-size:12px;
    line-height:25px;
    text-align:right;
}
.moderator-info-right p{padding-left:0px;}
.moderator-info-right p a{color:#cc0000;}
#bbslike-content{width:90%;display:none;}

.moderator-info .mod-title {
    color: #663300;
    font-weight: bold;
}

.moderator-info a {
    text-decoration: none;
}

.post-meta {
    font-size: 12px;
    color: #cc0000;
    margin-top: 3px;
}

/* 工具条 */
.toolbar {
    display: flex;
    justify-content: center;
    padding: 5px 10px;
    background-color: #efefef;/**/
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    gap: 15px;
    font-size: 14px;
}
.toolbar a{text-decoration: none;}

/* 精华热点区域 */
.section {
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.2;
}

.section-title {
    color: #d32f2f;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 2px solid #d32f2f;
}
.section-title a{color: #d32f2f;text-decoration: none;}
.section-title-right{display:inline-block;float:right;font-size:12px;}
.section-title-right a{text-decoration: none;color:#666;padding-left:5px;}

/* 列表项 */
.post-list {
    list-style: none;
    padding: 0;
    line-height: 1.4;
}

.post-item {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #e0e0e0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item a {
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}

.post-item a:hover {
    text-decoration: underline;
}

.post-title {
    color: #000;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 3px;
    display: inline;
}

.post-author {
    color: #000;
    font-size: 16px;
}

.post-stats {
    color: #999;
    font-size: 16px;
    font-style: italic;
    margin-top: 3px;
    display: inline;
}

.post-content {
    line-height: 1.4;
}

/* 功能按钮 */
.action-buttons {
    display: none;
}

.action-btn {
    text-decoration: none;
    padding: 0px 5px;
    border: 1px solid #999;
    font-size: 14px;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.2s;
}

.action-btn:hover, .action-btn:active {
    border-color: #666;
    background-color: #e0e0e0;
    color: #000;
}

/* 回复嵌套 */
.reply-item {
    margin-left: 20px;
    margin-top: 10px;
    padding-left: 15px;
    border-left: 3px solid #e0e0e0;
    font-size: 16px;
    color: #555;
}

.reply-item a {
    /* 使用浏览器默认颜色 */
}

/* 响应式调整 */
@media screen and (max-width: 375px) {
    body {
        font-size: 19px;
    }

    .header {
        font-size: 17px;
        padding: 6px 10px;
        height: 32px;
    }

    .header-left,
    .header-right {
        gap: 10px;
    }

    .page-title {
        font-size: 24px;
        padding: 18px 12px;
    }

    .nav-item {
        font-size: 16px;
        padding: 7px 12px;
    }

    .section {
        padding: 12px;
    }

    .section-title {
        font-size: 20px;
    }

    .post-item a, .post-title {
        font-size: 16px;
    }
}

@media screen and (min-width: 768px) {
    .container {
        max-width: 768px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .top-nav {
        justify-content: center;
    }
}

/* 突出显示 */
.highlight {
    background-color: #fff3cd;
    padding: 2px 5px;
}

/* 特殊标记 */
.new-badge {
    background-color: #ff4444;
    color: #fff;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: 5px;
}

/* 登录表单弹窗样式 */
.login-form-container {
    display: none;
    width: 85%;
    padding: 10px;
    background: #fff;
}

.login-form-container h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #FFCC00;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #FFCC00;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #FFCC00;
    border: none;
    font-size: 18px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #ffd850;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
}

.form-footer a {
    color: #0066cc;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.form-divider {
    margin: 15px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}