/* 回饋區塊基本樣式 */
.feedback-section {
    padding: 6rem 1rem;
    background-color: #f8f9fa;
}

.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
}

.feedback-container h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: #333;
}

/* Swiper 容器樣式 */
.feedbackSwiper {
    padding: 2rem 1rem;
    position: relative;
    padding-bottom: 4rem;
    --swiper-pagination-bottom: 0rem;
}

/* 回饋卡片樣式 */
.feedback-card {
    height: 16.5rem;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 1.5rem;
}

/* 評分星星樣式 */
.feedback-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.feedback-rating i {
    font-size: 1.2rem;
}

.feedback-rating i.fa-solid {
    color: #FFD700;
}

.feedback-rating i.fa-regular {
    color: #cccccc;
}

/* 回饋文字樣式 */
.feedback-text {
    flex-grow: 1;
}

.feedback-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 作者資訊樣式 */
.feedback-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #eeeeee;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.author-avatar img {
    width: 60%;
    height: 60%;
    object-fit: cover;
}

.author-avatar:hover {
    transform: scale(1.1);
}

.author-info h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Swiper 導航按鈕樣式 */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

/* Swiper 分頁器樣式 */
.swiper-pagination {
    position: absolute !important;
    bottom: var(--swiper-pagination-bottom, 8px) !important;
    margin-top: 0;
    padding-top: 0rem;
}

.swiper-slide {
    padding-bottom: 3rem;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #0066cc;
}

/* RWD 適配 */
@media (max-width: 1280px) {
    .feedback-container {
        max-width: 960px;
    }
}

@media (max-width: 1000px) {

    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .feedback-section {
        padding: 4rem 1rem;
    }

    .feedback-container h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .feedback-card {
        padding: 1.5rem;
        height: 15rem;
    }

    .feedback-text p {
        font-size: 1rem;
    }

    .feedback-rating i {
        font-size: 1.1rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feedback-section {
        padding: 3rem 1rem;
    }

    .feedback-container h2 {
        font-size: 1.8rem;
    }

    .feedback-card {
        padding: 1.25rem;
    }

    .feedback-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .feedback-rating i {
        font-size: 1rem;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }
}