﻿/* ========== 国际化优化基础样式 ========== */
.lain-color {
    color: #105E8C;
}

.lain-bg-blue {
    background-color: #105E8C;
    color: #FFFFFF;
}

.font-size-21 {
    font-size: 21px !important;
}

.font-size-30 {
    font-size: 30px !important;
}

.font-size-25 {
    font-size: 25px !important;
}

.font-size-16 {
    font-size: 16px !important;
    transform: none !important;
}

.font-size-44 {
    font-size: 44px !important;
}


.font-weight-bold {
    font-weight: bold;
}

.mbox-search-btn .icon-sousuotubiao {
    color: #242424;
}

/* 全局文字处理和字体优化 */
.ph-header,
.mobile-header {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
}

/* 文字方向支持（RTL语言） */
.ph-header[dir="rtl"],
.mobile-header[dir="rtl"] {
    direction: rtl;
}

.ph-header[dir="rtl"] .ph-content-wrapper,
.mobile-header[dir="rtl"] .mbox-header-content {
    direction: rtl;
}

/* 主头部容器 */
.ph-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    color: #141317;
}

/* 顶部蓝色栏 - 优化国际化 */
.ph-top-bar {
    width: 100%;
    min-height: 29px; /* 改为最小高度，允许内容撑开 */
    background-color: #105E8C;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px; /* 增加内边距 */
    box-sizing: border-box;
}

/* 品牌标语 - 国际化优化 */
.ph-brand-slogan {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 15px); /* 响应式间距 */
    color: #FFFFFF;
    flex-wrap: wrap; /* 允许换行 */
    justify-content: center;
    max-width: 100%;
    text-align: center;
}

.ph-slogan-left {
    color: #FFFFFF;
    font-size: clamp(14px, 2.5vw, 16px); /* 响应式字体 */
    line-height: 1.3; /* 改善行高 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 1;
}

.ph-slogan-divider {
    width: 1px;
    height: 15px;
    background-color: #FFFFFF;
    flex-shrink: 0;
    display: none; /* 默认隐藏，在桌面端显示 */
}

.ph-slogan-right {
    color: #FFFFFF;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex-shrink: 1;
}

/* 桌面端显示分隔线 */
@media screen and (min-width: 769px) {
    .ph-slogan-divider {
        display: block;
    }
}

/* 主头部区域优化 */
.ph-main-header {
    width: 100%;
    min-height: 116px; /* 改为最小高度 */
    display: flex;
    flex-direction: column;
}

.ph-content-wrapper {
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center; /* 改为居中对齐 */
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
    flex-wrap: wrap; /* 允许换行 */
    position: relative; /* 添加相对定位 */
}

/* 品牌区域优化 */
.ph-brand-section {
    display: flex;
    justify-content: center; /* 改为居中对齐 */
    align-items: center;
    min-width: 0; /* 防止flex收缩问题 */
    flex: 1; /* 改为占据剩余空间 */
    text-align: center; /* 确保内容居中 */
}

.ph-brand-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ph-brand-logo a {
    display: flex;
    align-items: center;
}

/* 工具区域优化 */
.ph-tools-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex: 0 1 auto;
    position: absolute; /* 改为绝对定位 */
    right: 20px; /* 固定在右侧 */
}

.ph-tools-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(6px, 1.5vw, 12px); /* 响应式间距 */
    flex-wrap: wrap; /* 允许换行 */
}

/* 社交媒体区域优化 */
.ph-social {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex-shrink: 1;
}

.ph-social-icon {
    width: 28px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ph-social-text {
    font-size: clamp(13px, 2vw, 15px);
    line-height: 1.4;
    white-space: nowrap; /* 防止链接文字换行 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-social-text a {
    color: inherit;
    text-decoration: none;
}


.ph-language:hover {
    background-color: rgba(16, 94, 140, 0.1);
}

.ph-language-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ph-language-text {
    font-size: clamp(13px, 2vw, 15px);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
}

/* 社交图标组优化 */
.ph-social-icons {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1vw, 8px);
    flex-shrink: 0;
}

.ph-social-icons .ph-icon {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ph-social-icons .ph-icon:hover {
    transform: scale(1.1);
}

.ph-social-icons .ph-icon:nth-child(1) {
    min-width: 25px;
}

.ph-social-icons .ph-icon:nth-child(2) {
    min-width: 18px;
}

.ph-social-icons .ph-icon:nth-child(3) {
    min-width: 19px;
}

.ph-social-icons .ph-icon:nth-child(4) {
    min-width: 16px;
}

/* 导航菜单优化 */
.ph-navigation {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ph-nav-menu {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* 改为居中对齐 */
    gap: clamp(10px, 3vw, 30px); /* 使用响应式间距 */
    flex-wrap: wrap; /* 允许换行 */
    padding: 10px 10px 10px 0; /* 为右侧悬浮元素预留空间 */
    position: relative; /* 为绝对定位的子元素提供参考 */
    box-sizing: border-box;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 导航项图标控制 - 默认隐藏所有icon-active */
.ph-nav-menu .icon-active {
    display: none;
}

/* 只有active状态下的导航项才显示icon-active */
.ph-nav-menu .ph-nav-item.active .icon-active {
    display: inline-block;
}

.ph-nav-item {
    padding: 10px clamp(8px, 2vw, 15px);
    color: #000;
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap; /* 导航项不换行 */
    text-align: center;
    min-width: 0;
}

.ph-nav-item:hover {
    background-color: rgba(16, 94, 140, 0.1);
    transform: translateY(-1px);
}

.ph-nav-item.active {
    color: #105E8C;
    font-weight: 600;
}

.ph-nav-item a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* 语言选择区域 - 悬浮在右侧 */
.ph-language {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-width: 0;
    flex-shrink: 0;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    
    /* 悬浮在右侧 */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
}

.ph-language:hover {
    background-color: rgba(16, 94, 140, 0.1);
}

.ph-language-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ph-language-text {
    font-size: clamp(13px, 2vw, 15px);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
}

/* 当空间不足时，取消悬浮，正常换行显示 */
@media screen and (max-width: 1100px) {
    .ph-nav-menu {
        padding: 10px 0; /* 移除右侧预留空间 */
        justify-content: center;
    }
    
    .ph-language {
        position: static; /* 取消绝对定位 */
        transform: none; /* 移除变换 */
        background-color: transparent; /* 移除背景 */
        backdrop-filter: none; /* 移除模糊效果 */
        border: none; /* 移除边框 */
        order: 999; /* 确保在最后显示，实现换行效果 */
    }
    
    .ph-language:hover {
        background-color: rgba(16, 94, 140, 0.1);
    }
}

/* 中等屏幕进一步优化换行显示 */
@media screen and (max-width: 900px) {
    .ph-nav-menu {
        gap: 15px;
    }
    

}

/* 小屏幕桌面优化 */
@media screen and (max-width: 820px) {
    .ph-nav-menu {
        gap: 10px;
        padding: 15px 0;
    }
    
    .ph-nav-item {
        padding: 8px 12px;
        font-size: 14px;
    }

}

/* ========== 广告弹出窗轮播图样式 ========== */

/* 广告弹出窗基础样式 */
.ad-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001; /* 比语言弹窗更高 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.ad-popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.ad-popup-modal.hidden {
    display: none;
}

/* 广告弹出窗遮罩层 */
.ad-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* 广告弹出窗内容容器 */
.ad-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: adModalSlideIn 0.4s ease-out;
}

@keyframes adModalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
        scale: 0.9;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
        scale: 1;
    }
}

/* 广告弹出窗头部 */
.ad-modal-header {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ad-modal-close {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.ad-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 广告弹出窗主体 */
.ad-modal-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 轮播图容器 */
.ad-carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ad-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ad-carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.ad-carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ad-carousel-slide img:hover {
    transform: scale(1.02);
}

/* 无广告内容状态 */
.ad-carousel-slide.ad-no-content {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.ad-no-content-message {
    color: #666;
    font-size: 18px;
    text-align: center;
    padding: 40px 20px;
}

/* 轮播图指示器 */
.ad-carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    gap: 8px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.ad-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(16, 94, 140, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad-carousel-indicator.active {
    background-color: #105E8C;
    transform: scale(1.2);
}

.ad-carousel-indicator:hover {
    background-color: #105E8C;
    transform: scale(1.1);
}

/* 轮播图控制按钮 */
.ad-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    padding: 0 20px;
}

.ad-carousel-prev,
.ad-carousel-next {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.ad-carousel-prev:hover,
.ad-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.ad-carousel-prev:active,
.ad-carousel-next:active {
    transform: scale(0.95);
}

/* 移动端优化 */
@media screen and (max-width: 768px) {
    .ad-modal-content {
        width: 300px;
        max-height: 85vh;
    }
    
    .ad-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
    
    .ad-carousel-wrapper {
    }
    
    .ad-carousel-slide img {
    }
    
    .ad-carousel-controls {
        padding: 0 15px;
    }
    
    .ad-carousel-prev,
    .ad-carousel-next {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    
    .ad-carousel-indicators {
        padding: 12px 0;
        gap: 6px;
    }
    
    .ad-carousel-indicator {
        width: 8px;
        height: 8px;
    }
}

@media screen and (max-width: 480px) {
    .ad-modal-content {
        width: 300px;
        max-height: 80vh;
    }
    
    .ad-carousel-wrapper {
    }
    
    .ad-carousel-slide img {
    }
    
    .ad-carousel-controls {
        padding: 0 10px;
    }
    
    .ad-carousel-prev,
    .ad-carousel-next {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    
    .ad-carousel-indicators {
        padding: 10px 0;
        gap: 5px;
    }
}

/* 防止页面滚动 */
body.ad-modal-open {
    overflow: hidden;
}

/* 加载动画 */
.ad-carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    color: #105E8C;
}

.ad-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(16, 94, 140, 0.2);
    border-top: 3px solid #105E8C;
    border-radius: 50%;
    animation: adSpinning 1s linear infinite;
}

@keyframes adSpinning {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ad-loading-text {
    font-size: 14px;
    color: #666;
}

/* 自动播放暂停指示器 */
.ad-carousel-pause-indicator {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-carousel-pause-indicator.show {
    opacity: 1;
}

/* ========== 语言国家选择弹出窗样式 ========== */

/* 模态框基础样式 */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.language-modal.show {
    opacity: 1;
    visibility: visible;
}

.language-modal.hidden {
    display: none;
}

/* 模态框遮罩层 */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* 模态框内容容器 */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 模态框头部 */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #105E8C;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    color: #6B7280;
    font-size: 20px;
}

.modal-close:hover {
    background-color: #F3F4F6;
    color: #374151;
}

/* 模态框主体 */
.modal-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 选择区域样式 */
.language-selection,
.country-selection {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selection-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* 自定义选择器样式 */
.select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    display: none; /* 隐藏原生select */
}

.select-display {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    box-sizing: border-box;
}

.select-display:hover {
    border-color: #105E8C;
}

.select-display:focus {
    outline: none;
    border-color: #105E8C;
    box-shadow: 0 0 0 3px rgba(16, 94, 140, 0.1);
}

.select-arrow {
    font-size: 14px;
    color: #6B7280;
    transition: transform 0.3s ease;
}

.select-wrapper.open .select-arrow {
    transform: rotate(180deg);
}

/* 下拉菜单样式 */
.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    border: 2px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 搜索框样式 */
.search-box {
    padding: 12px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #105E8C;
    box-shadow: 0 0 0 2px rgba(16, 94, 140, 0.1);
}

.search-input::placeholder {
    color: #9CA3AF;
}

/* 选项列表样式 */
.options-list {
    flex: 1;
    overflow-y: auto;
    max-height: 180px;
}

.option-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F3F4F6;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item:hover {
    background-color: #F3F4F6;
}

.option-item.selected {
    background-color: #105E8C;
    color: #ffffff;
    font-weight: 500;
}

.option-item.selected:hover {
    background-color: #0d4d73;
}

/* 模态框底部 */
.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #E5E7EB;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel {
    background-color: #F3F4F6;
    color: #374151;
}

.btn-cancel:hover {
    background-color: #E5E7EB;
    color: #1F2937;
}

.btn-confirm {
    background-color: #105E8C;
    color: #ffffff;
}

.btn-confirm:hover {
    background-color: #0d4d73;
    transform: translateY(-1px);
}

/* 响应式优化 */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 20px;
        gap: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        width: 98%;
        border-radius: 6px;
    }
    
    .modal-header {
        padding: 12px 16px;
    }
    
    .modal-body {
        padding: 16px;
        gap: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    .select-display {
        padding: 10px 12px;
        font-size: 15px;
        min-height: 44px;
    }
    
    .option-item {
        padding: 10px 12px;
        font-size: 15px;
    }
    
    .search-input {
        padding: 8px 10px;
        font-size: 15px;
    }
}

/* 滚动条美化 */
.options-list::-webkit-scrollbar {
    width: 6px;
}

.options-list::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.options-list::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

.options-list::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* 防止页面滚动 */
body.modal-open {
    overflow: hidden;
}

/* 工具样式优化 */
.ph-divider {
    width: 1px;
    height: 15px;
    background-color: #282828;
    flex-shrink: 0;
}

/* ========== 移动端样式优化 ========== */

.page {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%; /* 确保页面容器使用全宽 */
}

/* 移动端容器基础设置 */
.mobile-header {
    width: 100%; /* 使用全宽 */
    max-width: 100vw; /* 确保不超出屏幕 */
}

/* 重置和基础样式 */
.mbox-input {
    background-color: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    font-size: clamp(12px, 3vw, 16px);
    outline: none;
    font-family: inherit;
}

/* 搜索框输入控件优化 */
.mbox-search-input {
    width: 100%;
    height: 47px;
    position: absolute;
    padding-left: 20px;
    padding-right: 10px;
    box-sizing: border-box;
    font-size: clamp(12px, 3vw, 14px);
}

.mbox-search-input::placeholder {
    color: #999;
    font-size: inherit;
}

/* 搜索按钮控件 */
.mbox-search-btn {
    width: 66px;
    height: 47px;
    position: absolute;
}

/* 搜索图标控件 */
.mbox-search-icon {
    width: 22px;
    height: 22px;
}

/* 主容器优化 - 添加响应式宽度 */
.mbox-header {
    --gradient-white-position: 70px;
    width: 100%; /* 改为100%以充分利用屏幕宽度 */
    max-width: 100vw; /* 确保不超出屏幕 */
    height: auto; /* 改为自动高度 */
    background: linear-gradient(to bottom, #66BDE0 0%, #FFFFFF var(--gradient-white-position));
    padding: 36px 18px 20px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
}

/* 中等移动端屏幕优化 (641px - 768px) */
@media screen and (min-width: 641px) and (max-width: 768px) {
    .mbox-header {
        width: 100%; /* 使用全屏宽度 */
        padding: 36px 24px 20px; /* 增加左右padding */
    }
    
    /* 顶部区域在中等屏幕的优化 */
    .mbox-header-top {
        gap: 15px; /* 增加间距 */
        min-height: 60px; /* 增加高度 */
    }
    
    /* Logo在中等屏幕的优化 */
    .mbox-logo {
        min-width: 100px; /* 增加Logo宽度 */
        height: 60px;
    }
    
    .mbox-logo img {
        width: 100px;
        height: 24px; /* 恢复原始比例 */
    }
    
    /* 搜索区域在中等屏幕的优化 */
    .mbox-search {
        flex: 1; /* 使用flex-grow让搜索框充分利用空间 */
        min-width: 320px; /* 增加搜索框宽度 */
        max-width: 500px; /* 设置最大宽度 */
        height: 60px;
        padding-left: 8px;
    }
    
    /* 搜索框容器在中等屏幕的优化 */
    .mbox-search-box {
        width: 100%; /* 确保搜索框容器使用全宽 */
        height: 52px; /* 增加搜索框高度 */
        border-radius: 15px;
    }
    
    .mbox-search-input-area {
        height: 52px;
    }
    
    .mbox-search-input {
        height: 52px;
        padding-left: 24px; /* 增加左内边距 */
        font-size: 15px; /* 增加字体大小 */
    }
    
    .mbox-search-divider {
        height: 38px; /* 增加分隔线高度 */
    }
    
    .mbox-search-btn-area {
        width: 75px; /* 增加按钮宽度 */
        height: 52px;
        border-radius: 0 15px 15px 0;
    }
    
    .mbox-search-icon {
        width: 26px;
        height: 26px;
    }
    
    /* 语言选择在中等屏幕的优化 */
    .mbox-lang {
        min-width: 70px; /* 增加宽度 */
        height: 60px;
        margin-left: 15px; /* 增加左边距 */
        padding: 6px;
    }
    
    .mbox-lang-icon {
        width: 34px;
        height: 34px;
        margin: 4px auto 0;
    }
    
    .mbox-lang-text {
        font-size: 16px; /* 增加字体大小 */
        line-height: 1.3;
    }
    
    /* 导航区域在中等屏幕的优化 */
    .mbox-nav {
        min-height: 42px; /* 增加导航高度 */
    }
    
    .mbox-nav-item {
        min-height: 42px;
        padding: 10px 16px; /* 增加内边距 */
    }
    
    .mbox-nav-text {
        font-size: 18px; /* 增加字体大小 */
    }
    
    /* 底部导航在中等屏幕的优化 - 继承基础样式 */
    
    .mbox-bottom-nav-item {
        padding: 14px 10px;
        margin: 6px;
    }
    
    .mbox-bottom-nav-icon {
        width: 38px;
        height: 38px;
    }
    
    .mbox-bottom-nav-text {
        font-size: 17px; /* 增加字体大小 */
    }
}

/* 小屏幕下调整容器padding */
@media screen and (max-width: 430px) {
    .mbox-header {
        padding: 36px 12px 20px; /* 减少左右padding */
        width: 100vw; /* 使用全屏宽度 */
    }
}

/* 头部内容区域优化 */
.mbox-header-content {
    width: 100%;
    height: auto; /* 改为自动高度 */
    min-height: 105px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* 顶部区域优化 - 针对小屏幕调整 */
.mbox-header-top {
    width: 100%;
    height: auto; /* 改为自动高度 */
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px; /* 减少间距 */
    flex-wrap: wrap;
}

/* 小屏幕下进一步优化顶部区域 */
@media screen and (max-width: 430px) {
    .mbox-header-top {
        gap: 6px; /* 进一步减少间距 */
    }
}

/* Logo区域优化 - 在小屏幕下缩小 */
.mbox-logo {
    min-width: 70px; /* 减少最小宽度 */
    height: 55px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mbox-logo img {
    width: 70px; /* 减少Logo宽度 */
    height: 17px; /* 相应调整高度 */
    object-fit: contain;
}

/* 小屏幕下进一步缩小Logo */
@media screen and (max-width: 430px) {
    .mbox-logo {
        min-width: 60px;
    }
    
    .mbox-logo img {
        width: 60px;
        height: 15px;
    }
}

/* 搜索区域优化 - 大幅减少最小宽度 */
.mbox-search {
    flex: 1;
    min-width: 180px; /* 大幅减少最小宽度 */
    max-width: 414px;
    height: 55px;
    display: flex;
    align-items: center;
    padding-left: 4px; /* 减少左边距 */
}

/* 小屏幕下进一步优化搜索区域 */
@media screen and (max-width: 430px) {
    .mbox-search {
        min-width: 150px; /* 进一步减少最小宽度 */
        padding-left: 2px;
    }
}

/* 搜索框容器优化 */
.mbox-search-box {
    width: 100%;
    max-width: 405px;
    height: 47px;
    background-color: #ffffff;
    border: 1px solid #B7DCF1;
    border-radius: 13px;
    display: flex;
    align-items: center;
    position: relative;
    transition: border-color 0.3s ease;
}

.mbox-search-box:focus-within {
    border-color: #105E8C;
    box-shadow: 0 0 0 2px rgba(16, 94, 140, 0.1);
}

/* 搜索输入区域优化 */
.mbox-search-input-area {
    flex: 1;
    height: 47px;
    position: relative;
    min-width: 0;
}

/* 搜索分隔线 */
.mbox-search-divider {
    width: 1px;
    height: 34px;
    background-color: #B3B3B3;
    flex-shrink: 0;
}

/* 搜索按钮区域 - 在小屏幕下缩小 */
.mbox-search-btn-area {
    width: 55px; /* 减少宽度 */
    height: 47px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0 13px 13px 0;
}

/* 小屏幕下进一步缩小搜索按钮 */
@media screen and (max-width: 430px) {
    .mbox-search-btn-area {
        width: 45px; /* 进一步减少宽度 */
    }
    
    .mbox-search-icon {
        width: 18px;
        height: 18px;
    }
}

.mbox-search-btn-area:hover {
    background-color: rgba(16, 94, 140, 0.05);
}

/* 语言选择区域优化 - 减少尺寸和间距 */
.mbox-lang {
    min-width: 50px; /* 减少最小宽度 */
    height: 55px;
    margin-left: 8px; /* 减少左边距 */
    text-align: center;
    cursor: pointer;
    padding: 2px; /* 减少内边距 */
    border-radius: 8px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

/* 小屏幕下进一步优化语言选择 */
@media screen and (max-width: 430px) {
    .mbox-lang {
        min-width: 45px;
        margin-left: 4px;
        padding: 1px;
    }
    
    .mbox-lang-icon {
        width: 24px;
        height: 24px;
        margin: 2px auto 0;
    }
    
    .mbox-lang-text {
        font-size: 11px;
        line-height: 1.2;
    }
}

.mbox-lang:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.mbox-lang-icon {
    width: 26px; /* 稍微减少尺寸 */
    height: 26px;
    margin: 3px auto 0; /* 调整边距 */
}

.mbox-lang-text {
    font-size: clamp(11px, 3vw, 14px); /* 调整字体大小范围 */
    color: #333;
    margin-top: 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 导航区域优化 - 水平滚动 */
.mbox-nav {
    width: 100%;
    height: auto; /* 改为自动高度 */
    min-height: 37px;
    display: flex;
    justify-content: flex-start; /* 改为左对齐 */
    align-items: center;
    flex-wrap: nowrap; /* 禁止换行 */
    overflow-x: auto; /* 启用水平滚动 */
    overflow-y: hidden; /* 隐藏垂直滚动 */
    scroll-behavior: smooth; /* 平滑滚动 */
    -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    scrollbar-width: none; /* Firefox隐藏滚动条 */
    -ms-overflow-style: none; /* IE隐藏滚动条 */
}

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

/* 导航项优化 - 水平滚动适配 */
.mbox-nav-item {
    height: auto; /* 改为自动高度 */
    min-height: 37px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0px 12px; /* 增加左右内边距 */
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: max-content; /* 确保内容不被压缩 */
    flex-shrink: 0; /* 防止收缩 */
    white-space: nowrap; /* 防止文字换行 */
}

.mbox-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.mbox-nav-item.active {
    background-color: rgba(16, 94, 140, 0.1);
}

.mbox-nav-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 3px;
    flex-shrink: 0;
}

.mbox-nav-text {
    color: #105E8C;
    font-size: clamp(14px, 3.5vw, 15px);
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.mbox-nav-item a {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 底部导航优化 - 响应式宽度 */
.mbox-bottom-nav {
    width: 100%; /* 改为100%以充分利用屏幕宽度 */
    max-width: 100vw; /* 确保不超出屏幕 */
    height: 48px; /* 改为自动高度 */
    display: flex;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* 小屏幕下调整底部导航 */
@media screen and (max-width: 430px) {
    .mbox-bottom-nav {
        width: 100vw;
    }
}

/* 底部导航项优化 */
.mbox-bottom-nav-item {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 8px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px;
    box-sizing: border-box;
}

/* 小屏幕下调整底部导航项 */
@media screen and (max-width: 430px) {
    .mbox-bottom-nav-item {
        padding: 10px 6px;
        margin: 2px;
    }
}

.mbox-bottom-nav-item:hover {
    background-color: rgba(16, 94, 140, 0.05);
    transform: translateY(-2px);
}

.mbox-bottom-nav-icon {
    height: 23px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px !important;
}

    /* 小屏幕下调整底部导航图标 - 继承基础样式 */
@media screen and (max-width: 430px) {
    /* 底部导航图标继承基础样式 */
}

.mbox-bottom-nav-item:hover .mbox-bottom-nav-icon {
    transform: scale(1.1);
}

.mbox-bottom-nav-text {
    color: #6A6A6A;
    font-size: clamp(12px, 3vw, 16px);
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: color 0.3s ease;
}

.mbox-bottom-nav-item:hover .mbox-bottom-nav-text {
    color: #105E8C;
}

/* 响应式优化 */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: min-height 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* 工具类 */
.mbox-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.mbox-hidden {
    display: none;
}

.mbox-visible {
    display: block;
}

.mbox-header-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mbox-bottom-nav-container {
    position: fixed;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ========== 响应式显示控制 ========== */

/* 桌面端显示控制 (屏幕宽度 >= 769px) */
@media screen and (min-width: 769px) {
    .desktop-header {
        display: flex;
    }
    
    .mobile-header {
        display: none;
    }
}

/* 移动端显示控制 (屏幕宽度 < 769px) */
@media screen and (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
}

/* ========== 小屏幕特殊优化 (375px及以下) ========== */
@media screen and (max-width: 375px) {
    /* 进一步优化容器 */
    .mbox-header {
        padding: 30px 8px 18px; /* 进一步减少padding */
        width: 100vw;
    }
    
    /* 顶部区域超小屏幕优化 */
    .mbox-header-top {
        gap: 4px; /* 最小间距 */
        min-height: 50px; /* 减少最小高度 */
    }
    
    /* Logo超小屏幕优化 */
    .mbox-logo {
        min-width: 55px;
        height: 50px;
    }
    
    .mbox-logo img {
        width: 55px;
        height: 14px;
    }
    
    /* 搜索区域超小屏幕优化 */
    .mbox-search {
        min-width: 130px; /* 进一步减少 */
        height: 50px;
        padding-left: 1px;
    }
    
    .mbox-search-box {
        height: 42px; /* 减少高度 */
        border-radius: 11px;
    }
    
    .mbox-search-input-area {
        height: 42px;
    }
    
    .mbox-search-input {
        height: 42px;
        padding-left: 15px; /* 减少左内边距 */
        font-size: 12px;
    }
    
    .mbox-search-divider {
        height: 28px; /* 减少分隔线高度 */
    }
    
    .mbox-search-btn-area {
        width: 40px; /* 最小按钮宽度 */
        height: 42px;
        border-radius: 0 11px 11px 0;
    }
    
    .mbox-search-icon {
        width: 16px;
        height: 16px;
    }
    
    /* 语言选择超小屏幕优化 */
    .mbox-lang {
        min-width: 40px;
        height: 50px;
        margin-left: 2px;
        padding: 1px;
    }
    
    .mbox-lang-icon {
        width: 20px;
        height: 20px;
        margin: 1px auto 0;
    }
    
    .mbox-lang-text {
        font-size: 10px;
        line-height: 1.1;
    }
    
    /* 导航区域超小屏幕优化 */
    .mbox-nav {
        min-height: 32px;
    }
    
    .mbox-nav-item {
        min-height: 32px;
        padding: 6px 8px;
    }
    
    .mbox-nav-text {
        font-size: 11px;
    }
    
    /* 底部导航超小屏幕优化 - 继承基础样式 */
    
    .mbox-bottom-nav-item {
        padding: 8px 4px;
        margin: 1px;
    }
    
    /* 底部导航图标继承基础样式 */
    
    .mbox-bottom-nav-text {
        font-size: 11px;
    }
}

/* ========== 超小屏幕优化 (320px及以下) ========== */
@media screen and (max-width: 320px) {
    /* 容器最小化 */
    .mbox-header {
        padding: 55px 6px 15px;
    }
    
    /* 顶部区域最小化 */
    .mbox-header-top {
        gap: 2px;
        min-height: 45px;
    }
    
    /* Logo最小化 */
    .mbox-logo {
        min-width: 50px;
        height: 45px;
    }
    
    .mbox-logo img {
        width: 50px;
        height: 12px;
    }
    
    /* 搜索区域最小化 */
    .mbox-search {
        min-width: 120px;
        height: 45px;
        padding-left: 0;
    }
    
    .mbox-search-box {
        height: 38px;
        border-radius: 10px;
    }
    
    .mbox-search-input-area {
        height: 38px;
    }
    
    .mbox-search-input {
        height: 38px;
        padding-left: 12px;
        font-size: 11px;
    }
    
    .mbox-search-btn-area {
        width: 35px;
        height: 38px;
        border-radius: 0 10px 10px 0;
    }
    
    .mbox-search-icon {
        width: 14px;
        height: 14px;
    }
    
    /* 语言选择最小化 */
    .mbox-lang {
        min-width: 35px;
        height: 45px;
        margin-left: 1px;
    }
    
    .mbox-lang-icon {
        width: 18px;
        height: 18px;
    }
    
    .mbox-lang-text {
        font-size: 9px;
    }
    
    /* 导航最小化 */
    .mbox-nav {
        min-height: 28px;
    }
    
    .mbox-nav-item {
        min-height: 28px;
        padding: 4px 6px;
    }
    
    .mbox-nav-text {
        font-size: 12px;
    }
    
    /* 底部导航最小化 - 继承基础样式 */
    
    .mbox-bottom-nav-item {
        padding: 6px 2px;
    }
    
    /* 底部导航图标继承基础样式 */
    
    .mbox-bottom-nav-text {
        font-size: 10px;
    }
}

/* 大屏幕优化 (屏幕宽度 >= 1200px) */
@media screen and (min-width: 1200px) {
    .ph-content-wrapper {
        padding: 20px;
        position: relative; /* 确保相对定位 */
    }
    
    .ph-tools-section {
        position: absolute; /* 保持绝对定位 */
    }
    
    .ph-brand-section {
        flex: 1; /* 确保占据剩余空间 */
        justify-content: center; /* 确保居中对齐 */
    }
    
    
    .ph-language {
        padding: 10px 20px; /* 在大屏幕上增加内边距 */
        font-size: 16px;
    }
}

/* 中等屏幕优化 (769px - 1199px) */
@media screen and (min-width: 769px) and (max-width: 1199px) {
    .ph-content-wrapper {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .ph-brand-section {
        flex: 1 1 auto;
        min-width: 200px;
    }
    
    .ph-tools-section {
        flex: 0 1 auto;
    }
    
    .ph-tools-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ph-nav-menu {
        gap: 15px;
        flex-wrap: wrap;
    }
}

/* 小屏幕桌面优化 (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .modal-content {
        width: 85%;
        max-width: 450px;
    }
}

/* 超大屏幕优化 (屏幕宽度 >= 1600px) */
@media screen and (min-width: 1600px) {
    /* 内容包装器继承基础样式 */
    
    .ph-tools-section {
        right: 40px; /* 调整右侧距离以匹配容器的padding */
    }
    
    
    .ph-brand-slogan {
        gap: 20px;
    }
    
    .ph-slogan-left,
    .ph-slogan-right {
        font-size: 18px;
    }
    
    .ph-nav-menu {
        gap: 40px;
        padding: 10px 10px 10px 0; /* 在超大屏幕上进一步增加右侧预留空间 */
    }
    
    .ph-nav-item {
        font-size: 18px;
        padding: 12px 20px;
    }
}

/* ========== 动态冲突检测样式 ========== */

/* 当检测到冲突时，强制ph-language使用非悬浮状态 */
.nav-conflict-detected .ph-language {
    position: static !important;
    transform: none !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    order: 999 !important;
    margin-left: 10px;
}

.nav-conflict-detected .ph-language:hover {
    background-color: rgba(16, 94, 140, 0.1) !important;
}

/* 为了平滑过渡，添加transition */
.ph-nav-menu {
    transition: all 0.3s ease;
}

.ph-language {
    transition: all 0.3s ease;
}

/* 防止在检测过程中出现布局抖动 */
.conflict-checking .ph-nav-menu {
    transition: none !important;
}

.conflict-checking .ph-language {
    transition: none !important;
}

/* ========== 移动端导航滚动优化样式 ========== */

/* 为active元素添加特殊标识 */
.mbox-nav-item.active {
    background-color: rgba(16, 94, 140, 0.15);
    font-weight: 600;
    color: #105E8C;
}

/* 添加滚动指示器样式（可选） */
.mbox-nav-scroll-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mbox-nav-scroll-indicator.show {
    opacity: 1;
}

/* 确保导航文字不会被截断 */
.mbox-nav-text {
    color: #105E8C;
    font-size: clamp(14px, 3.5vw, 15px);
    line-height: 1.3;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: nowrap; /* 确保文字不换行 */
}

/* ========== 滚动性能优化样式 ========== */

/* 启用硬件加速和优化滚动性能 */
.mbox-nav {
    /* 启用GPU加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* 优化滚动性能 */
    will-change: scroll-position;
    /* 确保平滑滚动 */
    scroll-snap-type: none; /* 禁用滚动捕捉以获得更流畅的体验 */
}

/* 导航项性能优化 */
.mbox-nav-item {
    /* 启用GPU加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* 优化渲染性能 */
    will-change: transform, background-color;
    /* 确保子像素渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 完全可见状态的导航项（通过Intersection Observer添加） */
.mbox-nav-item.fully-visible {
    /* 可以添加特殊样式来指示完全可见的项目 */
    opacity: 1;
}

/* 动画过程中的状态优化 */
.mbox-nav.scrolling {
    /* 滚动时禁用某些动画以提升性能 */
    pointer-events: none;
}

.mbox-nav.scrolling .mbox-nav-item {
    /* 滚动时简化渲染 */
    will-change: auto;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .mbox-nav {
        /* 移动设备上的额外优化 */
        -webkit-overflow-scrolling: touch;
        /* 减少重绘 */
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .mbox-nav-item {
        /* 移动设备上减少动画复杂度 */
        transition: background-color 0.2s ease;
    }
    
    .mbox-nav-item:hover {
        /* 移动设备上禁用hover效果 */
        background-color: transparent;
        transform: none;
    }
}

/* 高刷新率屏幕优化 */
@media (min-resolution: 120dpi) {
    .mbox-nav {
        /* 高DPI屏幕上的滚动优化 */
        scroll-behavior: smooth;
    }
}

/* 减少动画的用户偏好设置支持 */
@media (prefers-reduced-motion: reduce) {
    .mbox-nav {
        scroll-behavior: auto;
    }
    
    .mbox-nav-item {
        transition: none;
    }
}



