/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "Microsoft YaHei", sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #fff;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 完全未改动，宽度、布局保持原样 */
.home-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.header-nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 30px;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 40px;
}

.header-nav li a {
    color: #333;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.header-nav li.active a {
    color: #232324;
    font-weight: 500;
}

.header-nav li.active a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.header-nav li a:hover {
    color: #2f6ce5;
}

/* 移动端汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
}

/* 核心业务板块 - 保持原样，仅通过子元素拉开与导航的距离 */
.core-modules {
    padding: 0;
    background-color:#fff; /* 维普官网同款主体浅蓝底色 */
}

/* 顶部横幅图片 - 核心修改：用margin-top设置外部间距，确保与导航拉开距离（优先级拉满） */
.module-banner {
    width: 100%;
    height: 280px;
    background: url("bj/vpcs.png") no-repeat center center;
    background-size: contain;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    /* 关键：设置明显的顶部外部间距，直接拉开与导航的垂直距离（数值可调整） */
    margin-top: 40px !important; /* !important 确保样式不被覆盖，间距生效 */
    /* 移除之前的padding-top，避免干扰，专注外部间距 */
}

/* 业务卡片区域 */
.module-content {
    padding: 60px 0;
}

.modules-title {
    font-size: 40px;
    color: #222;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
}

.modules-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 500;
}

.modules-card-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.module-card {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    background-color: #fff;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(47, 108, 229, 0.12);
    border-color: #2f6ce5;
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #2f6ce5;
    font-size: 30px;
}

.card-title {
    font-size: 22px;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 500;
}

.card-info {
    font-size: 14px;
    color: #555;
    line-height: 2.2;
    margin-bottom: 30px;
}

.card-info .price {
    color: #333;
    font-weight: 700;
}

.card-info .label {
    color: #333;
    font-weight: 500;
    display: inline-block;
    width: 60px;
}

.card-btn {
    display: block;
    width: 180px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    background-color: #e53e3e;
    color: #fff;
    border-radius: 24px;
    font-size: 16px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background-color: #2559d1;
    box-shadow: 0 4px 12px rgba(47, 108, 229, 0.3);
}

/* 主体内容 */
.daili-area {
    margin: 30px 0;
    position: relative;
}

.daili-area h1 {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin: 40px 0;
    font-weight: 500;
}

.left-banner, .right-banner {
    display: none;
}

/* 友情链接 */
.flink {
    background-color: #fff;
    padding: 30px 0;
    margin-top: 50px;
    width: 100%;
}

.flink-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flink-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.flink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.flink-list li a {
    color: #000;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.flink-list li a:hover {
    color: #2f6ce5;
    background-color: #eef2ff;
}

/* 底部版权（维普官网同款深蓝色） */
.footer-bottom {
    background-color: #232324;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    width: 100%;
}

.copyright {
    line-height: 1.8;
}

/* 右侧隐藏式在线客服面板 */
.online-service {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    align-items: center;
}

.service-toggle {
    width: 50px;
    height: 120px;
    background-color: #2f6ce5;
    color: #fff;
    font-size: 14px;
    writing-mode: vertical-rl;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    transition: background-color 0.3s ease;
}

.service-toggle:hover {
    background-color: #0052a3;
}

.service-panel {
    width: 220px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    margin-right: -220px;
    transition: margin-right 0.3s ease;
}

.online-service.active .service-panel {
    margin-right: 0;
}

.panel-header {
    background-color: #2f6ce5;
    color: #fff;
    padding: 10px 15px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
}

.panel-close {
    font-size: 18px;
    cursor: pointer;
}

.panel-content {
    padding: 15px;
}

.qq-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.qq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.qq-icon {
    width: 30px;
    height: 30px;
}

.qq-text {
    font-size: 14px;
    color: #333;
}

.wechat-section {
    margin-top: 15px;
}

.wechat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.wechat-icon {
    width: 20px;
    height: 20px;
}

.wechat-qrcode {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 5px;
}

/* 移动端适配 - 同步放大横幅与导航的间距 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: #fff;
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        gap: 20px;
        align-items: center;
        z-index: 998;
    }

    .header-nav.active {
        left: 0;
    }

    .module-banner {
        height: 200px;
        background-size: cover;
        /* 移动端同步拉开间距，保持视觉一致 */
        margin-top: 30px !important;
    }

    .modules-card-wrap {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .module-card {
        padding: 30px 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .modules-title {
        font-size: 32px;
    }

    .modules-subtitle {
        font-size: 16px;
    }

    .online-service {
        display: none;
    }
}
