/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}


/* 可选：给body加遮罩层（避免背景图干扰文字） */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 遮罩颜色：rgba(255,255,255,0.8) 是白色80%透明，可根据背景图调整透明度 */
    background-color: rgba(255, 255, 255, 0.85); 
    z-index: -1; /* 遮罩在内容下方 */
}
/* 通用容器 */
.container, .footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 隐藏类（中英文切换用） */
.hidden {
    display: none;
}

/* -------------------------- 导航栏样式 -------------------------- */
.navbar {
    background-color: #0a244a; /* 深蓝色背景 */
    padding: 15px 0;
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    height: 40px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu .active a {
    color: #00d8ff; /* 高亮色 */
}

/* 右侧功能区 */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 5px 15px;
}

.search-box input {
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    width: 150px;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* 中英文切换 */
.lang-btn {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* -------------------------- 页脚样式 -------------------------- */
.footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 80px; /* 和内容区隔开 */
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-left {
    flex: 1;
    margin-right: 20px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-col {
    flex: 1;
    margin: 0 10px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #00d8ff; /* 高亮色统一 */
}

.footer-qr {
    text-align: center;
}

.footer-qr img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}

.footer-qr p {
    color: #ccc;
}

/* -------------------------- 页面内容区适配 -------------------------- */
/* 因为导航栏固定，内容区要留顶部空间 */
.page-content {
    padding-top: 80px; /* 对应导航栏高度+内边距 */
    min-height: calc(100vh - 300px); /* 保证页脚在底部 */
}

/* -------------------------- 手机端适配 -------------------------- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* 手机端隐藏导航菜单（可加汉堡菜单） */
    }
    .search-box input {
        width: 100px; /* 缩小搜索框 */
    }
    .footer-container {
        flex-direction: column; /* 页脚纵向排列 */
    }
    .footer-left, .footer-col, .footer-qr {
        margin: 10px 0;
        flex: none;
        width: 100%;
    }
}


/* 右侧固定悬浮图标 */
.float-icons {
    position: fixed; /* 固定位置，随滚动不动 */
    right: 30px;     /* 距离右侧30px */
    top: 50%;        /* 垂直居中 */
    transform: translateY(-50%); /* 精准居中 */
    z-index: 99;     /* 层级高于其他内容 */
    display: flex;
    flex-direction: column;
    gap: 15px;       /* 图标之间间距 */
}

/* 单个图标样式 - 白色底色+适配图片显示 */
.float-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* 圆形图标 */
    background-color: #ffffff; /* 白色底色（核心修改） */
    border: 1px solid #e5e5e5; /* 浅边框防融合 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a244a; /* 深蓝色文字/emoji（备用） */
    font-size: 20px;
    cursor: pointer;
    position: relative; /* 用于悬浮层定位 */
    transition: all 0.3s; /* 过渡效果包含所有属性 */
}

/* 统一设置悬浮图标内的图片样式 */
.float-icon img {
    width: 30px;
    height: 30px;
    /* 图片默认深蓝色（适配白色底色），悬停时变白 */
    filter: invert(12%) sepia(97%) saturate(1647%) hue-rotate(197deg) brightness(92%) contrast(93%);
    transition: filter 0.3s;
}

/* 悬浮时样式 - 浅蓝色背景+白色图片 */
.float-icon:hover {
    background-color: #00d8ff; /* 悬停浅蓝底色 */
    border-color: #00d8ff; /* 边框同步浅蓝 */
}

/* 悬停时图片变白 */
.float-icon:hover img {
    filter: invert(100%);
}

/* 电话悬浮层 */
.phone-tooltip {
    position: absolute;
    right: 60px; /* 在图标左侧显示 */
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #0a244a;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 16px;
    display: none; /* 默认隐藏 */
    white-space: nowrap; /* 不换行 */
    border: 1px solid #e5e5e5;
}

/* 微信二维码悬浮层 */
.wechat-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none; /* 默认隐藏 */
    border: 1px solid #e5e5e5;
}

.wechat-tooltip img {
    width: 150px; /* 二维码大小 */
    height: 150px;
    /* 二维码取消滤镜，避免变色 */
    filter: none !important;
}

/* 悬浮时显示提示层 */
.float-icon.phone:hover .phone-tooltip {
    display: block;
}

.float-icon.wechat:hover .wechat-tooltip {
    display: block;
}

/* 轮播图容器样式 */
.banner-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 450px; /* 可根据图片实际尺寸调整 */
}
/* 轮播图滚动容器 */
.swiper-wrapper {
    display: flex;
    width: 500%; /* 5张图占500%宽度 */
    height: 100%;
    transition: transform 0.5s ease; /* 右滑过渡动画 */
}
/* 单张轮播图样式 */
.swiper-slide {
    width: 20%; /* 5张图均分，每张20% */
    height: 100%;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，覆盖容器 */
}
/* 轮播图页码指示器（底部小图标） */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
/* 页码小圆点样式 */
.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}
/* 激活的页码小圆点 */
.pagination-dot.active {
    background-color: #00d8ff; /* 与网站高亮色统一 */
}

/* 公司简介模块样式 - 轮播下&合作伙伴上 */
.company-intro {
    padding: 60px 0; /* 上下大间距，与轮播/合作伙伴分隔开 */
    background-color: #fff; /* 白色背景，突出内容 */
}
.intro-wrap {
    display: flex;
    align-items: center;
    gap: 40px; /* 左右模块间距，核心间隔 */
    flex-wrap: wrap; /* 手机端自动换行 */
}
/* 左侧图片容器 */
.intro-img {
    flex: 0 0 400px; /* 固定宽度，不拉伸不压缩 */
    max-width: 100%; /* 适配小屏 */
}
.intro-img img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* 轻微圆角，更美观 */
    box-shadow: 0 2px 15px rgba(0,0,0,0.08); /* 浅阴影，增加层次感 */
}
/* 右侧介绍内容 */
.intro-content {
    flex: 1; /* 占满剩余宽度 */
    min-width: 300px; /* 小屏最小宽度，避免挤压 */
}
.intro-content h2 {
    font-size: 28px;
    color: #0a244a; /* 与导航栏主色统一 */
    margin-bottom: 20px; /* 标题与介绍的间距 */
    font-weight: 700;
    border-left: 4px solid #00d8ff; /* 左侧高亮色小竖线，点缀标题 */
    padding-left: 15px; /* 标题与竖线的间距 */
}
.intro-content p {
    font-size: 16px;
    color: #333;
    line-height: 1.8; /* 行高，提升阅读体验 */
    margin-bottom: 15px; /* 多段落时的间距 */
    text-indent: 2em !important; /* 新增：首行缩进2个字符（em单位适配字体大小） */
}
/* 手机端适配 */
@media (max-width: 768px) {
    .company-intro {
        padding: 40px 0; /* 手机端缩小上下间距 */
    }
    .intro-wrap {
        gap: 20px; /* 手机端缩小左右间距 */
        flex-direction: column; /* 手机端上下排列 */
        text-align: left; /* 文字居中 */
    }
    .intro-content h2 {
        border-left: none; /* 去掉竖线 */
        padding-left: 0;
        font-size: 24px;
    }
}

/* 底部备案栏样式 */
.footer-icp {
    width: 100%;
    background-color: #222222; /* 与页脚背景色一致 */
    border-top: 1px solid #444444; /* 细白线分割 */
    padding: 20px 0;
    text-align: center;
    color: #999999; /* 浅灰色文字，与页脚文字统一 */
    font-size: 14px;
}

/* 新增：备案号链接样式（核心修改） */
.footer-icp a {
    color: inherit; /* 继承父级的浅灰色 #999999，和前文颜色一致 */
    text-decoration: none; /* 彻底去掉下划线 */
    transition: color 0.3s; /* 悬停变色平滑过渡，体验更好 */
}

/* 鼠标悬停时文字变白 */
.footer-icp a:hover {
    color: #ffffff !important; /* 强制变白，优先级最高 */
    text-decoration: none !important; /* 确保悬停也无下划线 */
}