.content-container {
    padding: 20px 0;
    background: #1a1a1a;
}

.layout-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-main {
    flex: 1;
    background: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #404040;
}

.post-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #404040;
}

.post-title {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 15px;
}

.post-meta i {
    color: #4a9eff;
    margin-right: 5px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    background: #404040;
    color: #e0e0e0;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #555;
}

.post-tag:hover {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.post-content {
    padding: 30px;
    line-height: 1.8;
    color: #e0e0e0;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a9eff;
}

.post-content h2 {
    font-size: 26px;
    font-weight: 600;
    color: #ffffff;
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a9eff;
}

.post-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content pre {
    background: #1e1e1e;
    border: 1px solid #404040;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
}

.post-content code {
    background: #404040;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: #4a9eff;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

.post-actions {
    padding: 20px 30px;
    border-top: 1px solid #404040;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-group {
    display: flex;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #555;
    border-radius: 20px;
    background: #404040;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.action-btn.liked {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

.discussion-section {
    margin-top: 30px;
    padding: 30px;
    border-top: 1px solid #404040;
}

.discussion-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.discussion-form {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #404040;
}

.discussion-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    box-sizing: border-box;
    background: #2d2d2d;
    color: #e0e0e0;
}

.discussion-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.discussion-submit {
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.discussion-submit:hover {
    background: #3a8eef;
}

.discussion-list {
    margin: 20px 0;
}

.discussion-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #404040;
}

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

.discussion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.discussion-content {
    flex: 1;
}

.discussion-author {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

.discussion-text {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 8px;
}

.discussion-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #888;
    font-size: 12px;
}

.discussion-like {
    cursor: pointer;
    transition: color 0.3s ease;
}

.discussion-like:hover {
    color: #4a9eff;
}

.discussion-like.liked {
    color: #ff6b6b;
}

.post-sidebar {
    width: 320px;
    flex-shrink: 0;
}



.sidebar-fixed {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

/* 炫酷暗黑风格滚动条 */
.sidebar-fixed::-webkit-scrollbar {
    width: 10px;
}

.sidebar-fixed::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 5px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8);
}

.sidebar-fixed::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 5px;
    box-shadow: 
        0 0 10px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.sidebar-fixed::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
    box-shadow: 
        0 0 15px rgba(129, 140, 248, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.sidebar-fixed::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
}

.sidebar-fixed::-webkit-scrollbar-corner {
    background: #1a1a1a;
}

/* Firefox兼容 */
.sidebar-fixed {
    scrollbar-width: thin;
    scrollbar-color: #6366f1 #1a1a1a;
}



.info-card {
    background: #2d2d2d;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #404040;
}

.info-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #404040;
    background: #1e1e1e;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.profile-section {
    padding: 25px 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #404040;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.profile-bio {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stats-item {
    text-align: center;
}

.stats-number {
    font-size: 18px;
    font-weight: 600;
    color: #4a9eff;
    display: block;
}

.stats-label {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.profile-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.profile-link {
    padding: 8px 16px;
    border: 1px solid #555;
    border-radius: 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    background: #404040;
}

.profile-link:hover {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.latest-posts {
    padding: 0;
}

.latest-item {
    padding: 15px 20px;
    border-bottom: 1px solid #404040;
    transition: background 0.3s ease;
}

.latest-item:hover {
    background: #1e1e1e;
}

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

.latest-title {
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
}

.latest-title:hover {
    color: #4a9eff;
}

.latest-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 11px;
}

.modal-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 30px;
    z-index: 10000;
    min-width: 320px;
    border: 1px solid #404040;
}

.modal-popup.show {
    display: block;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.modal-overlay.show {
    display: block;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

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

.modal-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #555;
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #404040;
}

.modal-btn:hover {
    background: #4a9eff;
    border-color: #4a9eff;
    color: #ffffff;
}

.modal-btn i {
    font-size: 18px;
}

.modal-url {
    background: #1e1e1e;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    color: #b0b0b0;
    margin-bottom: 15px;
    word-break: break-all;
}

.modal-copy {
    width: 100%;
    background: #4a9eff;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.modal-copy:hover {
    background: #3a8eef;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.mobile-sidebar {
    display: none;
}

.discussion-reply {
    cursor: pointer;
    transition: color 0.3s ease;
}

.discussion-reply:hover {
    color: #4a9eff;
}

.reply-form {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 6px;
    border-left: 3px solid #4a9eff;
    border: 1px solid #404040;
}

.reply-form.show {
    display: block;
}

.reply-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    resize: vertical;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
    box-sizing: border-box;
    background: #2d2d2d;
    color: #e0e0e0;
}

.reply-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.reply-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.reply-submit,
.reply-cancel {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.reply-submit {
    background: #4a9eff;
    color: #fff;
}

.reply-submit:hover {
    background: #3a8eef;
}

.reply-cancel {
    background: #555;
    color: #e0e0e0;
}

.reply-cancel:hover {
    background: #666;
}

.discussion-replies {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid #404040;
}

.reply-item {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #404040;
}

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

.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
}

.reply-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 4px;
}

.reply-text {
    color: #b0b0b0;
    line-height: 1.5;
    font-size: 13px;
    margin-bottom: 6px;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 11px;
}

.reply-like {
    cursor: pointer;
    transition: color 0.3s ease;
}

.reply-like:hover {
    color: #4a9eff;
}

.reply-like.liked {
    color: #ff6b6b;
}

.recommend-section {
    margin-bottom: 25px;
    padding: 0 25px;
}

.recommend-header {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #4a9eff;
    display: inline-block;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.recommend-link {
    background: #404040;
    padding: 15px 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #555;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 4.5em;
    word-wrap: break-word;
}

.recommend-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #4a9eff;
    border-color: #4a9eff;
    background: #2d2d2d;
}

.recommend-link i {
    display: block;
    font-size: 24px;
    color: #4a9eff;
    margin-bottom: 6px;
}

.recommend-link div {
    font-size: 12px;
}

.post-info {
    color: #95a5a6;
    font-size: 12px;
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
        padding: 0 15px;
        gap: 20px;
    }

    .post-sidebar {
        width: 100%;
        order: 2;
    }

    .sidebar-fixed {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .post-header {
        padding: 20px 20px 15px;
    }

    .post-title {
        font-size: 22px;
    }

    .post-content {
        padding: 20px;
    }

    .post-actions {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .action-group {
        justify-content: center;
        width: 100%;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
        max-width: 100px;
    }

    .discussion-section {
        padding: 20px;
    }

    .profile-stats {
        margin-bottom: 15px;
    }

    .modal-popup {
        min-width: 280px;
        margin: 0 20px;
        max-width: calc(100vw - 40px);
    }

    .modal-buttons {
        grid-template-columns: 1fr;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .discussion-textarea {
        min-height: 80px;
    }

    .discussion-replies {
        padding-left: 15px;
    }

    .reply-actions {
        flex-direction: column;
    }

    .reply-submit,
    .reply-cancel {
        width: 100%;
        padding: 8px 16px;
    }
}

body {
    background: #1a1a1a;
    color: #e0e0e0;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #4a9eff;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a8eef;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #4a9eff #2d2d2d;
}