/* index.css - 首页特定样式 */

/* Hero Slideshow - Horizontal Slide */
.hero-slideshow {
    position: relative;
    min-height: 950px;
    overflow: hidden;
    background-color: #0a0a0a;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 950px;
    background-color: #0a0a0a;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 950px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 1;
}

.slide.active {
    transform: translateX(0);
    z-index: 2;
}

/* Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

/* Slide text */
.slide .container {
    position: relative;
    z-index: 2;
}

.slide-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 0;
}

.slide .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    line-height: 1.25;
    animation: slideFadeIn 0.8s ease-out both;
}

.slide .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.65;
    animation: slideFadeIn 0.8s ease-out 0.15s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: slideFadeIn 0.8s ease-out 0.3s both;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation arrows */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.slide-prev {
    left: 24px;
}

.slide-next {
    right: 24px;
}

/* Dots */
.slide-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-with-bg-content {
    text-align: center;
    width: 100%;
}

.hero-with-bg .hero-title {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-with-bg .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Products */
.products {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
    aspect-ratio: 1/1;
    background-color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    font-size: 64px;
    color: var(--secondary);
}

.product-content {
    padding: 24px;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-description {
    color: var(--secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.product-price {
    display: none;
}

/* Strength Section */
.strength-section {
    background-color: #0a3dad;
    padding: 60px 0;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.strength-card {
    text-align: center;
    padding: 40px 30px;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.strength-card:last-child {
    border-right: none;
}

.strength-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.strength-card:hover .strength-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: scale(1.1);
}

.strength-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #ffffff;
    line-height: 1.4;
}

.strength-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* Features */
.features {
    padding: 80px 0;
    background-color: #f8fafc;
    border-radius: var(--radius);
    margin-top: 12px;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent);
    margin: 0 auto 24px;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-description {
    color: var(--secondary);
    max-width: 300px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    background: #0a3dad;
    color: var(--white);
    padding: 80px 0;
    margin-top: 80px;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    white-space: nowrap;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.form-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--dark);
}

.form-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    background-color: var(--white);
}

.form-input::placeholder {
    color: var(--secondary);
    opacity: 0.7;
}

.form-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

/* Compact product cards for index page */
.products-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 64px;
}

.product-card-compact {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray);
    height: 100%;
}

.product-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-image-compact {
    aspect-ratio: 1/1;
    background-color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card-compact:hover .product-image-compact img {
    transform: scale(1.05);
}

.product-content-compact {
    padding: 20px;
    text-align: center;
}

.product-title-compact {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.product-description-compact {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.view-details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0a3dad;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    gap: 6px;
    transition: var(--transition);
}

.view-details-link:hover {
    color: #0830a0;
    gap: 10px;
}

/* Responsive for index page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-slideshow,
    .hero-slideshow .slides-wrapper,
    .hero-slideshow .slide {
        min-height: 700px;
    }

    .slide .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .slide .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .slide-text {
        padding: 60px 20px;
    }

    .hero-btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }

    .slide-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .slide-prev {
        left: 12px;
    }
    
    .slide-next {
        right: 12px;
    }
    
    /* CTA responsive */
    .cta-section {
        padding: 60px 0;
        margin-top: 40px;
    }
    
    .cta-title {
        font-size: 32px;
        white-space: normal;
    }
    
    .cta-subtitle {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .form-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-input,
    .cta-form .btn-primary {
        width: 100%;
    }
    
    .products-grid-compact {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .strength-grid {
        grid-template-columns: 1fr;
    }
    
    .strength-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 30px 20px;
    }
    
    .strength-card:last-child {
        border-bottom: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}
