﻿/* ===== 重置和基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 品牌色 */
    --primary-color: #0066FF; /*蓝色*/
    --primary-hover: #0052CC; /*暗蓝*/
    /* 文字色 */
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --text-white: #FFFFFF;
    /* 背景色 */
    --bg-light: #F5F7FA;
    --bg-white: #FFFFFF;
    --bg-banner-start: #E6F3FF;
    --bg-banner-end: #FFFFFF;
    --bg-footer: #1A202C;
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    /* 字体 */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 24px;
    --font-3xl: 28px;
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 通用容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
}

    .btn-primary:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

    .btn-outline:hover {
        background: var(--primary-color);
        color: var(--text-white);
    }

.btn-arrow {
    font-size: var(--font-lg);
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== 导航栏 ===== */
.navbar {
    /*background: var(--bg-white);*/
    background: linear-gradient(90deg, #008BFF, #003EFF, #0054FF);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    /*padding: var(--spacing-md) 0;*/
    /*padding:10px 0;*/
    color: white;
}

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 1400px;
    }

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 140px;
    height: 45px;
    background: url('/images2/logo@2x(1).png') no-repeat;
    background-size: 140px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-spilt {
    background: url('/images2/split 5@2x(1).png') no-repeat;
    background-size: 1px 60px;
    width: 2px;
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-slogan {
    font-size: var(--font-lg);
    font-weight: 500;
    color: white;
}

.navbar-nav {
    display: flex;
    /*gap: var(--spacing-xl);*/
}

.nav-link {
    text-decoration: none;
    /*color: var(--text-secondary);*/
    font-size: var(--font-sm);
    transition: color 0.3s ease;
    position: relative;
    color: white;
    display: inline-block;
    padding: 40px 30px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
    /*width: 40px;*/
    /*
    height: 80px;*/
}

    .nav-dropdown:hover > .nav-link,
    .nav-link:hover,
    .nav-link.active {
        /*color: var(--primary-color);*/
        color: var(--primary-color);
        background-color: white;
        /*border: 1px solid var(--primary-color);*/
        /*box-shadow: inset 0 -2px 0 #4a6fa5;*/
        border-color: var(--primary-color);
    }

/*.nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--primary-color);
        }*/

.navbar-contact {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: white;
}

.contact-label {
    font-size: var(--font-sm);
    /*color: var(--text-muted);*/
}

.contact-phone {
    font-size: var(--font-base);
    font-weight: 600;
    /*color: var(--primary-color);*/
}

/* ===== 区块标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: var(--primary-color);
    }

.section-subtitle {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-2xl);
}

/* ===== Banner区 ===== */
/*主轮播区域 (全屏视差) */
.swiper {
    width: 100%;
    height: 80vh;
    position: relative;
    z-index: 1;
}

/* 每个slide 作为背景容器，并添加深色遮罩增强文字可读性 */
.swiper-slide {
    position: relative;
    /*background-size: cover;*/
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* 暗色渐变遮罩 (更富层次感，而非单纯黑色覆盖) */
    .swiper-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.45) 100%);*/
        z-index: 1;
        pointer-events: none;
    }

    /* 额外细腻的径向光晕，增加氛围 */
    .swiper-slide::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
        z-index: 1;
        pointer-events: none;
    }

/* 内容容器，位于遮罩之上，并使用视差效果 */
.slide-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
    color: #fff;
    transform: translateY(-2vh); /* 微调居中感 */
    width: 100%;
}

.slide-title {
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    animation: fadeUp 0.8s ease-out;
}

.slide-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.95);
}

.slide-btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.3);
}

    .slide-btn:hover {
        background: #fff;
        color: #0b0b0b;
        border-color: #fff;
        transform: scale(1.05);
        box-shadow: 0 20px 30px -8px rgba(0,0,0,0.5);
    }

/* 简单动画辅助 */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 自定义导航按钮样式 (大气、半透明、悬浮放大) */
.swiper-button-prev,
.swiper-button-next {
    color: white !important;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    width: 56px !important;
    height: 56px !important;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-top: -28px; /* 垂直居中调整 */
}

    .swiper-button-prev::after,
    .swiper-button-next::after {
        font-size: 1.5rem !important;
        font-weight: 600;
    }

    .swiper-button-prev:hover,
    .swiper-button-next:hover {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.6);
        transform: scale(1.15);
    }

/* 分页器 (圆点大气风格) */
.swiper-pagination {
    bottom: 30px !important;
    z-index: 20;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    opacity: 1;
    margin: 0 8px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.swiper-pagination-bullet-active {
    width: 32px;
    background: #ffffff;
    box-shadow: 0 0 20px #ffffffcc;
}

/* ===== 折叠容器：桌面横排，移动端作为抽屉 ===== */
.navbar-collapse {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    gap: var(--spacing-xl);
    /* 桌面端：导航组与右侧电话之间留出明显间距，避免"联系我们"紧贴电话 */
    margin-right: var(--spacing-2xl);
}

/* ===== 移动端汉堡按钮 ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

    .nav-toggle .bar {
        display: block;
        width: 24px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .navbar.nav-open .nav-toggle .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar.nav-open .nav-toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar.nav-open .nav-toggle .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ===== 移动端（<=900px）：抽屉式导航 ===== */
@media (max-width: 900px) {
    .navbar .container {
        position: relative;
        flex-wrap: nowrap;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .navbar-brand {
        flex: 1;
        min-width: 0;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.18);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .navbar.nav-open .navbar-collapse {
        max-height: 85vh;
        overflow-y: auto;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 14px 20px;
        color: var(--text-secondary);
        border: none;
        border-bottom: 1px solid #eef1f5;
        text-align: left;
    }

        .navbar-nav .nav-link.active,
        .navbar-nav .nav-link:hover {
            color: var(--primary-color);
            background: #f4f8ff;
        }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: auto;
        display: none;
        padding: 0;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 12px 36px;
        background: #fafbfc;
        color: var(--text-muted);
    }

    /* 移动端隐藏 hover 指示箭头 */
    .nav-dropdown > .nav-link::after {
        display: none;
    }

    /* 品牌区压缩，释放横向空间 */
    .logo-icon {
        width: 96px;
        height: 34px;
        background-size: 96px 42px;
    }

    .logo-spilt {
        height: 34px;
    }

    .brand-slogan {
        font-size: var(--font-xs);
        white-space: nowrap;
    }

    /* 联系栏常驻为紧凑拨打按钮 */
    .navbar-contact {
        gap: 6px;
    }

    .contact-label {
        display: none;
    }

    .contact-phone {
        font-size: var(--font-sm);
    }

    .nav-toggle {
        display: inline-flex;
    }
}

/* ===== 超窄屏（<=480px）：进一步精简 ===== */
@media (max-width: 480px) {
    .brand-slogan {
        display: none;
    }

    .navbar-contact .contact-icon {
        width: 16px;
        height: 16px;
    }
}

/* ===== 移动端 Banner 高度（仅引用 public.css 的产品页等也受益） ===== */
@media (max-width: 900px) {
    .swiper {
        height: 50vw;
        min-height: 200px;
    }

    /* 移动端 banner 较矮，吸顶导航栏会盖住垂直居中的文字：
       1) 给内容区预留导航栏高度，把文字下移到可见区域；
       2) 取消桌面端 translateY(-2vh) 的向上偏移，避免文字更靠上被遮挡。 */
    .swiper-slide {
        padding-top: 60px;
    }

    .slide-content {
        transform: translateY(0);
    }
}

