/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    color: #333333;
    background-color: #FFFFFF;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: #F5F7FA;
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: #1E88E5;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

    .title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: #FF7A00;
        margin: 12px auto 0;
    }

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #1E88E5;
    color: #fff !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn:hover {
        background: #1565C0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
    }

.btn-outline {
    background: transparent;
    border: 1px solid #1E88E5;
    color: #1E88E5 !important;
}

    .btn-outline:hover {
        background: #1E88E5;
        color: #fff !important;
    }

/* 自定义图标（纯CSS实现，无外部依赖） */

/* 头部导航（解决子类挤压+标签正确） */
/* 2. 头部导航（固定+响应式，精准修复样式冲突） */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 999;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* 固定高度，避免干扰其他元素 */
}

/* 品牌区域：公司名称+股票代码整合（独立样式，不污染全局title） */
.header .logo {
    display: flex;
    align-items: center;
}

    .header .logo img {
        height: 40px;
        margin-right: 12px;
    }

.header .logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.header .logo-main-name {
    font-size: 18px;
    font-weight: 700;
    color: #1E88E5;
    line-height: 1.2; /* 仅作用于导航内公司名 */
}

.header .logo-stock-code {
    font-size: 12px;
    color: #666;
    margin-top: 3px; /* 仅作用于导航内股票代码 */
}

/* 主导航菜单（独立样式隔离，不干扰首页） */
.header .main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

    .header .main-nav .item {
        position: relative;
        font-size: 16px;
        font-weight: 400;
        color: #333;
        cursor: pointer;
    }

    .header .main-nav .item-a {
        display: inline-block;
        padding: 10px 0;
        color: #333;
    }

        .header .main-nav .item-a:hover {
            color: #1E88E5;
        }

    .header .main-nav .subitems {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 500px;
        background: #FFFFFF;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        border-radius: 4px;
        padding: 16px;
        margin-top: 8px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        z-index: 999;
    }

    .header .main-nav .item:hover .subitems {
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }

    .header .main-nav .subitem-title {
        grid-column: 1 / -1;
        font-size: 15px;
        font-weight: 700;
        color: #1E88E5;
        padding: 0 8px 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid #F5F7FA;
    }

    .header .main-nav .subitem-a {
        display: block;
        padding: 8px 12px;
        font-size: 14px;
        color: #666;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

        .header .main-nav .subitem-a:hover {
            background: #F0F7FF;
            color: #1E88E5;
        }

/* 头部右侧信息：热线电话差异化+单独分行（独立样式） */
.header .header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .header-contact-wrap {
    display: flex;
    flex-direction: column;
}

.header .header-phone {
    font-size: 15px;
    color: #1E88E5;
    font-weight: 600; /* 仅作用于导航内热线 */
}

.header .header-qrcode img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

/* 移动端汉堡图标（独立样式） */
.header .hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

    .header .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #333;
        margin-bottom: 5px;
        border-radius: 3px;
    }

/* ===== 移动端抽屉补丁（≤768px） =====
   整体抽屉仍右侧滑出，内部文字/菜单全部居左；
   完全适配你现有 JS（仅依赖 .active 类） ===== */
@media (max-width: 768px) {
    /* 0 基础安全 */
    html {
        overflow-x: hidden;
    }

    /* 1. 汉堡按钮强制出现 + 线条 3px 加粗 */
    .header .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 22px;
        height: 16px;
        cursor: pointer;
        z-index: 1001;
    }

        .header .hamburger span {
            display: block;
            height: 3px;
            background: #333;
            border-radius: 2px;
            transition: .3s;
        }

    /* 2. 抽屉容器：整体仍右侧滑出（居右对齐） */
    .header .main-nav {
        position: fixed;
        top: 60px;
        right: 0;
        left: auto;
        height: calc(100vh - 60px);
        width: 70vw;
        max-width: 280px;
        background: #fff;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s;
        box-shadow: -2px 0 8px rgba(0,0,0,.08);
    }

        .header .main-nav.active {
            transform: translateX(0);
        }

        /* 3. 抽屉顶部 400 电话（仅抽屉内显示） */
        .header .main-nav::before {
            content: "全国热线：4000-292959";
            display: block;
            padding: 14px 16px;
            font-size: 15px;
            font-weight: 600;
            color: #1E88E5;
            border-bottom: 1px solid #f0f0f0;
        }

        /* 4. 菜单全部居左（文字、图标、子项） */
        .header .main-nav .item {
            width: 100%;
            border-bottom: 1px solid #f0f0f0;
        }

        .header .main-nav .item-a {
            display: block;
            padding: 12px 16px;
            font-size: 15px;
            color: #333;
            text-align: left;
        }
        /* 子菜单：不缩进，整体居左 */
        .header .main-nav .subitems {
            position: static;
            display: none;
            padding: 0 0 8px 0;
            background: #fafafa;
            box-shadow: none;
        }

        .header .main-nav .item.open > .subitems {
            display: block;
        }

        .header .main-nav .subitem-a {
            display: block;
            padding: 10px 16px;
            font-size: 14px;
            color: #666;
            text-align: left;
            border-left: 3px solid transparent;
        }

            .header .main-nav .subitem-a:hover {
                background: #f0f7ff;
                color: #1E88E5;
                border-left: 3px solid #1E88E5;
            }

    /* 5. 公司名称减小并强制一行显示 */
    .header .logo-main-name {
        font-size: 14px;
        white-space: nowrap;
    }

    .header .logo-stock-code {
        font-size: 10px;
    }

    /* 6. 隐藏顶部 400 电话（抽屉里已存在） */
    .header .header-phone {
        display: none !important;
    }

    /* 7. 隐藏所有二维码 */
    .header .tel,
    .header .header-qrcode,
    .footer .contact-qrcode {
        display: none !important;
    }

}
