/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "PingFang SC", sans-serif;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
}

/* -------------------------- 1. 顶部导航栏样式（背景变+高度不变） -------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent; /* 初始透明背景 */
    padding: 20px 0; /* 固定高度，永不变化 */
    /* 仅过渡背景色和阴影，无padding动画（高度不变） */
    transition: background-color 0.3s, box-shadow 0.3s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}
.nav-item {
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
/* 悬浮导航项加粗（透明背景状态） */
.nav-item:hover ，.nav-item.active{
    font-weight: bold;
    color: #fff !important;
}
.nav-menu li {
    margin: 0 28px;
}
.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}
.nav-menu a:hover {
    color: #702963;
    font-weight: bold;
}

/* 导航栏触发后样式（仅改背景/阴影，padding不变→高度不变） */
.navbar.nav-scrolled {
    background-color: #ffffff; /* 变白底 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 加阴影 */
    /* 删掉padding修改，高度和初始一致 */
}
.navbar.nav-scrolled .nav-menu a {
    color: #333333; /* 白底时文字变黑 */
}
.navbar.nav-scrolled .nav-menu a:hover {
    color: #702963;
    font-weight: bold;
}
.navbar.nav-scrolled .nav-item {
    color: #333; /* 白底时导航项文字变黑 */
}
.navbar.nav-scrolled .nav-item:hover, .navbar.nav-scrolled .nav-item.active {
    font-weight: bold;
    color: #000000 !important;/* 白底时悬浮变品牌紫 */
}

/* -------------------------- 2. 全屏Banner样式 -------------------------- */
.banner {
    height: 100vh;
    background: url("banner.jpg") no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0;
    padding-left: 160px;
}
.banner-content {
    text-align: left;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: translateY(-90px);
}
.banner-content h1 {
    font-size: 48px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}
.banner-content p {
    font-size: 22px;
    margin-top: 18px;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-align: left;
}
.banner-btn {
    padding: 15px 40px;
    background-color: #0088ff00;
    color: white;
    border: 1.2px solid white;
    border-radius: 0px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 0;
    display: block;
    transform: translateY(-20px);
}
.banner-btn:hover {
    background-color: #702963bf;
}

/* -------------------------- 3. 核心服务板块样式 -------------------------- */
.services {
    padding: 0;
    background-color: #222222;
    margin: 0;
}
.services-cards {
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}
.service-card {
    width: 25vw;
    background-color: white;
    border-radius: 0;
    box-shadow: none;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
.service-card img {
    width: 100%;
    height: 80%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background-color: transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    transition: transform 0.3s;
}
.service-card h3 {
    padding: 20px 20px 10px;
    color: #333;
    font-size: 20px;
}
.service-card p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* -------------------------- 4. 底部样式 -------------------------- */
.footer {
    background-color: #111111;
    color: #ffffff;
    padding: 50px 20px 20px;
    font-size: 14px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo {
    margin-right: 50px;
}
.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 10px;
}
.footer-logo .logo-text {
    color: #999999;
    margin: 0;
}
.footer-menu {
    display: flex;
    gap: 80px;
}
.menu-column h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: bold;
}
.menu-column li {
    margin-bottom: 12px;
}
.menu-column a {
    color: #999999;
    transition: color 0.3s ease;
}
.menu-column a:hover {
    color: #702963;
}
.footer-right {
    text-align: right;
}
.hotline p {
    margin: 0 0 5px;
    color: #999999;
}
.hotline .hotline-number {
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
}
.social-icons {
    margin-top: 20px;
}
.social-icons a {
    margin-left: 15px;
}
.social-icons img {
    height: 25px;
    width: auto;
}
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    color: #999999;
}
.footer-bottom a {
    color: #999999;
}
.footer-bottom a:hover {
    color: #702963;
}

/* -------------------------- 通栏下拉菜单样式 -------------------------- */
.dropdown-full {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff !important;
    padding: 18px 0 !important;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 99999 !important;
    border-top: 1px solid #e5e5e5; /* 导航栏与通栏分隔线 */
}

.content-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.dropdown-col {
    display: none;
    flex-direction: row !important;
    gap: 30px !important;
    text-align: center;
    color: #000 !important;
    font-size: 16px;
}
.dropdown-col a {
    color: #666;
    border: none !important;
    padding: 0 10px;
}
.dropdown-col a:hover {
    color: #702963;
}
/* ========== 手机端适配（768px以下屏幕） ========== */
@media (max-width: 768px) {
    /* 1. 导航栏适配：间距变小、字体变小 */
    .navbar {
        padding: 15px 0 !important; /* 导航栏高度稍小，适配手机 */
    }
    .nav-container {
        padding: 0 10px !important; /* 左右留白变小 */
    }
    .nav-menu {
        gap: 10px !important; /* 导航项间距变小 */
    }
    .nav-menu li {
        margin: 0 8px !important; /* 导航项外边距变小 */
    }
    .nav-item {
        font-size: 14px !important; /* 字体变小 */
    }
    .logo img {
        height: 40px !important; /* Logo变小 */
    }

    /* 2. 通栏适配：宽度90%、内容换行 */
    .dropdown-full {
        width: 90vw !important; /* 通栏宽度适配手机屏幕 */
        padding: 10px 0 !important; /* 通栏高度更紧凑 */
    }
    .dropdown-col {
        flex-wrap: wrap !important; /* 横排内容放不下自动换行 */
        gap: 15px 10px !important; /* 换行后间距更合理 */
        justify-content: center !important;
    }
    .dropdown-col a {
        font-size: 14px !important; /* 通栏文字变小 */
        padding: 5px 8px !important;
    }

    /* 3. Banner适配：高度自适应、文字排版调整 */
    .banner {
        height: auto !important; /* 取消固定100vh，适配手机 */
        min-height: 60vh !important; /* 最小高度保证显示 */
        padding: 80px 10px 40px !important; /* 左右留白变小 */
        justify-content: center !important; /* 文字居中 */
    }
    .banner-content {
        transform: none !important; /* 取消向上偏移 */
        text-align: center !important; /* 文字居中 */
        padding: 0 10px !important;
    }
    .banner-content h1 {
        font-size: 28px !important; /* 标题变小 */
        letter-spacing: 1px !important;
    }
    .banner-content p {
        font-size: 16px !important; /* 副标题变小 */
    }
    .banner-btn {
        margin: 0 auto !important; /* 按钮居中 */
    }

    /* 4. 服务板块适配：从4列变1列 */
    .services-cards {
        flex-direction: column !important; /* 竖排显示 */
    }
    .service-card {
        width: 100vw !important; /* 占满屏幕宽度 */
        padding: 10px 0 !important;
    }
    .service-card img {
        height: auto !important; /* 图片自适应 */
        max-height: 200px !important; /* 限制图片高度 */
    }
    .service-card h3 {
        font-size: 18px !important;
    }
    .service-card p {
        font-size: 14px !important;
        padding: 0 15px 20px !important;
    }

    /* 5. 底部适配：菜单竖排、排版紧凑 */
    .footer-top {
        flex-direction: column !important; /* 竖排显示 */
        padding: 0 10px !important;
        gap: 30px !important;
    }
    .footer-menu {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .footer-right {
        text-align: center !important; /* 联系方式居中 */
    }
    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
        font-size: 12px !important;
    }
}

/* 小屏手机（480px以下）额外优化 */
@media (max-width: 480px) {
    .nav-item {
        font-size: 12px !important;
    }
    .banner-content h1 {
        font-size: 24px !important;
    }
    .dropdown-col a {
        font-size: 12px !important;
    }
}