/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* 核心变量（深蓝色系 - 加深背景色） */
:root {
    --primary-color: #082C48;    /* 深海蓝主色（加深） */
    --secondary-color: #3B7EA1;  /* 浅蓝次色 */
    --gold-color: #FFD700;       /* 金黄色 */
    --gold-dark: #E6C200;        /* 深金黄（hover） */
    --text-light: #F8F9FA;       /* 浅色文字 */
    --bg-dark: #051E32;          /* 更深的背景色（加深） */
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2); /* 炫酷阴影 */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* 渐变 */
}

/* 通用样式 */
body {
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    color: var(--gold-color);
    text-align: center;
    margin: 3rem 0;
    position: relative;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(59, 126, 161, 0.5);
}

/* 导航栏样式（高度改为80px） */
.navbar {
    background-color: var(--primary-color);
    padding: 0; /* 取消内边距，通过高度控制 */
    height: 80px; /* 导航栏高度80px */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* 继承导航栏高度 */
}

.logo-box {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.logo-text {
    font-size: 1.5rem;
    color: var(--gold-color);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* 桌面端导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-color);
    background-color: rgba(255, 215, 0, 0.1);
}

.nav-link:hover::after {
    width: 100%;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--gold-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Banner样式（修复背景图片被覆盖问题） */
.banner {
    position: relative;
    height: calc(100vh - 80px); /* 视口高度减去导航栏高度 */
    min-height: 600px; /* 最小高度600px */
    overflow: hidden;
    margin-top: 80px; /* 适配导航栏新高度80px */
    background: var(--gradient);
}

/* 背景层（优先显示） */
.banner-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/backpic.jpg") no-repeat center center;
    background-size: cover; /* 保持比例覆盖，不拉伸变形 */
    background-color: rgba(10, 61, 98, 0.5); /* 降低蒙版透明度，让图片更清晰 */
    background-blend-mode: overlay;
    z-index: 1;
}

/* Canvas动画层（透明叠加，不遮挡背景） */
#bannerCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* 动画层在背景层上方 */
    pointer-events: none; /* 不影响鼠标交互 */
    opacity: 0.7; /* 降低动画层透明度，让背景图显示 */
    mix-blend-mode: soft-light; /* 叠加模式，不覆盖背景 */
}

/* 内容层（最上方） */
.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3; /* 内容层在最上方 */
    text-align: center;
    width: 100%;
    padding: 0 1rem;
}

.banner-title {
    font-size: 3rem;
    color: var(--gold-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease;
}

.business-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1.5s ease;
}

.business-img {
    width: 220px;
    height: 110px; /* 2:1比例 */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 2px solid var(--gold-color);
    transition: all 0.5s ease;
    transform: translateY(0);
}

.business-img:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* 公司介绍样式（深蓝色背景适配） */
.about {
    padding: 5rem 0;
    background-color: var(--primary-color);
    position: relative;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 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='%233b7ea1' fill-opacity='0.1'%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");
    opacity: 0.3;
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
    background-color: rgba(7, 44, 72, 0.8);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.about-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-shadow: 0 0 5px rgba(59, 126, 161, 0.4);
}

.about-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    text-align: justify;
}

/* 产品与服务样式 */
.products {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

.product-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--gold-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--gradient);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: calc(50% - 1rem);
    min-width: 320px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.product-logo {
    width: 120px;
    height: 60px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.product-desc {
    color: var(--text-light);
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* 技术优势样式 */
.advantage {
    padding: 5rem 0;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.advantage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 21.184c8.284 8.284 8.284 21.716 0 30s-21.716 8.284-30 0-8.284-21.716 0-30 21.716-8.284 30 0zM81.184 21.184c8.284 8.284 8.284 21.716 0 30s-21.716 8.284-30 0-8.284-21.716 0-30 21.716-8.284 30 0zm0 60c8.284 8.284 8.284 21.716 0 30s-21.716 8.284-30 0-8.284-21.716 0-30 21.716-8.284 30 0zM21.184 81.184c8.284 8.284 8.284 21.716 0 30s-21.716 8.284-30 0-8.284-21.716 0-30 21.716-8.284 30 0z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.advantage-list {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.advantage-item {
    width: calc(33.33% - 1.7rem);
    min-width: 300px;
    background-color: rgba(7, 44, 72, 0.9);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.advantage-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--gold-color);
}

.advantage-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.advantage-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* 主要客户样式 */
.clients {
    padding: 5rem 0;
    background-color: var(--primary-color);
}

.client-img-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

.client-img-item {
    width: 140px;
    height: 90px;
    transition: all 0.4s ease;
}

.client-img-item:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.client-img-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.client-text-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.client-text-item {
    color: var(--gold-color);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--gold-color);
    border-radius: 30px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

.client-text-item:hover {
    background-color: var(--gold-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
}

/* 联系方式样式（添加微信二维码） */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-dark);
}

.contact-info {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2.2;
    background-color: rgba(10, 61, 98, 0.8);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(59, 126, 161, 0.3);
}

.contact-item {
    margin-bottom: 1rem;
    color: var(--text-light);
    position: relative;
    padding-left: 2rem;
    display: inline-block;
}

.contact-item::before {
    content: "✦";
    color: var(--gold-color);
    position: absolute;
    left: 0;
    top: 0;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* 微信二维码样式 */
.wechat-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.wechat-qrcode {
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold-color);
    border-radius: 8px;
    padding: 5px;
    background-color: white;
}

/* 底部样式 */
.footer {
    background-color: var(--primary-color);
    color: var(--gold-color);
    text-align: center;
    padding: 2rem 0;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

/* 响应式适配 */
@media (max-width: 992px) {
    .nav-menu {
        gap: 1.5rem;
    }
    .product-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* 移动端导航折叠 */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 80px; /* 适配导航栏新高度 */
        right: -100%;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: calc(100vh - 80px); /* 适配导航栏新高度 */
        gap: 3rem;
        padding: 3rem 0;
        text-align: center;
        transition: 0.4s;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    /* 移动端Banner适配 - 自适应内容高度 */
    .banner {
        height: auto;
        min-height: 600px;
        padding: 3rem 0;
    }
    
    .banner-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        padding: 2rem 1rem;
    }

    /* 移动端模块适配 */
    .banner-title {
        font-size: 2.2rem;
    }
    .business-img {
        width: 180px;
        height: 90px;
    }
    .advantage-item {
        width: 100%;
    }
    .contact-info {
        padding: 2rem 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 50px;
        height: 50px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
    .banner-title {
        font-size: 1.8rem;
    }
    .business-img {
        width: 150px;
        height: 75px;
    }
    .product-item {
        flex-direction: column;
        text-align: center;
        min-width: unset;
    }
    .wechat-container {
        flex-direction: column;
    }
}

/* 全局动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}