/* ===== 微论坛 - 全新统一规范设计 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #1e2a3a;
    line-height: 1.5;
}

/* ===== 顶部红色条幅 ===== */
.top-banner {
    height: 4px;
    background: #b22222;
    width: 100%;
}

/* ===== 头部导航 - 统一所有页面 ===== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e9ed;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    color: #b22222;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1e2a3a;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: #6c757d;
}

.main-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-item {
    padding: 8px 16px;
    color: #1e2a3a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-item:hover {
    background: #f2f4f8;
    color: #b22222;
}

.nav-item.primary {
    background: #b22222;
    color: white;
}

.nav-item.primary:hover {
    background: #8b1a1a;
}

.nav-item.rules {
    border: 1px solid #b22222;
    color: #b22222;
}

.nav-item.rules:hover {
    background: #b22222;
    color: white;
}

.search-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: #f2f4f8;
    color: #1e2a3a;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 5px;
}

.search-btn:hover {
    background: #e6e9ed;
    color: #b22222;
}

/* ===== 主容器 - 统一所有页面 ===== */
.page-container {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

/* ===== 面包屑 - 统一所有页面 ===== */
.page-breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: #6c757d;
}

.page-breadcrumb a {
    color: #1e2a3a;
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: #b22222;
}

.page-breadcrumb span {
    margin: 0 8px;
    color: #adb5bd;
}

/* ===== 公告栏 - 统一所有页面 ===== */
.notice-bar {
    background: #fff5f5;
    border: 1px solid #ffd7d7;
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
}

.notice-tag {
    background: #b22222;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.notice-text {
    color: #b22222;
    flex: 1;
}

.notice-link {
    color: #b22222;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 4px;
    background: white;
    border: 1px solid #ffd7d7;
}

.notice-link:hover {
    background: #b22222;
    color: white;
}

/* ===== 帖子卡片 - 统一所有页面 ===== */
.post-card {
    background: white;
    border: 1px solid #e6e9ed;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.post-card:hover {
    border-color: #b22222;
}

/* 帖子头部 */
.post-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #b22222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.post-info {
    flex: 1;
}

.user-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e2a3a;
    text-decoration: none;
}

.user-name:hover {
    color: #b22222;
}

.original-tag {
    background: #ffd966;
    color: #1e2a3a;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.post-time {
    font-size: 12px;
    color: #6c757d;
}

.time-prefix {
    color: #6c757d;
    margin-right: 3px;
}

.original-code {
    font-size: 11px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
    font-family: monospace;
}

/* 正文内容 */
.post-body {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 16px;
    margin: 0 0 15px 0;
}

.post-text {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
    white-space: pre-wrap;
}

/* 媒体区域 */
.media-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin: 15px 0;
}

.media-item {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 1/1;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-item.video-item {
    aspect-ratio: 16/9;
    grid-column: span 2;
}

.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 链接区域 */
.post-external-link {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 3px solid #b22222;
    font-size: 14px;
}

.post-external-link a {
    color: #b22222;
    text-decoration: none;
}

.post-external-link a:hover {
    text-decoration: underline;
}

/* 底部操作栏 */
.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
}

.stats-group {
    display: flex;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    font-size: 13px;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 4px;
}

.stat-item.like-btn {
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.stat-item.like-btn:hover {
    background: #ffeeee;
    color: #b22222;
}

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f8f9fa;
    color: #1e2a3a;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #e9ecef;
}

.action-btn.primary {
    background: #b22222;
    color: white;
    border: none;
}

.action-btn.primary:hover {
    background: #8b1a1a;
}

.report-btn {
    background: #fff5f5;
    border: 1px solid #ffd7d7;
    color: #b22222;
}

.report-btn:hover {
    background: #ffeeee;
}

/* ===== 个人主页样式 ===== */
.profile-section {
    background: white;
    border: 1px solid #e6e9ed;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 25px;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #b22222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    flex: 1;
}

.profile-nickname {
    font-size: 24px;
    font-weight: 600;
    color: #1e2a3a;
    margin-bottom: 8px;
}

.profile-meta {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.profile-qq {
    display: inline-block;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
}

/* 标签页 */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.tab-btn {
    padding: 8px 24px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    color: #1e2a3a;
    cursor: pointer;
}

.tab-btn.active {
    background: #b22222;
    color: white;
    border-color: #b22222;
}

/* 编辑表单 */
.edit-form {
    background: white;
    border: 1px solid #e6e9ed;
    border-radius: 4px;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #1e2a3a;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b22222;
}

.save-btn {
    width: 100%;
    padding: 12px;
    background: #b22222;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.save-btn:hover {
    background: #8b1a1a;
}

/* ===== 发帖页面 ===== */
.post-form {
    background: white;
    border: 1px solid #e6e9ed;
    border-radius: 4px;
    padding: 30px;
}

.user-info-bar {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-medium {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #b22222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    overflow: hidden;
}

.user-avatar-medium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-text {
    flex: 1;
}

.user-name-large {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.user-status {
    font-size: 12px;
    color: #6c757d;
}

.time-notice {
    background: #fff5f5;
    border: 1px solid #ffd7d7;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 15px 0;
    color: #b22222;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.original-checkbox input {
    width: 16px;
    height: 16px;
}

.original-checkbox label {
    font-weight: 500;
    color: #1e2a3a;
}

.original-tip {
    font-size: 12px;
    color: #6c757d;
    margin-left: 26px;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #b22222;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #8b1a1a;
}

/* ===== 关于我们页面 ===== */
.about-wrapper {
    background: white;
    border: 1px solid #e6e9ed;
    border-radius: 4px;
    padding: 40px;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #b22222;
}

.about-header h1 {
    font-size: 28px;
    color: #1e2a3a;
    margin-bottom: 8px;
}

.about-subtitle {
    font-size: 14px;
    color: #6c757d;
}

.about-section {
    margin: 30px 0;
}

.section-title {
    font-size: 18px;
    color: #b22222;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.info-item {
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.info-item strong {
    display: block;
    color: #1e2a3a;
    margin-bottom: 5px;
    font-size: 13px;
}

.info-item p {
    color: #2c3e50;
    font-size: 14px;
}

.scope-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.scope-list li {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    color: #2c3e50;
}

.legal-notice {
    background: #f8f9fa;
    border-left: 4px solid #b22222;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

/* ===== 搜索页面 ===== */
.search-container {
    background: white;
    border: 1px solid #e6e9ed;
    border-radius: 4px;
    padding: 25px;
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.search-form select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-width: 100px;
}

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-width: 200px;
}

.search-form button {
    padding: 8px 20px;
    background: #b22222;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.result-count {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 14px;
}

.result-item {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.result-item:hover {
    border-color: #b22222;
}

.result-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e2a3a;
    margin-bottom: 4px;
}

.result-meta {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 6px;
}

.result-link {
    color: #b22222;
    text-decoration: none;
    font-size: 12px;
}

/* ===== 举报弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 4px;
    padding: 25px;
    max-width: 450px;
    width: 90%;
    border-top: 3px solid #b22222;
}

.modal-content h2 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 15px;
}

/* ===== 底部 - 统一所有页面 ===== */
.site-footer {
    background: #1e2a3a;
    color: white;
    padding: 30px 0 15px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a0b3c5;
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    padding-top: 15px;
    border-top: 1px solid #2a3a4a;
}

.footer-copyright a {
    color: #a0b3c5;
    text-decoration: none;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-group {
        width: 100%;
        justify-content: center;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .info-grid,
    .scope-list {
        grid-template-columns: 1fr;
    }
}