* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}
body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 14px;
}
:root {
    --main-color: #ff7c24;
    --main-hover: #ff6a00;
    --border-color: #e5e5e5;
    --text-light: #999;
}

/* 头部布局 */
header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color);
}
.nav {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}
.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color);
}
.logo span {
    font-size: 16px;
    color: #666;
    margin-left: 8px;
}
.nav {
    display: flex;
    gap: 30px;
}
.nav a {
    font-size: 16px;
    text-decoration: none;
    color: #333;
}
.nav a:hover, .nav a.active {
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 3px;
}
.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}
.user-info a {
    color: var(--main-color);
    text-decoration: none;
}
.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
}
.msg-icon {
    position: relative;
    cursor: pointer;
}
.msg-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    text-align: center;
    line-height: 16px;
}

/* 主体 */
main {
    display: flex;
    margin-top: 20px;
    gap: 20px;
}
.main-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 20px;
    position: relative;
    min-height: 400px;
}
.sidebar {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.side-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 15px;
}
.side-title {
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid var(--main-color);
    padding-bottom: 8px;
    margin-bottom: 15px;
}
.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.stat-num {
    color: var(--main-color);
    font-weight: bold;
}
.hot-tag {
    display: inline-block;
    background: #fff5ef;
    color: var(--main-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 0 5px 8px 0;
    cursor: pointer;
}
.hot-tag:hover {
    background: var(--main-color);
    color: #fff;
}

/* 帖子列表 */
.post-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}
.post-item:hover {
    background: #fff5ef;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    text-align: center;
    line-height: 40px;
    font-size: 18px;
}
.post-content {
    flex: 1;
}
.post-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 6px;
}
.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}
.tags {
    color: var(--main-color);
}
.post-actions {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 12px;
}
.post-actions span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.post-actions span:hover {
    color: var(--main-color);
}
.liked {
    color: var(--main-color);
}

/* 模态框通用样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
}
.modal-close {
    font-size: 20px;
    cursor: pointer;
}
.modal-body {
    padding: 15px;
}
.modal-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.btn-primary {
    background: var(--main-color);
    color: #fff;
}
.btn-primary:hover {
    background: var(--main-hover);
}
.btn-secondary {
    background: #f0f0f0;
    color: #333;
}
.btn-secondary:hover {
    background: #e0e0e0;
}

/* 表单元素 */
.form-group {
    margin-bottom: 15px;
}
.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}
.form-input:focus {
    border-color: var(--main-color);
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background: #f8f8f8;
    border: 1px solid var(--border-color);
    border-radius: 4px 4px 0 0;
    margin-bottom: 10px;
}
.editor-btn {
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.editor-btn:hover {
    background: var(--main-light);
    border-color: var(--main-color);
}
.editor-textarea {
    width: 100%;
    min-height: 250px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
}
.editor-preview {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fafafa;
    min-height: 100px;
}

/* 帖子详情模态框 */
.post-detail-header {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.post-detail-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}
.post-detail-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}
.post-detail-actions {
    display: flex;
    gap: 15px;
}
.post-detail-content {
    padding: 15px 0;
    line-height: 1.8;
}
.post-detail-content a {
    color: var(--main-color);
    text-decoration: none;
}
.post-detail-content a:hover {
    text-decoration: underline;
}
.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 12px;
}

/* 评论区 */
.comments-section {
    margin-top: 20px;
}
.comment-input-box {
    margin: 15px 0;
}
.comment-input-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    resize: vertical;
}
.comment-input-box button {
    margin-top: 10px;
}
.comment-item {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
}
.comment-author {
    font-weight: bold;
    color: var(--main-color);
}
.comment-time {
    color: #999;
}
.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 12px;
}
.comment-like, .comment-report {
    cursor: pointer;
}
.comment-like:hover, .comment-report:hover {
    color: var(--main-color);
}

/* 用户主页（洛谷风格） */
.user-profile {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.user-profile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: url('/images/bg.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0;
    opacity: 0.7;
}
.user-header {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 32px 32px 20px 32px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
}
.user-avatar-large:hover::after {
    content: "更换头像";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}
.user-info {
    flex: 1;
}
.user-info h2 {
    font-size: 28px;
    margin-bottom: 8px;
}
.user-info p {
    margin: 5px 0;
    color: #555;
    line-height: 1.4;
}
.edit-profile-btn {
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    color: var(--main-color);
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.edit-profile-btn:hover {
    border-color: var(--main-color);
    background: #f9f9f9;
}
.uid-display {
    position: absolute;
    bottom: 16px;
    right: 24px;
    font-size: 14px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 1;
    backdrop-filter: blur(2px);
}
.user-posts {
    position: relative;
    z-index: 1;
    padding: 20px 32px;
    background: #fff;
}
.user-posts h3 {
    font-size: 18px;
    margin-bottom: 16px;
}
.user-posts .post-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.user-posts .post-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}
.user-posts .post-meta {
    font-size: 12px;
    color: #888;
}

/* 博客页面单列布局 */
.post-full {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.post-title-full {
    font-size: 28px;
    margin-bottom: 16px;
}
.post-meta-full {
    color: #666;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}
.post-meta-full a {
    color: var(--main-color);
}
.post-content-full {
    line-height: 1.8;
}
.post-content-full a {
    color: var(--main-color);
}
.post-actions-full {
    margin: 24px 0;
    display: flex;
    gap: 12px;
}
.comments-section-full {
    margin-top: 32px;
    border-top: 1px solid #eee;
    padding-top: 24px;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #666;
}

/* 关于页面链接 */
.about a {
    color: var(--main-color);
}
.about a:hover {
    text-decoration: underline;
}

/* 发帖按钮 */
.create-post-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.create-post-btn:hover {
    transform: scale(1.05);
    background: var(--main-hover);
}

/* 自定义提示框 */
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}
.custom-toast.show {
    opacity: 1;
}
.toast-success { border-left: 4px solid #00C851; }
.toast-error { border-left: 4px solid #ff4444; }
.toast-info { border-left: 4px solid #ff9800; }

/* 自定义确认框 */
.custom-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.custom-confirm[style*="display: none"] {
    display: none !important;
}
.confirm-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
}
.confirm-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}
.confirm-btns {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 加载动画（仅帖子列表区域） */
.content-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}
.dot-jump-loader {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
}
.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff9f43;
    animation: jump 1.05s linear forwards;
}
.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.25s; }
.dot:nth-child(3) { animation-delay: 0.5s; }
.dot:nth-child(4) { animation-delay: 0.75s; }
.dot:nth-child(5) { animation-delay: 1.0s; }
.dot:nth-child(6) { animation-delay: 1.25s; }
@keyframes jump {
    0% { transform: translateY(0); opacity: 1; }
    15% { transform: translateY(-30px); }
    30% { transform: translateY(-40px); }
    40% { transform: translateY(-38px); }
    50% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
    70% { transform: translateY(0); }
}
.loader-text {
    color: #ff9f43;
    font-size: 18px;
    letter-spacing: 2px;
}

/* 响应式 */
@media (max-width: 768px) {
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color);
}
.nav {
    display: flex;
    gap: 30px;
    margin: 0 auto;
}
.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
}
    .nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    .user-info {
        justify-content: center;
    }
    main {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .user-header {
        flex-direction: column !important;
        text-align: center;
    }
    .uid-display {
        position: static;
        margin-top: 10px;
        text-align: center;
    }
}

/* ===== 强制修复头部布局（覆盖所有样式） ===== */
header .header-main {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}
header .logo {
    flex: 0 0 auto !important;
}
header .nav {
    display: flex !important;
    gap: 30px !important;
    flex: 1 !important;
    justify-content: center !important;
}
header .user-info {
    flex: 0 0 auto !important;
    margin-left: auto !important;
}

/* 调整用户主页背景图高度和层级 */
.user-profile::before {
    height: 150px !important;
    opacity: 0.6 !important;
}
.user-header {
    padding: 20px 20px 10px 20px !important;
    background: rgba(255,255,255,0.95) !important;
}
.edit-profile-btn {
    position: absolute !important;
    bottom: 16px !important;
    right: 24px !important;
    z-index: 3 !important;
}
.uid-display {
    bottom: 16px !important;
    left: 24px !important;
    z-index: 3 !important;
}

/* 用户信息移至底部 */
.user-header {
    align-items: flex-end !important;
}
.user-info {
    margin-top: auto !important;
    padding-bottom: 10px !important;
}

/* 消息提示动画改为滑入 */
.custom-toast {
    top: -100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    transition: top 0.3s ease-in-out !important;
    opacity: 1 !important;
}
.custom-toast.show {
    top: 20px !important;
}

/* 确保没有其他提示框干扰 */
#customToast {
    z-index: 10001 !important;
}

/* UID 悬浮框固定 */
.user-profile .uid-display {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(4px);
}

/* 消息提示丝滑动画 */
.custom-toast {
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.2s !important;
    transform: translateX(-50%) translateY(-100px) !important;
}
.custom-toast.show {
    transform: translateX(-50%) translateY(0) !important;
}

/* 确保没有其他提示框干扰 */
#customToast {
    z-index: 10001 !important;
    border: none !important;
    box-shadow: none !important;
}
.custom-toast {
    background: rgba(0,0,0,0.85) !important;
    color: #fff !important;
    border-left: none !important;
}

/* 消息提示：丝滑弹出和收回 */
.custom-toast {
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.2s !important;
    transform: translateX(-50%) translateY(-100px) !important;
    opacity: 0 !important;
}
.custom-toast.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
}
/* 移除原有 opacity 过渡冲突 */
.custom-toast {
    opacity: 0;
}
.custom-toast.show {
    opacity: 1;
}

/* 编辑主页按钮固定在背景图右下角 */
.user-profile {
    position: relative;
}
.edit-profile-btn {
    position: absolute !important;
    bottom: 16px !important;
    right: 24px !important;
    z-index: 10 !important;
    margin: 0 !important;
}

/* UID 显示宽度自适应 */
.uid-display {
    display: inline-block !important;
    width: auto !important;
    padding: 4px 12px !important;
    white-space: nowrap !important;
}

#login-error {
    color: #ff4444 !important;
    font-size: 12px !important;
    margin-top: 5px !important;
}

/* 确保他人主页样式与当前用户一致 */
.user-profile {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}
.user-profile::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 180px !important;
    background: url('/images/bg.jpg') no-repeat center center !important;
    background-size: cover !important;
    z-index: 0 !important;
    opacity: 0.7 !important;
}
.user-header {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    gap: 32px !important;
    align-items: center !important;
    padding: 32px 32px 20px 32px !important;
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(4px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}
.user-avatar-large {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    background: var(--main-color) !important;
    color: #fff !important;
    font-size: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
.user-info {
    flex: 1 !important;
}
.user-info h2 {
    font-size: 28px !important;
    margin-bottom: 8px !important;
}
.user-info p {
    margin: 5px 0 !important;
    color: #555 !important;
    line-height: 1.4 !important;
}
.uid-display {
    position: absolute !important;
    bottom: 16px !important;
    right: 24px !important;
    z-index: 2 !important;
    background: rgba(0,0,0,0.5) !important;
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    backdrop-filter: blur(2px) !important;
}
.user-posts {
    position: relative !important;
    z-index: 1 !important;
    padding: 20px 32px !important;
    background: #fff !important;
}
.user-posts h3 {
    font-size: 18px !important;
    margin-bottom: 16px !important;
}
.user-posts .post-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #eee !important;
    cursor: pointer !important;
}
.user-posts .post-title {
    font-size: 16px !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}
.user-posts .post-meta {
    font-size: 12px !important;
    color: #888 !important;
}

/* 编辑主页按钮固定在背景图右下角 */
.edit-profile-btn {
    position: fixed !important;
    bottom: 80px !important;
    right: 20px !important;
    z-index: 1000 !important;
}

/* UID 显示自适应宽度 */
.uid-display {
    display: inline-block !important;
    width: auto !important;
    padding: 4px 12px !important;
    white-space: nowrap !important;
}

/* 消息提示丝滑收回（增加过渡） */
.custom-toast {
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.3s !important;
}
.custom-toast.hide {
    transform: translateX(-50%) translateY(-100px) !important;
    opacity: 0 !important;
}

/* 消息消失动画 */
.custom-toast.hide {
    transform: translateX(-50%) translateY(-100px) !important;
    opacity: 0 !important;
}

/* 消息提示收回动画 */
.custom-toast {
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), opacity 0.3s !important;
    transform: translateX(-50%) translateY(-100px) !important;
}
.custom-toast.show {
    transform: translateX(-50%) translateY(0) !important;
}
.custom-toast.hide {
    transform: translateX(-50%) translateY(-100px) !important;
    opacity: 0 !important;
}
/* ==================== 新增布局样式 ==================== */

/* 博客页面布局 */
.post-page-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-main {
    min-width: 0;
}

.post-article {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.post-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--main-color);
}

.post-title-full {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.post-meta-full {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.meta-author, .meta-time, .meta-edit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-label {
    color: #999;
    font-size: 13px;
}

.author-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

.post-content-full {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.post-content-full h1, .post-content-full h2, .post-content-full h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.post-content-full p {
    margin-bottom: 16px;
}

.post-content-full pre {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    position: relative;
}

.post-content-full code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.post-content-full img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.post-content-full blockquote {
    border-left: 4px solid var(--main-color);
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.post-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.post-tags {
    margin-bottom: 20px;
}

.tag-label {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.tag-list {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
}

.post-actions-full {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 评论区 */
.comments-section-full {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.comments-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count {
    color: #999;
    font-weight: normal;
    font-size: 14px;
}

.comment-list {
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background: #f9f9f9;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
}

.comment-uid {
    color: #999;
    font-size: 12px;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.comment-like, .comment-report {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-like:hover {
    color: var(--main-color);
}

.comment-report:hover {
    color: #ff4444;
}

.comment-input-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-input-box textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.comment-input-box textarea:focus {
    outline: none;
    border-color: var(--main-color);
}

/* 侧边栏 */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.author-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.author-card-uid {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.stats-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.stats-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: 600;
    color: var(--main-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
}

.stat-item i {
    font-size: 20px;
    color: var(--main-color);
    margin-bottom: 4px;
}

/* ==================== 用户主页布局 ==================== */

.user-page-container {
    max-width: 1000px;
    margin: 0 auto;
}

.user-header-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.user-header-bg {
    height: 150px;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
}

.user-header-content {
    display: flex;
    align-items: flex-end;
    padding: 0 32px;
    margin-top: -60px;
    gap: 24px;
}

.user-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.user-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.avatar-upload-btn:hover {
    background: var(--main-color);
    color: #fff;
}

.user-info-section {
    flex: 1;
    padding: 20px 0;
}

.user-name-large {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.uid-badge {
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.role-owner {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
}

.role-admin {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.user-bio {
    font-size: 15px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.user-content-section {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}

.user-main {
    min-width: 0;
}

.user-posts-section, .user-collections-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.posts-list, .collections-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.posts-list .post-item, .collections-posts .post-item {
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.posts-list .post-item:hover, .collections-posts .post-item:hover {
    border-color: var(--main-color);
    background: #fffbf5;
    transform: translateX(4px);
}

.posts-list .post-title, .collections-posts .post-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.posts-list .post-meta, .collections-posts .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.post-stats {
    display: flex;
    gap: 12px;
}

.post-stats i {
    margin-right: 4px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

/* 用户侧边栏 */
.user-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ==================== 关于页面 ==================== */

.about-page {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.about-page h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

.about-links {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.about-links a {
    color: var(--main-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.about-links a:hover {
    text-decoration: underline;
}

/* ==================== 加载动画 ==================== */

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.loading i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

.loading p {
    font-size: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 错误页面 ==================== */

.error-page {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.error-page i {
    font-size: 64px;
    color: #ffcc00;
    display: block;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 18px;
}

/* ==================== 动画效果 ==================== */

@keyframes postSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

.custom-toast.hide {
    animation: toastSlideOut 0.3s ease-out forwards;
}

/* ==================== 响应式设计 ==================== */

@media (max-width: 900px) {
    .post-page-container {
        grid-template-columns: 1fr;
    }
    
    .user-content-section {
        grid-template-columns: 1fr;
    }
    
    .user-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 20px;
    }
    
    .user-meta {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .post-article {
        padding: 20px;
    }
    
    .post-title-full {
        font-size: 22px;
    }
    
    .post-actions-full {
        flex-direction: column;
    }
    
    .post-actions-full .btn {
        width: 100%;
    }
}

/* ==================== 按钮样式增强 ==================== */

.btn-warning {
    background: #ff9500;
    border-color: #ff9500;
}

.btn-warning:hover {
    background: #e68600;
    border-color: #e68600;
}

.btn-success {
    background: #34c759;
    border-color: #34c759;
}

.btn-success:hover {
    background: #2db350;
    border-color: #2db350;
}

.btn-info {
    background: #007aff;
    border-color: #007aff;
}

.btn-info:hover {
    background: #0066d6;
    border-color: #0066d6;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.btn-outline:hover {
    background: var(--main-color);
    color: #fff;
}

/* 代码块复制按钮 */
.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-code-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* 图片加载失败 */
.image-failed {
    display: inline-block;
    padding: 20px 40px;
    background: #f0f0f0;
    color: #999;
    border-radius: 8px;
    font-size: 14px;
}
/* ==================== 个人主页样式修复 ==================== */

.user-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部区域 */
.user-header-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
}

.user-header-bg {
    height: 120px;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
}

.user-header-content {
    display: flex;
    align-items: flex-end;
    padding: 0 32px;
    margin-top: -50px;
    gap: 20px;
    position: relative;
}

.user-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.avatar-upload-btn:hover {
    background: var(--main-color);
    color: #fff;
}

.user-info-section {
    flex: 1;
    padding: 15px 0 20px;
    position: relative;
}

.user-name-large {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.uid-badge {
    background: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.role-owner {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
}

.role-admin {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.user-bio {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.edit-profile-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 6px 16px;
    font-size: 13px;
}

/* 二级导航栏 */
.user-nav-tabs {
    background: #fff;
    border-radius: 12px;
    margin: 16px 0 0 0;
    padding: 0 20px;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.user-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-tab-btn:hover {
    color: var(--main-color);
}

.user-tab-btn.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
    font-weight: 600;
}

.tab-count {
    background: #f0f0f0;
    color: #999;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.user-tab-btn.active .tab-count {
    background: rgba(255, 140, 0, 0.15);
    color: var(--main-color);
}

/* 内容区域 */
.user-content-section {
    display: block;
    margin-top: 16px;
}

.user-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    min-height: 400px;
}

.user-tab-content {
    display: none;
    padding: 24px;
}

.user-tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 介绍卡片 */
.about-card {
    padding: 20px 0;
}

.about-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.about-content h1, .about-content h2, .about-content h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content a {
    color: var(--main-color);
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.about-content pre {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.about-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.about-content blockquote {
    border-left: 4px solid var(--main-color);
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.about-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

/* 帖子列表容器 */
.posts-list-container {
    display: flex;
    flex-direction: column;
}

.posts-list-container .post-item {
    padding: 16px 0;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
    transition: all 0.2s;
}

.posts-list-container .post-item:last-child {
    border-bottom: none;
}

.posts-list-container .post-item:hover {
    background: #fffbf5;
    padding-left: 12px;
    margin-left: -12px;
    border-radius: 8px;
}

.posts-list-container .post-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.posts-list-container .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.post-stats {
    display: flex;
    gap: 16px;
}

.post-stats i {
    margin-right: 4px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.empty-state p {
    font-size: 15px;
}

/* 文本颜色 */
.text-muted {
    color: #999;
    font-style: italic;
}

/* 按钮大小 */
.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 600px) {
    .user-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 20px;
    }
    
    .user-meta {
        justify-content: center;
    }
    
    .edit-profile-btn {
        position: static;
        margin-top: 10px;
    }
    
    .user-nav-tabs {
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .user-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* ==================== 博客页面修复 ==================== */

.post-page-container {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-main {
    width: 100%;
}

.post-article {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.post-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.post-title-full {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.post-meta-full {
    font-size: 14px;
    color: #666;
}

.post-content-full {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.post-content-full h1, .post-content-full h2, .post-content-full h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.post-content-full p {
    margin-bottom: 16px;
}

.post-content-full a {
    color: var(--main-color);
    text-decoration: none;
}

.post-content-full a:hover {
    text-decoration: underline;
}

.post-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.post-tags {
    margin-bottom: 20px;
}

.tag-list {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 140, 0, 0.1);
    color: var(--main-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
}

.post-actions-full {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 评论区 */
.comments-section-full {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.comments-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count {
    color: #999;
    font-weight: normal;
    font-size: 14px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background: #f9f9f9;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.comment-content a {
    color: var(--main-color);
    text-decoration: none;
}

.comment-content a:hover {
    text-decoration: underline;
}

.comment-actions {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.comment-like, .comment-report {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-like:hover {
    color: var(--main-color);
}

.comment-report:hover {
    color: #ff4444;
}

.comment-input-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.comment-input-box textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.comment-input-box textarea:focus {
    outline: none;
    border-color: var(--main-color);
}

/* ==================== 侧边栏统计修复 ==================== */

.side-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.side-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-num {
    font-weight: 600;
    color: var(--main-color);
    font-size: 15px;
}

/* 热门标签 */
.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    background: rgba(255, 140, 0, 0.1);
    color: var(--main-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.hot-tag:hover {
    background: var(--main-color);
    color: #fff;
}

/* ==================== Toast 消息动画修复 ==================== */

.custom-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.custom-toast.toast-success {
    background: rgba(52, 199, 89, 0.95);
}

.custom-toast.toast-error {
    background: rgba(255, 68, 68, 0.95);
}

.custom-toast.toast-warning {
    background: rgba(255, 149, 0, 0.95);
}

.custom-toast.toast-info {
    background: rgba(0, 122, 255, 0.95);
}

/* ==================== 加载动画 ==================== */

.content-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.dot-jump-loader {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.dot-jump-loader .dot {
    width: 10px;
    height: 10px;
    background: var(--main-color);
    border-radius: 50%;
    animation: dotJump 1.4s infinite ease-in-out both;
}

.dot-jump-loader .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot-jump-loader .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotJump {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loader-text {
    color: #999;
    font-size: 14px;
}

/* ==================== 错误页面 ==================== */

.error-page {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.error-page i {
    font-size: 64px;
    color: #ffcc00;
    display: block;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 18px;
}

/* ==================== 关于页面 ==================== */

.about-page {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.about-page h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

.about-links {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.about-links a {
    color: var(--main-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.about-links a:hover {
    text-decoration: underline;
}

/* ==================== 通用样式 ==================== */

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.markdown-body p {
    margin-bottom: 16px;
}

.markdown-body a {
    color: var(--main-color);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body pre {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    position: relative;
}

.markdown-body code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.markdown-body blockquote {
    border-left: 4px solid var(--main-color);
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.markdown-body ul, .markdown-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.markdown-body li {
    margin-bottom: 8px;
}

/* 代码块复制按钮 */
.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-code-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* 图片加载失败 */
.image-failed {
    display: inline-block;
    padding: 20px 40px;
    background: #f0f0f0;
    color: #999;
    border-radius: 8px;
    font-size: 14px;
}
/* ==================== 个人主页样式修复 ==================== */

.user-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部区域 */
.user-header-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
}

.user-header-bg {
    height: 120px;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
}

.user-header-content {
    display: flex;
    align-items: flex-end;
    padding: 0 32px;
    margin-top: -50px;
    gap: 20px;
    position: relative;
}

.user-avatar-section {
    position: relative;
    flex-shrink: 0;
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--main-color);
    color: var(--main-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
}

.avatar-upload-btn:hover {
    background: var(--main-color);
    color: #fff;
}

.user-info-section {
    flex: 1;
    padding: 15px 0 20px;
    position: relative;
}

.user-name-large {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.uid-badge {
    background: #f0f0f0;
    color: #666;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.role-owner {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: #fff;
}

.role-admin {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.user-bio {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.edit-profile-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 6px 16px;
    font-size: 13px;
}

/* 二级导航栏 */
.user-nav-tabs {
    background: #fff;
    border-radius: 12px;
    margin: 16px 0 0 0;
    padding: 0 20px;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.user-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-tab-btn:hover {
    color: var(--main-color);
}

.user-tab-btn.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
    font-weight: 600;
}

.tab-count {
    background: #f0f0f0;
    color: #999;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.user-tab-btn.active .tab-count {
    background: rgba(255, 140, 0, 0.15);
    color: var(--main-color);
}

/* 内容区域 */
.user-content-section {
    display: block;
    margin-top: 16px;
}

.user-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    min-height: 400px;
}

.user-tab-content {
    display: none;
    padding: 24px;
}

.user-tab-content.active {
    display: block;
    animation: tabFadeIn 0.3s ease-out;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 介绍卡片 */
.about-card {
    padding: 20px 0;
}

.about-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

.about-content h1, .about-content h2, .about-content h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.about-content p {
    margin-bottom: 16px;
}

.about-content a {
    color: var(--main-color);
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

.about-content pre {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

.about-content code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.about-content blockquote {
    border-left: 4px solid var(--main-color);
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.about-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

/* 帖子列表容器 */
.posts-list-container {
    display: flex;
    flex-direction: column;
}

.posts-list-container .post-item {
    padding: 16px 0;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
    transition: all 0.2s;
}

.posts-list-container .post-item:last-child {
    border-bottom: none;
}

.posts-list-container .post-item:hover {
    background: #fffbf5;
    padding-left: 12px;
    margin-left: -12px;
    border-radius: 8px;
}

.posts-list-container .post-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.posts-list-container .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.post-stats {
    display: flex;
    gap: 16px;
}

.post-stats i {
    margin-right: 4px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.empty-state p {
    font-size: 15px;
}

/* 文本颜色 */
.text-muted {
    color: #999;
    font-style: italic;
}

/* 按钮大小 */
.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 600px) {
    .user-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 20px 20px;
    }
    
    .user-meta {
        justify-content: center;
    }
    
    .edit-profile-btn {
        position: static;
        margin-top: 10px;
    }
    
    .user-nav-tabs {
        overflow-x: auto;
        padding: 0 10px;
    }
    
    .user-tab-btn {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/* ==================== 博客页面修复 ==================== */

.post-page-container {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.post-main {
    width: 100%;
}

.post-article {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.post-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.post-title-full {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.post-meta-full {
    font-size: 14px;
    color: #666;
}

.post-content-full {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 24px;
}

.post-content-full h1, .post-content-full h2, .post-content-full h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.post-content-full p {
    margin-bottom: 16px;
}

.post-content-full a {
    color: var(--main-color);
    text-decoration: none;
}

.post-content-full a:hover {
    text-decoration: underline;
}

.post-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.post-tags {
    margin-bottom: 20px;
}

.tag-list {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 140, 0, 0.1);
    color: var(--main-color);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 13px;
}

.post-actions-full {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 评论区 */
.comments-section-full {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.comments-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count {
    color: #999;
    font-weight: normal;
    font-size: 14px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background: #f9f9f9;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #ff9500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-author {
    font-weight: 600;
    color: #1a1a1a;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.comment-content a {
    color: var(--main-color);
    text-decoration: none;
}

.comment-content a:hover {
    text-decoration: underline;
}

.comment-actions {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.comment-like, .comment-report {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.comment-like:hover {
    color: var(--main-color);
}

.comment-report:hover {
    color: #ff4444;
}

.comment-input-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.comment-input-box textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.comment-input-box textarea:focus {
    outline: none;
    border-color: var(--main-color);
}

/* ==================== 侧边栏统计修复 ==================== */

.side-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.side-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #f5f5f5;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-num {
    font-weight: 600;
    color: var(--main-color);
    font-size: 15px;
}

/* 热门标签 */
.tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    background: rgba(255, 140, 0, 0.1);
    color: var(--main-color);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.hot-tag:hover {
    background: var(--main-color);
    color: #fff;
}

/* ==================== Toast 消息动画修复 ==================== */

.custom-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.custom-toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.custom-toast.toast-success {
    background: rgba(52, 199, 89, 0.95);
}

.custom-toast.toast-error {
    background: rgba(255, 68, 68, 0.95);
}

.custom-toast.toast-warning {
    background: rgba(255, 149, 0, 0.95);
}

.custom-toast.toast-info {
    background: rgba(0, 122, 255, 0.95);
}

/* ==================== 加载动画 ==================== */

.content-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.dot-jump-loader {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.dot-jump-loader .dot {
    width: 10px;
    height: 10px;
    background: var(--main-color);
    border-radius: 50%;
    animation: dotJump 1.4s infinite ease-in-out both;
}

.dot-jump-loader .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot-jump-loader .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotJump {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loader-text {
    color: #999;
    font-size: 14px;
}

/* ==================== 错误页面 ==================== */

.error-page {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.error-page i {
    font-size: 64px;
    color: #ffcc00;
    display: block;
    margin-bottom: 20px;
}

.error-page p {
    font-size: 18px;
}

/* ==================== 关于页面 ==================== */

.about-page {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.about-page h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

.about-links {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.about-links a {
    color: var(--main-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.about-links a:hover {
    text-decoration: underline;
}

/* ==================== 通用样式 ==================== */

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.markdown-body p {
    margin-bottom: 16px;
}

.markdown-body a {
    color: var(--main-color);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body pre {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    position: relative;
}

.markdown-body code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}

.markdown-body blockquote {
    border-left: 4px solid var(--main-color);
    padding-left: 16px;
    margin: 16px 0;
    color: #666;
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.markdown-body ul, .markdown-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.markdown-body li {
    margin-bottom: 8px;
}

/* 代码块复制按钮 */
.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-code-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* 图片加载失败 */
.image-failed {
    display: inline-block;
    padding: 20px 40px;
    background: #f0f0f0;
    color: #999;
    border-radius: 8px;
    font-size: 14px;
}
