:root {
    --reply-indent: 24px;
}

.content-detail-card {
    padding: 24px 20px;
    margin-bottom: 20px;
}

.content-title {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 20px;
    color: var(--text-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.author-name {
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    color: var(--text-color);
}

.post-time {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1;
}

.rich-content {
    font-size: 16px;
    line-height: 1.6;
}

.rich-content img {
    max-width: 100%;
    height: auto;
}

.status {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    justify-content: space-between;
}

.replies-section {
    padding: 24px 20px;
    margin-bottom: 20px;
}

.reply-item {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-content .rich-content {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin-left: calc(var(--reply-indent) + 8px);
}

.reply-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    margin-left: calc(var(--reply-indent) + 8px);
    color: var(--text-secondary);
    font-size: 14px;
}

.reply-actions i {
    margin-right: 4px;
}

.replies-nested {
    background: #fafafb;
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0 0 var(--reply-indent);
}

.replies-nested .reply-item {
    border: none;
    padding: 10px;
    margin: 0 0 12px 0;
}

.replies-nested .reply-content .rich-content,
.replies-nested .reply-actions {
    margin-left: calc(var(--reply-indent) + 8px);
}

.replies-nested .replies-nested {
    background: transparent;
    padding: 0;
    margin: 8px 0 0 var(--reply-indent);
    border: none;
    border-radius: 0;
}

.replies-nested .replies-nested .reply-content .rich-content,
.replies-nested .replies-nested .reply-actions {
    margin-left: calc(var(--reply-indent) + 8px);
}

.reply-form-container {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    margin-left: var(--reply-indent);
    align-items: flex-start;
}

.reply-form-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    position: relative;
}

.reply-main-layout {
    display: flex;
    gap: 12px;
    flex: 1;
    min-height: 60px;
}

.reply-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reply-left textarea {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    resize: none;
    background: transparent;
    padding: 0;
    min-height: 24px;
}

.reply-right-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    width: 80px;
}

.reply-right-actions .submit-reply {
    padding: 4px 8px;
    font-size: 12px;
    width: 100%;
    white-space: nowrap;
}

.close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    background: transparent;
    line-height: 1;
    z-index: 2;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

.answer-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.answer-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.rich-content img {
    max-height: 100%;
    height: auto;
    cursor: pointer;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.content-section {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-header {
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.01);
}

.section-body {
    padding: 24px;
}

.highlight {
    animation: highlightFade 3s ease-out;
    background-color: rgba(255, 235, 59, 0.2);
    padding: 10px !important;
}

@keyframes highlightFade {
    0% {
        background-color: rgba(255, 235, 59, 0.4);
        border-left-color: #ff9800;
    }

    70% {
        background-color: rgba(255, 235, 59, 0.2);
        border-left-color: #ff9800;
    }

    100% {
        background-color: transparent;
        border-left-color: transparent;
    }
}

@media (max-width: 768px) {
    .sidebar-column {
        width: 100%;
    }

    .content-section {
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .section-header {
        padding: 16px 20px;
        font-size: 16px;
    }

    .section-body {
        padding: 16px;
    }

    .sidebar-section .add-btn {
        margin-left: 16px;
        margin-right: 16px;
        width: calc(100% - 32px) !important;
    }
}

@media (max-width: 576px) {
    .section-header {
        padding: 14px 16px;
        font-size: 15px;
    }

    .section-body {
        padding: 14px;
    }
}