/**
 * Home Page Styles
 */

/* Hero Split Carousel */
.hero-split-carousel {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45% 55%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-left {
    display: flex;
    align-items: center;
    padding: 4rem;
    z-index: 2;
}

.hero-left .hero-content {
    max-width: 500px;
}

.hero-left .hero-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #5a7a96;
    margin-bottom: 1.5rem;
}

.hero-left .hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 300;
    letter-spacing: -0.02em;
}

.hero-left .hero-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 400px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.btn-text {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-text:hover {
    color: #5a7a96;
}

/* 轮播指示器 */
.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.carousel-dots .dot {
    width: 40px;
    height: 3px;
    background: #ced4da;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: #2c3e50;
    width: 60px;
}

/* 右侧轮播 */
.hero-right {
    position: relative;
    background: #2c3e50;
    overflow: hidden;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 备用图样式 */
.slide-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 1rem;
}

.slide-fallback svg {
    width: 300px;
    height: 225px;
}

.slide-fallback span {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.fallback-unfold { background: linear-gradient(135deg, #3d566e 0%, #2c3e50 100%); }
.fallback-half { background: linear-gradient(135deg, #4a6278 0%, #34495e 100%); }
.fallback-fold { background: linear-gradient(135deg, #5a7a96 0%, #2c3e50 100%); }

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255,255,255,0.2);
}

.carousel-arrow.prev { left: 2rem; }
.carousel-arrow.next { right: 2rem; }

/* 响应式 */
@media (max-width: 1024px) {
    .hero-split-carousel {
        grid-template-columns: 1fr;
        grid-template-rows: auto 50vh;
    }
    
    .hero-left {
        padding: 3rem 2rem;
        text-align: center;
    }
    
    .hero-left .hero-content {
        max-width: 100%;
    }
    
    .hero-left .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .carousel-dots {
        justify-content: center;
    }
}

/* 旧 Hero 样式保留 */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--background);
    padding-top: 80px;
}

.hero-content {
    padding: 4rem;
    max-width: 600px;
    margin-left: auto;
}

.hero-tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    height: 100%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        padding: 3rem 2rem;
        max-width: 100%;
        margin: 0;
        order: 2;
    }
    
    .hero-image {
        min-height: 400px;
        order: 1;
    }
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background-color: var(--background);
    border-radius: 50%;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Featured Products */
.featured-products {
    padding: 6rem 0;
    background-color: var(--background);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--background);
}

.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-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary);
    line-height: 1.4;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
}

.price-current {
    color: var(--primary);
}

.price-sale {
    color: var(--error);
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 400;
}

.section-footer {
    text-align: center;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Brand Story */
.brand-story {
    padding: 6rem 0;
    background-color: white;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.story-title {
    font-size: clamp(2rem, 3vw, 2.75rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.story-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .story-image {
        order: -1;
    }
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background-color: var(--primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Newsletter */
.newsletter {
    padding: 6rem 0;
    background-color: var(--background);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
}

.newsletter-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form .btn {
    padding: 1rem 2rem;
}

@media (max-width: 640px) {
    .newsletter-form {
        flex-direction: column;
    }
}
