* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
    background: #f7f8fa;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航 */
.top-bar {
    background: #fff;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.top-bar h1 {
    font-size: 18px;
    font-weight: 500;
    color: #2c3e50;
}

/* 三杠菜单按钮（手机显示） */
.menu-toggle {
    width: 26px;
    height: 20px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 布局容器 */
.container {
    max-width: 1100px;
    margin: 25px auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

/* 左侧 */
.left-section {
    width: 73%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 横向目录 */
.menu-bar {
    background: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    gap: 26px;
}

.menu-bar span {
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: 0.2s;
}

.menu-bar span:hover {
    color: #3b82f6;
}

/* 轮播图 */
.banner {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.banner-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(90deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #868e96;
}

/* 帖子区域 */
.post-section {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.post-section h3 {
    font-size: 16px;
    margin-bottom: 14px;
    color: #2c3e50;
}

.post-item {
    width: 100%;
    height: 110px;
    background: #f1f3f5;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* 右侧 */
.right-sticky-bar {
    width: 27%;
    position: relative;
    z-index: 90;
}

/* 右侧一整张卡片 + 固定滚动 */
.sticky-card {
    position: sticky;
    top: 90px;
    background: #fff;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.user-info {
    text-align: center;
}

.user-info h2 {
    font-size: 17px;
    color: #2c3e50;
    margin-bottom: 4px;
}

.user-info p {
    font-size: 13px;
    color: #7f8c8d;
}

/* 分割线 */
.divider {
    width: 85%;
    height: 1px;
    background: #f0f0f0;
    margin: 2px 0;
}

/* 工具区 */
.tool-section {
    width: 100%;
    text-align: center;
}

.tool-section h4 {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.editor-btn {
    display: block;
    width: 100%;
    padding: 9px;
    background: #3b82f6;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.editor-btn:hover {
    background: #2563eb;
}

/* 预留信息框 */
.info-box-placeholder {
    width: 100%;
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 信息区 */
.info-section {
    width: 100%;
    text-align: center;
}

.info-section h4 {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 6px;
}

.info-section p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* 底部 */
.footer {
    text-align: center;
    color: #999;
    padding: 28px 0;
    font-size: 14px;
}

/* ====================== 移动端 ====================== */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-section {
        width: 100%;
    }
    /* 手机端默认隐藏右侧栏 */
    .right-sticky-bar {
        width: 280px;
        position: fixed;
        top: 60px;
        right: -300px;
        height: calc(100vh - 60px);
        background: #f7f8fa;
        padding: 10px;
        transition: 0.3s ease;
        box-shadow: none;
    }
    /* 点击显示右侧栏 */
    .right-sticky-bar.show {
        right: 0;
    }
    .sticky-card {
        position: static;
        height: 100%;
        overflow-y: auto;
    }
    /* 显示三杠按钮 */
    .menu-toggle {
        display: flex;
    }
}