/* 导航样式 */
.navbar {
    background: linear-gradient(135deg, #409EFF, #337ecc);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(64, 158, 255, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.nav-link.active {
    background: rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 轮播图样式 */
.banner-carousel {
    margin-top: 80px;
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4), rgba(64,158,255,0.3));
    z-index: 1;
}

.carousel-item h1 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    margin: 0;
    padding: 0 2rem;
    animation: slideInUp 1s ease-out;
}

/* 轮播指示点样式 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.carousel-dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #409EFF;
    border-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(64,158,255,0.6);
}

/* 产品展示区样式 */
.product-showcase {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    position: relative;
}

.product-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23409EFF" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
    pointer-events: none;
}

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.showcase-header {
    text-align: center;
    margin-bottom: 4rem;
}

.showcase-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #409EFF, #337ecc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
}

/* 尺寸选择按钮 */
.size-selection {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 150px;
}

.size-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(64, 158, 255, 0.2);
    border-color: #409EFF;
}

.size-btn.active {
    background: linear-gradient(135deg, #409EFF, #337ecc);
    color: white;
    border-color: #409EFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(64, 158, 255, 0.3);
}

.size-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.size-label {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* 产品画廊网格布局 */
.product-gallery {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.product-gallery.active {
    display: block;
    opacity: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem 0;
}

/* 产品图片卡片 */
.product-img-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(64, 158, 255, 0.1);
}

.product-img-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(64, 158, 255, 0.2);
    border-color: rgba(64, 158, 255, 0.3);
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 350px;
    aspect-ratio: 4/3;
}

.product-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-img-card:hover img {
    transform: scale(1.1);
}

/* 图片悬停遮罩效果 */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.65), rgba(51, 126, 204, 0.75));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    padding: 1rem;
}

.product-img-card:hover .img-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 1rem;
    max-height: 100%;
    overflow-y: auto;
    width: 100%;
}

.overlay-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.overlay-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* 详细描述样式 */
.detailed-description {
    margin-top: 1rem;
    text-align: left;
    animation: slideInUp 0.5s ease 0.2s both;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.feature-list li {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    padding-left: 0.5rem;
    opacity: 0.95;
    transition: transform 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(3px);
    opacity: 1;
}

/* 技术规格标签 */
.tech-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.spec-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.spec-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* 图片标题 */
.img-caption {
    padding: 1rem;
    text-align: center;
}

.img-caption h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.img-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* 关于我们区域样式 */
#about {
    padding: 4rem 0rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #409EFF, #337ecc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.company-intro {
    margin-bottom: 3rem;
}

.company-intro h3,
.core-values h3 {
    color: #409EFF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.company-intro p {
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(64, 158, 255, 0.2);
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(64, 158, 255, 0.1);
    border-color: rgba(64, 158, 255, 0.4);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.value-item h4 {
    color: #409EFF;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.about-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 158, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #409EFF;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.certifications h4 {
    color: #409EFF;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-badge {
    background: linear-gradient(135deg, #409EFF, #337ecc);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.about-footer {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 158, 255, 0.2);
}

.about-footer h4 {
    color: #409EFF;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(64, 158, 255, 0.1);
}

.contact-icon {
    font-size: 1.2rem;
}

.about-section {
    width: 100%;
    margin: 0 auto;
}

/* 图片懒加载效果 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-img-card {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .carousel-item h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        margin: 0 0.2rem;
        font-size: 0.9rem;
    }
    
    #about {
        padding: 4rem 1rem;
    }
    
    .about-header h2 {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-list {
        justify-content: center;
    }
    
    .banner-carousel {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-dots {
        bottom: 20px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .overlay-content {
        padding: 0.8rem;
    }
    
    .overlay-content h4 {
        font-size: 1.2rem;
    }
    
    .overlay-subtitle {
        font-size: 0.9rem;
    }
    
    .feature-list li {
        font-size: 0.8rem;
    }
    
    .spec-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .banner-carousel {
        height: 50vh;
        min-height: 350px;
    }
    
    .carousel-item h1 {
        font-size: 2rem;
    }
    
    .detailed-description {
        margin-top: 0.8rem;
    }
    
    .feature-list li {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .tech-specs {
        gap: 0.3rem;
    }
}