/* ========================================
 * 论坛模板样式 - 蓝色系风格
 * 主色调: #2196F3
 * ======================================== */

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

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
    line-height: 1.6;
}

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

a:hover {
    color: #2196F3;
}

ul, ol {
    list-style: none;
}

img {
    border: none;
    max-width: 100%;
    vertical-align: middle;
}

input, button, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}

/* ========== 通用容器 ========== */
.wrap {
    width: 1200px;
    margin: 0 auto;
}

.fl { float: left; }
.fr { float: right; }
.mt10 { margin-top: 10px; }
.mt15 { margin-top: 15px; }
.mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; }
.mb15 { margin-bottom: 15px; }
.mb20 { margin-bottom: 20px; }

/* ========== 顶部导航条 ========== */
.top-bar {
    background: #f0f0f0;
    border-bottom: 1px solid #e5e5e5;
    height: 32px;
    line-height: 32px;
    font-size: 12px;
    color: #666;
}

.top-bar .top-left {
    float: left;
}

.top-bar .top-right {
    float: right;
}

.top-bar a {
    color: #666;
    margin: 0 8px;
}

.top-bar a:hover {
    color: #2196F3;
}

.top-bar .sep {
    color: #ccc;
}

/* ========== Header 区 ========== */
.header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #2196F3;
}

.header .logo {
    float: left;
    width: 280px;
}

.header .logo h1 {
    font-size: 28px;
    color: #2196F3;
    font-weight: bold;
    line-height: 50px;
}

.header .logo h1 a {
    color: #2196F3;
}

.header .logo p {
    font-size: 12px;
    color: #999;
    margin-top: -5px;
}

.header .search-box {
    float: left;
    width: 500px;
    margin-left: 60px;
    margin-top: 10px;
}

.header .search-box form {
    position: relative;
}

.header .search-box input[type="text"] {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 110px 0 15px;
    border: 2px solid #2196F3;
    border-radius: 20px;
    font-size: 14px;
    background: #fff;
}

.header .search-box button {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 100px;
    height: 36px;
    line-height: 36px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.header .search-box button:hover {
    background: #1976D2;
}

.header .search-box .hot-keys {
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.header .search-box .hot-keys a {
    color: #999;
    margin-right: 10px;
}

.header .search-box .hot-keys a:hover {
    color: #2196F3;
}

.header .user-actions {
    float: right;
    margin-top: 15px;
}

.header .user-actions a {
    display: inline-block;
    padding: 8px 20px;
    margin-left: 10px;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.header .user-actions .login-btn {
    border: 1px solid #2196F3;
    color: #2196F3;
    background: #fff;
}

.header .user-actions .login-btn:hover {
    background: #E3F2FD;
}

.header .user-actions .register-btn {
    background: #2196F3;
    color: #fff;
    border: 1px solid #2196F3;
}

.header .user-actions .register-btn:hover {
    background: #1976D2;
}

/* ========== 主导航 ========== */
.main-nav {
    background: #2196F3;
    height: 44px;
    line-height: 44px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    display: block;
    padding: 0 25px;
    color: #fff;
    font-size: 15px;
    transition: background 0.2s;
}

.main-nav li a:hover,
.main-nav li.active a {
    background: #1976D2;
    color: #fff;
}

.main-nav li:first-child a {
    padding-left: 30px;
}

/* ========== 公告/广告横幅 ========== */
.banner {
    margin-top: 15px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 6px;
    padding: 20px 30px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "公告";
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

.banner .banner-content {
    margin-left: 80px;
    font-size: 14px;
}

.banner .banner-content a {
    color: #fff;
    margin-right: 30px;
}

.banner .banner-content a:hover {
    text-decoration: underline;
}

/* ========== 主体内容区 ========== */
.main-content {
    margin-top: 15px;
}

.main-content .content-left {
    float: left;
    width: 860px;
}

.main-content .sidebar {
    float: right;
    width: 320px;
}

/* ========== 版块列表区 ========== */
.forum-section {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.forum-section .section-header {
    background: #1976D2;
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    position: relative;
}

.forum-section .section-header .section-icon {
    margin-right: 10px;
    font-size: 18px;
}

.forum-section .section-header .more {
    float: right;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: normal;
    margin-top: 4px;
}

.forum-section .section-header .more:hover {
    color: #fff;
}

.forum-section .forum-list {
    padding: 0;
}

.forum-section .forum-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.forum-section .forum-item:hover {
    background: #f8f9fa;
}

.forum-section .forum-item:last-child {
    border-bottom: none;
}

.forum-section .forum-icon {
    width: 48px;
    height: 48px;
    background: #E3F2FD;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2196F3;
    margin-right: 15px;
    flex-shrink: 0;
}

.forum-section .forum-info {
    flex: 1;
    min-width: 0;
}

.forum-section .forum-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}

.forum-section .forum-name a {
    color: #333;
}

.forum-section .forum-name a:hover {
    color: #2196F3;
}

.forum-section .forum-desc {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forum-section .forum-stats {
    text-align: center;
    width: 100px;
    flex-shrink: 0;
}

.forum-section .forum-stats .num {
    font-size: 18px;
    font-weight: bold;
    color: #2196F3;
}

.forum-section .forum-stats .label {
    font-size: 12px;
    color: #999;
}

.forum-section .forum-today {
    text-align: center;
    width: 80px;
    flex-shrink: 0;
    color: #FF5722;
    font-weight: bold;
}

.forum-section .forum-today .num {
    font-size: 18px;
}

.forum-section .forum-today .label {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

/* ========== 帖子列表 ========== */
.thread-list-box {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.thread-list-box .box-header {
    background: #1976D2;
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
}

.thread-list-box .box-header .tabs {
    float: right;
    font-size: 13px;
    font-weight: normal;
}

.thread-list-box .box-header .tabs a {
    color: rgba(255,255,255,0.8);
    margin-left: 15px;
}

.thread-list-box .box-header .tabs a:hover,
.thread-list-box .box-header .tabs a.active {
    color: #fff;
}

.thread-list {
    padding: 0;
}

.thread-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.thread-item:hover {
    background: #f8f9fa;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-item .thread-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E3F2FD;
    color: #2196F3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.thread-item .thread-main {
    flex: 1;
    min-width: 0;
}

.thread-item .thread-title {
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-item .thread-title a {
    color: #333;
}

.thread-item .thread-title a:hover {
    color: #2196F3;
}

.thread-item .thread-title .tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

.thread-item .thread-title .tag-top {
    background: #FF5722;
    color: #fff;
}

.thread-item .thread-title .tag-hot {
    background: #FF9800;
    color: #fff;
}

.thread-item .thread-title .tag-new {
    background: #4CAF50;
    color: #fff;
}

.thread-item .thread-meta {
    font-size: 12px;
    color: #999;
}

.thread-item .thread-meta span {
    margin-right: 15px;
}

.thread-item .thread-meta a {
    color: #2196F3;
}

.thread-item .thread-stats {
    text-align: right;
    width: 120px;
    flex-shrink: 0;
    font-size: 12px;
}

.thread-item .thread-stats .replies {
    color: #2196F3;
    font-weight: bold;
}

.thread-item .thread-stats .views {
    color: #999;
    margin-left: 10px;
}

.thread-item .thread-last {
    width: 150px;
    text-align: right;
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}

.thread-item .thread-last .last-replier {
    color: #2196F3;
    display: block;
    margin-bottom: 2px;
}

/* ========== 侧边栏 ========== */
.sidebar .widget {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.sidebar .widget-header {
    background: #2196F3;
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
}

.sidebar .widget-body {
    padding: 15px;
}

/* 签到 */
.signin-widget .signin-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.signin-widget .signin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    color: #fff;
}

.signin-widget .signin-info {
    display: flex;
    justify-content: space-around;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.signin-widget .signin-info .num {
    font-size: 18px;
    font-weight: bold;
    color: #2196F3;
    display: block;
}

/* 每日任务 */
.task-widget .task-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.task-widget .task-item:last-child {
    border-bottom: none;
}

.task-widget .task-icon {
    width: 28px;
    height: 28px;
    background: #E3F2FD;
    color: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

.task-widget .task-info {
    flex: 1;
    font-size: 13px;
}

.task-widget .task-reward {
    color: #FF9800;
    font-size: 12px;
}

/* 分类导航 */
.category-widget .cat-list {
    columns: 2;
    column-gap: 10px;
}

.category-widget .cat-list li {
    padding: 5px 0;
    font-size: 13px;
}

.category-widget .cat-list li a {
    color: #666;
}

.category-widget .cat-list li a:hover {
    color: #2196F3;
}

.category-widget .cat-list li a::before {
    content: "• ";
    color: #2196F3;
}

/* 公告 */
.notice-widget .notice-list li {
    padding: 6px 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-widget .notice-list li a {
    color: #666;
}

.notice-widget .notice-list li a:hover {
    color: #2196F3;
}

.notice-widget .notice-list li::before {
    content: "📢 ";
    font-size: 12px;
}

/* 友链 */
.link-widget .link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-widget .link-list a {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.link-widget .link-list a:hover {
    background: #E3F2FD;
    color: #2196F3;
}

/* 热门帖子/最新发布 */
.hot-widget .hot-list li {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hot-widget .hot-list li:last-child {
    border-bottom: none;
}

.hot-widget .hot-rank {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #ccc;
    color: #fff;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.hot-widget .hot-list li:nth-child(1) .hot-rank { background: #FF5722; }
.hot-widget .hot-list li:nth-child(2) .hot-rank { background: #FF9800; }
.hot-widget .hot-list li:nth-child(3) .hot-rank { background: #FFC107; }

.hot-widget .hot-title {
    flex: 1;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-widget .hot-title a {
    color: #333;
}

.hot-widget .hot-title a:hover {
    color: #2196F3;
}

.hot-widget .hot-views {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    margin-left: 10px;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    background: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #2196F3;
}

.breadcrumb .sep {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
}

/* ========== 版块介绍 ========== */
.forum-intro {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #2196F3;
}

.forum-intro h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.forum-intro p {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.forum-intro .forum-meta {
    font-size: 12px;
    color: #999;
}

.forum-intro .forum-meta span {
    margin-right: 20px;
}

.forum-intro .forum-meta strong {
    color: #2196F3;
    font-size: 16px;
    margin-right: 4px;
}

/* ========== 详情页 ========== */
.thread-detail {
    background: #fff;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.thread-detail .detail-header {
    padding: 25px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.thread-detail .detail-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.thread-detail .detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.thread-detail .detail-meta .author-info {
    display: flex;
    align-items: center;
}

.thread-detail .detail-meta .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E3F2FD;
    color: #2196F3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.thread-detail .detail-meta .author {
    color: #2196F3;
    font-weight: bold;
    margin-right: 10px;
}

.thread-detail .detail-stats {
    display: flex;
    gap: 20px;
}

.thread-detail .detail-stats span {
    display: flex;
    align-items: center;
}

.thread-detail .detail-stats strong {
    color: #2196F3;
    margin-right: 4px;
    font-size: 16px;
}

/* 帖子内容 - 楼主帖 */
.post-item {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item .post-author {
    width: 160px;
    padding: 20px;
    background: #fafafa;
    text-align: center;
    flex-shrink: 0;
    border-right: 1px solid #f0f0f0;
}

.post-item .post-author .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #E3F2FD;
    color: #2196F3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 10px;
}

.post-item .post-author .username {
    font-size: 14px;
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 6px;
}

.post-item .post-author .user-level {
    display: inline-block;
    padding: 2px 8px;
    background: #FF9800;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    margin-bottom: 8px;
}

.post-item .post-author .user-points {
    font-size: 12px;
    color: #999;
}

.post-item .post-author .user-points strong {
    color: #FF5722;
}

.post-item .post-body {
    flex: 1;
    padding: 20px 25px;
    min-width: 0;
}

.post-item .post-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.post-item .post-floor {
    font-size: 13px;
    color: #2196F3;
    font-weight: bold;
}

.post-item .post-floor .floor-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #2196F3;
    color: #fff;
    border-radius: 3px;
    margin-right: 10px;
}

.post-item .post-floor .floor-badge.lz {
    background: #FF5722;
}

.post-item .post-time {
    font-size: 12px;
    color: #999;
}

.post-item .post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}

.post-item .post-content p {
    margin-bottom: 12px;
}

.post-item .post-content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

.post-item .post-footer {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.post-item .post-footer a {
    font-size: 13px;
    color: #999;
}

.post-item .post-footer a:hover {
    color: #2196F3;
}

/* ========== 快速回复 ========== */
.reply-box {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.reply-box .reply-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2196F3;
    display: inline-block;
}

.reply-box textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.reply-box textarea:focus {
    border-color: #2196F3;
}

.reply-box .reply-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.reply-box .reply-tip {
    font-size: 12px;
    color: #999;
    margin-right: auto;
}

.reply-box .submit-btn {
    padding: 10px 30px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.reply-box .submit-btn:hover {
    background: #1976D2;
}

/* ========== 分页 ========== */
.pagination {
    text-align: center;
    padding: 20px 0;
    background: #fff;
    border-radius: 6px;
    margin-top: 15px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #2196F3;
    color: #2196F3;
}

.pagination .current {
    background: #2196F3;
    border-color: #2196F3;
    color: #fff;
}

.pagination .prev,
.pagination .next {
    padding: 6px 15px;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .page-info {
    border: none;
    color: #999;
}

/* ========== 底部 ========== */
.footer {
    background: #2c3e50;
    color: #aaa;
    padding: 30px 0 20px;
    margin-top: 30px;
}

.footer .footer-links {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #3d566e;
}

.footer .footer-links a {
    color: #bbb;
    margin: 0 15px;
    font-size: 13px;
}

.footer .footer-links a:hover {
    color: #fff;
}

.footer .footer-info {
    text-align: center;
    font-size: 12px;
    line-height: 2;
}

.footer .footer-info p {
    margin-bottom: 5px;
}

.footer .footer-info a {
    color: #aaa;
}

.footer .footer-info a:hover {
    color: #fff;
}

.footer .footer-copyright {
    color: #888;
    margin-top: 10px;
}

/* ========== 列表页筛选条 ========== */
.filter-bar {
    background: #fff;
    border-radius: 6px;
    padding: 12px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.filter-bar .filter-label {
    color: #666;
    margin-right: 15px;
    font-weight: bold;
}

.filter-bar .filter-options {
    flex: 1;
}

.filter-bar .filter-options a {
    display: inline-block;
    padding: 4px 12px;
    margin-right: 5px;
    border-radius: 3px;
    color: #666;
}

.filter-bar .filter-options a:hover,
.filter-bar .filter-options a.active {
    background: #2196F3;
    color: #fff;
}

.filter-bar .post-btn {
    padding: 6px 20px;
    background: #FF5722;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
}

.filter-bar .post-btn:hover {
    background: #E64A19;
    color: #fff;
}

/* ========== 帖子列表表头 ========== */
.thread-list-header {
    display: flex;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
    font-weight: bold;
}

.thread-list-header .col-title {
    flex: 1;
}

.thread-list-header .col-author {
    width: 100px;
    text-align: center;
}

.thread-list-header .col-stats {
    width: 120px;
    text-align: right;
}

.thread-list-header .col-last {
    width: 150px;
    text-align: right;
}
