/* 工业风核心变量 */
:root {
    --industrial-blue: #1E88E5;
    --dark-gray: #2C3E50;
    --light-gray: #F5F5F5;
    --metal-silver: #E0E0E0;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

/* 1. 导航栏优化 */
.navbar {
    background-color: var(--dark-gray);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(44, 62, 80, 0.95); /* 滚动时半透明 */
    padding: 10px 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    height: 45px;
    width: auto;
    filter: brightness(1.2); /* 增强logo对比度 */
}

.navbar-logo span {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar-nav a {
    color: var(--metal-silver);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--industrial-blue);
    transition: width 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--text-light);
}

.navbar-nav a:hover::after {
    width: 100%;
}

.navbar-nav a.active {
    color: var(--text-light);
}

.navbar-nav a.active::after {
    width: 100%;
}

/* 移动端导航按钮 */
.mobile-nav-btn {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}


/* 2. 英雄区域优化 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)),
                url("../images/hero-bg.jpg") center/cover no-repeat; /* 工业风背景图 */
    background-attachment: fixed;
    color: var(--text-light);
    padding-top: 80px; /* 避开导航栏 */
    position: relative;
    overflow: hidden;
}

/* 工业纹理叠加 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.3s;
}

.hero-section .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.6s;
}

.btn {
    display: inline-block;
    background-color: var(--industrial-blue);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.9s;
}

.btn:hover {
    background-color: #1565C0;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(30, 136, 229, 0.4);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* 淡入上移动画 */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 3. 服务特色区域优化 */
.services-section {
    padding: 100px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.services-section h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.services-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--industrial-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background-color: #fff;
    border-radius: 6px;
    padding: 35px 25px;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--industrial-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(30, 136, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--industrial-blue);
    transform: rotate(5deg) scale(1.1);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--industrial-blue);
    transition: fill 0.3s ease;
}

.service-card:hover .service-icon svg {
    fill: white;
}

.service-card h4 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}


/* 4. 公司优势区域优化 */
.advantages-section {
    padding: 100px 0;
    background-color: #fff;
}

.advantages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantages-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.advantages-image::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--industrial-blue);
    border-radius: 8px;
    z-index: -1;
}

.advantages-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advantages-image:hover img {
    transform: scale(1.03);
}

.advantages-content h2 {
    font-size: 2.2rem;
    color: var(--dark-gray);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.advantages-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--industrial-blue);
}

.advantages-list {
    list-style: none;
}

.advantages-list li {
    position: relative;
    padding: 15px 0 15px 50px;
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease;
}

.advantages-list li:last-child {
    border-bottom: none;
}

.advantages-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--industrial-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantages-list li:hover {
    transform: translateX(5px);
}


/* 响应式适配 */
@media (max-width: 992px) {
    .advantages-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .advantages-image img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none; /* 隐藏桌面导航 */
    }

    .mobile-nav-btn {
        display: block; /* 显示移动端按钮 */
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

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

    .advantages-content h2,
    .services-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .advantages-image img {
        height: 300px;
    }
}