/* 全局样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 100px; /* 为固定header预留空间 */
}
/* 头部样式 */
.header {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}


.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
}

.contact-info {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.header-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    flex-shrink: 0;
}

.header-icon-circle i {
    font-size: 12px;
    color: #666;
}

.contact-info img {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-info span {
    margin-right: 10px;
    transition: color 0.3s ease;
}

.contact-info:hover img {
    opacity: 1;
}

.contact-info span:hover     {
    color: #e74c3c;
}



/* 语言选择器样式 */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* GTranslate语言选择器样式 */
.gt_container--hich1m .gt_switcher {
    background: #fff linear-gradient(180deg, #efefef 0%, #fff 70%);
    z-index: 9999 !important;
    margin-top: 14px;
}

.gt_container {
    font-size: 12px !important;
}

.gtranslate_wrapper {
    margin-right: 20px !important;
}

.gt_switcher {
    max-width: 130px !important;
    min-width: 110px !important;
    font-size: 12px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.gt_switcher .gt_selected {
    font-size: 11px !important;
    line-height: 1.3 !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    /* padding: 6px 8px !important; */
}

.gt_switcher .gt_option {
    /* padding: 6px 8px !important; */
    font-size: 11px !important;
    line-height: 1.3 !important;
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

.gt_switcher .gt_option:hover {
    background: #f5f5f5 !important;
}

.gt_switcher .gt_list {
    background: #fff !important;
    border-top: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

.language-dropdown.show {
    display: block;
}

.language-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.current-lang {
    margin-right: 5px;
    transition: color 0.3s ease;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    /* border: 1px solid #e0e0e0; */
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 80px;
    padding: 5px 0;
}

.lang-option {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    border-radius: 3px;
    margin: 2px 5px;
}

.lang-option:hover {
    background: #f0f0f0;
    color: #e74c3c;
}

.lang-option.active {
    background: #e74c3c;
    color: #fff;
}

.language-selector:hover .language-icon {
    opacity: 1;
}

.language-selector:hover .current-lang {
    color: #e74c3c;
}

/* 响应式设计 - 固定header在所有设备上的显示优化 */
@media (max-width: 768px) {
    body {
        padding-top: 280px !important; /* 增加上边距，避免导航栏遮挡内容 */
    }

    .header-top {
        padding: 10px 0;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        position: relative;
    }

    .logo {
        order: 0;
        align-self: center;
        margin: 0 auto;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 100px 0 15px; /* 右边留出空间给多语言选择器 */
    }

    .logo-image {
        height: 35px;
    }

    .contact-info {
        font-size: 11px;
        gap: 6px;
        order: 2; /* 联系信息放在最下方 */
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 10px;
    }

    .contact-info .gtranslate_wrapper {
        position: fixed;
        top: 10px;
        right: 15px;
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 120px !important;
        z-index: 1001;
    }

    .gt_switcher {
        max-width: 120px !important;
        min-width: 110px !important;
        font-size: 11px !important;
        width: 100% !important;
    }

    .header-bottom {
        padding: 15px 0;
        gap: 20px;
        flex-direction: column;
        align-items: center;
        position: relative;
        overflow: visible;
        z-index: 1000;
    }

    .nav .nav-list {
        gap: 25px;
        flex-wrap: wrap;
        justify-content: center;
        position: relative;
        overflow: visible;
        z-index: 1000;
    }

    .nav .nav-list li {
        font-size: 14px;
    }

    /* 移动端nav-item定位 */
    .nav-item.has-sub {
        position: relative !important;
        z-index: 1001;
    }

    /* 移动端禁用hover效果 */
    .nav-item:hover .sub-menu,
    .nav-item:first-child:hover .side-menu {
        display: none !important;
    }

    /* 移动端禁用二级菜单的hover效果 */
    .nav-imageitem:hover {
        background: transparent !important;
    }

    /* 移动端二级菜单项激活状态 */
    .nav-imageitem.active {
        background: #f0f0f0 !important;
        border-radius: 5px;
    }

    /* 移动端下拉菜单样式 - 更紧凑，不占满屏幕 */
    .nav-item.has-sub .sub-menu,
    .nav-item.has-sub .side-menu {
        position: fixed !important;
        display: none !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 30px) !important;
        max-width: 400px !important;
        min-width: 280px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        padding: 12px !important;
        background: #fff !important;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1002 !important;
    }

    /* 为第一个菜单项（PRODUCTS）特殊处理 */
    .nav-item:first-child.has-sub .side-menu {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 30px) !important;
        max-width: 400px !important;
        min-width: 280px !important;
    }

    .nav-item.has-sub.mobile-open .sub-menu,
    .nav-item.has-sub .sub-menu.mobile-show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        top: 20% !important;
        transform: translate(-50%, -50%) !important;
    }

    .nav-item.has-sub.mobile-open .side-menu,
    .nav-item.has-sub .side-menu.mobile-show {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        top: 20% !important;
        transform: translate(-50%, -50%) !important;
    }

    .nav-item:first-child .side-menu {
        flex-direction: column !important;
        min-width: auto !important;
        min-height: 300px !important; /* 确保菜单有统一的最小高度 */
        padding: 12px !important;
        display: none !important;
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .nav-item:first-child.mobile-open .side-menu,
    .nav-item:first-child .side-menu.mobile-show {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .nav-item:first-child .side-menu .sub-left {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .nav-item:first-child .side-menu .sub-right {
        width: 100% !important;
        margin-left: 0 !important;
        min-height: 200px !important; /* 确保所有三级菜单有统一的最小高度 */
        display: none !important; /* 默认隐藏 */
        box-sizing: border-box;
        position: relative !important; /* 确保相对定位，不影响父容器 */
    }

    /* 移动端显示菜单时，第一个三级菜单默认显示 */
    .nav-item:first-child .side-menu.mobile-show .sub-right:first-of-type {
        display: block !important;
    }

    /* 移动端显示的三级菜单 */
    .nav-item:first-child.mobile-open .side-menu .sub-right.mobile-show,
    .nav-item:first-child .side-menu.mobile-show .sub-right.mobile-show {
        display: block !important;
    }

    .sub-right-content {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: flex-start !important;
        min-height: 150px !important; /* 确保内容区域有统一的最小高度 */
    }

    .nav-imageitem {
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 8px 0 !important;
    }

    .nav-imageitem img {
        width: 50px !important;
        flex-shrink: 0;
    }

    .nav-imageitem span {
        font-size: 12px !important;
    }

    .nav-image-content {
        width: auto;
        min-width: 80px;
        max-width: 100px;
    }

    .nav-image-content img {
        width: 100% !important;
        max-width: 150px !important;
    }

    /* 隐藏搜索框在小屏幕上 */
    .form-inline {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 200px !important; /* 手机设备上增加上边距，确保内容不被遮挡 */
    }

    .header-top {
        flex-direction: column;
        gap: 8px;
        padding: 10px 0;
        position: relative;
    }

    .logo {
        order: 0;
        align-self: center;
        margin: 0 auto;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 90px 0 10px; /* 右边留出空间给多语言选择器 */
    }

    .logo-image {
        height: 30px;
    }

    .contact-info {
        font-size: 10px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        order: 2; /* 联系信息放在最下方 */
        width: 100%;
        padding: 0 10px;
    }

    .contact-info .gtranslate_wrapper {
        position: fixed;
        top: 10px;
        right: 10px;
        margin-right: 0 !important;
        margin-left: 0 !important;
        width: 100px !important;
        z-index: 1001;
    }

    .gt_switcher {
        max-width: 100px !important;
        min-width: 90px !important;
        font-size: 10px !important;
        width: 100% !important;
    }

    .nav .nav-list {
        gap: 15px; /* 减小导航项间距 */
    }

    .nav .nav-list li {
        font-size: 13px; /* 调整字体大小 */
    }

    /* 移动端下拉菜单样式 - 480px */
    .nav-item.has-sub .sub-menu,
    .nav-item.has-sub .side-menu {
        padding: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: 350px !important;
    }

    .nav-item:first-child .side-menu {
        padding: 10px !important;
    }

    .nav-item:first-child .side-menu .sub-left {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }

    .nav-imageitem {
        padding: 6px 0 !important;
    }

    .nav-imageitem img {
        width: 40px !important;
    }

    .nav-imageitem span {
        font-size: 11px !important;
    }

    .nav-image-content {
        min-width: 70px;
        max-width: 90px;
    }
}

.header-bottom {
    display: flex;
    justify-content:space-between;
    align-items: center;
    padding: 15px 0;
    gap: 140px;
}

.nav .nav-list {
    display: flex;
    list-style: none;
    gap: 70px;
}

.nav-item {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 120px;
    max-width: fit-content;
    width: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 999;
    padding: 10px 0;
    white-space: nowrap;
}

.nav-item:hover .sub-menu {
    display: block;
}

/* PRODUCTS下拉菜单悬停显示 */
.nav-item:first-child:hover .side-menu {
    display: flex !important;
}

/* PRODUCTS下拉菜单特殊样式 */
.nav-item:first-child .side-menu {
    display: none; /* 默认隐藏 */
    min-width: 920px;
    background: transparent;
    box-shadow: none;
    padding: 20px;
    border-radius: 0;
    left: 0;
    transform: none;
    background: #f0f0f0;
    text-align: left;
    flex-direction: row;
}
.sub-left{
    width: 28%;
    border-right: 1px solid #e0e0e0;
}


.nav-item:first-child .side-menu a {
    text-align: left !important;
}

/* 移除PRODUCTS下拉菜单中链接的hover效果 */
.nav-item:first-child .side-menu a:hover {
    background: transparent !important;
    color: #222 !important;
    font-weight: normal !important;
}
.sub-menu .nav-imageitem{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}
.nav-imageitem img{
    width: 80px;
}
.sub-menu li {
    padding: 0 10px;
}
.sub-right-content{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.nav-image-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 右侧产品列表的样式 */
.nav-image-content a {
    display: flex ;
    flex-direction: column ;
    align-items: center ;
    gap: 10px ;
    text-decoration: none ;
    color: inherit ;
    max-width: 120px ;
}

.nav-image-content img {
    width: 120px ;
    display: block ;
}

.nav-image-content span {
    display: block ;
    text-align: center ;
    max-width: 120px ;
    overflow: visible ;
    white-space: normal ;
    word-wrap: break-word ;
    word-break: break-word ;
    font-size: 12px ;
    line-height: 1.2 ;
    margin-top: 20px;
}
/* 控制nav-imageitem中链接的样式 */
.nav-imageitem a {
    display: flex  !important;
    flex-direction: row ;
    align-items: center ;
    gap: 20px ;
    text-decoration: none ;
    color: inherit ;
    max-width: 200px ;
}
.nav-imageitem img {
    width: 80px ;
    display: block ;
    flex-shrink: 0 ;
}
.nav-imageitem span {
    display: block ;
    text-align: left ;
    max-width: 120px ;
    overflow: hidden ;
    text-overflow: ellipsis ;
    white-space: nowrap ;
    font-size: 14px ;
    font-weight: bold ;
}
.sub-menu a {
    color: #222;
    font-size: 16px;
    display: block;
    padding: 8px 12px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 5px;
    white-space: nowrap;
}

.sub-menu a.active,
.sub-menu a:hover {
    color: #e74c3c;
    font-weight: bold;
    background: #f0f0f0;
}

.nav a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    position: relative;
    /* padding: 8px 16px; */
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #e74c3c;
    /* background: #f0f0f0; */
}


.nav a.active {
    color: #333;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    padding: 6px 12px;
    border: 1px solid #666;
    border-radius: 5px;
    font-size: 14px;
    width: 200px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    height: 32px;
}

.search-bar input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
}

.search-bar i {
    color: #000;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.search-bar i:hover {
    color: #e74c3c;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .contact-info {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 11px;
    }

    .contact-info img {
        width: 12px;
        height: 12px;
    }

    .language-icon {
        width: 12px;
        height: 12px;
    }

    .language-dropdown {
        min-width: 70px;
    }

    .lang-option {
        font-size: 11px;
        padding: 6px 12px;
    }

    .header-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .nav ul {
        gap: 20px !important;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-bar input {
        width: 100%;
        max-width: 300px;
    }

    .logo-image {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .contact-info {
        gap: 8px;
        font-size: 10px;
    }

    .contact-info img {
        width: 10px;
        height: 10px;
    }

    .language-icon {
        width: 10px;
        height: 10px;
    }

    .language-dropdown {
        min-width: 60px;
    }

    .lang-option {
        font-size: 10px;
        padding: 5px 10px;
    }

    .nav ul {
        gap: 15px;
    }

    .nav a {
        font-size: 14px;
    }

    .logo-image {
        height: 30px;
    }
}

/* 页脚样式 */
.footer {
    background: #FFF;
    padding: 50px 0 0 0;
    /* margin-top: auto; 由flex布局控制 */
    position: static; /* 取消sticky，防止遮挡内容 */
    bottom: 0;
    width: 100%;

}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding-bottom: 30px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #e74c3c;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.linkedin {
    background: #0077b5;
}

.footer-logo-image {
    height: 40px;
    width: auto;
    max-width: 180px;
    margin-bottom: 15px;
}

.contact-details p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
}

.security-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 12px;
    color: #6c757d;
}

.security-icon {
    font-size: 14px;
}

.security-text {
    font-weight: 500;
}

/* 页脚响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-column {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        display: none;
    }

    .contact-column {
        grid-column: span 1;
    }

    .footer {
        padding: 30px 0 0 0;
    }
}

/* 轮播图样式 */
.carousel-section {
    height: 500px;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 主内容区域样式 */
index .main-content {
    min-height: 60vh;
    background: #f8f9fa;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

/* 内容卡片样式 */
.content-card {
    background: #fff;
    padding: 80px;
    display: flex;
    gap: 80px;
    align-items: center;
    min-height: 500px; /* 改为min-height，允许内容超出 */
    height: auto; /* 高度自适应 */
    width: 100%;
}

.card-text {
    flex: 3;
}

.card-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.card-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e74c3c;
    margin: 25px 0 15px 0;
}

.card-text p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.card-text ul {
    list-style: none;
    padding: 0;
}

.card-text ul li {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.card-image {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.therapy-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 图片上的span标签绝对定位到左下角 */


/* 响应式设计 */
@media (max-width: 768px) {
    .content-card {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
        min-height: auto; /* 移动端高度自适应 */
        height: auto; /* 移除固定高度 */
    }

    .card-text h2 {
        font-size: 1.5rem;
    }

    .card-text h3 {
        font-size: 1.1rem;
    }
}

.side-menu {
    /* 竖向排列的二级菜单样式 */
    list-style: none;
    padding: 20px 0;
    margin: 0;
    background: #f7f8fa;
    border-radius: 10px;
    width: 80px;
    text-align: center;
}
.side-menu li {
    margin: 10px 0;
}
.side-menu a {
    display: block;
    color: #222;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.side-menu a.active,
.side-menu a:hover {
    color: #e74c3c;
    font-weight: bold;
    background: #fff;
}
.search-icon{
    width: 20px;
    height: 20px;
}

.gt_switcher_wrapper{
    position:fixed !important;
    right: inherit !important;
}
