/* 答复列表页面样式 */
.answer-list-page {
    background-color: #f8f9fa;
}

.answer-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #28a745;
}

.answer-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.answer-header {
    margin-bottom: 16px;
}

.answer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.title-link {
    color: #333;
    text-decoration: none;
}

.title-link:hover {
    color: #28a745;
}

.answer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.meta-question-type, .meta-satisfaction {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.answer-info {
    margin-bottom: 16px;
}

/* 相关质疑卡片 */
.related-question {
    margin-bottom: 16px;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.question-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.question-card-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    line-height: 1.4;
}

.question-card-title a {
    color: #333;
    text-decoration: none;
}

.question-card-title a:hover {
    color: #007bff;
}

.question-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

/* 答复预览 */
.answer-preview, .follow-up-preview {
    margin-bottom: 12px;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
}

.preview-content {
    background: white;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.read-more, .view-question {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.read-more:hover, .view-question:hover {
    text-decoration: underline;
}

.footer-right {
    font-size: 13px;
    color: #666;
}

.view-count {
    font-size: 12px;
}

/* 页面统计 */
.page-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
}

.satisfaction-stats {
    display: flex;
    gap: 12px;
}

.stat-item {
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
}

.stat-item.satisfied {
    background: #d4edda;
    color: #155724;
}

.stat-item.unsatisfied {
    background: #fff3cd;
    color: #856404;
}

.stat-item.unknown {
    background: #e2e3e5;
    color: #383d41;
}

/* 侧边栏样式 */
.years-list, .departments-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.year-item, .department-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.year-item:hover, .department-item:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.year-item.active, .department-item.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* 满意度图表 */
.satisfaction-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.satisfaction-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: white;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.satisfaction-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    opacity: 0.2;
    transition: width 0.3s ease;
}

.satisfaction-item.satisfied .satisfaction-bar {
    background: #28a745;
}

.satisfaction-item.unsatisfied .satisfaction-bar {
    background: #ffc107;
}

.satisfaction-item.unknown .satisfaction-bar {
    background: #6c757d;
}

.satisfaction-label {
    flex: 1;
    font-weight: 500;
    z-index: 1;
}

.satisfaction-count {
    font-weight: 600;
    z-index: 1;
}

/* 最新答复 */
.latest-answers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.latest-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.latest-item:last-child {
    border-bottom: none;
}

.latest-link {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 6px 0;
}

.latest-link:hover {
    background: #f8f9fa;
    margin: 0 -8px;
    padding: 6px 8px;
    border-radius: 4px;
}

.latest-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.latest-company, .latest-date {
    font-size: 11px;
    color: #666;
}

.latest-company {
    margin-right: 8px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.empty-description {
    color: #666;
    margin-bottom: 20px;
}

.empty-action {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.empty-action:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .answer-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .question-card-meta {
        flex-direction: column;
        gap: 4px;
    }

    .answer-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-left {
        width: 100%;
        justify-content: space-between;
    }

    .page-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .satisfaction-stats {
        width: 100%;
        justify-content: space-between;
    }
}