/* 全局重置与基础字体 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "SimSun", "宋体", "Microsoft YaHei", sans-serif; /* 使用宋体更有老论坛味道 */
    background-color: #e5e5e5; /* 经典浅灰背景 */
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: #369;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

/* 通用容器 */
.container {
    width: 100%;
    max-width: 960px; /* 经典论坛宽度 */
    margin: 0 auto;
    padding: 0 10px;
}

/* 顶部导航栏 */
.top-bar {
    background-color: #fff;
    border-bottom: 2px solid #369; /* 经典深蓝底边 */
    height: 50px;
    line-height: 50px;
    margin-bottom: 15px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-name {
    font-size: 16px;
    font-weight: bold;
    color: #369;
}

/* 文件上传按钮样式（伪装成老式按钮） */
.upload-area input {
    display: none;
}

.upload-btn {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 2px;
    cursor: pointer;
    color: #333;
    font-size: 12px;
}

.upload-btn:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

/* 帖子头部 */
.thread-header {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    padding: 20px;
    margin-bottom: 10px;
}

.thread-header h1 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    border-left: 5px solid #369;
    padding-left: 10px;
}

.thread-info {
    font-size: 12px;
    color: #999;
}

/* 楼层卡片 - 核心样式 */
.post-floor {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    margin-bottom: 8px;
    overflow: hidden; /* 清除浮动 */
}

/* 楼层内部布局：左侧用户信息，右侧内容 */
.user-info {
    float: left;
    width: 160px; /* 经典侧边栏宽度 */
    background-color: #f9f9f9;
    border-right: 1px solid #e5e5e5;
    padding: 15px;
    text-align: center;
}

.post-content {
    margin-left: 160px; /* 留出左侧宽度 */
    padding: 15px;
    min-height: 120px;
}

/* 头像样式 */
.avatar {
    width: 100px;
    height: 100px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #999;
    font-family: Arial, sans-serif;
}

.username {
    font-weight: bold;
    color: #369;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
    word-break: break-all;
}

.user-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.user-level {
    display: inline-block;
    background-color: #ff6600; /* 经典的橙色等级条 */
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
}

/* 正文区域 */
.floor-num {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
}

.floor-num strong {
    color: #333;
    margin-right: 10px;
}

.post-text {
    font-size: 15px;
    line-height: 1.8;
    color: #000;
    white-space: pre-wrap; /* 保留换行 */
    word-wrap: break-word;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    padding: 50px;
    background: #fff;
    border: 1px solid #dcdcdc;
    color: #999;
}

.hint {
    font-size: 12px;
    margin-top: 10px;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .user-info {
        float: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
        display: flex;
        align-items: center;
        padding: 10px;
        text-align: left;
    }

    .avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0 10px 0 0;
    }

    .user-details {
        display: flex;
        flex-direction: column;
    }
    
    .user-title, .user-level {
        display: none; /* 手机端隐藏次要信息 */
    }

    .post-content {
        margin-left: 0;
        padding: 15px;
    }
}



/* 面包屑导航样式 */
.breadcrumb {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.breadcrumb a {
    color: #369;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #999;
}