* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    text-decoration: none;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 30px;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #4CAF50;
}
.user-actions {
    display: flex;
    align-items: center;
}
.user-actions a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
}
.btn {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #45a049;
}
/* 主内容区域 */
.main-content {
    margin-top: 80px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
}
.left-column {
    width: 70%;
}
.right-column {
    width: 28%;
}
.post-list {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.post-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.post-item:last-child {
    border-bottom: none;
}
.post-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}
.post-title a {
    text-decoration: none;
    color: #333;
}
.post-title a:hover {
    color: #4CAF50;
}
.post-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}
.post-meta {
    display: flex;
    align-items: center;
    color: #999;
    font-size: 14px;
}
.avatar {
    display: none !important;
}
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.post-stats {
    display: flex;
}
.post-stats span {
    margin-right: 20px;
    color: #999;
}
/* 侧边栏样式 */
.sidebar-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}
.category-list {
    list-style: none;
}
.category-list li {
    margin-bottom: 10px;
}
.category-list a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}
.category-list a:hover {
    color: #4CAF50;
}
/* 热门话题样式 */
.hot-topic-item {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
}
.hot-topic-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.hot-rank {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    margin-right: 15px;
}
.hot-topic-content {
    flex: 1;
}
/* 帖子详情页样式 */
.post-detail {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.comment-form {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.comment-form h3 {
    margin-bottom: 15px;
    color: #333;
}
.comment-list {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
}
.comment-list h3 {
    margin-bottom: 15px;
    color: #333;
}
.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-content {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.post-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}
.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 14px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.post-stats {
    display: flex;
}
.post-stats span {
    margin-right: 20px;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
/* 表单样式 */
.form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    margin: 50px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    .left-column, .right-column {
        width: 100%;
    }
    .nav-links {
        display: none;
    }
}