/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 核心修改1：仅保证 html/body 正常文档流，隐藏横向滚动条（彻底去掉底部多余滚动条） */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 核心：禁止横向滚动，隐藏多余横向滚动条 */
}

/* 核心修改2：根容器设置min-height: 100vh，使用flex布局纵向排列，强制撑满视口 */
#__nuxt {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 关键：确保页面最小高度占满整个浏览器视口 */
    overflow-x: hidden; /* 加固：隐藏横向溢出，双重保障 */
}

/* 核心新增：中间层 #__layout 继承flex纵向布局，打通布局链 */
#__layout {
    display: flex;
    flex-direction: column;
    flex: 1; /* 填充 #__nuxt 全部空间，继承布局属性 */
    overflow-x: hidden; /* 加固：隐藏横向溢出，三重保障 */
}

/* 核心修改3：主体内容设置flex: 1，自动填充视口剩余空间，将底部推到最下方 */
.home-container {
    flex: 1; /* 关键：填充根容器剩余空间，强制底部到底 */
}

/* 板块通用样式（保留原有功能，优化横向布局避免溢出） */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.vp-section {
    padding: 80px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}
.vp-section:nth-child(odd) {
    background-color: #fafbfc;
}
.vp-section-title {
    text-align: center;
    font-size: 28px;
    color: #222222;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}
.vp-section-desc {
    text-align: center;
    font-size: 16px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.vp-product-wrap, .vp-step-wrap, .vp-advantage-wrap {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px; /* 优化：减小间距，避免小屏幕横向溢出 */
    overflow-x: auto;
    padding: 10px 10px; /* 优化：调整内边距，适配边缘不溢出 */
    scrollbar-width: none;
    margin: 0 -10px; /* 优化：抵消内边距，避免边缘溢出 */
}
.vp-product-wrap::-webkit-scrollbar, .vp-step-wrap::-webkit-scrollbar, .vp-advantage-wrap::-webkit-scrollbar {
    display: none;
}
.vp-product-card {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.vp-product-authen {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ff4400;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(255, 68, 0, 0.2);
}
.vp-product-card:hover {
    transform: translateY(-8px);
    border-color: #0066cc;
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.1);
}
.vp-product-title {
    font-size: 20px;
    color: #0066cc;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e5e5e5;
    text-decoration: none;
}
.vp-product-price {
    font-size: 18px;
    color: #ff4400;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}
.vp-product-item {
    margin-bottom: 22px;
}
.vp-product-item-label {
    font-size: 15px;
    color: #333333;
    margin-bottom: 10px;
    font-weight: 500;
}
.vp-product-item-content {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
}
.vp-product-btn {
    width: 100%;
    height: 48px;
    line-height: 48px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-decoration: none;
    display: inline-block;
}
.vp-product-btn:hover {
    background-color: #0052aa;
    color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}
.vp-step-card {
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    position: relative;
    text-align: center;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}
.vp-step-card:hover {
    transform: translateY(-8px);
    border-color: #0066cc;
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.1);
}
.vp-step-num {
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 30px;
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.2);
}
.vp-step-title {
    font-size: 18px;
    color: #222222;
    margin-bottom: 15px;
    font-weight: 600;
}
.vp-step-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
}
.vp-advantage-card {
    flex: 1;
    min-width: 220px;
    max-width: 260px;
    padding: 40px 25px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.vp-advantage-card:hover {
    transform: translateY(-8px);
    border-color: #0066cc;
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.1);
}
.vp-advantage-icon {
    font-size: 48px;
    color: #0066cc;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}
.vp-advantage-card:hover .vp-advantage-icon {
    transform: scale(1.1);
    color: #0052aa;
}
.vp-advantage-title {
    font-size: 18px;
    color: #222222;
    margin-bottom: 20px;
    font-weight: 600;
}
.vp-advantage-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
}

/* ########## 双层背景图（保留原有生效方案，新增居中图片） ########## */
.daili-area {
    width: 100%;
    height: 400px; /* 固定高度，框架稳定 */
    position: relative;
    overflow: hidden; /* 强制隐藏所有溢出内容，确保背景图不超出该区域 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 第一层背景图（底层）- 可替换：picture/banner-bg.jpg */
    background: url("../picture/banner-bg.jpg") no-repeat center center;
    background-size: contain; /* 完整显示图片，不拉伸，不溢出 */
    background-color: #fafbfc; /* 可选：图片尺寸不足时填充空白 */
}

/* 第二层背景图（居中叠加）- 可替换：picture/banner-center-bg.png */
.daili-area__center-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../picture/banner-center-bg.png") no-repeat center center;
    background-size: contain; /* 完整显示图片，自动适配框架 */
    z-index: 1; /* 低于文字，不遮挡内容 */
}

/* 新增：额外居中图片（不破坏原有布局，可替换：picture/new-center-img.png） */
.daili-area__new-center-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 核心替换地址：修改此处图片路径即可（相对/绝对路径都支持） */
    background: url("../picture/vpcs.png") no-repeat center center;
    background-size: contain; /* 完整显示，不拉伸、不溢出，严格居中 */
    z-index: 1; /* 层级：低于文字（z=2），高于背景图，不遮挡任何内容 */
    max-width: 80%; /* 最大宽度80%，预留边距 */
    max-height: 80%; /* 最大高度80%，预留边距 */
    margin: auto; /* 配合绝对定位，实现完美垂直+水平居中 */
}

/* 横幅文字内容 - 层级最高，确保清晰 */
.daili-area .container {
    position: relative;
    z-index: 2; /* 高于所有背景图，文字不被遮挡 */
    text-align: center;
}

/* 横幅两侧图片 - 限制在框架内，不溢出 */
.daili-area .left-banner, .daili-area .right-banner {
    position: absolute;
    max-height: 90%; /* 不超过横幅高度90% */
    max-width: 20%; /* 不超过横幅宽度20%，避免小屏幕溢出 */
    z-index: 1; /* 介于背景和文字之间 */
}
.daili-area .left-banner {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.daili-area .right-banner {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* 横幅标题样式 */
.daili-area h1 {
    font-size: 36px;
    color: #0066cc;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8); /* 提升背景图上的可读性 */
}

/* ########## 合并后的底部整体：仅滚动到底部（视口尽头）才显示 ########## */
.footer-container {
    width: 100%;
    background-color: #ffffff;
    z-index: 5;
    padding: 30px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
    /* 完全回归文档流，无任何固定定位样式 */
}

/* 合并后的友情链接样式 */
.footer-flink {
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.footer-flink ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}
.footer-flink li {
    font-size: 14px;
    color: #666666;
    white-space: nowrap;
}
.footer-flink li a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-flink li a:hover {
    color: #0052aa;
    text-decoration: underline;
}

/* 版权信息样式 */
.footer-bottom {
    padding: 0;
    text-align: center;
    width: 100%;
    /* 无残留定位样式，确保文档流正常 */
}
.copyright {
    font-size: 13px;
    color: #666666;
    line-height: 1.8;
}

/* 响应式适配（优化小屏幕布局，避免横向溢出） */
@media (max-width: 992px) {
    .daili-area {
        height: 320px;
    }
    .daili-area h1 {
        font-size: 28px;
    }
    .footer-container {
        padding: 25px 0 15px;
    }
    .footer-flink {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .vp-product-wrap, .vp-step-wrap, .vp-advantage-wrap {
        gap: 15px; /* 进一步减小小屏幕间距 */
    }
}
@media (max-width: 576px) {
    .daili-area {
        height: 260px;
    }
    .daili-area h1 {
        font-size: 22px;
    }
    .footer-container {
        padding: 20px 0 12px;
    }
    .footer-flink {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .footer-flink ul {
        gap: 10px 15px;
        padding: 0 20px;
    }
    .footer-flink li {
        font-size: 13px;
    }
    .copyright {
        font-size: 12px;
    }
    .vp-product-wrap, .vp-step-wrap, .vp-advantage-wrap {
        gap: 10px; /* 手机端最小间距，避免溢出 */
        min-width: 250px; /* 减小卡片最小宽度，适配手机端 */
    }
    .vp-product-card {
        min-width: 250px;
        padding: 30px 20px; /* 减小手机端卡片内边距 */
    }
}
