/* ===================== 全局基础样式 ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", SimHei, "PingFang SC", sans-serif;
}

html,
body {
    height: 100%;
    background: #f9fafb;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* 👉 新增：手机端独立按钮容器 - PC端彻底隐藏 */
.mobile-bottom-btn {
    display: none !important;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

a {
    text-decoration: none;
    color: #333;
}

/* PC端强制隐藏滚动条 + 标题样式固定 */
@media (min-width: 768px) {

    html,
    body {
        overflow: hidden;
    }

    .h1-title {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        font-size: 24px !important;
    }
}

/* ===================== 整体布局容器 ===================== */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    height: 100vh;
    padding: 20px 15px;
    gap: 20px;
    box-sizing: border-box;
}

/* 主内容区：flex布局拆分左侧正文+右侧导航 */
.main-content {
    flex: 1;
    padding: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    gap: 20px;
    overflow: hidden;
}

/* ===================== 左侧正文区域 ===================== */
.main-left {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 主标题+产品介绍容器（sticky固定在顶部 - PC端保留） */
.title-intro-container {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 20;
    margin-bottom: 15px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.05);
    padding: 0 5px;
}

/* 主标题样式 */
.h1-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    padding-bottom: 10px;
    border-bottom: 2px solid #0070b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}

/* 下载按钮组容器 */
.btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 产品介绍行：右侧与按钮齐平 */
.product-intro-main {
    font-size: 16px;
    color: #666;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 产品介绍文本（防换行 - PC端） */
.intro-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intro-empty {
    width: 280px;
}

/* 正文滚动区域 - 核心：保留flex:1，确保PC端正常滚动 */
.content-scroll {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}

/* 隐藏滚动条 */
.content-scroll::-webkit-scrollbar {
    display: none;
}

/* ===================== 下载按钮样式 ===================== */
@keyframes breath {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.download-btn {
    padding: 8px 20px;
    background: #0070b8;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 112, 184, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    opacity: 1 !important;
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 112, 184, 0.15);
}

/* 按钮呼吸动画 */
.download-btn i,
.download-btn {
    animation: breath 2s ease-in-out infinite !important;
}

.download-btn i {
    font-size: 22px;
    transition: transform 0.3s;
}

.download-btn:hover {
    background: #00558c;
    box-shadow: 0 2px 6px rgba(0, 112, 184, 0.2);
    transform: translateY(-1px);
}

.download-tag {
    font-size: 22px;
    font-weight: 600;
    color: #0070b8;
    margin-left: 2px;
    vertical-align: middle;
    transition: color 0.3s;
}

.download-tag:hover {
    color: #00558c;
}

/* ===================== 正文内容样式 ===================== */
.h2-title {
    font-size: 20px;
    font-weight: 600;
    margin: 40px 0 20px;
    padding-left: 10px;
    border-left: 4px solid #0070b8;
}

.h2-subtitle {
    font-size: 14px;
    color: #555;
    font-weight: 400;
    margin-left: 2px;
    vertical-align: middle;
}

.h3-title {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px;
}

.h4-title {
    font-size: 15px;
    font-weight: 600;
    margin: 20px 0 10px;
}

.p-content {
    margin-bottom: 15px;
    text-align: justify;
}

.p-content strong,
.ul-content strong,
.table-content strong {
    color: #0070b8;
    font-weight: 700;
    background: #f0f7ff;
    padding: 0 4px;
    border-radius: 2px;
}

.ul-content {
    margin: 15px 0 15px 20px;
    list-style: disc;
}

.ul-content li {
    margin-bottom: 8px;
}

.ul-content li strong:first-of-type {
    color: #333 !important;
    font-weight: 700 !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.link-tag {
    color: #66b1ff;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.link-tag:hover {
    color: #0958d9;
    text-decoration-thickness: 1.5px;
}

.img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 0 10px;
}

.content-img {
    height: 200px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}

/* ===================== 右侧导航样式 ===================== */
.product-brief {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    padding: 5px 0;
    border-left: 3px solid #007bff;
    padding-left: 10px;
}

.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-link {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    transition: color 0.2s;
}

.guide-link.active {
    color: #0070b8;
    font-weight: 600;
}

.guide-link:hover {
    color: #0070b8;
}

/* ===================== 唯一手机端适配：@media (max-width:768px)  ===================== */
/* 删去重复查询，仅保留这1段，所有手机端样式仅在此生效，绝不污染PC端 */
@media (max-width: 768px) {

    /* 1. 根节点：取消强制overflow:hidden，保证正文滚动 */
    html,
    body {
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: auto !important;
    }

    /* 2. 全局容器：满屏适配，纵向布局 */
    .container {
        width: 100vw !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        flex-direction: column !important;
    }

    /* 3. 隐藏左右导航，仅留核心内容 */
    .left-nav,
    .right-guide {
        display: none !important;
    }

    /* 4. 主内容区：满屏，清除阴影/圆角，无残留样式 */
    .main-content {
        width: 100% !important;
        height: 100% !important;
        gap: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 5. 左侧正文：手机端核心布局，纵向flex，适配屏幕 */
    .main-left {
        width: 100% !important;
        height: 100vh !important;
        padding: 15px !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* 6. 标题容器：STICKY置顶（不滚动）+ 加背景防遮挡，手机端核心 */
    .title-intro-container {
        position: static !important;
        /* 关键：手机端取消粘性，仅PC端sticky */
        box-shadow: none !important;
        margin: 0 0 15px 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    /* 7. 主标题：居中显示，隐藏PC端按钮（仅手机端隐藏） */
    .h1-title {
        font-size: 20px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px !important;
        /* 缩小间距，避免视觉上像两个标题 */
        padding-bottom: 10px !important;
        border-bottom: 2px solid #0070b8 !important;
    }

    /* 关键：精准隐藏PC端按钮，不影响其他元素 */
    h1.h1-title .pc-btn-group {
        display: none !important;
        /* 最高优先级，100%隐藏 */
        visibility: hidden !important;
        /* 双重保险，防止任何视觉残留 */
        opacity: 0 !important;
        /* 三重保险，彻底透明 */
        width: 0 !important;
        /* 消除占位 */
        height: 0 !important;
        /* 消除占位 */
        overflow: hidden !important;
        /* 防止内容溢出 */
    }

    /* 8. 产品介绍：居中折行，适配手机小屏，取消单行限制 */
    .product-intro-main {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        font-size: 14px !important;
        padding: 5px 0 !important;
    }

    .intro-text {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }

    .intro-empty {
        display: none !important;
    }

    /* 9. 正文滚动区：核心！占满剩余高度，可滚动，加内边距防遮挡 */
    .content-scroll {
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 80px !important;
        /* 给底部按钮留空间，不遮挡最后一行正文 */
        margin: 0 !important;
    }

    /* 10. 核心：显示手机端独立底部按钮，固定在屏幕最底部 */
    .mobile-bottom-btn {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 100 !important;
        background: #fff !important;
        padding: 10px 15px !important;
        margin: 0 !important;
    }

    /* 手机端按钮组：强制一行居中，永不折行，适配所有手机浏览器 */
    .mobile-bottom-btn .btn-group {
        display: flex !important;
        flex-direction: column !important;
        /* 核心：横向改纵向，各占一行 */
        justify-content: center !important;
        /* 垂直居中 */
        align-items: center !important;
        /* 水平居中 */
        gap: 0 !important;
        /* 取消原有横向间距，用margin控制 */
        width: 100% !important;
    }

    /* 11. 手机端按钮样式：适配点击，取消呼吸动画提升性能 */
    .mobile-bottom-btn .download-btn {
        padding: 12px 0 !important;
        font-size: 16px !important;
        width: 100% !important;
        /* 按钮占满容器宽度，点击区域更大 */
        max-width: 300px !important;
        /* 限制最大宽度，避免太宽变形 */
        justify-content: center !important;
        /* 按钮内图标+文字居中 */
        animation: none !important;
    }

    .mobile-bottom-btn .download-btn i {
        font-size: 18px !important;
    }

    .mobile-bottom-btn .download-tag {
        font-size: 14px !important;
        color: #666 !important;
        /* 浅灰色，不抢按钮焦点 */
        margin-top: 6px !important;
        /* 按钮和文字之间的间距 */
        text-align: center !important;
        /* 确保文字换行后也居中 */
    }

    /* 12. 正文微调：手机端阅读更舒适，表格横向滚动 */
    .p-content {
        text-align: left !important;
        line-height: 1.9 !important;
        font-size: 14px !important;
    }

    .table-content {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
    }

    .content-img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
    }

    #mobile-copy-btn {
        padding: 10px 24px !important;
        font-size: 16px !important;
        animation: none !important;
        width: 100% !important;
        /* 取消呼吸动画，复制按钮无需动画 */
    }

    /* 手机端标签样式微调，和新按钮匹配 */
    .mobile-bottom-btn .download-tag {
        font-size: 14px !important;
        color: #333 !important;
    }
}