/* --- 基础重置与变量 --- */
:root {
    --primary-blue: #2B6AFF;
    --light-blue: #E9F0FF;
    --text-main: #333333;
    --text-gray: #666666;
    --bg-gray: #F5F7FA;
    --white: #FFFFFF;
    --border-color: #EEEEEE;
    --gradient-hero: linear-gradient(135deg, #E3EFFF 0%, #F8FAFF 100%);
    --gradient-blue: linear-gradient(135deg, #4A85FF 0%, #2B6AFF 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: "PingFang SC", "Microsoft YaHei", sans-serif; */
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}



.text-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 28px;
    color: var(--text-main);
    margin-top: 60px;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 14px;
    color: var(--text-gray);
}

.banner img {}

.bannerimg {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.wapbanner {
    display: none;
}

.button {

    border: none;
    color: #ffffff;
    width: 86px;
    height: 30px;
    opacity: 1;
    border-radius: 352px;
    background: linear-gradient(90deg, #0F8FFF 0%, #52AEEB 100%);
}

/* --- 按钮样式 --- */
.btn-primary {
    width: 128px;
    height: 46px;
    background: linear-gradient(90deg, #0A82F2 0%, #70B9FE 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    border: none;
    padding: 6px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    width: 128px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(90deg, #0A82F2 0%, #70B9FE 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    border: none;
    padding: 6px 16px;
    border-radius: 10px;
    cursor: pointer;
}

/* 限制内容最大宽度并居中 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= 1. 顶部导航外层 ================= */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* ================= 2. Logo 区域 ================= */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo-icon img {
    width: 150px;
    height: auto;
    display: block;
}

/* ================= 3. PC端 导航菜单 ================= */
.navbar {
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    margin-left: 60px;
    /* 为下划线提供定位 */
}

.nav-item {
    font-size: 16px;
    color: var(--text-main);
    padding: 28px 0;
    transition: color 0.3s;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary-blue);
    font-weight: bold;
}

/* PC端：丝滑下划线 */
.nav-underline {
    position: absolute;
    bottom: 5px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* ================= 4. 右侧操作区 ================= */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tel-img {
    height: 30px;
    /* 控制电话图标大小 */
    width: auto;
    display: block;
}

/* 汉堡按钮 (PC端默认隐藏) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    /* 确保在菜单展开时依然可见 */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ================= 5. 移动端适配 (< 768px) ================= */
@media (max-width: 768px) {
    .bannerimg {
        display: none;
    }

    .wapbanner {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .navbar {
        margin: 0;
    }

    /* 显示汉堡按钮 */
    .hamburger {
        display: flex;
    }

    /* 改造导航菜单为垂直下拉框 */
    .navbar {
        position: absolute;
        top: 70px;
        /* 紧贴在 70px 高的 header 下方 */
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

        /* 隐藏状态：高度为0，超出部分隐藏 */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    /* 展开状态 (由 JS 切换 .show 类名) */
    .navbar.show {
        max-height: 400px;
        /* 足够容纳所有菜单项的高度 */
    }

    /* 移动端菜单项样式 */
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:hover,
    .nav-item.active {
        background-color: var(--bg-hover);
    }

    /* 移动端隐藏横向下划线 */
    .nav-underline {
        display: none;
    }

    /* 汉堡按钮变成 "X" 的动画 */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* --- 顶部导航 --- */
/* .header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

.logo-icon.white {
    background: var(--white);
} */

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 16px;
    color: var(--text-main);
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-blue);
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-weight: bold;
    color: var(--primary-blue);
}

.btn-login {
    border: 1px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 15px;
    cursor: pointer;
}

.horn {
    width: 30px;
    height: 30px;
}

/* --- 首屏 Hero --- */
.hero {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    min-height: 400px;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-text h1 strong {
    color: var(--primary-blue);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-image-placeholder {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.mock-illustration {
    width: 400px;
    height: 300px;
    background: rgba(43, 106, 255, 0.1);
    border-radius: 20px;
    border: 2px dashed rgba(43, 106, 255, 0.3);
}

.notice-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: var(--light-blue);
    padding: 10px 0;
}

.notice-bar .container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.notice-tag {
    /* background: var(--primary-blue); */
    color: #808080;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.notice-content {
    background: linear-gradient(90deg, rgba(15, 143, 255, 1) 0%, rgba(82, 174, 235, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.notices {
    margin: 0 auto;
    width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- 服务导航 --- */
.services {
    /* background: var(--bg-gray); */
}

.title-main {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.title-main h2:nth-child(1) {
    color: #0F8FFF;

}

.recommend {
    max-width: 1920px;
    /* width: 1200px; */
    display: flex;
    flex-flow: column;
    margin: 0 auto;
    background: linear-gradient(180deg, #EBF7FF 0.17%, #EBF0FC 99.94%);
    margin-top: 60px;
}

.service-cards {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.service-card {
    flex: 1;
    padding: 30px 20px;
    border-radius: 12px;
    transition: transform 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card.light-card {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card.light-card h3 {
    color: var(--text-main);
}

.service-card.light-card p {
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 10px;
}

.service-card.blue-card {
    background: var(--gradient-blue);
    color: var(--white);
}

.service-card.blue-card h3 {
    color: var(--white);
}

.service-card.blue-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-top: 10px;
}

/* --- 课程推荐 --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    /* margin-bottom: 40px; */
    width: 1200px;
    place-content: center;
    margin: 0 auto;
}

.course-card {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.course-left {
    background: url(./img-1.png) no-repeat, linear-gradient(90deg, #0F8FFF 0%, #52AEEB 100%);
    background-size: 100% 100%;
    color: var(--white);
    padding: 20px;
    height: 212px;
    width: 212px;
    display: flex;
    flex-flow: column;
    align-items: start;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    border-radius: 20px;
}

.course-left p:nth-child(1) {
    border: solid 0.5px;
    padding: 6px;
    font-size: 12px;
    font-weight: 300;
}

.course-left p:nth-child(2) {
    margin-top: 19px;
    margin-bottom: 30px;
}

.course-left p:nth-child(3) {
    font-size: 10px;
    font-weight: 300;
}

.course-right {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-right h4 {
    font-size: 20px;
    margin-bottom: -5vh;
}

.course-right p {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 14.06px;
    color: #A6A6A6;
    margin-bottom: 15px;
}

.course-right .btn-outline {
    align-self: flex-end;
}

.btn-more {
    /* padding: 10px 40px; */
    margin-top: 84px;
}

/* --- 核心优势 --- */
.cert-tip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-card {
    width: 399px;
    height: 46px;
    opacity: 1;
    border-radius: 10px;
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cert-card img {
    width: 24px;
    height: 24px;
}

.advantages {
    /* background: var(--bg-gray); */
}

.advantage-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.adv-card {
    border-radius: 20px;
    background: #EBF2FF;

    border: 0.5px solid #52aeeb3b;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.adv-left {
    width: 793px;
}

.adv-card h3 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 42.19px;
    margin-bottom: 10px;
}

.adv-p {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 18.75px;
    color: #808080;
    margin-bottom: 35px;
}

.cert-card p {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 18.75px;
    color: #000000;

    /* margin-bottom: 20px; */
}

.adv-left p {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 18.75px;
    color: #808080;
}

.adv-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.adv-top ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-gray);
}

.adv-img-placeholder {
    /* width: 300px;
    height: 150px;
    background: var(--light-blue);
    border-radius: 8px; */
}

.adv-img-placeholder img {
    width: 456px;
    height: 456px;
    object-fit: contain;
    margin-left: -84px;
    margin-top: -13.6vh;
}

.adv-bottom-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.adv-gallery {
    display: flex;
    margin-top: 27px;
    /* display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; */
}

.gallery-item {
    height: 224px;
    background: #F4F9FF;
    border-radius: 4px;
}

.gallery-item p {
    height: 112px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 18.75px;
    color: #2A82E4;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 15px;
}

.gallery-item img {
    width: 232.67px;
    height: 112px;
}

.adv-right {
    width: 386px;
    background: #3982FF;
    color: var(--white);
}



/* --- 常见问题 --- */
.faq-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.faq-list {
    flex: 1;
}

.faq-item {
    background: #EBF2FF;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: var(--text-main);
    cursor: pointer;
    font-size: 15px;
}

.faq-q {
    display: flex;
}

.faq-q p {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 21.1px;
    color: #000000;
}

.faq-q img {
    width: 26px;
    height: 26px;
    margin-right: 10px;

}

.faq-a {
    font-size: 14px;
    font-weight: 400;
    margin-left: 18px;
    margin-bottom: 23px;
    margin-top: 23px;
}

.faq-qr-card {
    width: 386px;
    background: url(./code.png) no-repeat;
    background-size: cover;
    /* 等比缩放直到铺满容器 */
    background-position: center;
    /* 让图片居中显示，裁切四周 */
    background-repeat: no-repeat;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--white);
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: var(--white);
    margin: 15px 0;
    border-radius: 8px;
    background: url(./code-2.png) no-repeat;
    background-size: cover;
}

/* --- 底部 CTA --- */
.bottom-cta {
    width: 100%;
    height: 300px;
    background-image: url(./bannerfoot.png);
    background-size: cover;
    /* 等比缩放直到铺满容器 */
    background-position: center;
    /* 让图片居中显示，裁切四周 */
    background-repeat: no-repeat;
    padding: 40px 0;
}

.cta-inner {}

.cta-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.cta-img-placeholder {
    width: 200px;
    height: 150px;
    background: rgba(43, 106, 255, 0.1);
    border-radius: 8px;
}

/* --- Footer --- */
.footer {
    background: #E6F1FF;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.qr-codes {
    display: flex;
    gap: 40px;
}

.qr {
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
}

.qr-img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    width: 87px;
    height: 87px;
    background: #ffffff;
    margin-bottom: 5px;
}

.qr-img img {
    width: 80px;
    height: 80px;
}

.foot-tel {
    display: flex;
    flex-flow: row;
    /* align-items: center; */
}

.foot-tel img {
    width: 24px;
    height: 24px;
    margin-top: 10px;
    margin-left: 10px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex: 2;
    min-width: 300px;
}

.footer-links dt {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links dd {
    margin-bottom: 10px;
}

.footer-links dd a {
    color: var(--text-gray);
    font-size: 14px;
}

.footer-links dd a:hover {
    color: var(--primary-blue);
}

.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-contact p {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 18.75px;
    color: #000000;
    margin-bottom: 5px;
}

.footer-contact h3 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 12px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 10px;
}

.icps {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icps img {
    width: 24px;
    height: 24px;
}

.links {
    width: 1200px;
    margin: 0 auto;
}

.links h3 {
    margin-left: 10px;
}


.links-section {
    background-color: #eef5ff;
    padding: 30px 5%;
    /* 确保容器本身不会撑破页面 */
    overflow: hidden;
}

.links-grid {
    margin-top: 20px;
    display: flex;
    /* 改用 Flex 布局 */
    flex-wrap: nowrap;
    /* 强制不换行 */
    gap: 15px;
    padding-bottom: 15px;
    /* 为滚动条预留空间 */

    /* 允许横向滚动 */
    overflow-x: auto;
    /* 隐藏滚动条（可选，适合移动端美化） */
    -webkit-overflow-scrolling: touch;
}

/* 隐藏滚动条样式（根据需求决定是否保留） */
.links-grid::-webkit-scrollbar {
    height: 6px;
}

.links-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.link-card {
    flex: 0 0 auto;
    /* 核心：禁止缩放，保持内容宽度 */
    background: #fff;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* 强制文字在一行显示 */
    border-radius: 2px;
}

.arrow {
    border: solid #1a73e8;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
    margin-left: 10px;
    flex-shrink: 0;
}

.links-title {
    width: 289px;
    height: 45px;
    opacity: 1;
    border-radius: 2px;
    background: #FFFFFF;
    box-shadow: inset 0px 1px 1px #FFFFFF;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14px 32px 14px 19px
}

.links-title p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 16.41px;
}

/* 1. 针对 Chrome, Safari 和新版 Edge */
.links-grid::-webkit-scrollbar {
    display: none;
    /* 隐藏滚动条物理外壳 */
}

/* 2. 针对 Firefox 和 IE/老版 Edge */
.links-grid {
    scrollbar-width: none;
    /* Firefox: 隐藏滚动条 */
    -ms-overflow-style: none;
    /* IE/Edge: 隐藏滚动条 */

    /* 确保依然可以滑动 */
    overflow-x: auto;
    white-space: nowrap;
    /* 强制内容不换行 */
    -webkit-overflow-scrolling: touch;
    /* 让 iOS 上的滑动更丝滑 */
}

.line {
    width: 1200px;
    margin: 0 auto;
    height: 1px;
    opacity: 1;
    background: linear-gradient(90deg, #3CA4F2 0%, #D6EDFF 52.44%, #3CA4F2 100%);
}

/* --- 悬浮菜单 --- */
.floating-menu {
    width: 120px;
    height: 372px;
    opacity: 1;
    border-radius: 242px;
    background: linear-gradient(180deg, #F2F8FF 0%, #EDF2FD 100%);
    box-shadow: 0px 2px 4px #000000, inset 0px 3px 1px #FFFFFF;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 12px;
    color: var(--primary-blue);
    flex-direction: column;
}

.float-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ================= 侧边栏主容器 ================= */
.sidebar {
    position: fixed;
    right: 40px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

/* --- 胶囊面板 --- */
.sidebar-panel {
    background: #fff;
    border-radius: 60px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    height: 380px;
    width: 100px;
    /* padding-bottom: 15px; */
    text-align: center;
}

/* 面板里的每一项 */
.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    /* 为弹出框提供定位基准 */
}

.sidebar-item span {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

/* 顶部专属客服区 */
.sidebar-item.header {
    /* background-color: #3ba0ff; */
    border-radius: 60px 60px 0 0;
    padding: 36px 0 10px 0;
}

.sidebar-item.header span {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 28.13px;
    color: #FFFFFF;
    width: 100%;
    height: 46px;
    background: linear-gradient(90deg, #0F8FFF 0%, #2C9CF6 43.05%, #52AEEB 100%);
    color: #fff;
    font-weight: bold;
    line-height: 40px;
}

/* 鼠标悬停时的背景变色 */
.sidebar-item.hoverable:hover {
    /* margin-top: -420px; */
    background-color: #e6f2ff;
}

/* ================= 左侧弹出提示框 ================= */
.tooltip {
    position: absolute;
    right: 135px;
    /* 距离侧边栏的距离 */
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 180px;
    text-align: left;

    /* 默认隐藏，添加过渡动画 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* 鼠标悬停时显示提示框 */
.sidebar-item.phone-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* 提示框右侧的小三角箭头 */
.tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    /* 伸出框外一半 */
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    /* 只有右上角有阴影，模拟箭头突出 */
    box-shadow: 2px -2px 3px rgba(0, 0, 0, 0.04);
    border-radius: 2px;
}

/* 提示框内部文字样式 */
.tooltip .tip-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.tooltip .tip-phone {
    font-size: 20px;
    font-weight: bold;
    color: #3ba0ff;
    margin: 8px 0;
}


/* ================= 左侧弹出提示框2 ================= */
.sidebar-item.code-item {
    padding-bottom: 50px;
    /* 原本是 15px，加上父级去掉的 15px，正好填满底部空间 */
}

.sidebar-item.code-item.hoverable:hover {
    border-radius: 0 0 60px 60px;

}

.tooltips {
    position: absolute;
    right: 135px;
    /* 距离侧边栏的距离 */
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #F2F8FF 0%, #EDF2FD 100%), #CCCCCC;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 231px;
    height: 324px;
    text-align: center;

    /* 默认隐藏，添加过渡动画 */
    opacity: 0;
    /* visibility: hidden; */
    transition: all 0.3s ease;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
}

.tipcode {
    width: 120px;
    height: 120px;
    background: var(--white);
    margin: 15px 0;
    border-radius: 8px;

}

.code-desc {
    font-size: 16px;
    font-weight: 700;
    color: #3982FF;
}

.tooltipscode {
    width: 82px;
    height: 82px;
}

/* 鼠标悬停时显示提示框 */
.sidebar-item.code-item:hover .tooltips {
    opacity: 1;
    visibility: visible;
}

/* 提示框右侧的小三角箭头 */
.tooltips::after {
    content: '';
    position: absolute;
    right: -6px;
    /* 伸出框外一半 */
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    /* 只有右上角有阴影，模拟箭头突出 */
    box-shadow: 2px -2px 3px rgba(0, 0, 0, 0.04);
    border-radius: 2px;
}

/* 提示框内部文字样式 */
.tooltips .tip-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.tooltips .tip-phone {
    font-size: 20px;
    font-weight: bold;
    color: #3ba0ff;
    margin: 8px 0;
}

/* ================= 返回顶部按钮 ================= */
.back-to-top {
    margin-top: 15px;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.back-to-top:hover {
    box-shadow: 0 6px 20px rgba(59, 160, 255, 0.2);
    transform: translateY(-2px);
}

/* 图标通用尺寸 */
.icon {
    width: 30px;
    height: 30px;
}

.icon-img {
    width: 46px;
    height: 43px;
}



/* =========================================
   响应式适配 (移动端)
   ========================================= */
@media (max-width: 992px) {
    .qr-codes {
        margin-left: 10px;
    }

    .course-right h4 {
        font-size: 15px;
    }

    .course-right p {
        margin-bottom: 0;
        margin-top: 5vh;
    }

    .sidebar {
        display: none;
    }

    .links {
        width: 100%;
    }

    .line {
        width: 100%;
    }

    .course-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }


    .adv-bottom-row {
        grid-template-columns: 1fr;
    }

    .adv-right {
        width: 100%;
    }

    .adv-left {
        width: 100%;
    }

    .course-card {
        width: 100%;
    }

    .cert-tip {
        grid-template-columns: 1fr;

    }

    .bottom-cta {
        height: auto;
        background-size: contain;
    }

    .adv-img-placeholder img {
        width: 70%;
        margin-left: 0;
        margin-bottom: -13.6vh;
    }

    .adv-gallery {
        display: grid;
        grid-template-columns: 1fr;
    }

    .gallery-item {
        text-align: center;
        margin-bottom: 20px;
    }

    .gallery-item img {
        width: 100%;
        object-fit: cover;
    }

    .footer-brand {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .qr-codes {
        margin-left: 10px;
    }

    .banner img {}

    .sidebar {
        display: none;
    }

    .links {
        width: 100%;
    }

    .line {
        width: 100%;
    }

    .nav-links,
    .header-right {
        /* display: none; */
    }

    /* 移动端隐藏导航条，通常改为汉堡菜单 */

    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-image-placeholder {
        width: 100%;
        justify-content: center;
        margin-top: 30px;
    }

    .service-cards {
        flex-direction: column;
    }

    .adv-top {
        flex-direction: column;
        text-align: center;
    }

    .adv-img-placeholder {
        margin-top: 20px;
        width: 100%;
    }

    .faq-layout {
        flex-direction: column;
    }

    .faq-qr-card {
        width: 100%;
        height: 488px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
        margin-left: 6vw;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: center;
    }

    .floating-menu {
        display: none;
    }

    .footer-brand {
        margin: 0 auto;
    }

    /* 移动端可隐藏或缩小侧边栏 */
}