/* 首頁輪播圖 */
.hero-slider {
    position: relative;
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 500px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10;
    opacity: 0.7;
}

.slider-btn:hover {
    opacity: 1;
    background: var(--primary-color);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* 特色區塊 */
.features {
    padding: 40px 0;
    background-color: var(--light-bg);
    margin-bottom: 50px;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature p {
    color: var(--light-text);
}

/* 區塊標題 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-header h2 {
    font-size: 24px;
    position: relative;
    padding-left: 15px;
}

.section-header h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
}

.view-all i {
    margin-left: 5px;
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(5px);
}

/* 產品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--text-color);
    padding: 0;
}

.product-actions button:hover {
    background: var(--primary-color);
    color: white;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: var(--light-text);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.product-rating i {
    color: #f39c12;
    margin-right: 2px;
}

.product-rating span {
    margin-left: 5px;
    color: var(--light-text);
}

/* 分類展示 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transition: var(--transition);
}

.category-card:hover .category-info {
    background: linear-gradient(to top, rgba(108, 92, 231, 0.9), transparent);
}

.category-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.category-info p {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

/* 貨到付款說明 */
.delivery-info {
    padding: 50px 0;
    background-color: var(--light-bg);
    margin-bottom: 50px;
}

.delivery-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.delivery-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.delivery-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.delivery-text p {
    margin-bottom: 30px;
    font-size: 16px;
}

.delivery-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-text h4 {
    margin-bottom: 5px;
}

.step-text p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--light-text);
}

/* 顧客評價 */
.testimonials {
    padding: 50px 0;
    margin-bottom: 50px;
}

.testimonials-slider {
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
}

.testimonial {
    flex: 0 0 100%;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: var(--light-text);
    font-size: 16px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 5px;
}

.rating i {
    color: #f39c12;
    font-size: 14px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.testimonial-dots .dot {
    background: var(--border-color);
}

.testimonial-dots .dot.active {
    background: var(--primary-color);
}

/* 電子報訂閱 */
.newsletter {
    background: var(--primary-color);
    padding: 50px 0;
    margin-bottom: 50px;
}

.newsletter-content {
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
}

.newsletter-form button {
    border-radius: 50px;
    padding: 15px 30px;
    background: var(--accent-color);
    min-width: 120px;
}

.newsletter-form button:hover {
    background: #e84393;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .products-grid, .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .delivery-content {
        grid-template-columns: 1fr;
    }
    
    .delivery-image {
        order: 2;
    }
    
    .delivery-text {
        order: 1;
    }
    
    .slider-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .products-grid, .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .delivery-steps {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .products-grid, .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .features .container {
        grid-template-columns: 1fr;
    }
    
    .slider-container {
        height: 300px;
    }
    
    .slide-content {
        left: 5%;
        right: 5%;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
} 