/* 文件名: style.css */
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #f0f8fb;
    min-height: 100vh;
}

/* 统一导航栏样式 - 以clients网页为准 */
.navbar {
    background-color: #b8e0f0;
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

/* 社交媒体图标固定在左侧 */
.nav-social-icons {
    display: flex;
    gap: 1.5rem;
    margin-right: 1.5rem;
}

.nav-social-icon {
    font-size: 1.8rem;
    color: #2b7a9c;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-social-icon:hover {
    color: #1a5a77;
    transform: scale(1.1);
}

/* Logo 固定在社交媒体图标右侧 */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    margin-right: auto;
}

/* 导航右侧区域 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #000;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 1rem;
}

.nav-menu a:hover {
    color: #2b7a9c;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2b7a9c;
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 语言切换按钮 - 固定在右侧 */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #2b7a9c;
    background: #fff;
    color: #2b7a9c;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
    min-width: 60px;
}

.lang-btn.active {
    background: #2b7a9c;
    color: #fff;
}

.lang-btn:hover {
    background: #1a5a77;
    color: #fff;
    border-color: #1a5a77;
}

/* 主要内容区域 */
.main-content {
    padding-top: 1rem;
}

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 社交媒体链接 */
.social-section {
    background-color: #e8f4f8;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.social-links-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.social-icon:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

/* 关于我们页面 */
.about-section {
    margin-bottom: 4rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--text-light);
}

/* 资质认证专属样式 */
.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 1rem;
}

.cert-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cert-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    border: 1px solid #f0f0f0;
}

.cert-item p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.factory-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.factory-image {
    text-align: center;
}

.factory-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.organization-chart {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-level {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    width: 100%;
}

.chart-node {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 0 0.5rem;
    text-align: center;
    min-width: 150px;
}

.chart-node.manager {
    background: var(--primary-color);
    color: var(--white);
    font-weight: bold;
}

.chart-connector {
    width: 2px;
    height: 30px;
    background: var(--text-light);
    margin: 0 auto;
}

/* 核心能力页面 */
.capability-section {
    margin-bottom: 4rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    position: relative;
}

.process-step::after {
    content: '→';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
}

.process-step:last-child::after {
    display: none;
}

.process-step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.supplier-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.supplier-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.supplier-category {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.supplier-names {
    color: var(--text-light);
}

.workshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.workshop-item {
    text-align: center;
}

.workshop-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.workshop-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 产品中心 */
.product-category {
    margin-bottom: 4rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 客户案例 */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.client-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.client-item:hover {
    transform: scale(1.05);
}

.client-item img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.client-category {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 联系我们 */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* 页脚 */
.footer {
    background-color: #e8f4f8;
    color: #000;
    padding: 1.5rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer p {
    margin-top: 1rem;
    color: #000;
}

/* Banner样式 */
.banner {
    background-color: #e8f4f8;
    padding: 3rem 2rem;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.banner-text h1 {
    font-size: 2rem;
    margin: 0;
    line-height: 1.3;
}

.banner-text h2 {
    font-size: 1.2rem;
    margin: 0;
    color: #555;
}

.banner-slogan {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: #2b7a9c;
}

/* 轮播图样式 */
.carousel {
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    max-height: 450px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.carousel-btn {
    background-color: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(255,255,255,1);
}

/* 工厂视频样式 */
.factory-video {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.factory-video h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.videos-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.video-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-wrapper video {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.social-title {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #b8e0f0;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-social-icons {
        gap: 1rem;
        margin-right: 1rem;
    }
    
    .nav-social-icon {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .lang-switcher {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        min-width: 50px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .factory-images {
        grid-template-columns: 1fr;
    }

    .process-flow {
        flex-direction: column;
    }

    .process-step::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(50%);
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide img {
        max-height: 250px;
    }

    .videos-container {
        flex-direction: column;
    }

    .video-wrapper video {
        height: 240px;
    }
    
    .certifications {
        gap: 1.5rem;
    }
    
    .cert-item {
        min-width: 280px;
        padding: 1rem;
    }
    
    .cert-item img {
        max-height: 250px;
    }
    
    .cert-item p {
        font-size: 1rem;
    }
}