/* ProductGuide Plugin Styles - Modern & Clean Design */

/* Icon Button in Menu Bar - 作为菜单项显示 */
.productguide-menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.productguide-icon-btn {
    position: relative !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: breathe 2.5s ease-in-out infinite;
    flex-shrink: 0;
    margin-left: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
}

.productguide-icon-btn:hover {
    animation: none;
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
}

/* 呼吸动画效果 */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        opacity: 0.95;
    }
}

/* 备选方案：如果图标被插入到body底部，也应用呼吸动画 */
.productguide-icon-wrapper.productguide-fallback .productguide-icon-btn {
    animation: breathe 2.5s ease-in-out infinite;
}

.productguide-icon-btn img {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Font Awesome图标样式（与系统菜单图标一致） */
.productguide-icon-btn i.fa {
    font-size: 16px !important;
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

/* 确保在菜单栏中正确显示 */
.header .h_right .nav-menu .productguide-menu-item {
    display: flex !important;
    align-items: center;
    height: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 通用菜单栏选择器，确保图标显示 */
.nav-menu .productguide-menu-item,
ul.nav-menu .productguide-menu-item,
.header .nav-menu .productguide-menu-item {
    display: flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none !important;
}

/* 备选方案：如果图标被插入到body底部，使用固定定位 */
.productguide-icon-wrapper.productguide-fallback {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
}

.productguide-icon-wrapper.productguide-fallback .productguide-icon-btn {
    margin-left: 0;
}

.productguide-icon-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Font Awesome图标样式（与系统菜单图标一致，16px尺寸） */
.productguide-icon-btn i.fa {
    font-size: 16px !important;
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

.productguide-icon-wrapper.productguide-fallback .productguide-icon-btn i.fa {
    font-size: 16px !important;
    color: #ffffff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1 !important;
}

/* 呼吸动画已替换为更流畅的breathe动画，保留pulse作为备用 */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(102, 126, 234, 0.7);
    }
}

/* Overlay Background */
.productguide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 背景图片由 JavaScript 动态设置，不再使用默认图片 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.6); /* 半透明遮罩层，确保内容清晰可见 */
    background-blend-mode: overlay; /* 混合模式，让背景图片和遮罩层融合 */
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px); /* 轻微模糊效果 */
}

.productguide-overlay.active {
    display: block;
    opacity: 1;
}

/* 欢迎卡片容器 - 垂直水平居中显示，两个卡片并排 */
/* 已注释，用于测试位置问题 */
/* 欢迎卡片和联系人卡片容器 - 居中显示，根据三个卡片的状态控制显示/隐藏 */
.productguide-welcome-cards-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-wrap: nowrap; 
    gap: clamp(15px, 1.04vw, 20px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90vw;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.productguide-welcome-cards-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    animation: welcomeCardsFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: auto;
}

.productguide-welcome-cards-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.9);
    animation: welcomeCardsFadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: none;
}

/* 欢迎卡片 - 图片卡片 */
.productguide-welcome-card {
    width: clamp(400px, 27.7vw, 532px); /* 响应式宽度：最小400px，最大532px，基准27.7vw */
    height: clamp(240px, 33.3vh, 320px); /* 响应式高度：最小240px，最大320px，基准33.3vh */
    background: #fff;
    border-radius: clamp(12px, 1vw, 16px);
    padding: 0; /* 移除内边距，让图片铺满 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* 淡绿色/淡青色边框 - 与详情页卡片样式一致 */
    border: 2px solid rgba(144, 238, 144, 0.6); /* 淡绿色 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
}

/* 当wrapper激活时，欢迎卡片有延迟的出场动画 */
.productguide-welcome-cards-wrapper.active .productguide-welcome-card {
    animation: welcomeCardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s forwards;
}

/* 联系方式卡片 */
.productguide-contact-card {
    width: clamp(400px, 27.7vw, 532px); /* 响应式宽度：最小400px，最大532px，基准27.7vw */
    height: clamp(240px, 33.3vh, 320px); /* 响应式高度：最小240px，最大320px，基准33.3vh */
    background: #fff;
    background-image: url('/weapp/ProductGuide/template/images/mingpian.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: clamp(12px, 1vw, 16px);
    padding: clamp(15px, 2.6vw, 25px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* 淡绿色/淡青色边框 - 与详情页卡片样式一致 */
    border: 2px solid rgba(144, 238, 144, 0.6); /* 淡绿色 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 0;
    position: relative; /* 为浮动名字提供定位上下文 */
}

/* 当wrapper激活时，联系方式卡片有延迟的出场动画 */
.productguide-welcome-cards-wrapper.active .productguide-contact-card {
    animation: welcomeCardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.productguide-contact-content {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    position: relative;
    z-index: 1; /* 确保内容在背景图片上方 */
}

.productguide-contact-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.productguide-contact-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.productguide-contact-icon {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.productguide-icon-company {
    color: #4a90e2;
}

.productguide-icon-phone {
    color: #50c878;
}

.productguide-icon-email {
    color: #ff6b6b;
}

.productguide-icon-address {
    color: #f39c12;
}

.productguide-contact-name {
    position: absolute; /* 浮动定位 */
    font-size: 20px; /* 再增加2个字号：从18px增加到20px */
    color: #000; /* 黑色 */
    font-weight: 700; /* 粗体 */
    z-index: 10; /* 确保在内容上方 */
    /* 位置：再向右移动20px */
    left: calc(50% + 40px); /* 水平居中后向右移动40px（20px + 20px） */
    top: 50%; /* 垂直居中 */
    transform: translate(-50%, -50%); /* 居中定位 */
}

.productguide-contact-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    word-break: break-all;
}

.productguide-welcome-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 铺满卡片，保持比例并裁剪多余部分 */
    display: block; /* 移除图片默认的底部间距 */
    border-radius: 14px; /* 与卡片圆角一致，减去边框宽度 */
}

/* 欢迎卡片轮播图片 */
.productguide-welcome-card {
    position: relative; /* 为轮播图片提供定位上下文 */
    overflow: hidden; /* 隐藏超出部分 */
}

.productguide-welcome-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充容器 */
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* 淡入淡出动画，0.8秒 */
    z-index: 1;
}

.productguide-welcome-slide:first-child {
    position: absolute; /* 所有图片都使用绝对定位，重叠显示 */
    z-index: 2; /* 第一张图片在最上层 */
}

/* 激活状态的图片（当前显示的图片） */
.productguide-welcome-slide.active {
    opacity: 1;
    z-index: 2;
}

/* 欢迎卡片出场动画 */
@keyframes welcomeCardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.productguide-close {
    position: absolute;
    top: clamp(20px, 3.19vh, 30px); /* 响应式顶部距离 */
    right: clamp(20px, 1.56vw, 30px); /* 响应式右侧距离 */
    width: clamp(30px, 2.08vw, 40px); /* 响应式宽度 */
    height: clamp(30px, 2.08vw, 40px); /* 响应式高度 */
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.productguide-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.productguide-close::before,
.productguide-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.productguide-close::before {
    transform: rotate(45deg);
}

.productguide-close::after {
    transform: rotate(-45deg);
}

/* Visit Statistics - 访问统计 */
.productguide-visit-stats {
    position: absolute;
    bottom: clamp(20px, 3.19vh, 30px); /* 与关闭按钮的top对齐 */
    right: clamp(20px, 1.56vw, 30px); /* 与关闭按钮的right对齐 */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.productguide-visit-stats:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.productguide-visit-label {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.productguide-visit-count {
    font-weight: 600;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

/* Container */
.productguide-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

/* Website Logo Card - 显示在第一个分类图标上方，距离浏览器顶部45px */
.productguide-logo-card {
    position: fixed;
    left: clamp(20px, 1.56vw, 30px); /* 响应式左侧距离 */
    top: clamp(30px, 4.69vh, 45px); /* 响应式顶部距离 */
    z-index: 10000;
    opacity: 0;
    animation: logoFadeIn 1s ease-out forwards;
}

/* LOGO淡入动画 - 由虚变实 */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.productguide-logo-wrapper {
    width: clamp(186px, 12.92vw, 248px); /* 响应式宽度 */
    height: clamp(41px, 5.85vh, 55px); /* 响应式高度 */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: clamp(9px, 0.625vw, 12px);
    padding: clamp(6px, 0.52vw, 8px) clamp(9px, 0.625vw, 12px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* 光晕效果 - 使用更平滑的动画 */
    animation: logoGlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    /* 性能优化 */
    will-change: box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 持续光晕效果动画 - 优化为更平滑的过渡 */
@keyframes logoGlow {
    0% {
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1),
            0 0 15px rgba(102, 126, 234, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    25% {
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1),
            0 0 25px rgba(102, 126, 234, 0.45),
            0 0 35px rgba(102, 126, 234, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    50% {
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1),
            0 0 35px rgba(102, 126, 234, 0.6),
            0 0 50px rgba(102, 126, 234, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    75% {
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1),
            0 0 25px rgba(102, 126, 234, 0.45),
            0 0 35px rgba(102, 126, 234, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    100% {
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.15),
            0 4px 12px rgba(0, 0, 0, 0.1),
            0 0 15px rgba(102, 126, 234, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
}

.productguide-logo-wrapper:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.2),
        0 6px 15px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(102, 126, 234, 0.7),
        0 0 60px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.productguide-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Category Icons Container - 垂直显示在浏览器窗口左侧，第一个分类图标顶部距离LOGO底部10px */
.productguide-categories {
    position: fixed;
    left: clamp(20px, 1.56vw, 30px); /* 响应式左侧距离 */
    /* top位置由JS动态设置，基于LOGO底部位置+10px */
    top: auto;
    transform: none; /* 移除垂直居中变换 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(11px, 0.78vw, 15px); /* 响应式间距 */
    padding: clamp(7px, 0.52vw, 10px) 0;
    z-index: 10000;
    /* 移除滚动，让所有图标完整显示 */
    overflow: visible; /* 确保分类名称卡片不被裁剪 */
}

/* Category Icon Item */
.productguide-category-item {
    width: clamp(60px, 4.17vw, 80px); /* 响应式宽度 */
    height: clamp(60px, 4.17vw, 80px); /* 响应式高度 */
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* 立体感边框 - 使用多层阴影模拟立体边框效果 */
    border: 3px solid transparent;
    box-shadow: 
        /* 外边框高光（左上） */
        inset -2px -2px 4px rgba(255, 255, 255, 0.8),
        inset 2px 2px 4px rgba(0, 0, 0, 0.2),
        /* 外边框阴影（右下） */
        inset -1px -1px 2px rgba(255, 255, 255, 0.6),
        inset 1px 1px 2px rgba(0, 0, 0, 0.3),
        /* 外部阴影 */
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.15),
        /* 内部高光和阴影 */
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    /* 初始位置：左侧外部（准备从左侧滑入） */
    position: relative;
    overflow: visible; /* 改为visible，让分类名称可以显示在圆形外面 */
    left: clamp(-150px, -10.42vw, -200px); /* 响应式初始位置 */
    flex-shrink: 0;
}

.productguide-category-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.productguide-category-item:hover::before {
    opacity: 1;
}

.productguide-category-item.active {
    /* 激活状态下的立体边框和阴影 */
    border: 3px solid rgba(102, 126, 234, 0.6);
    box-shadow: 
        /* 外边框高光（左上） */
        inset -2px -2px 4px rgba(255, 255, 255, 0.9),
        inset 2px 2px 4px rgba(102, 126, 234, 0.4),
        /* 外边框阴影（右下） */
        inset -1px -1px 2px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(102, 126, 234, 0.5),
        /* 外部阴影 */
        0 10px 30px rgba(102, 126, 234, 0.4),
        0 5px 15px rgba(102, 126, 234, 0.3),
        /* 内部高光和阴影 */
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.1);
}

.productguide-category-item.active .productguide-category-img {
    filter: brightness(1.2);
}

/* 悬停时的阴影增强（只在动画完成后生效） */
.productguide-category-item.animate-in:hover {
    /* 悬停时的立体边框增强 */
    border: 3px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        /* 外边框高光（左上） */
        inset -2px -2px 4px rgba(255, 255, 255, 0.9),
        inset 2px 2px 4px rgba(0, 0, 0, 0.25),
        /* 外边框阴影（右下） */
        inset -1px -1px 2px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(0, 0, 0, 0.35),
        /* 外部阴影增强 */
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        /* 内部高光和阴影 */
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-3px) scale(1.05);
}

/* 从左侧滑入动画 */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        left: clamp(-150px, -10.42vw, -200px); /* 响应式初始位置 */
        transform: scale(0.8);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    80% {
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        left: 0;
        transform: scale(1);
    }
}

.productguide-category-item.animate-in {
    animation: slideInFromLeft 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.productguide-category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* 分类名称 - 默认隐藏，悬停时显示在右侧，带精美卡片效果 */
.productguide-category-title {
    position: absolute;
    left: 100px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #333;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    /* 精美的白色卡片背景，带渐变 */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 10px 16px;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
    /* 立体卡片阴影效果 */
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    /* 精致边框 */
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* 文字阴影增强可读性 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    /* 最小宽度确保卡片美观 */
    min-width: 120px;
}

/* 悬停时显示分类名称，带平滑动画 */
.productguide-category-item:hover .productguide-category-title {
    opacity: 1;
    visibility: visible;
    left: 95px;
    transform: translateY(-50%) scale(1);
}

/* 左侧箭头指向图标 - 使用白色匹配卡片背景 */
.productguide-category-title::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #ffffff;
    /* 箭头阴影效果 */
    filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.1));
}

/* 箭头内部高光效果（使用伪元素创建双层箭头） */
.productguide-category-title::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid #f8f9fa;
}

.productguide-category-item.active {
    transform: scale(1.1);
    /* 激活状态下的立体边框和阴影 */
    border: 3px solid rgba(102, 126, 234, 0.6);
    box-shadow: 
        /* 外边框高光（左上） */
        inset -2px -2px 4px rgba(255, 255, 255, 0.9),
        inset 2px 2px 4px rgba(102, 126, 234, 0.4),
        /* 外边框阴影（右下） */
        inset -1px -1px 2px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(102, 126, 234, 0.5),
        /* 外部阴影 */
        0 15px 40px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(102, 126, 234, 0.3),
        /* 内部高光和阴影 */
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Products Wrapper - 显示在浏览器窗口水平居中位置，在分类图标上层 */
.productguide-products-wrapper {
    position: fixed;
    display: none; /* 默认隐藏 */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10002; /* 确保在最上层，高于分类图标（分类图标z-index为10000） */
    pointer-events: none;
    /* 确保容器可见 */
    visibility: hidden;
    /* 使用flex布局，水平排列产品图标，不换行 */
    flex-wrap: nowrap; /* 不换行，保持在一行 */
    gap: clamp(11px, 0.78vw, 15px); /* 响应式间距 */
    align-items: center;
    justify-content: center; /* 水平居中 */
    max-width: calc(100vw - clamp(150px, 10.42vw, 200px)); /* 响应式最大宽度，避免超出屏幕 */
    padding: clamp(7px, 0.52vw, 10px); /* 响应式内边距 */
    background: transparent !important; /* 确保背景透明，移除任何黑色条 */
    overflow-x: auto; /* 如果内容过多，允许横向滚动 */
    overflow-y: visible; /* 改为visible，允许标题显示在容器外部（标题使用fixed定位） */
    /* 隐藏滚动条，避免显示黑色透明方条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* 定位由JS动态设置，使用浏览器窗口坐标 */
}

/* 隐藏产品图标容器的滚动条（Webkit浏览器） */
.productguide-products-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
    background: transparent;
}

.productguide-products-wrapper.active {
    display: flex !important; /* 激活时显示为flex布局 */
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    z-index: 10002 !important; /* 确保在最上层 */
}

/* 产品包装器消失动画 */
.productguide-products-wrapper.fade-out {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Detail Wrapper - 显示在产品图标下方，水平居中 */
/* 位置完全由JS动态设置，CSS不设置固定位置 */
.productguide-detail-wrapper {
    position: fixed;
    display: none;
    opacity: 0;
    /* left, top, transform 由JS动态设置，不在此处定义 */
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10003 !important; /* 确保在产品图标上方（产品图标z-index为10002） */
    pointer-events: none;
}

.productguide-detail-wrapper.active {
    display: block;
    opacity: 1;
    /* 位置由JS动态设置，确保加载和显示时在同一位置 */
    pointer-events: auto;
}

/* 三张卡片的包装器 */
.productguide-detail-cards-wrapper {
    display: flex;
    flex-direction: row;
    gap: clamp(15px, 1.04vw, 20px); /* 响应式间距 */
    align-items: flex-start;
    max-width: 95vw; /* 确保在小屏幕上不会溢出 */
    justify-content: center; /* 水平居中 */
}

/* 第一张卡片：产品图片卡片（响应式尺寸） */
.productguide-detail-image-card {
    width: clamp(270px, 18.75vw, 360px); /* 响应式宽度：最小270px，最大360px，基准18.75vw */
    height: clamp(270px, 18.75vw, 360px); /* 响应式高度：保持正方形 */
    background: #fff;
    border-radius: clamp(12px, 0.83vw, 16px);
    padding: clamp(15px, 1.04vw, 20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* 淡绿色/淡青色边框 */
    border: 2px solid rgba(144, 238, 144, 0.6); /* 淡绿色 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0;
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s forwards;
    box-sizing: border-box; /* 确保 padding 和 border 包含在总尺寸内 */
}

.productguide-detail-image {
    width: 100%; /* 使用100%而不是固定像素 */
    height: 100%; /* 使用100%而不是固定像素 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: clamp(9px, 0.625vw, 12px);
    flex-shrink: 0; /* 防止被压缩 */
}

.productguide-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持正方形，裁剪多余部分 */
    border-radius: 12px;
    display: block; /* 移除图片底部空白 */
}

.productguide-detail-image.productguide-no-image {
    color: #999;
    font-size: 16px;
    text-align: center;
}

/* 第二张卡片：产品详情内容卡片（可滚动，响应式尺寸） */
.productguide-detail-content-card {
    width: clamp(450px, 31.25vw, 600px); /* 响应式宽度：最小450px，最大600px，基准31.25vw */
    height: clamp(488px, 67.7vh, 650px); /* 响应式高度：最小488px，最大650px，基准67.7vh */
    background: #fff;
    border-radius: clamp(12px, 0.83vw, 16px);
    padding: clamp(18px, 1.3vw, 25px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* 淡绿色/淡青色边框 */
    border: 2px solid rgba(144, 238, 144, 0.6); /* 淡绿色 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0;
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    box-sizing: border-box; /* 确保 padding 和 border 包含在总尺寸内 */
}

.productguide-detail-content-inner {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(144, 238, 144, 0.5) rgba(0, 0, 0, 0.1);
}

.productguide-detail-content-inner::-webkit-scrollbar {
    width: 8px;
}

.productguide-detail-content-inner::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.productguide-detail-content-inner::-webkit-scrollbar-thumb {
    background: rgba(144, 238, 144, 0.5);
    border-radius: 4px;
}

.productguide-detail-content-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(144, 238, 144, 0.7);
}

/* 产品名称 */
.productguide-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(144, 238, 144, 0.3);
    line-height: 1.4;
    text-align: center; /* 居中显示 */
}

/* 产品详细内容 */
.productguide-detail-content {
    font-size: 15px;
    /* 确保HTML内容被正确渲染，而不是显示为纯文本 */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.8;
    color: #555;
    /* 自动合并连续的空白字符 */
    white-space-collapse: collapse;
}

/* 确保段落之间的间距合理，不会因为多余空白而显示过大间距 */
.productguide-detail-content p {
    margin-bottom: 15px;
    margin-top: 0;
    /* 确保段落之间没有额外的换行显示 */
    white-space: normal;
}

/* 清理空段落 */
.productguide-detail-content p:empty {
    display: none;
}

/* 确保段落之间没有多余的空白行 */
.productguide-detail-content p + p {
    margin-top: 0;
}

.productguide-detail-content p {
    margin-bottom: 15px;
}

.productguide-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* 动画效果 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 第三张卡片：产品采购数据表格卡片（响应式尺寸） */
.productguide-detail-purchase-card {
    width: clamp(450px, 31.25vw, 600px); /* 响应式宽度：最小450px，最大600px，基准31.25vw */
    height: clamp(488px, 67.7vh, 650px); /* 响应式高度：最小488px，最大650px，基准67.7vh */
    background: #fff;
    border-radius: clamp(12px, 0.83vw, 16px);
    padding: clamp(18px, 1.3vw, 25px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    /* 淡绿色/淡青色边框 */
    border: 2px solid rgba(144, 238, 144, 0.6); /* 淡绿色 */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
    opacity: 0;
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
    box-sizing: border-box; /* 确保 padding 和 border 包含在总尺寸内 */
}

.productguide-detail-purchase-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* 采购表格标题 */
.productguide-purchase-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(144, 238, 144, 0.3);
    line-height: 1.4;
    flex-shrink: 0;
    text-align: center; /* 居中显示 */
}

/* 采购表格包装器 */
.productguide-purchase-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(144, 238, 144, 0.5) rgba(0, 0, 0, 0.1);
}

.productguide-purchase-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.productguide-purchase-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.productguide-purchase-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(144, 238, 144, 0.5);
    border-radius: 4px;
}

.productguide-purchase-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(144, 238, 144, 0.7);
}

/* 采购表格样式 */
.productguide-purchase-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.productguide-purchase-table thead {
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.2) 0%, rgba(144, 238, 144, 0.1) 100%);
}

.productguide-purchase-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid rgba(144, 238, 144, 0.3);
}

.productguide-purchase-table th:first-child {
    width: 30%;
}

.productguide-purchase-table th:last-child {
    width: 70%;
}

.productguide-purchase-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease;
}

.productguide-purchase-table tbody tr:hover {
    background-color: rgba(144, 238, 144, 0.05);
}

.productguide-purchase-table tbody tr:last-child {
    border-bottom: none;
}

.productguide-purchase-table td {
    padding: 12px 15px;
    vertical-align: top;
}

.productguide-table-label {
    font-weight: 500;
    color: #555;
    background-color: rgba(144, 238, 144, 0.05);
}

.productguide-table-value {
    color: #333;
    word-break: break-word;
}

/* 产品详情包装器消失动画 */
.productguide-detail-wrapper.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px) scale(0.95); /* 保持水平居中 */
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.productguide-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Product Image Card */
.productguide-image-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.productguide-image-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.productguide-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.productguide-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.productguide-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.productguide-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.productguide-image-item:hover img {
    transform: scale(1.1);
}

/* Product Thumbnails Grid - 水平排列在一行 */
.productguide-product-thumbs {
    display: flex !important;
    flex-wrap: nowrap; /* 不换行，保持在一行 */
    gap: 15px;
    justify-content: center;
    align-items: center; /* 恢复center对齐，保持原始布局 */
    background: transparent !important; /* 确保背景透明，移除任何黑色条 */
    padding: 0; /* 恢复原始padding，移除底部padding */
    max-width: calc(100vw - 200px); /* 避免超出屏幕 */
    overflow-x: auto; /* 如果内容过多，允许横向滚动 */
    overflow-y: visible; /* 改为visible，允许标题显示在容器外部（标题使用fixed定位） */
    width: 100%;
    height: 100%; /* 恢复原始高度 */
    /* 隐藏滚动条，避免显示黑色透明方条 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏滚动条（Webkit浏览器） */
.productguide-product-thumbs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
    background: transparent;
}

.productguide-product-thumb {
    position: relative;
    width: clamp(98px, 6.77vw, 130px); /* 响应式宽度：最小98px，最大130px，基准6.77vw */
    height: clamp(98px, 6.77vw, 130px); /* 响应式高度：保持正方形，恢复原始高度 */
    border-radius: clamp(9px, 0.625vw, 12px); /* 响应式圆角 */
    /* 初始状态：透明背景，避免动画时出现黑色条 - 强制所有状态透明 */
    background: transparent !important;
    /* 添加默认边框，与分类图标样式一致 */
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: none !important;
    overflow: visible; /* 保持visible，确保标题可以显示在容器外部（使用fixed定位） */
    cursor: pointer;
    /* 移除transition，避免动画过程中样式变化 */
    transition: none !important; /* 完全移除transition，避免闪烁 */
    opacity: 0;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* 初始位置：上方（准备掉落） */
    transform: translateY(-200px) scale(0.8);
    /* 确保元素可见但处于初始状态 */
    visibility: visible !important;
    /* 强制所有状态下都不显示背景、阴影 */
    background-color: transparent !important;
    background-image: none !important;
}

/* 产品图片容器 - 用于控制图片的overflow */
.productguide-product-thumb-img-wrapper {
    position: relative;
    width: clamp(98px, 6.77vw, 130px);
    height: clamp(98px, 6.77vw, 130px);
    border-radius: clamp(9px, 0.625vw, 12px);
    overflow: hidden; /* 图片容器保持overflow: hidden */
    background: transparent !important; /* 确保背景透明，移除任何黑色条 */
    /* 移除所有可能导致黑色条的样式 */
    box-shadow: none !important;
    border: none !important;
}


/* 从上方掉落动画 */
@keyframes productDropIn {
    0% {
        opacity: 0;
        transform: translateY(-200px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }
    80% {
        transform: translateY(0) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.productguide-product-thumb.animate-drop-in {
    animation: productDropIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    /* 动画过程中强制保持透明背景，防止闪烁 */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    /* 动画过程中保持边框 */
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: none !important;
    /* 强制覆盖所有可能的背景样式 */
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* 动画完成后恢复样式（通过JavaScript添加animation-complete类） */
.productguide-product-thumb.animation-complete {
    background: transparent !important; /* 移除背景，避免显示黑条 */
    background-color: transparent !important;
    background-image: none !important;
    /* 保持默认边框 */
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: none !important; /* 移除阴影，避免显示黑条 */
    /* 强制覆盖所有可能的背景样式，防止闪烁 */
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}


.productguide-product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px; /* 与容器圆角一致 */
    transition: transform 0.3s ease; /* 只保留transform动画，避免其他属性变化导致闪烁 */
    /* 确保图片不会溢出，但标题可以显示在外部 */
    display: block;
    /* 确保图片本身没有背景 */
    background: transparent !important;
    background-color: transparent !important;
}

/* 只有在动画完成后才允许active效果 */
.productguide-product-thumb.animation-complete.active {
    /* 选中状态：只显示边框，不显示背景和阴影（避免黑条） */
    border: 3px solid rgba(102, 126, 234, 0.8);
    box-shadow: none !important; /* 移除阴影，避免显示黑条 */
    background: transparent !important; /* 移除背景，避免显示黑条 */
    transform: scale(1.05); /* 选中时轻微放大，不移动 */
}

.productguide-product-thumb.active .productguide-product-thumb-img {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* 只有在动画完成后才允许hover效果 */
.productguide-product-thumb.animation-complete:hover {
    transform: scale(1.03); /* 悬停时轻微放大，不移动 */
    /* 悬停时的立体边框增强，与分类图标样式一致 */
    border: 3px solid rgba(102, 126, 234, 0.3);
    box-shadow: 
        /* 外边框高光（左上） */
        inset -2px -2px 4px rgba(255, 255, 255, 0.9),
        inset 2px 2px 4px rgba(0, 0, 0, 0.25),
        /* 外边框阴影（右下） */
        inset -1px -1px 2px rgba(255, 255, 255, 0.7),
        inset 1px 1px 2px rgba(0, 0, 0, 0.35),
        /* 外部阴影增强 */
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        /* 内部高光和阴影 */
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    background: transparent !important; /* 移除背景，避免显示黑条 */
}

.productguide-product-thumb:hover .productguide-product-thumb-img {
    transform: scale(1.05);
}

/* 产品名称 - 完全独立于产品图标容器，显示在body中，带精美卡片效果 - 与分类图标样式相同 */
.productguide-product-thumb-title {
    position: fixed; /* 固定定位，完全独立于容器 */
    top: -9999px; /* 初始位置：移到屏幕外，避免显示在可见区域（JavaScript会动态更新） */
    left: -9999px; /* 初始位置：移到屏幕外，避免显示在可见区域（JavaScript会动态更新） */
    transform: translateX(-50%); /* 水平居中 */
    font-size: 13px;
    color: #333;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    /* 精美的白色卡片背景，带渐变 - 与分类图标样式相同 */
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    padding: 10px 16px;
    border-radius: 12px;
    opacity: 0; /* 初始透明度为0，JavaScript会动态更新 */
    visibility: hidden; /* 初始隐藏，JavaScript会动态更新 */
    transition: none !important; /* 移除动画，悬停时直接显示 */
    pointer-events: none;
    z-index: 10010 !important; /* 最高z-index，确保显示在幕布最上层 */
    /* 确保完全独立，不受任何容器限制 */
    margin: 0 !important;
    /* 立体卡片阴影效果 - 与分类图标样式相同 */
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    /* 精致边框 - 与分类图标样式相同 */
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* 文字阴影增强可读性 - 与分类图标样式相同 */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    /* 最小宽度确保卡片美观 */
    min-width: 120px;
}

/* 悬停效果已通过JavaScript控制，标题现在完全独立于产品图标容器 */

/* 上方箭头指向图标 - 使用白色匹配卡片背景 - 与分类图标样式相同 */
.productguide-product-thumb-title::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
    /* 箭头阴影效果 - 与分类图标样式相同 */
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

/* 箭头内部高光效果（使用伪元素创建双层箭头）- 与分类图标样式相同 */
.productguide-product-thumb-title::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #f8f9fa;
}

/* Product Info Card */
.productguide-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.productguide-info-card-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.productguide-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.productguide-info-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

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

.productguide-info-item:hover {
    padding-left: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.productguide-info-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 14px;
}

.productguide-info-value {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.productguide-detail-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.productguide-detail-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Product Detail Content */
.productguide-detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* 移动端响应式：保持正方形比例 */
@media (max-width: 768px) {
    .productguide-detail-image-card {
        width: 100%;
        max-width: 360px;
        height: auto;
        aspect-ratio: 1; /* 保持正方形 */
    }
    
    .productguide-detail-image {
        width: 100%;
        aspect-ratio: 1; /* 保持正方形 */
        border-radius: 12px;
        overflow: hidden;
    }
    
    .productguide-detail-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.productguide-detail-info-card {
    width: 100%;
}

.productguide-detail-info-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 滚动条样式 */
/* 注意：产品图标容器的滚动条已在 .productguide-product-thumbs 中隐藏 */
.productguide-detail-content::-webkit-scrollbar {
    width: 6px;
}

.productguide-detail-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.productguide-detail-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.productguide-detail-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Loading Animation */
/* 骨架屏加载动画 */
.productguide-loading-skeleton {
    position: relative;
    overflow: hidden;
}

.productguide-loading-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.productguide-skeleton-line {
    background: #e0e0e0;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.productguide-skeleton-image {
    opacity: 0.6;
    filter: blur(2px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.productguide-skeleton-image.loaded {
    opacity: 1;
    filter: blur(0);
}

.productguide-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.productguide-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.productguide-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.productguide-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.productguide-empty-text {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .productguide-icon-btn {
        width: 45px;
        height: 45px;
        right: 15px;
    }
    
    .productguide-icon-btn img {
        width: 28px;
        height: 28px;
    }
    
    .productguide-icon-btn i.fa {
        font-size: 14px !important;
    }
    
    .productguide-logo-card {
        left: 15px;
        top: 40px; /* 移动端距离顶部40px */
    }
    
    @keyframes logoFadeIn {
        0% {
            opacity: 0;
            transform: scale(0.95);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    .productguide-logo-wrapper {
        width: 200px;
        height: 44px;
        padding: 6px 10px;
    }
    
    .productguide-categories {
        left: 15px;
        gap: 12px;
    }
    
    .productguide-category-item {
        width: 70px;
        height: 70px;
    }
    
    .productguide-category-img {
        width: 100%;
        height: 100%;
    }
    
    .productguide-category-title {
        left: 90px;
        font-size: 11px;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .productguide-category-item:hover .productguide-category-title {
        left: 85px;
    }
    
    /* 移动端箭头调整 */
    .productguide-category-title::before {
        left: -7px;
        border-top-width: 7px;
        border-bottom-width: 7px;
        border-right-width: 7px;
    }
    
    .productguide-category-title::after {
        left: -6px;
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-right-width: 6px;
    }
    
    .productguide-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .productguide-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    /* 移动端产品图标标题样式 */
    .productguide-product-thumb-title {
        bottom: -45px;
        font-size: 11px;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .productguide-product-thumb:hover .productguide-product-thumb-title {
        bottom: -40px;
    }
    
    /* 移动端箭头调整 */
    .productguide-product-thumb-title::before {
        top: -7px;
        border-left-width: 7px;
        border-right-width: 7px;
        border-bottom-width: 7px;
    }
    
    .productguide-product-thumb-title::after {
        top: -6px;
        border-left-width: 6px;
        border-right-width: 6px;
        border-bottom-width: 6px;
    }
}

/* Smooth Scrollbar */
.productguide-container::-webkit-scrollbar {
    width: 8px;
}

.productguide-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.productguide-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.productguide-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 心电图显示效果 */
.productguide-ecg-wrapper {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40vw; /* 屏幕宽度的40% */
    min-width: 300px; /* 最小宽度，确保在小屏幕上也能显示 */
    max-width: 600px; /* 最大宽度 */
    height: 25vh; /* 屏幕高度的25%（增加高度以显示更明显的波形） */
    min-height: 150px; /* 最小高度，确保有足够的空间显示波形 */
    max-height: 300px; /* 最大高度 */
    z-index: 10010 !important; /* 确保在幕布（z-index: 9999）和所有内容（z-index: 10000-10003）之上 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    background: transparent; /* 透明背景 */
    pointer-events: none; /* 不阻挡其他元素的交互 */
    display: block !important; /* 确保元素显示 */
}

.productguide-ecg-wrapper.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.productguide-ecg-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: transparent; /* 透明背景 */
}

/* 视频占位符样式 */
.productguide-video-placeholder {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: #f5f5f5;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.productguide-video-loading {
    text-align: center;
    color: #666;
}

.productguide-video-loading-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 12px;
    animation: video-pulse 1.5s ease-in-out infinite;
}

.productguide-video-loading-text {
    font-size: 14px;
    color: #999;
}

@keyframes video-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.productguide-video-error {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 视频元素样式 */
.productguide-detail-content video,
.productguide-detail-content iframe {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.productguide-detail-content video {
    display: block;
    background: #000;
}

.productguide-detail-content iframe {
    min-height: 400px;
    border: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .productguide-visit-stats {
        bottom: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .productguide-visit-count {
        font-size: 14px;
    }
    
    .productguide-ecg-wrapper {
        width: 40vw;
        height: 15vh;
        bottom: 10px;
    }
    
    .productguide-video-placeholder {
        min-height: 150px;
    }
    
    .productguide-detail-content iframe {
        min-height: 250px;
    }
}

