/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}
.container {
    width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}
a {
    text-decoration: none;
    color: #007bff;
}
a:hover {
    text-decoration: underline;
}

/* 头部 */
.header {
    background: #343a40;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header .logo {
    float: left;
    font-size: 24px;
    font-weight: bold;
}
.header .logo a {
    color: #fff;
}
.header .nav {
    float: right;
}
.header .nav ul {
    list-style: none;
}
.header .nav ul li {
    display: inline-block;
    margin-left: 20px;
}
.header .nav ul li a {
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}
.header .nav ul li a:hover {
    background: #495057;
    text-decoration: none;
}

/* 主要内容区 */
.content {
    min-height: 500px;
    padding: 30px 0;
}
.main {
    float: left;
    width: 70%;
}
.sidebar {
    float: right;
    width: 28%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.post-item {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.post-item h3 {
    margin-bottom: 10px;
}
.post-item h3 a {
    color: #333;
}
.post-item p {
    color: #666;
    font-size: 14px;
}
.vip-tag {
    display: inline-block;
    background: #ffc107;
    color: #333;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* 帖子详情页 */
.post-detail {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.post-detail h1 {
    margin-bottom: 15px;
}
.post-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.post-meta span {
    margin-right: 15px;
}
.post-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}
.post-actions {
    margin-bottom: 30px;
}
.comment-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}
.comment-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}
.comment-content {
    margin-bottom: 10px;
}
.comment-actions button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
}
.comment-actions button:hover {
    text-decoration: underline;
}
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}
.comment-form button {
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.comment-form button:hover {
    background: #0056b3;
}

/* 广告位 */
.sidebar .ad-item {
    margin-bottom: 20px;
    text-align: center;
}
.sidebar .ad-item img {
    max-width: 100%;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* 页脚 */
.footer {
    background: #343a40;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.btn {
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn:hover {
    background: #0056b3;
}
.error {
    color: #dc3545;
    margin-bottom: 10px;
}
.success {
    color: #28a745;
    margin-bottom: 10px;
}