/* 亚马逊风格全球购物平台样式 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Amazon Ember", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #0f1111;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 亚马逊风格轮播横幅 */
.amazon-hero {
    background: linear-gradient(135deg, #232f3e 0%, #37475a 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.hero-slides {
    position: relative;
    height: 400px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.amazon-btn {
    background: #ff9900;
    color: #0f1111;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amazon-btn:hover {
    background: #e88600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.hero-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #ff9900;
    transform: scale(1.2);
}

/* 商品分类导航 */
.amazon-categories {
    background: #f8f9fa;
    padding: 40px 0;
}

.amazon-categories h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0f1111;
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #0f1111;
    padding: 20px 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 推荐商品区 */
.amazon-products {
    padding: 40px 0;
}

.amazon-products h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0f1111;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff9900;
    color: #0f1111;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f1111;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b12704;
}

.original-price {
    font-size: 0.9rem;
    color: #565959;
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    background: #ff9900;
    color: #0f1111;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #e88600;
}

/* 今日特惠 */
.amazon-deals {
    background: #f8f9fa;
    padding: 40px 0;
}

.amazon-deals h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0f1111;
    margin-bottom: 30px;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.deal-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.deal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.deal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #b12704;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.deal-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.deal-item h3 {
    padding: 15px 15px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f1111;
}

.deal-item .price {
    padding: 0 15px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 品牌推荐 */
.amazon-brands {
    padding: 40px 0;
}

.amazon-brands h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0f1111;
    margin-bottom: 30px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.brand-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #0f1111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #565959;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slides {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .amazon-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .category-item {
        padding: 15px 5px;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .category-item span {
        font-size: 0.8rem;
    }
}