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

html {
    scroll-behavior: smooth;
}

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

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2c5282;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1a365d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

/* 标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 2.2rem;
    color: #2c5282;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title .line {
    width: 80px;
    height: 3px;
    background-color: #2c5282;
    margin: 0 auto 20px;
}

.section-title p {
    color: #666;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.navbar.scrolled .logo h1 {
    color: #2c5282;
}

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

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

.nav-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.navbar.scrolled .nav-menu ul li a {
    color: #333;
}

.nav-menu ul li a.active,
.nav-menu ul li a:hover {
    color: #f6ad55;
}

.mobile-menu-btn {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .mobile-menu-btn {
    color: #2c5282;
}

/* Banner样式 */
.banner {
    height: 100vh;
    background: url('../images/banner.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner .container {
    text-align: center;
    color: #fff;
    z-index: 1;
}

.banner h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: #fff;
}

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

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h4 {
    font-size: 1.8rem;
    color: #2c5282;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.about-info {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.about-info div {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
}

.about-info div i {
    color: #2c5282;
    font-size: 1.2rem;
    margin-right: 10px;
}

.about-info div span {
    font-weight: 500;
    color: #333;
}

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

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

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

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h5 {
    font-size: 1.2rem;
    color: #2c5282;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 服务介绍样式 */
.services {
    padding: 100px 0;
    background-color: #fff;
}

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

.service-item {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background-color: #2c5282;
    color: #fff;
    transform: translateY(-5px);
}

.service-item i {
    font-size: 2.5rem;
    color: #2c5282;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-item:hover i {
    color: #fff;
}

.service-item h5 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    color: #666;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service-item:hover p {
    color: #f0f0f0;
}

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

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

.contact-img {
    flex: 1;
}

.contact-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.contact-info div {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info div i {
    color: #2c5282;
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.contact-info div span {
    color: #333;
    font-size: 1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5282;
}

.form-group textarea {
    resize: none;
}

.form-group input[type="text"],
.form-group input[type="email"] {
    height: 45px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.footer-logo p {
    color: #e0e0e0;
    font-size: 0.9rem;
}

.footer-links h5,
.footer-contact h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

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

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

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

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

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

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.footer-contact ul li i {
    margin-right: 15px;
    margin-top: 5px;
    color: #f6ad55;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-social a:hover {
    background-color: #f6ad55;
    color: #2c5282;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 0.85rem;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2c5282;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #f6ad55;
    color: #2c5282;
}

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

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .products-grid,
    .services-grid,
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner h2 {
        font-size: 2.5rem;
    }
}

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

    .nav-menu ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 997;
    }

    .nav-menu ul.active {
        left: 0;
    }

    .nav-menu ul li {
        margin-left: 0;
    }

    .nav-menu ul li a {
        color: #2c5282;
        font-size: 1.2rem;
    }

    .banner h2 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .products-grid,
    .services-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo img {
        height: 40px;
    }

    .banner h2 {
        font-size: 1.8rem;
    }

    .section-title h3 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 20px;
    }

    .about-info {
        flex-direction: column;
        gap: 10px;
    }
}