/* 評論區域樣式 - 日式風格 */
.customer-reviews {
    background: #f8f8f8;
    padding: 80px 0;
}

.review-container {
    position: relative;
    min-height: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px 0;
}

/* 評論項目樣式 */
.review {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
    border-radius: 15px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.review:hover {
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 評論頭像 */
.review img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #8B4513;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
}

.review:hover img {
    transform: scale(1.1);
    border-color: #A0522D;
}

/* 評論內容 */
.review .message {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review .customer-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.1rem;
    margin: 0;
}

.review .review-text {
    color: #555;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* 評論評分 */
.review .rating {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.review .rating i {
    color: #FFD700;
    font-size: 0.9rem;
}

/* 評論時間戳 */
.review .timestamp {
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* 輪播控制按鈕已移除，現在所有評論都直接顯示 */

/* 評論載入動畫 */
.review-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #8B4513;
}

.review-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

/* 評論錯誤狀態 */
.review-error {
    text-align: center;
    padding: 40px;
    color: #666;
}

.review-error i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

/* 評論空狀態 */
.review-empty {
    text-align: center;
    padding: 60px 40px;
    color: #999;
}

.review-empty i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.review-empty h3 {
    margin: 0 0 10px 0;
    color: #666;
}

.review-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* 評論動畫關鍵幀 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 評論響應式設計 */
@media (max-width: 768px) {
    .review-container {
        height: 300px;
        padding: 20px;
    }
    
    .review {
        width: calc(100% - 40px);
        height: auto;
        min-height: 80px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .review img {
        width: 50px;
        height: 50px;
    }
    
    .review .message {
        text-align: center;
    }
    
    .review-controls {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .review-container {
        height: 250px;
        padding: 15px;
    }
    
    .review {
        width: calc(100% - 30px);
        padding: 15px;
    }
    
    .review img {
        width: 40px;
        height: 40px;
    }
    
    .review .customer-name {
        font-size: 1rem;
    }
    
    .review .review-text {
        font-size: 0.9rem;
    }
}

/* 評論特殊效果 */
.review::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 3rem;
    color: rgba(139, 69, 19, 0.1);
    font-family: 'Noto Serif JP', serif;
    line-height: 1;
}

.review::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 3rem;
    color: rgba(139, 69, 19, 0.1);
    font-family: 'Noto Serif JP', serif;
    line-height: 1;
}

/* 評論懸停時的邊框效果 */
.review:hover::before,
.review:hover::after {
    color: rgba(139, 69, 19, 0.2);
}

/* 評論載入時的骨架屏效果 */
.review-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
