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

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0066cc;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 70px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
}

.carousel-caption h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 18px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 公司简介样式 */
.company-profile {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.company-profile h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: #333;
}

.profile-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-text {
    width: 55%;
}

.profile-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.profile-image {
    width: 40%;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 主营业务样式 */
.main-business {
    padding: 80px 0;
    background-color: #fff;
}

.main-business h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: #333;
}

.business-cycles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.cycle-item {
    text-align: center;
    margin: 20px;
    width: 150px;
}

.cycle-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.cycle-icon:hover {
    transform: scale(1.1);
}

.cycle-icon h3 {
    font-size: 18px;
}

.cycle-item p {
    color: #666;
    font-size: 14px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    width: 30%;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #0066cc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #999;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .carousel-caption h1 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    .profile-content {
        flex-direction: column;
    }
    
    .profile-text,
    .profile-image {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .business-cycles {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 60vh;
    }
    
    .carousel-caption {
        padding: 20px;
    }
    
    .carousel-caption h1 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 12px;
    }
    
    .company-profile h2,
    .main-business h2 {
        font-size: 24px;
    }
}

/* 关于我们页面样式 */
.about-us {
    padding: 100px 0 80px;
    background-color: #f9f9f9;
}

.about-us h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: #333;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.about-text {
    width: 55%;
}

.about-text h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #0066cc;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.about-image {
    width: 40%;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.culture {
    background-color: #fff;
    padding: 80px 0;
}

.culture h3 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 28px;
    color: #333;
}

.culture-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.culture-item {
    text-align: center;
    width: 300px;
    margin-bottom: 30px;
}

.culture-item h4 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #0066cc;
}

.culture-item p {
    font-size: 16px;
    color: #666;
}

/* 产品展示页面样式 */
.products {
    padding: 100px 0 80px;
    background-color: #f9f9f9;
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: #333;
}

.product-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.product-category {
    padding: 10px 20px;
    margin: 0 10px 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-category:hover,
.product-category.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

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

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

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

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

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

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.product-info p {
    color: #666;
    font-size: 14px;
}

/* 工厂车间页面样式 */
.factory {
    padding: 100px 0 80px;
    background-color: #f9f9f9;
}

.factory h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: #333;
}

.workshop {
    margin-bottom: 80px;
}

.workshop h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #0066cc;
}

.workshop-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workshop-text {
    width: 55%;
}

.workshop-text p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.workshop-images {
    width: 40%;
}

.workshop-images img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 联系我们页面样式 */
.contact {
    padding: 100px 0 80px;
    background-color: #f9f9f9;
}

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

.contact-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact-info {
    width: 45%;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #0066cc;
}

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

.contact-item i {
    font-size: 24px;
    color: #0066cc;
    margin-right: 15px;
}

.contact-item p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.contact-form {
    width: 50%;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #0066cc;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
}

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

.submit-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0052a3;
}

.map {
    margin-top: 50px;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .about-content,
    .workshop-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-image,
    .workshop-text,
    .workshop-images,
    .contact-info,
    .contact-form {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .about-us h2,
    .products h2,
    .factory h2,
    .contact h2 {
        font-size: 24px;
    }
    
    .about-text h3,
    .workshop h3,
    .contact-info h3,
    .contact-form h3 {
        font-size: 20px;
    }
}