<template>
    <div class="expert-detail">
        <custom-header name="问答详情"></custom-header>
        <div class="expert-content">
            <div class="question-header">
                <img class="question-icon" src="@/assets/img/home/ask-icon.png" alt="" />
                <div class="question-title">怎么预估我的果园的今年荔枝的产量?</div>
            </div>
            <div class="expert-info">
                <el-avatar
                    class="expert-avatar"
                    :size="16"
                    src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
                />
                <div class="expert-details">
                    <span class="expert-name">高小波</span>
                    <span class="expert-title">华南农业大学农业专家</span>
                    <span class="qa-date">2024.11.01</span>
                </div>
            </div>

            <!-- 专家信息卡片 -->
            <div class="expert-card">
                <el-avatar :size="36" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" />
                <div class="expert-card-info">
                    <div class="expert-card-name">高小波</div>
                    <div class="expert-card-title">华南农业大学农业专家</div>
                </div>
            </div>

            <div class="answer-content">
                <div class="answer-text">
                    <span class="font-bold">遇雨补喷:</span> 选择在无风或微风天气进行, 以减少药物的漂移,
                    如果喷药后4小时内遇到雨水冲刷, 应重新...
                </div>
                <div class="answer-text">
                    <span class="font-bold">遇雨补喷:</span> 选择在无风或微风天气进行, 以减少药物的漂移,
                    如果喷药后4小时内遇到雨水冲刷, 应重新...
                </div>
                <div class="answer-text">
                    <span class="font-bold">遇雨补喷:</span> 选择在无风或微风天气进行, 以减少药物的漂移,
                    如果喷药后4小时内遇到雨水冲刷, 应重新...
                </div>
            </div>
        </div>
    </div>
</template>

<script setup>
import customHeader from "@/components/customHeader.vue";
</script>

<style scoped lang="scss">
.expert-detail {
    position: relative;
    width: 100%;
    height: 100vh;
    .expert-content {
        padding: 8px 16px;
        .question-header {
            display: flex;
            align-items: center;
            margin-bottom: 6px;
            gap: 8px;
            .question-icon {
                width: 20px;
                height: 20px;
            }

            .question-title {
                font-size: 16px;
                font-weight: 600;
            }
        }

        .expert-info {
            display: flex;
            align-items: center;
            gap: 6px;
            padding-bottom: 14px;
            border-bottom: 1px solid #f5f5f5;
            .expert-details {
                display: flex;
                align-items: center;
                gap: 6px;
                font-size: 13px;
                color: #666666;
            }
        }

        // 专家信息卡片样式
        .expert-card {
            margin: 13px 0;
            display: flex;
            align-items: center;
            gap: 12px;

            .expert-card-info {
                .expert-card-name {
                    font-weight: 600;
                }

                .expert-card-title {
                    font-size: 12px;
                    color: #666666;
                }
            }
        }

        .answer-content {
            color: #333333;
            line-height: 1.5;
            .font-bold {
                font-weight: 500;
            }
            .answer-text + .answer-text {
                margin-top: 8px;
            }
        }
    }
}
</style>
