/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}
/* 导航栏 */
header {
display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 5px max(calc(50vw - 700px), 10px);
}
.logo {
    height: 55px;
}
.logo img {
    height: 100%;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
.nav-menu {
    display: flex;
    gap: 60px;
}
.nav-item {
    position: relative;
}
.nav-item > a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 800;
    transition: color 0.3s;
    display: block;
    padding: 10px 0;
}
.nav-item {
    position: relative;
}

/* 下拉菜单容器，您可以根据需要调整宽度和位置 */
.nav-item .dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: -34px;
    background: rgb(26 54 93 / 80%);
    border: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease-in-out;
    z-index: 999;
    padding: 8px 0;
    margin: 0;
    width: 138px;
}

/* 鼠标悬浮父菜单时，显示下拉菜单（带动画） */
.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉子选项基础样式 */
.nav-item .dropdown a {
    display: block;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 14px;
    text-align: left;
    border: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    background: transparent;
    text-decoration: none;
    width: auto;
    box-sizing: border-box;
    margin: 0;
}

/* 子选项hover高亮效果 */
.nav-item .dropdown a:hover {
    background: rgb(60 95 178);
    color: #ffffff;
}
.phone-box {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    color: #000000;
    white-space: nowrap;
}
/* 底部 */
footer {
    background: #063050;
    padding: 40px max(20px, calc((100% - 1200px)/2));
    color: #fff;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 200px;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: #409eff;
}
.footer-col .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ccc;
    font-size: 16px;
}
.footer-col .qrcode {
    text-align: center;
}
.footer-col .qrcode img {
    width: 180px;
    height: 180px;
    margin-bottom: 10px;
}
.footer-col .qrcode p {
    font-size: 12px;
    color: #ccc;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 12px;
}
       /* 轮播样式 */
        .slider-container {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;
            background: url('images/beijing.jpg') center/cover no-repeat;
        }
        .slider-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.3);
        }
        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            display: flex;
            align-items: center;
            padding: 0 20%;
        }
        .slide.active {
            opacity: 1;
        }
        .slide-content {
            flex: 1;
            color: #fff;
        }
        .slide-title {
            font-size: 30px;
            font-weight: bold;
            margin-bottom: 20px;
        }
        .slide-num {
        font-weight: 700; 
        color: #ff0000;
        }
        .slide-desc {
            font-size: 14px;
            line-height: 1.75;
            max-width: 500px;
        }
        .slide-image {
            flex: 1;
            text-align: right;
        }
        .slide-image img {
            height: 300px;
            width: auto;
        }
        .slider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(255,255,255,0.3);
            color: #fff;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .slider-arrow:hover {
            background: rgba(255,255,255,0.5);
        }
        .slider-arrow.left {
            left: 20px;
        }
        .slider-arrow.right {
            right: 20px;
        }
        .slider-indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }
        .indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
        }
        .indicator.active {
            background: #fff;
        }
        /* 业务导航栏 */
        .business-nav {
            width: 100%;
            height: 50px;
            background: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
        }
        .business-nav ul {
            list-style: none;
            display: flex;
            width: 1000px;
            margin: 0 auto;
            height: 100%;
        }
        .business-nav li {
            flex: 1;
            text-align: center;
            line-height: 50px;
        }
        .business-nav a {
            display: block;
            text-decoration: none;
            color: #333;
            font-size: 16px;
            transition: all 0.3s;
        }
        .business-nav li.active a {
            color: #0090fd;
            border-bottom: 2px solid #0090fd;
            background: #fff;
        }
        .business-nav a:hover {
            color: #0090fd;
        }
.nav-item {
    position: relative;
}
.nav-item.active::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3px;
background-color: #165DFF;
transition: all 0.3s ease;
}
/* 头部搜索框样式 */
.header-search-form {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    vertical-align: middle;
}
.header-search-form .search-input {
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e5e7eb;
    border-right: none;
    border-radius: 16px 0 0 16px;
    font-size: 12px;
    outline: none;
    width: 120px;
    transition: all 0.3s;
    background: #fff;
}
.header-search-form .search-input:focus {
    border-color: #0066cc;
}
.header-search-form .search-btn {
    height: 40px;
    width: 45px;
    border: 2px solid #e5e7eb;
    border-radius: 0 16px 16px 0;
    background: #fff;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.header-search-form .search-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}
.com-right-slide {
  position: fixed;
  right: 10px;
  z-index: 999;
  background: transparent;
  width: 60px;
  top: 50% !important;
}
.com-right-slide .right-item {
  width: 100%;
  cursor: pointer;
  position: relative;
  color: #222338;
}
.com-right-slide .right-item .hover {
  display: none;
}
.com-right-slide .right-item .n-hover {
  display: block;
}
.com-right-slide .right-item-2 {
  width: 100%;
  background: #ffffff;
box-shadow: 0 0 0px 2px rgb(126 126 126 / 49%);
  border-radius: 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 20;
}
.com-right-slide .right-item-2:hover {
  box-shadow: 0 0 0px 2px rgb(0 91 255 / 71%);
}
.com-right-slide .right-item-2 .item-2 {
  align-items: center;
  width: 100%;
  font-size: 14px;
  padding-top: 15px;
  position: relative;
  z-index: 88;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.com-right-slide .right-item-2 .item-2.item-grh {
  border-bottom-color: transparent;
  border-top: 1px solid #eee;
  padding-bottom: 10px;
}
.com-right-slide .right-item-2 .item-2.item-grh .txt {
  width: 90%;
  margin: 8px auto;
  text-align: center;
}
.com-right-slide .right-item-2 .item-2:hover .txt {
  color: #2f76f6;
}
.com-right-slide .right-item-2 .item-2:hover .hover {
  display: block;
}
.com-right-slide .right-item-2 .item-2:hover .n-hover {
  display: none;
}
.com-right-slide .right-item-2 .item-2 > img {
  width: 28px;
}
.com-right-slide .right-item-2 .item-2 .txt {
  width: 60%;
  margin: 8px auto;
  text-align: center;
  line-height: 1.2;
}
.com-right-slide .slide-box {
  width: 210px;
  padding: 22px 16px;
  position: absolute;
  box-sizing: border-box;
  background: #ffffff;
  box-shadow: 2px 0px 33px 0px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  top: 0;
  left: 0;
  display: none;
  transform: translateX(calc(-100% - 7px));
  transition: transform 0.5s ease;
  z-index: 2;
  cursor: initial;
}
.com-right-slide .slide-box.active {
  display: flex;
}
.com-right-slide .sqzx-box {
  align-items: center;
  flex-direction: column;
}
.com-right-slide .sqzx-box .qr-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
}
.com-right-slide .sqzx-box .dis {
  margin: 12px auto;
  font-weight: 400;
  font-size: 14px;
  color: #575d6c;
  text-align: center;
  line-height: 1.5;
  width: 90%;
}
.com-right-slide .shfw-box {
transform: translate(-105%, -100%);
    top: initial;
    bottom: 0;
    font-weight: 500;
    font-size: 14px;
    color: #222338;
    text-align: center;
}
.com-right-slide .shfw-box > div {
  align-items: flex-start;
}
.com-right-slide .shfw-box > div:first-child .content {
  cursor: initial;
}
.com-right-slide .shfw-box > div .content {
  font-size: 14px;
  color: #575d6c;
  cursor: pointer;
}
.com-right-slide .shfw-box > div .content > span:first-child {
  font-weight: 500;
  color: #222338;
  line-height: calc(16 / 14);
  margin-bottom: 5px;
}
.com-right-slide .shfw-box.active {
  display: block;
  transform: translate(-105%, 50%)!important;
}
.com-right-slide .shfw-box > div:first-child:hover .content > span:first-child {
  color: #222338;
}
.com-right-slide .grh-box {
  top: initial;
  bottom: 0;
  font-weight: 500;
  font-size: 14px;
  color: #222338;
  text-align: center;
}
.ico {
  width: 28px;
}
.dbico1 {
  width: 28px;
}
.dbico2 {
  width: 28px;
}
.dbico3 {
  width: 28px;
}
.dbico4 {
  width: 28px;
}
/* 移动端全局适配 */
@media (max-width: 768px) {
    /* Logo与汉堡按钮的布局：左Logo，右汉堡，整齐对齐 */
    .logo {
        height: 50px !important;
        order: 1 !important;
    }
    .hamburger {
        display: block !important;
        order: 2 !important;
    }
    /* 2. 弹出导航菜单：绝对定位，脱离文档流，不挤压Banner */
    .nav-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: none !important;
        flex-direction: column !important;
        gap: 0 !important;
        background: #ffffff !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
        /* 3. 菜单滚动支持：超出屏幕时可滚动，兼容iOS流畅滚动 */
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    /* 菜单显示状态 */
    .nav-menu.active {
        display: flex !important;
    }
    /* 菜单项样式，与原有风格保持一致 */
    .nav-item {
        width: 100% !important;
    }
    .nav-item > a {
        font-size: 16px !important;
        padding: 12px 15px !important;
        border-bottom: 1px solid #eee !important;
        display: block !important;
    }
    /* 子菜单样式，保留原有交互，修复透明问题 */
    .dropdown {
        position: static !important;
        box-shadow: none !important;
        background: #00000080 !important;
        padding-left: 20px !important;
        min-width: auto !important;
        flex-direction: column !important;
        /* 核心修复：重置全局的透明和位移属性，让子菜单内容可见 */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    .nav-item:hover .dropdown {
        display: none !important;
    }
    .nav-item.active .dropdown {
        display: flex!important;
        width: 100%;
    }
    /* 修复移动端footer异常：将footer列改为双列布局 */
    footer {
        padding: 30px 15px !important;
    }
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px !important;
    }
    .footer-col .qrcode img {
        width: 160px !important;
        height: 160px !important;
    }
    .footer-col h4 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    .footer-col ul li a,
    .footer-col .contact-item {
        font-size: 14px !important;
    }
    /* 轮播图移动端适配 */
    .slider-container {
        height: 250px;
    }
    .slide {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .slide-title {
        font-size: 22px;
        margin-top: 40px;
    }
    .slide-image {
        display: none;
    }
    .business-nav a {
        font-size: 12px;
    }
        .nav-menu .header-search-form {
        width: 100%;
        margin: 12px 0 8px 0;
        padding: 0 15px;
        box-sizing: border-box;
        display: inline-flex;
        justify-content: center;
    }
    .nav-menu .header-search-form .search-input {
        width: 45%;
        box-sizing: border-box;
    }
    .nav-menu .phone-box {
        font-size: 20px;
        padding: 8px 15px;
        margin: 0;
        text-align: left;
        display: flex;
        justify-content: center;
    }
    .business-nav {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.business-nav::-webkit-scrollbar {
  display: none;
}

.business-nav ul {
  display: flex;
  white-space: nowrap;
}

.business-nav ul li {
  flex-shrink: 0;
}
}
