/* static/website/css/home.css */
/* 轮播图样式 */
#mainCarousel {
    height: 85vh;
    margin-top: -100px;
}

.carousel-item {
    height: 85vh;
}

.carousel-image {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    bottom: 20%;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    left: 10%;
    right: 10%;
    text-align: left;
}

.caption-content {
    max-width: 600px;
}

.carousel-top-text {
    margin-bottom: 1rem;
}

.carousel-top-text .badge {
    font-size: 0.9rem;
    padding: 8px 15px;
    font-weight: 600;
}

.caption-features {
    margin: 1.5rem 0;
}

.caption-features span {
    display: inline-block;
    background: rgba(255,255,255,0.9);
    color: var(--primary-blue);
    padding: 8px 15px;
    margin: 5px 10px 5px 0;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 数据区块样式 */
.stats-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
}

.stats-section .counter-item h3 {
    color: #1e40af;
    font-size: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* 🎯 金色符号样式 */
.gold-symbol {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 2.5rem;
    margin-left: 2px;
}

.stats-section .counter-item p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 标题样式 */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.section-title-left {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: left;
}

.section-title-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

/* 合作伙伴滚动 */
.partners-slider {
    overflow: hidden;
    position: relative;
}

.partners-track {
    display: flex;
    animation: scrollPartners 30s linear infinite;
}

.partner-item {
    flex: 0 0 auto;
    margin: 0 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-item:hover {
    opacity: 1;
}

.partner-item img {
    height: 80px;
    object-fit: contain;
}

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 卡片样式 */
.feature-card, .product-card, .news-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.feature-card:hover, .product-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon, .product-icon {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* 生产实力卡片 */
.production-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.production-card:hover {
    transform: translateY(-5px);
}

.production-image {
    height: 200px;
    overflow: hidden;
}

.production-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.production-card:hover .production-image img {
    transform: scale(1.05);
}

.production-content {
    padding: 1.5rem;
}

/* 🎯 资质认证区块样式  */
.certification-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.certification-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.certification-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.certification-card:hover .certification-logo img {
    transform: scale(1.05);
}

.certification-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.certification-title {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.certification-org {
    color: var(--medium-gray);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.certification-year {
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* 🎯 轮播图文字内容样式 */
.banner-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.banner-features li {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.banner-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 🎯 修复移动端导航栏遮挡问题 - 方案一 */
/* 响应式调整 */
@media (max-width: 768px) {
    #mainCarousel {
        height: 100vh;
        margin-top: 0;
        padding-top: 0;
    }
    
    .carousel-item {
        height: 100vh;
    }
    
    .carousel-caption {
        bottom: 15%;
        text-align: center;
        padding-top: 0;
    }
    
    .caption-content {
        max-width: 100%;
    }
    
    .caption-features span {
        display: block;
        margin: 5px 0;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .partners-track {
        animation-duration: 20s;
    }
    
    .partner-item {
        margin: 0 15px;
    }
    
    .partner-item img {
        height: 60px;
    }
    
    .stats-section .counter-item h3 {
        font-size: 2.5rem;
    }
    
    .gold-symbol {
        font-size: 2rem;
    }
    
    .section-title-left {
        text-align: center;
    }
    
    .section-title-left::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .banner-features {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .banner-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .banner-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .certification-card {
        padding: 1.5rem 1rem;
    }
    
    .certification-logo {
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .certification-logo img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .certification-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .certification-placeholder i {
        font-size: 2rem !important;
    }
    
    .certification-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #mainCarousel {
        height: 100vh;
        padding-top: 0;
    }
    
    .carousel-item {
        height: 100vh;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem !important;
    }
    
    .carousel-caption .lead {
        font-size: 0.9rem;
    }
    
    .certification-card {
        margin-bottom: 1rem;
    }
    
    .banner-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .banner-features li {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}