/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #666;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #f5f5f5;
}

/* 头部联系信息 */
.top-header {
    background-color: #333;
    color: #fff;
    padding: 8px 0;
}

.contact-info {
    display: flex;
    justify-content: flex-end;
}

.contact-info a {
    color: #fff;
    transition: color 0.3s;
}

.contact-info span {
    margin-left: 20px;
    font-size: 14px;
}

.contact-info i {
    margin-right: 5px;
}

/* 导航栏 */
.main-nav {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo {
  width: 140px;
}

.logo img {
    width: 140px;
}

.nav-links {
    margin-left: auto;
    margin-right: 30px;
}

.nav-links ul {
    display: flex;
    justify-content: flex-end;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4a6da7;
}

.language-switch select {
    padding: 8px 12px;
    font-size: 14px;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.language-switch select:hover {
    border-color: #4a6da7;
}

.language-switch select:focus {
    border-color: #4a6da7;
    box-shadow: 0 0 0 2px rgba(74, 109, 167, 0.1);
}

/* 关于我们部分 */
.about-section {
    padding: 15px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    justify-content: space-between;
}

.about-text {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-text h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.about-slider {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 20px;
    }

    .about-text,
    .about-slider {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about-text {
        margin-bottom: 20px;
    }

    /* 视频容器移动端适配 */
    .video-container {
        max-width: 100%;
        height: 56.25vw;
        margin: 0 15px;
    }

    #factory-video {
        object-fit: contain;
    }
}

.swiper-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 300px;
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #f5f5f5;
}

.swiper-button-next,
.swiper-button-prev {
    display: none;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* 视频部分 */
.video-section {
    padding: 60px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.video-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 450px;
}

#factory-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品信息部分 */
.products-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.products-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-card h3 {
    padding: 15px 15px 5px;
    font-size: 20px;
    color: #333;
}

.product-card p {
    padding: 0 15px 15px;
    color: #666;
}

/* 联系我们部分 */
.contact-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 24px;
    color: #4a6da7;
    margin-right: 15px;
}

.contact-form {
    flex: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0 10px;
}

.footer-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 15px;
}

.footer-links li {
    margin: 0 10px;
}

.footer-logo img {
    height: 40px;
}

.footer-links ul {
    display: flex;
    justify-content: flex-end;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: #fff;
    transition: color 0.3s;
}

.footer-links i {
    margin-right: 5px;
}

.footer-links a:hover {
    color: #ccc;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ccc;
}

.copyright {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
    }

    .nav-links {
        margin: 20px 0;
    }

    .language-switch {
        margin-top: 10px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
        margin: 20px 0;
    }

    .social-links {
        margin-top: 20px;
    }

    .social-links a {
        margin: 0 8px;
    }
}
