/* 全局重置 & 基础样式 - 核心修改：新增横向溢出限制 + 根元素样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
    word-wrap: break-word;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* margin: 0;
    padding: 0;
    width: 100%;
    height: 100%; */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

/* 导航栏 */
nav {
    min-height: 80px;
    background: #F7FCFF;
    color: #333;
    padding: 20px 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-logo {
    width: 74px;
    height: 30px;
    margin-right: 40px;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.nav-links a {
    color: #333;
    display: flex;
    align-items: center;
    font-size: 16px;
    padding: 4px 0;
    max-width: 130px;
    border-bottom: 2px solid transparent;
    text-align: center;
    word-break: break-all;
}

.nav-links a:hover {
    color: #348AF2;
}

.nav-links a.active {
    color: #095BBF;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}

.nav-contact {
    width: 80px;
    height: 32px;
    background: #0E6ADA;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #ffffff !important;
}

.nav-contact:hover {
    background: #348AF2;
}

.nav-lang {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #999999;
    position: relative;
}

.nav-lang-flex {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.icon-lang {
    width: 16px;
    height: 16px;
    background: url('https://resource.hpti.net/hpt-foreign-website/images/language-icon.png') no-repeat center;
    background-size: contain;
}

.icon-down {
    width: 16px;
    height: 16px;
    background: url('https://resource.hpti.net/hpt-foreign-website/images/down.png') no-repeat center;
    background-size: contain;
}

#languageId:hover>div:nth-child(1) {
    background-image: url('https://resource.hpti.net/hpt-foreign-website/images/language-icon-hover.png');
}

#languageId:hover>div:nth-child(3) {
    background-image: url('https://resource.hpti.net/hpt-foreign-website/images/down-hover.png');
}

#languageId:hover>div:nth-child(2) {
    color: #333333;
}

.water-drop {
    width: 50px;
    height: 38px;
    position: absolute;
    right: 50px;
}

.lang-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    background-color: #ffffff;
    padding: 12px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    display: none;
    z-index: 999;
    text-align: center;
}

.lang-option {
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: #999999;
}

.lang-option:hover {
    color: #333333;
}

/* banner图 */
.water-banner {
    width: 100%;
    height: 800px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/water/water-banner.png");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 240px 0 0 360px;
    box-sizing: border-box;
}

.banner-title {
    font-weight: bold;
    font-size: 48px;
    color: #FFFFFF;
    text-shadow: 0px 2px 4px #2E2517;
    margin-bottom: 20px;
}

.banner-text {
    font-size: 36px;
    color: #FFFFFF;
    text-shadow: 0px 2px 4px #2E2517;
}

.banner-btn {
    width: 180px;
    height: 48px;
    background: #0E6ADA;
    border-radius: 24px;
    font-weight: bold;
    font-size: 24px;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

/* 市场 */
.market-box {
    width: 100%;
    padding: 100px 0 160px 360px;
    background: #F6F8FF;
    position: relative;
    /* 新增：防止市场板块内容溢出 */
    box-sizing: border-box;
}

.market-title {
    font-weight: bold;
    font-size: 36px;
    color: #333333;
}

.market-text {
    font-size: 24px;
    color: #999999;
    margin-top: 20px;
}

.market-image {
    display: flex;
    align-items: center;
    margin-top: 40px;
}

.market-icon {
    width: 486px;
    height: 340px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    overflow: hidden;
    transition: background-size 0.3s ease;
    cursor: pointer;
    border-radius: 18px;
    z-index: 99;
}

.market-icon:hover {
    background-size: 105%;
}

.market-circle {
    width: 360px;
    height: 354px;
    position: absolute;
    right: 275px;
    top: 512px;
}

.market-leftcircle {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 260px;
    bottom: 100px;
}

.market-flex {
    display: flex;
    align-items: center;
    margin-top: 100px;
}

.market-flex_item {
    width: 384px;
    height: 480px;
    text-align: center;
    background: linear-gradient(180deg, #EAF6FF 0%, rgba(235, 250, 255, 0.7) 100%);
    border-radius: 20px;
    border: 2px solid #B8D8FF;
    backdrop-filter: blur(10px);
    padding: 80px 26px 0 26px;
    cursor: pointer;
}

.ru-market-flex_item {
    height: 600px;
}

.market-flex_item:hover {
    background: linear-gradient(180deg, #D0EAFD 0%, #E0F7FF 100%);
    backdrop-filter: blur(9.996561865482233px);
}

.market-flex_img {
    width: 88px;
    height: 88px;
}

.market-flex_title {
    font-weight: bold;
    font-size: 24px;
    color: #333333;
    margin: 40px 0 20px 0;
}

.market-flex_item:hover .market-flex_title {
    color: #0E6ADA;
}

.market-flex_text {
    font-size: 16px;
    color: #666666;
}

/* 取水方式 */
.mode-box {
    width: 100%;
    background: #F6F8FF;
    padding: 80px;
    /* 新增：防止取水板块内容溢出 */
    box-sizing: border-box;
}

.mode-item {
    padding: 80px 280px;
    background: linear-gradient(90deg, #0056FF 0%, #A8E8FF 100%);
    border-radius: 60px;
}

.ru-mode-item {
    padding: 80px 200px;
}

.mode-flex {
    display: flex;
    align-items: center;
}

.mode-title {
    font-weight: bolder;
    font-size: 36px;
    color: #FFFFFF;
}

.mode-text {
    font-weight: bold;
    font-size: 24px;
    color: #FFFFFF;
    margin-top: 20px;
    margin-bottom: 80px;
}

.mode-type {
    display: flex;
    align-items: center;
}

.mode-right {
    margin-right: 60px;
}

.mode-icon {
    width: 24px;
    height: 24px;
    margin-right: 20px;
}

.mode-type_text {
    font-weight: bold;
    font-size: 20px;
    color: #FFFFFF;
}

.mode-image {
    position: relative;
    margin-left: 77px;
}

.mode-mar {
    margin-left: 160px;
}

.mode-qrcode {
    width: 520px;
    height: 524px;
}

@keyframes upDownMove {
    0% {
        transform: translateY(0);
        /* 初始位置 */
    }

    50% {
        transform: translateY(-20px);
        /* 向上移动20px */
    }

    100% {
        transform: translateY(0);
        /* 回到初始位置 */
    }
}

.mode-card {
    width: 368px;
    height: 368px;
    position: absolute;
    bottom: 0;
    left: -214px;
    animation: upDownMove 2s ease-in-out infinite;
}

/* 程序 */
.procedure-box {
    padding: 100px 0 100px 360px;
    box-sizing: border-box;
    width: 100%;
}

.procedure-blue {
    font-weight: bold;
    font-size: 36px;
    background-image: -webkit-linear-gradient(0deg, #0E6ADA 0%, #40CAFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.procedure-sub {
    font-weight: bold;
    font-size: 36px;
    color: #333333;
    margin-top: 12px;
}

.procedure-text {
    width: 50%;
    font-size: 24px;
    color: #999999;
    margin-top: 40px;
}

.procedure-flex {
    display: flex;
    align-items: center;
    margin-top: 60px;
}

.procedure-image {
    width: 586px;
    height: 480px;
    margin-right: 128px;
}

.procedure-width {
    width: 40%;
}

.procedure-flex_item {
    padding: 35px 36px;
    border-left: 8px solid rgba(14, 106, 218, 0.2);
    cursor: pointer;
}

.procedure-flex_item:hover {
    border-left: 8px solid #0E6ADA;
}

.procedure-flex_item:hover .procedure-flex_title {
    color: #0E6ADA;
}

.procedure-flex_item:hover .procedure-flex_text {
    color: #0E6ADA;
}

.procedure-flex_title {
    font-weight: bold;
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
}

.procedure-flex_text {
    font-size: 16px;
    color: #666666;
}

/* 联系我们 */
.contact-box {
    width: 100%;
    background: #0E6ADA;
    padding: 60px 0 40px 0;
    text-align: center;
    box-sizing: border-box;
}

.contact-title {
    font-weight: bold;
    font-size: 24px;
    color: #FFFFFF;
}

.contact-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

.contact-btn {
    width: 258px;
    height: 80px;
    background: #FFFFFF;
    border-radius: 20px;
    font-weight: bold;
    font-size: 24px;
    color: #0E6ADA;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* 页脚 */
footer {
    background: #022045;
    color: #ffffff;
    padding: 40px 120px 20px 120px;
    box-sizing: border-box;
    width: 100%;
}

.footer-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #808FA2;
    padding-bottom: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    width: 74px;
    height: 30px;
}

.footer-brand {
    width: 20%;
    min-width: 250px;
}

.footer-brand .footer-introduce {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 12px;
    line-height: 2;
}

.footer-links-column {
    width: 20%;
    min-width: 200px;
}

.footer-links-column .footer-links-title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column li {
    margin-bottom: 16px;
}

.footer-links-column a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links-column a:hover {
    color: #ffffff;
}

.footer-contact {
    width: 15%;
    min-width: 150px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social img {
    width: 37px;
    height: 37px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-social img[src$="linkedin.png"]:hover {
    content: url('https://resource.hpti.net/hpt-foreign-website/images/linkedin-hover.png');
}

.footer-social img[src$="facebook.png"]:hover {
    content: url('https://resource.hpti.net/hpt-foreign-website/images/facebook-hover.png');
}

.footer-social img[src$="youtube.png"]:hover {
    content: url('https://resource.hpti.net/hpt-foreign-website/images/youtube-hover.png');
}

.footer-social img[src$="Twitter.png"]:hover {
    content: url('https://resource.hpti.net/hpt-foreign-website/images/Twitter-hover.png');
}

.fil {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.reserved {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    text-align: center;
}

/* Cookie提示 */
.cookie-notice {
    background: #333333;
    padding: 20px 120px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
    /* 新增：防止cookie提示溢出 */
    max-width: 100vw;
}

.cookie-notice .cookie-title {
    width: 70%;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
}

.cookie-notice button {
    width: 148px;
    height: 48px;
    background: #0E6ADA;
    border-radius: 12px;
    font-weight: bold;
    font-size: 20px;
    color: #FFFFFF;
}

.cookie-notice button:hover {
    background: #0056b3;
}

.cookie-notice .cookie-blue {
    color: #0E6ADA;
    text-decoration: underline;
    cursor: pointer;
}

/* 侧边联系/返回顶部 - 优化fixed定位，防止溢出 */
.relation-box {
    position: fixed;
    right: 20px;
    top: 40%;
    width: 68px;
    background: #0E6ADA;
    box-shadow: 0px 0px 4px 2px rgba(87, 147, 220, 0.5);
    border-radius: 8px;
    z-index: 1000;
    text-align: center;
    /* padding: 10px 0; */
    cursor: pointer;
    word-break: break-all;
}

.relation-item {
    padding: 10px 0;
}

.relation-item:hover,
.goup-box:hover {
    background: #348AF2;
}

.relation-box img {
    width: 32px;
    height: 32px;
}

.relation-box .relation-line {
    width: 100%;
    height: 1px;
    background: #4C98F5;
}

.relation-box .relation-text {
    font-size: 14px;
    color: #FFFFFF;
    margin-top: 7px;
}

.goup-box {
    padding: 18px;
    position: fixed;
    right: 20px;
    top: 60%;
    text-align: center;
    cursor: pointer;
    background: #0E6ADA;
    box-shadow: 0px 0px 4px 2px rgba(87, 147, 220, 0.5);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 99;
}

.goup-box img {
    width: 32px;
    height: 32px;
}

/* 大屏平板 (1200px以下) */
@media (max-width: 1200px) {
    nav {
        padding: 20px 60px;
    }

    .water-banner {
        padding: 200px 0 0 200px;
        height: 700px;
    }

    .banner-title {
        font-size: 40px;
    }

    .banner-text {
        font-size: 30px;
    }

    .market-box {
        padding: 80px 0 120px 200px;
    }

    .market-flex {
        gap: 20px;
    }

    .market-flex_item {
        width: 320px;
        height: 450px;
        padding: 60px 20px 0 20px;
    }

    .mode-box {
        padding: 60px 40px;
    }

    .mode-item {
        padding: 60px 100px;
    }

    .procedure-box {
        padding: 80px 0 80px 200px;
    }

    .procedure-text {
        width: 70%;
    }

    .procedure-image {
        width: 480px;
        height: 400px;
        margin-right: 80px;
    }

    footer {
        padding: 40px 60px 20px 60px;
    }

    .cookie-notice {
        padding: 20px 60px;
    }
}

/* 平板设备 (768px以下) - 核心修改：优化padding为相对单位，彻底解决溢出 */
@media (max-width: 768px) {

    /* 导航栏改为汉堡菜单 */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 250px;
        background-color: #F7FCFF;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 998;
        padding: 20px;
        /* 新增：确保菜单宽度不溢出 */
        max-width: 100vw;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 18px;
        max-width: 100%;
        padding: 10px 0;
    }

    nav {
        flex-direction: row;
        /* 修改：用vw替代固定px，适配不同手机宽度 */
        padding: 15px 5vw;
        min-height: 70px;
    }

    .nav-logo {
        margin-right: 0;
    }

    .water-drop {
        display: none;
    }

    .lang-dropdown {
        width: 100px;
        top: -28vh;
    }

    /* Banner适配 - 修改：padding用vw替代固定px */
    .water-banner {
        padding: 150px 5vw 0 5vw;
        height: 600px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-text {
        font-size: 24px;
    }

    .banner-btn {
        width: 150px;
        height: 40px;
        font-size: 20px;
    }

    /* 市场板块适配 - 修改：padding用vw替代固定px */
    .market-box {
        padding: 60px 5vw;
        text-align: center;
    }

    .market-image {
        flex-direction: column;
        gap: 20px;
    }

    .market-icon {
        width: 100%;
        height: 280px;
        margin-left: 0;
    }

    .market-flex {
        flex-direction: column;
        gap: 30px;
    }

    .market-flex_item {
        width: 100%;
        height: auto;
        padding: 40px 20px;
    }

    .market-circle,
    .market-leftcircle {
        display: none;
    }

    .market-title {
        font-size: 30px;
    }

    .market-text {
        font-size: 20px;
    }

    /* 取水方式适配 - 修改：padding用vw替代固定px */
    .mode-box {
        padding: 40px 5vw;
    }

    .mode-item {
        padding: 40px 5vw;
        border-radius: 30px;
    }

    .mode-flex {
        flex-direction: column;
        gap: 40px;
    }

    .mode-title {
        font-size: 30px;
        text-align: center;
    }

    .mode-text {
        font-size: 20px;
        text-align: center;
        margin-bottom: 40px;
    }

    .mode-type {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
    }

    .mode-right {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .mode-image {
        margin-left: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .mode-mar {
        margin-left: 0;
    }

    .mode-qrcode {
        width: 100%;
        max-width: 350px;
        height: 300px;
    }

    .mode-card {
        width: 200px;
        height: 200px;
        left: 40%;
        transform: translateX(-50%);
        bottom: -50px;
    }

    /* 程序板块适配 - 修改：padding用vw替代固定px */
    .procedure-box {
        padding: 60px 5vw;
    }

    .procedure-blue,
    .procedure-sub {
        font-size: 30px;
        text-align: center;
    }

    .procedure-text {
        width: 100%;
        font-size: 18px;
        text-align: center;
    }

    .procedure-flex {
        flex-direction: column;
        gap: 40px;
    }

    .procedure-image {
        width: 100%;
        height: auto;
        margin-right: 0;
    }

    .procedure-width {
        width: 100%;
    }

    .procedure-flex_item {
        padding: 20px 20px;
    }

    /* 联系我们适配 */
    .contact-title {
        font-size: 20px;
        padding: 0 5vw;
    }

    .contact-btn {
        width: 200px;
        height: 60px;
        font-size: 20px;
    }

    /* 页脚适配 - 修改：padding用vw替代固定px */
    footer {
        padding: 40px 5vw 20px 5vw;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand,
    .footer-links-column,
    .footer-contact {
        width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    /* Cookie提示适配 - 修改：padding用vw替代固定px */
    .cookie-notice {
        padding: 20px 5vw;
        flex-direction: column;
        align-items: center;
    }

    .cookie-notice .cookie-title {
        width: 100%;
        text-align: center;
    }

    /* 侧边栏适配 - 优化定位，防止溢出 */
    .relation-box {
        width: 60px;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .relation-text {
        font-size: 12px;
    }

    .relation-box img {
        width: 24px;
        height: 24px;
    }

    .goup-box {
        width: 60px;
        height: 60px;
        padding: 9px;
        right: 10px;
        top: calc(50% + 100px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(0);
        position: fixed;
    }

    .goup-box img {
        width: 24px;
        height: 24px;
    }
}

/* 手机设备 (480px以下) */
@media (max-width: 480px) {
    .banner-title {
        font-size: 26px;
    }

    .banner-text {
        font-size: 20px;
    }

    .market-title {
        font-size: 26px;
    }

    .market-text {
        font-size: 18px;
    }

    .mode-title {
        font-size: 26px;
    }

    .mode-text {
        font-size: 18px;
    }

    .procedure-blue,
    .procedure-sub {
        font-size: 26px;
    }

    .contact-title {
        font-size: 18px;
    }

    .cookie-notice button {
        width: 100%;
    }
}