/* 页面区域样式 */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* 评论样式 */
.comment {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #dee2e6;
}

.comment.admin {
    background-color: #e8f4fd;
    border-left-color: #0d6efd;
}

.comment.pinned {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.comment.pinned.admin {
    background-color: #d1ecf1;
    border-left-color: #0dcaf0;
}

.comment.pinned .comment-author .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.comment-author {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-time {
    font-size: 0.875rem;
    color: #6c757d;
}

.comment-content {
    line-height: 1.6;
    color: #212529;
}

.comments-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}

.comments-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 问题详情样式 */
.issue-detail {
    padding: 1rem;
}

.issue-detail-header {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.issue-detail-title {
    color: #212529;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.issue-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.issue-detail-content {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}

.issue-detail-content h5 {
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.issue-detail-content p {
    line-height: 1.6;
    color: #212529;
    white-space: pre-line;
}

/* 统计卡片 */
.card.text-white .card-body {
    padding: 1.5rem;
}

.card.text-white .display-4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card.text-white .card-text {
    opacity: 0.9;
    font-size: 1rem;
}

/* 图表容器 */
canvas {
    max-height: 300px;
}

/* 成功提示样式 */
.alert-success.position-fixed {
    animation: slideInRight 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 模态框优化 */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
}

.modal-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
    padding: 1rem 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .issue-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-time {
        align-self: flex-end;
    }
    
    .comments-list {
        max-height: 300px;
    }
}