/* 全局重置 & 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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

/* 汉堡菜单样式 - 移动端新增 */
.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 {
    min-height: 80px;
    background: #F7FCFF;
    /* background: linear-gradient(9deg, rgba(255, 255, 255, 0) 70%, #CDEBFB 100%); */
    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;
}

.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: 660px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/parts/parts-bg.png");
    background-size: cover;
    background-position: center;
    padding: 80px 240px 40px 240px;
    box-sizing: border-box;
    position: relative;
    text-align: center;
}

.ru-water-banner {
    height: 700px;
}

.banner-title {
    font-weight: bold;
    font-size: 58px;
    color: #FFFFFF;
    text-shadow: 0px 0px 4px rgba(84, 161, 255, 0.5);
}

.banner-text {
    font-weight: bold;
    font-size: 36px;
    color: #FFFFFF;
    margin-top: 20px;
}

.banner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 17px;
}

.parts-icon1 {
    width: 425px;
    height: 300px;
}

.parts-icon2 {
    width: 295px;
    height: 257px;
}

.parts-icon3 {
    width: 292px;
    height: 316px;
}

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

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

.ru-btn-text {
    height: 58px;
}

/* 兼容性 */
.compatibility-box {
    width: 100%;
    padding: 100px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #EFF3FF 100%);
    text-align: center;
}

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

.compatibility-text {
    font-size: 24px;
    color: #666666;
    margin-top: 20px;
    margin-bottom: 80px;
}

.compatibility-flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.compatibility-item {
    width: 400px;
    height: 300px;
    background: #FFFFFF;
    box-shadow: 0px 0px 8px 0px rgba(185, 199, 255, 0.5);
    border-radius: 24px;
    text-align: center;
    cursor: pointer;
}

.de-compatibility-item {
    height: 330px;
}

.ru-compatibility-item {
    height: 420px;
}

.parts-icon4 {
    width: 48px;
    height: 48px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/parts/parts-icon4.png");
    background-size: cover;
    margin-top: 80px;
}

.parts-icon5 {
    width: 48px;
    height: 48px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/parts/parts-icon5.png");
    background-size: cover;
    margin-top: 80px;
}

.parts-icon6 {
    width: 48px;
    height: 48px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/parts/parts-icon6.png");
    background-size: cover;
    margin-top: 80px;
}

.compatibility-item_title {
    font-weight: bold;
    font-size: 24px;
    color: #333333;
    margin-top: 24px;
}

.compatibility-item_text {
    font-size: 16px;
    color: #FFFFFF;
    margin-top: 20px;
    display: none;
}

.compatibility-item:hover {
    background: #0E6ADA;
    box-shadow: 0px 0px 8px 0px rgba(185, 199, 255, 0.5);
}

.compatibility-item:hover .parts-icon4 {
    margin-top: 32px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/parts/parts-icon4-hover.png");
}

.compatibility-item:hover .parts-icon5 {
    margin-top: 32px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/parts/parts-icon5-hover.png");
}

.compatibility-item:hover .parts-icon6 {
    margin-top: 32px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/parts/parts-icon6-hover.png");
}

.compatibility-item:hover .compatibility-item_title {
    color: #ffffff;
}

.compatibility-item:hover .compatibility-item_text {
    display: block;
}

/* 介绍 */
.introduce {
    width: 100%;
    padding: 100px 360px;
    background-image: url("https://resource.hpti.net/hpt-foreign-website/images/parts/parts-icon7.png");
    background-size: 100% 100%;
    background-position: center;
}

.introduce-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.de-introduce {
    width: 45%;
}

.ru-introduce {
    width: 45%;
}

.introduce-title {
    font-weight: bold;
    font-size: 36px;
    color: #FFFFFF;
}

.introduce-text {
    font-size: 20px;
    color: #FFFFFF;
    margin-top: 20px;
}

.parts-icon8 {
    width: 588px;
    height: 500px;
}

/* 家庭用水 */
.family {
    padding: 100px 0;
    text-align: center;
}

.family-top {
    display: flex;
    justify-content: center;
    align-items: center;
}

.family-line {
    width: 60px;
    height: 2px;
    background: #0E6ADA;
}

.family-top_title {
    font-size: 20px;
    color: #0E6ADA;
    margin: 0 20px;
}

.family-title {
    font-weight: bold;
    font-size: 36px;
    color: #333333;
    margin-top: 32px;
}

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

.family-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    text-align: left;
}

.family-flex_title {
    font-weight: bold;
    font-size: 36px;
    color: #333333;
}

.family-flex_text {
    width: 490px;
    font-size: 20px;
    color: #666666;
    margin-top: 20px;
    line-height: 30px;
}

.family-flex_mar {
    margin-left: 228px;
}

.parts-icon10 {
    width: 490px;
    height: 320px;
    margin-top: 20px;
}

/* 联系我们 */
.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;
}

.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;
}

.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;
}

/* 侧边联系/返回顶部 */
.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;
}

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

@media (max-width: 1200px) {
    nav {
        padding: 20px 60px;
    }

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

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

@media (max-width: 768px) {

    /* 导航栏重构 - 汉堡菜单 */
    .hamburger {
        display: flex;
    }

    nav {
        flex-direction: row;
        padding: 15px 5vw;
        min-height: 70px;
    }

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

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        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;
    }

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

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

    .water-drop {
        display: none;
    }

    .nav-lang {
        margin-top: 0;
        margin-left: 15px;
    }

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

    .water-banner {
        height: auto;
        min-height: 400px;
        padding: 40px 5vw 30px;
        background-position: center;
    }

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

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

    .banner-item {
        flex-direction: column;
        gap: 20px;
        margin-top: 30px;
    }

    .parts-icon1,
    .parts-icon2,
    .parts-icon3 {
        width: 80%;
        height: auto;
    }

    .ru-water-banner {
        min-height: 450px;
    }

    /* 2. 兼容性模块适配（解决横向排列溢出、内容遮挡） */
    .compatibility-box {
        padding: 60px 5vw;
    }

    .compatibility-title {
        font-size: 28px;
    }

    .compatibility-text {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .compatibility-flex {
        flex-direction: column;
        gap: 24px;
    }

    .compatibility-item {
        width: 90%;
        height: auto;
        padding: 30px 20px;
        margin: 0 !important;
        /* 移除原有横向间距 */
    }

    .de-compatibility-item,
    .ru-compatibility-item {
        height: auto;
        padding: 30px 20px;
    }

    .parts-icon4,
    .parts-icon5,
    .parts-icon6 {
        margin-top: 0;
    }

    .compatibility-item:hover .parts-icon4,
    .compatibility-item:hover .parts-icon5,
    .compatibility-item:hover .parts-icon6 {
        margin-top: 0;
    }

    .compatibility-item_title {
        font-size: 20px;
        margin-top: 16px;
    }

    .compatibility-item_text {
        font-size: 14px;
        margin-top: 15px;
        line-height: 1.6;
    }

    /* 3. 介绍模块适配（解决内边距过大、横向排列错乱） */
    .introduce {
        padding: 60px 5vw;
        background-size: cover;
        background-position: center;
    }

    .introduce-flex {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .introduce-title {
        font-size: 28px;
        word-break: break-all
    }

    .introduce-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .parts-icon8 {
        width: 90%;
        height: auto;
    }

    .introduce-flex:nth-child(2) {
        flex-direction: column-reverse;
        /* 反转顺序，文字在上，图片在下，更易阅读 */
        margin-top: 60px;
    }

    /* 4. 家庭用水模块适配（解决横向排列溢出、文本过宽） */
    .family {
        padding: 60px 5vw;
    }

    .family-top_title {
        font-size: 16px;
        text-align: center;
        line-height: 1.4;
    }

    .family-title {
        font-size: 28px;
        margin-top: 24px;
    }

    .family-text {
        font-size: 18px;
        line-height: 1.4;
    }

    .family-flex {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
        text-align: center;
    }

    .family-flex_title {
        font-size: 28px;
    }

    .family-flex_text {
        width: 90%;
        font-size: 16px;
        margin: 15px auto 0;
        line-height: 1.6;
    }

    .family-flex_mar {
        margin-left: 0;
    }

    .parts-icon10 {
        width: 90%;
        height: auto;
        margin: 20px auto 0;
    }

    /* 页脚适配 */
    footer {
        padding: 40px 5vw 20px;
    }

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

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

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

    /* Cookie提示适配 */
    .cookie-notice {
        padding: 15px 5vw;
        flex-direction: column;
        align-items: center;
    }

    .cookie-notice .cookie-title {
        width: 100%;
        font-size: 13px;
        margin-bottom: 10px;
        text-align: center;
    }

    .cookie-notice button {
        width: 100%;
        height: 40px;
        font-size: 16px;
    }

    /* 侧边栏适配 */
    .relation-box {
        width: 60px;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

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

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

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

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

@media (max-width: 480px) {
    .banner-title {
        font-size: 26px;
    }

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

    .compatibility-title,
    .family-title,
    .introduce-title {
        font-size: 24px;
    }

    .compatibility-text,
    .family-text {
        font-size: 16px;
    }

    .family-flex_title {
        font-size: 22px;
    }

    .footer-container {
        gap: 20px;
        padding-bottom: 20px;
    }

    .relation-text {
        font-size: 10px !important;
    }

    .contact-info-title {
        font-size: 28px !important;
    }
}