/* Global Float Styles */

/* ============================================
   全站主标题优化 - 所有页面类型通用
   ============================================ */
/* H1标题优化 */
h1, .h1, .page-title, .post-title, .product-title, .entry-title, .hero-title, .section-title h1 {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
    letter-spacing: 0.5px !important;
    white-space: normal !important;
}

/* H2标题优化 */
.h2, .section-title, .section-title h2, .widget-title, .about-title, .products-title, .why-us-title, .contact-title,
.hot-title, .hot-subtitle, .info-title, .related-title, .block-title, .sub-title, .sidebar-title,
.bd-hot-title, .bd-nav-title, .bd-contact-title, .grid-header, .main-header, .hot-products-header,
.sidebar-tag-header, .sidebar-contact-title {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
    letter-spacing: 0.3px !important;
    white-space: normal !important;
}

/* H3标题优化 */
h3, .h3, .product-name, .card-title, .case-title, .news-title, .baike-title, .blog-title,
.hot-card-title, .article-card-title, .media-name, .param-name, .author-name, .bd-article-title {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

/* 文章/详情页大标题 */
.bd-article-title, .article-header h1, .article-header .title, .header-inner h1, .header-inner .title {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem) !important;
}

/* 产品卡片标题 - 限制行数 */
.product-card h3, .bc-product-card h3, .product-card .product-name, .card h3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.8em !important;
}

/* 列表页标题 - 限制行数 */
.archive .post-title, .archive .entry-title, .taxonomy .post-title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 详情页标题 - 完整显示 */
.single .post-title, .single .entry-title, .single-product .product_title, .single-case .case-title, .single-news .news-title, .single-baike .baike-title {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
}

/* 导航栏品牌标题 - 不换行 */
.site-nav-brand, .en-site-logo {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 英文站标题优化 - 英文单词换行 */
:lang(en) h1, :lang(en) h2, :lang(en) h3,
:lang(en) .page-title, :lang(en) .product-title, :lang(en) .section-title {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
}

/* 桌面端标题字体大小优化 - 避免过长跳行 */
@media (min-width: 769px) {
    h1, .page-title, .post-title, .product-title, .entry-title {
        font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    }
    .section-title, .section-title h2 {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem) !important;
    }
    h3, .product-name, .card-title {
        font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
    }
    /* Hero区域标题 - 桌面端限制宽度避免过长 */
    .hero-content h1, .hero h1 {
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ============================================
   手机端响应式优化（768px以下）- 准确类名
   ============================================ */
@media (max-width: 768px) {
    /* 手机端标题专项优化 - 所有页面类型 */
    h1, .page-title, .post-title, .product-title, .entry-title, .hero-title,
    .bd-article-title, .article-header h1, .header-inner h1 {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
    .section-title, .section-title h2, .hot-title, .info-title, .related-title,
    .block-title, .sidebar-title, .bd-hot-title, .grid-header, .main-header {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    h3, .product-name, .card-title, .hot-card-title, .article-card-title,
    .case-title, .news-title, .baike-title, .blog-title {
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
    /* 产品卡片标题 - 手机端限制2行 */
    .product-card h3, .bc-product-card h3, .product-card .product-name, .card h3 {
        -webkit-line-clamp: 2 !important;
        min-height: 2.8em !important;
    }
    /* 列表页标题 - 手机端限制2行 */
    .archive .post-title, .archive .entry-title, .taxonomy .post-title,
    .article-card-title, .hot-card-title {
        -webkit-line-clamp: 2 !important;
    }
    /* 详情页标题 - 手机端完整显示 */
    .single .post-title, .single .entry-title, .single-product .product_title,
    .single-case .case-title, .single-news .news-title, .single-baike .baike-title,
    .bd-article-title, .article-header h1 {
        -webkit-line-clamp: unset !important;
        display: block !important;
        overflow: visible !important;
    }
    
    /* 导航栏优化 */
    .site-nav-wrap {
        flex-wrap: wrap !important;
        justify-content: center !important;
        padding: 8px 10px !important;
    }
    .site-nav-wrap a {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    .site-nav-brand {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }
    .site-nav-cta {
        width: 100% !important;
        text-align: center !important;
        margin-top: 8px !important;
    }
    
    /* Hero大图区域优化 */
    @media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
    }
    }
/* ===== 已移除的Hero全宽出血效果（历史遗留问题） =====
    .hero {
        min-height: 400px !important;
        padding: 0 !important;
        position: relative !important;
        left: -20px !important;
        width: calc(100% + 40px) !important;
        max-width: calc(100% + 40px) !important;
        overflow: hidden !important;
    }
    .hero picture {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 0 !important;
    }
    .hero img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    .hero-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
    .hero-content {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        max-width: none !important;
        padding: 0 20px !important;
        text-align: center !important;
        z-index: 2 !important;
        box-sizing: border-box !important;
    }
    .hero-content h1, .hero-content .hero-title {
        font-size: 24px !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    .hero-content p, .hero-content .hero-subtitle {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
    .hero-content .btn-group, .hero-content .hero-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .hero-content .btn, .hero-content .hero-btn {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
    
*/

    /* 关于我们区域基础样式（电脑端两列，手机端媒体查询覆盖为一列） */
    .about-brief {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* 默认手机端样式（确保手机端生效） */
    body .about-brief {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 40px 20px !important;
    }
    .about-right { order: 1 !important; }
    .about-text { order: 2 !important; }
    .about-news-scroll { display: none !important; }
    body .products-grid { grid-template-columns: 1fr !important; }
    body .features-grid { grid-template-columns: 1fr !important; }
    .footer-top { display: none !important; }
    
    /* 电脑端（1600px以上）覆盖为多列 */
    @media (min-width: 768px) {
        body .about-brief {
            grid-template-columns: 1fr 1fr !important;
            gap: 40px !important;
            padding: 60px 20px !important;
        }
        .about-right { order: 0 !important; }
        .about-text { order: 0 !important; }
        .about-news-scroll { display: flex !important; }
        body .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
        body .features-grid { grid-template-columns: repeat(3, 1fr) !important; }
        .footer-top { display: flex !important; }
    }
    
    /* 数据统计区域优化 */
    .brand-strip {
        flex-wrap: wrap !important;
    }
    .brand-item {
        flex: 1 1 25% !important;
        padding: 20px 10px !important;
        border-right: 1px solid rgba(255,255,255,0.1) !important;
        border-bottom: none !important;
    }
    .brand-item:last-child {
        border-right: none !important;
    }
    .brand-item .brand-num, .brand-item .num {
        font-size: 22px !important;
    }
    .brand-item .brand-label, .brand-item .label {
        font-size: 11px !important;
    }
    
    /* 关于我们区域优化 */
    .about-brief {
        flex-direction: column !important;
        gap: 30px !important;
        padding: 30px 20px !important;
    }
    .about-text, .about-right {
        width: 100% !important;
        max-width: 100% !important;
    }
    .about-text {
        min-height: auto !important;
    }
    .about-text h2, .about-text .about-title {
        font-size: 22px !important;
        text-align: center !important;
    }
    .about-text p, .about-text .about-desc {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    .about-text .about-features, .about-text .features {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .about-text .feature-item {
        padding: 15px !important;
    }
    
    /* 视频窗口和资讯滚动优化 */
    .about-video-wrap {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .about-news-scroll {
        max-height: 350px !important;
        height: 350px !important;
    }
    
    /* 产品中心区域优化 */
    .bc-products {
        padding: 40px 20px !important;
    }
    .bc-products .section-title, .bc-products h2 {
        font-size: 22px !important;
        text-align: center !important;
    }
    .bc-products .section-subtitle, .bc-products p {
        font-size: 13px !important;
        text-align: center !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .products-grid .product-card, .products-grid .bc-product-card {
        padding: 0 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
    }
    .products-grid .product-card .product-card-img, .products-grid .bc-product-card .product-card-img {
        border-radius: 10px 10px 0 0 !important;
        overflow: hidden !important;
    }
    .products-grid .product-card .product-card-body, .products-grid .bc-product-card .product-card-body {
        padding: 12px 14px !important;
    }
    .products-grid .product-card img, .products-grid .bc-product-card img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    body .products-grid .product-card .product-card-img, body .products-grid .bc-product-card .product-card-img {
        height: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        padding-top: 100% !important;
        position: relative !important;
        aspect-ratio: auto !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
        display: block !important;
    }
    body .products-grid .product-card .product-card-img img, body .products-grid .bc-product-card .product-card-img img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    body .products-grid .product-card, body .products-grid .bc-product-card {
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
    }
    .products-grid .product-name, .products-grid .bc-product-card h3 {
        font-size: 13px !important;
    }
    
    /* 为什么选择我们区域优化 */
    .why-us-section, .features-section {
        padding: 40px 20px !important;
    }
    .why-us-grid, .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .why-us-item, .feature-item {
        padding: 20px !important;
        text-align: center !important;
    }
    
    /* 联系我们区域优化 */
    .contact-section {
        padding: 40px 20px !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .contact-grid .contact-item, .contact-grid .contact-card {
        padding: 20px !important;
        text-align: center !important;
    }
    .contact-form {
        width: 100% !important;
    }
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .form-group {
        width: 100% !important;
    }
    
    /* Footer优化 */
    .zy-footer-top {
        padding: 40px 20px 20px !important;
    }
    .zy-footer-top .footer-grid, .zy-footer-col {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: center !important;
    }
    .zy-footer-bottom, .footer-bottom {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
        padding: 20px !important;
    }
    
    /* 通用间距优化 */
    .section-padding {
        padding: 40px 20px !important;
    }
    .container {
        padding: 0 15px !important;
    }
    
    /* 隐藏非必要元素 */
    .hide-on-mobile {
        display: none !important;
    }
    
    /* 浮动按钮手机端优化 */
    .floating-bar, .zy-unified-float {
        right: 12px !important;
        bottom: 70px !important;
        gap: 8px !important;
    }
    .floating-bar a, .floating-bar .floating-btn,
    .zy-unified-float a, .zy-unified-float .floating-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 24px !important;
    }
    /* 蓝色机器人/QQ按钮优化 */
    .floating-qq, .floating-ai, .floating-robot {
        width: 42px !important;
        height: 42px !important;
    }
    
    /* AI聊天按钮手机端优化 */
    .ai-chat-widget {
        bottom: 16px !important;
        right: 16px !important;
    }
    .ai-chat-btn {
        width: 48px !important;
        height: 48px !important;
        font-size: 20px !important;
    }
    .ai-chat-popup {
        width: calc(100vw - 32px) !important;
        max-width: 320px !important;
        right: 0 !important;
        bottom: 60px !important;
    }
    .ai-chat-body {
        max-height: 250px !important;
        flex: 0 0 250px !important;
    }
    
    /* 蓝色浮动机器人（AI按钮）- 手机端隐藏到侧边，不和底部导航重合 */
    .zy-unified-float {
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        right: 8px !important;
        gap: 6px !important;
    }
    .zy-unified-float .float-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }
    /* AI机器人按钮 - 手机端移到侧边中间 */
    .float-ai {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    /* AI弹窗 - 手机端适配 */
    .float-ai-popup {
        right: 0 !important;
        bottom: calc(100% + 8px) !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 260px !important;
    max-height:calc(100vh - 20px) !important;overflow-y:auto !important;}
    
    /* 蓝色AI聊天机器人按钮（zy-ai-chatbot）- 手机端移到侧边 */
    #zy-ai-chatbot {
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: auto !important;
        right: 8px !important;
        z-index: 999 !important;
    }
    #zy-ai-chatbot-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 24px !important;
    }
    #zy-ai-chatbox {
        bottom: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: auto !important;
        right: 58px !important;
        width: 280px !important;
        height: 400px !important;
    }
}

/* 小屏幕手机（480px以下） */
@media (max-width: 480px) {
    body .products-grid {
        grid-template-columns: 1fr !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    body .about-brief {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 40px 20px !important;
    }
    .brand-item {
        flex: 1 1 25% !important;
        border-left: none !important;
        padding: 15px 8px !important;
    }
    .brand-item .brand-num, .brand-item .num {
        font-size: 22px !important;
    }
    .brand-item .brand-label, .brand-item .label {
        font-size: 11px !important;
    }
    .about-video-overlay .afc-tagline-line {
        font-size: 11px !important;
        letter-spacing: 1px !important;
    }
    .about-video-overlay .afc-slogan {
        font-size: 10px !important;
    }
    .about-video-overlay .afc-location {
        font-size: 9px !important;
    }
    .about-video-overlay .afc-icon {
        height: 48px !important;
    }
    .hero-content h1, .hero-content .hero-title {
        font-size: 20px !important;
    }
    .site-nav-wrap a {
        font-size: 11px !important;
        padding: 5px 6px !important;
    }
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .contact-card {
        padding: 16px !important;
    }
    .contact-card .cc-icon {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }
    .contact-card .cc-value {
        font-size: 13px !important;
    }
    .section-title h2 {
        font-size: 20px !important;
    }
}


    /* ============ 隐藏所有老的浮动按钮（避免重复）============ */
    /* 旧的浮动按钮：全部隐藏（让新的 .zy-unified-float 接管） */
    /* 注意：不能隐藏 .zy-unified-float 容器（里面有 #floatAiPopup 弹窗元素） */
    /* 只隐藏里面的具体按钮 */
    .float-btns,
    .floating-bar:not(.zy-unified-float),
    .floating-buttons,
    .float-widget,
    /* 隐藏所有老的浮动按钮（包括 .float-btn.float-ai，因为我的新按钮代替了它） */
    .zy-unified-float .float-btn.float-tel,
    .zy-unified-float .float-btn.float-phone,
    .zy-unified-float .float-btn.float-wechat,
    .zy-unified-float .float-btn.float-msg,
    .zy-unified-float .float-btn.float-top,
    .zy-unified-float .float-btn.float-chat:not(.float-ai-btn),
    .zy-unified-float .float-btn.float-ai,
    /* 不带 .zy-unified-float 容器的（如 single-product 直接 div） */
    .float-btn.float-tel,
    .float-btn.float-phone,
    .float-btn.float-wechat,
    .float-btn.float-msg,
    .float-btn.float-top,
    .float-btn.float-chat:not(.float-ai-btn),
    /* 兼容老版本的不同写法 */
    [class*="float-phone"],
    [class*="float-wechat"],
    [class*="float-msg"],
    [class*="float-top"],
    [class*="floating-phone"],
    [class*="floating-wechat"],
    [class*="floating-msg"],
    /* 各页面独立浮按钮容器 */
    .single-product .float-btns,
    .single-case .float-btns,
    .case-float-btns,
    .page-ruler .float-btns,
    .page-contact .float-btns,
    .page-about .float-btns,
    .archive-news .float-btns,
    .archive-case .float-btns,
    .archive-product .float-btns,
    .archive-product_en .float-btns,
    .archive-baike .float-btns,
    .page-baike-archive .float-btns,
    .page-news-archive .float-btns,
    .page-case-archive .float-btns,
    .page-product-archive .float-btns,
    .page-post-archive .float-btns,
    .page-post .float-btns,
    .single-baike .float-btns,
    .single-news .float-btns,
    .single-product_en .float-btns {
        display: none !important;
    }
    
    /* 但要保留 .float-ai-popup 弹窗本身可见（JS 控制显示/隐藏） */
    .float-ai-popup {
        display: none;
    }
    .float-ai-popup.active {
        display: block !important;
    }
    
    /* ============ 浮动按钮样式覆盖：让 AI 弹窗和按钮顶部对齐 ============ */
    /* 不再用 #floatAiPopup + position:fixed 覆盖（之前会让弹窗跳到视口底部） */
    /* 让 homepage-content.html 的 position:absolute + bottom:calc(100%+8px) 自然生效 */
    /* （popup 在 AI 按钮的同一个 position:relative 父元素里，absolute 自然相对父元素定位） */
    
    /* 关闭按钮（自动注入） */
    .zy-uf-ai-close {
        position: absolute !important;
        top: 8px !important;
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        background: rgba(255,255,255,0.25) !important;
        border: none !important;
        border-radius: 50% !important;
        color: #fff !important;
        font-size: 18px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 100 !important;
        padding: 0 !important;
        transition: background 0.2s !important;
    }
    .zy-uf-ai-close:hover {
        background: rgba(255,255,255,0.45) !important;
    }
    
    /* ============ 新的浮动按钮（PC 端默认）============ */
    .zy-unified-float {
        position: fixed;
        right: 16px;        bottom: 90px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        z-index: 9999;
    }
    .zy-uf-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        text-decoration: none;
        color: #fff;
        box-shadow: 0 3px 10px rgba(0,0,0,0.18);
        transition: transform 0.2s, box-shadow 0.2s;
        border: none;
        position: relative;
        padding: 0;
        background: #fff;
    }
    .zy-uf-btn:hover { 
        transform: scale(1.08); 
        box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    }
    .zy-uf-btn svg {
        width: 24px;
        height: 24px;
        display: block;
    }
    
    /* 各按钮颜色 */
    .zy-uf-ai    { background: linear-gradient(135deg, #C9A96E, #8B6914); position: relative; z-index: 10; pointer-events: auto !important; }
    .zy-uf-ai svg { color: #fff; }
    .zy-uf-ai:hover { transform: scale(1.08) !important; }
    .zy-uf-phone { background: #C9A96E; }
    .zy-uf-phone svg { color: #fff; }
    .zy-uf-chat { background: #07C160; }
    .zy-uf-chat svg { color: #fff; }
    .zy-uf-msg  { background: #8B6914; }
    .zy-uf-msg svg { color: #fff; }
    .zy-uf-top  { background: rgba(74,74,74,0.85); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
    .zy-uf-top.show { opacity: 1 !important; pointer-events: auto !important; }
    .zy-uf-top svg { width: 24px; height: 24px; color: #fff; }
    
    /* ============ 首页专属：AI 按钮一直显示，其他 4 个按钮滚到产品中心才显示 ============ */
        .zy-unified-float .zy-uf-phone,
    .zy-unified-float .zy-uf-chat,
    .zy-unified-float .zy-uf-msg,
    .zy-unified-float .zy-uf-top {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.5);
        transition: opacity 0.3s, transform 0.3s;
    }
    body .zy-unified-float.show-other-btns .zy-uf-phone,
    body .zy-unified-float.show-other-btns .zy-uf-chat,
    body .zy-unified-float.show-other-btns .zy-uf-msg {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: scale(1) !important;
    }
    /* 顶部按钮特殊处理：只在 show-other-btns 且滚得足够深时才显示 */
    body .zy-unified-float.show-other-btns .zy-uf-top.show {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: scale(1) !important;
    }
        
    .zy-uf-chat-popup {
        position: absolute;
        right: 52px;        top: 0;
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        display: none;
        text-align: center;
        min-width: 150px;
        z-index: 10;
    }
    .zy-uf-chat-popup.active { display: block; }
    .zy-uf-chat-popup img { width: 130px; height: 130px; border-radius: 6px; }
    .zy-uf-chat-popup p { margin: 6px 0 0; font-size: 11px; color: #666; }
    
    .zy-uf-modal {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 99999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .zy-uf-modal.active { display: flex; }
    .zy-uf-modal-content {
        background: #fff;
        border-radius: 12px;
        padding: 28px;
        width: 100%;
        max-width: 460px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
    .zy-uf-modal-close {
        position: absolute;
        top: 8px;
        right: 12px;
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
        color: #999;
        width: 30px;
        height: 30px;
        line-height: 1;
    }
    .zy-uf-modal-title { font-size: 22px; font-weight: 700; color: #333; margin-bottom: 6px; text-align: center; }
    .zy-uf-modal-subtitle { font-size: 13px; color: #888; text-align: center; margin-bottom: 20px; }
    .zy-uf-form-group { margin-bottom: 14px; }
    .zy-uf-form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 500; }
    .zy-uf-form-group label .required { color: #e74c3c; }
    .zy-uf-form-group input,
    .zy-uf-form-group textarea {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
        font-family: inherit;
        box-sizing: border-box;
    }
    .zy-uf-form-group input:focus,
    .zy-uf-form-group textarea:focus { outline: none; border-color: #C9A96E; }
    .zy-uf-form-group textarea { resize: vertical; min-height: 80px; }
    .zy-uf-form-error {
        display: none;
        color: #e74c3c;
        background: #fde8e8;
        padding: 10px 14px;
        border-radius: 6px;
        margin-bottom: 12px;
        font-size: 13px;
    }
    .zy-uf-form-error.active { display: block; }
    .zy-uf-form-submit {
        width: 100%;
        padding: 13px;
        background: linear-gradient(135deg, #C9A96E, #8B6914);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: opacity 0.2s;
    }
    .zy-uf-form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
    .zy-uf-trust { text-align: center; margin-top: 12px; font-size: 12px; color: #888; }
    .zy-uf-success { display: none; text-align: center; padding: 30px 20px; }
    .zy-uf-success.active { display: block; }
    .zy-uf-success-icon { font-size: 60px; margin-bottom: 12px; }
    .zy-uf-success-title { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 8px; }
    .zy-uf-success-text { font-size: 14px; color: #666; line-height: 1.6; }
    
    /* 手机端：按钮比 PC 端更小（PC 44px → 手机 36px） */
    @media (max-width: 768px) {
        .zy-unified-float[data-side="right"] { bottom: auto !important; gap: 10px !important; right: 10px !important; }
        .zy-uf-btn { width: 44px !important; height: 44px !important; flex-shrink: 0 !important; }
        .zy-uf-btn svg { width: 24px !important; height: 24px !important; transform: none !important; }
        .zy-uf-top svg { width: 24px !important; height: 24px !important; }
        .zy-uf-modal-content { padding: 24px 20px; max-width: 94vw; max-height: 88vh; }
        .zy-uf-modal-title { font-size: 19px; margin-bottom: 6px; }
        .zy-uf-modal-subtitle { font-size: 14px; margin-bottom: 18px; line-height: 1.5; }
        .zy-uf-form-group { margin-bottom: 16px; }
        .zy-uf-form-group label { font-size: 14px; margin-bottom: 6px; display: block; }
        .zy-uf-form-group input, .zy-uf-form-group textarea { font-size: 15px; padding: 10px 12px; }
        .zy-uf-form-submit { padding: 14px; font-size: 16px; }
        .zy-uf-trust { font-size: 12px; margin-top: 14px; }
        .zy-uf-modal-close { width: 36px; height: 36px; font-size: 18px; top: 10px; right: 10px; }
        /* 返回顶部按钮优化 */
        .zy-uf-top { opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
        .zy-uf-top.show { opacity: 1; pointer-events: auto; transform: scale(1); }
    }

    /* ========== 最终图标大小规则（最高优先级） ========== */
    body .zy-unified-float .zy-uf-btn svg,
    body .zy-unified-float .zy-uf-btn svg * {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
    body .zy-unified-float .zy-uf-top svg,
    body .zy-unified-float .zy-uf-top svg * {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
    @media (max-width: 768px) {
        body .zy-unified-float .zy-uf-btn {
            width: 44px !important;
            height: 44px !important;
        }
        body .zy-unified-float .zy-uf-btn svg,
        body .zy-unified-float .zy-uf-btn svg * {
            width: 24px !important;
            height: 24px !important;
        }
    }
    @media (max-width: 380px) {
        body .zy-unified-float .zy-uf-btn {
            width: 44px !important;
            height: 44px !important;
        }
        body .zy-unified-float .zy-uf-btn svg,
        body .zy-unified-float .zy-uf-btn svg * {
            width: 24px !important;
            height: 24px !important;
        }
        body .zy-unified-float .zy-uf-top svg,
        body .zy-unified-float .zy-uf-top svg * {
            width: 28px !important;
            height: 28px !important;
        }
    }
    
    /* ============ AI弹窗移动端修复：防止窄屏超出屏幕 ============ */
    @media (max-width: 480px) {
        #floatAiPopup.float-ai-popup {
            width: calc(100vw - 20px) !important;
            max-width: 300px !important;
            right: 10px !important;
            left: auto !important;
            top: auto !important;
            bottom: auto !important;
            transform: none !important;
            position: fixed !important;
            z-index: 999999 !important;
        }
        #floatAiPopup.float-ai-popup.active {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
    }
    /* AI按钮确保可点击 */
    .zy-uf-btn.zy-uf-ai {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 100000 !important;
        position: relative !important;
    }
    
    /* ============ AI弹窗最终修复：确保手机端正确显示 ============ */
    /* 900px以下：弹窗固定在屏幕右下角，不超出屏幕 */
    @media (max-width: 900px) {
        #floatAiPopup.float-ai-popup {
            position: fixed !important;
            width: calc(100vw - 30px) !important;
            max-width: 320px !important;
            right: 15px !important;
            left: auto !important;
            top: auto !important;
            bottom: 90px !important;
            transform: none !important;
            z-index: 999999 !important;
            display: none !important;
        }
        #floatAiPopup.float-ai-popup.active {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
        /* AI按钮确保可点击，在最上层 */
        .zy-uf-btn.zy-uf-ai {
            pointer-events: auto !important;
            cursor: pointer !important;
            z-index: 1000000 !important;
            position: relative !important;
        }
    }
    /* ai-popup-final-fix */
    
    /* ============ 浮动按钮图标大小统一：所有页面24px ============ */
    body .zy-unified-float .zy-uf-btn svg,
    body .zy-unified-float .zy-uf-btn svg * {
        width: 24px !important;
        height: 24px !important;
    }
    /* 返回顶部按钮稍大一点 */
    body .zy-unified-float .zy-uf-top svg {
        width: 24px !important;
        height: 24px !important;
    }
    /* icon-size-final-fix */
    
    /* ============ 底部导航内联CSS：确保所有页面都能加载 ============ */
    .mobile-bottom-nav {
        display: none !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(135deg, #2d1f12 0%, #3d2820 100%) !important;
        border-top: 1px solid rgba(201,169,110,0.3) !important;
        z-index: 999999 !important;
        padding: 6px 0 env(safe-area-inset-bottom, 6px) !important;
        box-shadow: 0 -2px 16px rgba(0,0,0,0.25) !important;
    }
    @media (max-width: 900px) {
        .mobile-bottom-nav {
            display: flex !important;
            justify-content: space-around !important;
            align-items: center !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        body { padding-bottom: 65px !important; }
    }
    .mbn-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        text-decoration: none !important;
        color: rgba(255,255,255,0.6) !important;
        font-size: 10px !important;
        flex: 0 0 20% !important;
        width: 20% !important;
        min-width: 0 !important;
        max-width: 20% !important;
        box-sizing: border-box !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    .mbn-item.active, .mbn-item:hover { color: #C9A96E !important; }
    .mbn-icon { font-size: 20px !important; line-height: 1 !important; }
    .mbn-label { font-size: 10px !important; letter-spacing: 0.5px !important; }
    /* ============ 全局浮动按钮统一：所有页面、所有按钮系统全部统一尺寸 ============ */
    /* emoji按钮 */
    .float-btn { font-size: 18px !important; }
    .floating-btn { font-size: 18px !important; }
    body .float-btn, body .floating-btn { font-size: 18px !important; }
    /* SVG按钮：所有页面统一 24px（最高优先级） */
    .zy-uf-btn { font-size: 24px !important; width: 44px !important; height: 44px !important; }
    body .zy-unified-float .zy-uf-btn { font-size: 24px !important; width: 44px !important; height: 44px !important; }
    /* SVG图标大小 */
    .zy-uf-btn svg { width: 24px !important; height: 24px !important; transform: none !important; }
    body .zy-unified-float .zy-uf-btn svg { width: 24px !important; height: 24px !important; transform: none !important; }
    /* 取消按钮的scale缩小效果 */
    .zy-unified-float .zy-uf-btn { transform: none !important; }
    /* 容器字号统一 */
    .zy-unified-float { font-size: 16px !important; }
    /* float-btn-emoji-unify */
    
    /* 全局横向滚动禁止（仅移动端） */
    @media (max-width: 768px) {
    html, body { overflow-x: hidden !important; }
    }
    /* mobile-bottom-nav-inline-fix */
    
    /* 英文站底部导航蓝色系风格 */
    @media (max-width: 900px) {
        .mobile-bottom-nav.en-style {
            background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%) !important;
            border-top: 1px solid rgba(255,255,255,0.2) !important;
        }
        .mobile-bottom-nav.en-style .mbn-item {
            color: rgba(255,255,255,0.7) !important;
        }
        .mobile-bottom-nav.en-style .mbn-item.active,
        .mobile-bottom-nav.en-style .mbn-item:hover {
            color: #fff !important;
        }
    }
    /* en-nav-blue-fix */

    /* ============ 浮动按钮图标大小最终统一：所有页面所有按钮24px ============ */
    body .zy-unified-float .zy-uf-btn,
    body .zy-unified-float .zy-uf-btn * {
        font-size: 24px !important;
    }
    body .zy-unified-float .zy-uf-btn svg,
    body .zy-unified-float .zy-uf-btn svg * {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        font-size: 24px !important;
    }
    /* 返回顶部按钮稍大一点 */
    body .zy-unified-float .zy-uf-top svg,
    body .zy-unified-float .zy-uf-top svg * {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
    /* icon-size-final-unified */