﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.ques-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ques-details-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .ques-details-header h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

.ques-details-main {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ques-details-content {
    flex: 3;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.ques-details-question {
    padding: 20px;
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.ques-details-question-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0d47a1;
}

.ques-details-answer {
    padding: 20px;
    background-color: #f5f5f5;
    border-left: 4px solid #4caf50;
    border-radius: 0 8px 8px 0;
}

.ques-details-answer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2e7d32;
}

.ques-details-answer-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.ques-details-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ques-details-recommend {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
}

.ques-details-recommend-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    color: #333;
}

.ques-details-recommend-list {
    list-style: none;
}

.ques-details-recommend-item {
    padding: 12px 0;
    border-top: 1px dashed #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .ques-details-recommend-item:first-child {
        border-top: none;
    }

    .ques-details-recommend-item a {
        text-decoration: none;
        color: #555;
        transition: color 0.3s ease;
        display: block;
    }

        .ques-details-recommend-item a:hover {
            color: #667eea;
        }

.ques-details-salesperson {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.ques-details-salesperson-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b6b;
    color: #333;
}

.ques-details-salesperson-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #fff8e1;
    border-radius: 8px;
}

.ques-details-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffd54f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    color: #333;
}

.ques-details-salesperson-details h4 {
    margin-bottom: 5px;
    color: #333;
}

.ques-details-contact-info {
    font-size: 14px;
    color: #666;
}

.ques-details-shop-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.ques-details-shop-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffa726;
    color: #333;
}

.ques-details-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.ques-details-shop-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

    .ques-details-shop-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.ques-details-shop-name {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ques-details-shop-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ques-details-shop-rating {
    color: #ffc107;
    font-size: 14px;
}

@media (max-width: 768px) {
    .ques-details-main {
        flex-direction: column;
    }

    .ques-details-container {
        padding: 10px;
    }

    .ques-details-shop-grid {
        grid-template-columns: 1fr;
    }
}
