/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
    color: #1E88E5;
}

.logo span {
    margin-left: 10px;
}

.menu ul {
    display: flex;
    list-style: none;
}

.menu ul li {
    margin-left: 30px;
}

.menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.menu ul li a:hover,
.menu ul li.active a {
    color: #1E88E5;
}

.hamburger {
    display: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 轮播图样式 */
.slider {
    margin-top: 75px;
    position: relative;
    height: 360px;
    overflow: hidden;
}

.slides {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    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;
    max-width: 660px;
    width: 66%;
}

.slide-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #1E88E5;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1565C0;
}

/* 特色产品样式 */
.featured-products {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

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

.product-img {
    height: 250px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 20px;
}

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

.product-info p {
    color: #666;
    margin-bottom: 15px;
}

.btn-sm {
    display: inline-block;
    color: #1E88E5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-sm:hover {
    color: #1565C0;
}

/* 公司简介预览样式 */
.about-preview {
    padding: 80px 0;
}

.about-preview .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

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

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

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* 新闻预览样式 */
.news-preview {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
}

.news-img {
    flex: 0 0 30%;
    overflow: hidden;
}

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

.news-info {
    flex: 1;
    padding: 20px;
}

.date {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

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

.news-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-more {
    display: block;
    width: 200px;
    margin: 0 auto;
    text-align: center;
    background-color: transparent;
    color: #1E88E5;
    border: 2px solid #1E88E5;
    padding: 10px 0;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-more:hover {
    background-color: #1E88E5;
    color: #fff;
}

/* 页脚样式 */
footer {
    background-color: #2C3E50;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.footer-logo {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.footer-logo span {
    margin-left: 10px;
}

.footer-links,
.footer-contact {
    flex: 0 0 25%;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1E88E5;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #1E88E5;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: #1E88E5;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 企业介绍页面样式 */
.about-page {
    padding: 100px 0 80px;
}

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

.about-section {
    margin-bottom: 60px;
}

.about-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.about-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1E88E5;
}

.about-section p {
    color: #666;
    margin-bottom: 20px;
}

.company-culture {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.company-culture h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    color: #333;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.culture-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.culture-item i {
    font-size: 40px;
    color: #1E88E5;
    margin-bottom: 20px;
}

.culture-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.culture-item p {
    color: #666;
}

/* 产品中心页面样式 */
.products-page {
    padding: 100px 0 80px;
}

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

.product-category {
    margin-bottom: 60px;
}

.product-category h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.product-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1E88E5;
}

/* 行业新闻页面样式 */
.news-page {
    padding: 100px 0 80px;
}

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

.news-list {
    margin-bottom: 40px;
}

.news-item {
    display: flex;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item-img {
    flex: 0 0 30%;
    overflow: hidden;
}

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

.news-item-content {
    flex: 1;
    padding: 20px;
}

.news-item-date {
    display: block;
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.news-item-content p {
    color: #666;
    margin-bottom: 20px;
}

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

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

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 0 0 40%;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #1E88E5;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details ul {
    list-style: none;
}

.contact-details ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-details ul li i {
    margin-right: 15px;
    color: #1E88E5;
    font-size: 20px;
    min-width: 20px;
    margin-top: 3px;
}

.contact-form {
    flex: 1;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

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

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

/* 响应式样式 */
/* 移动菜单样式 */
@media (max-width: 768px) {
    .menu.active {
        display: block;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .menu.active ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .menu.active ul li {
        margin: 10px 0;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-preview .container {
        flex-direction: column;
    }

    .about-content,
    .about-img {
        flex: 1 1 100%;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-wrap: wrap;
    }

    .footer-logo,
    .footer-links,
    .footer-contact {
        flex: 0 0 50%;
        margin-bottom: 30px;
    }

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

    .contact-info {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo,
    .footer-links,
    .footer-contact {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .slider {
        height: 400px;
    }

    .slide-content h1 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
    }

    .featured-products h2,
    .about-preview h2,
    .news-preview h2,
    .about-page h2,
    .products-page h2,
    .news-page h2,
    .contact-page h2 {
        font-size: 28px;
    }
}