/* 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;
}

/* 确保在菜单栏中正确显示 */
.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;
}

/* 呼吸动画已替换为更流畅的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%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

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

/* Close Button */
.productguide-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 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);
}

/* 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: 30px;
    top: 45px; /* 距离浏览器顶部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: 248px;
    height: 55px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 8px 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 - 垂直显示在浏览器窗口左侧 */
.productguide-categories {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
    z-index: 10000;
    /* 移除滚动，让所有图标完整显示 */
    overflow: visible; /* 确保分类名称卡片不被裁剪 */
}

/* Category Icon Item */
.productguide-category-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* 立体阴影效果 */
    box-shadow: 
        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: -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 {
    /* 激活状态下的立体阴影 */
    box-shadow: 
        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 {
    box-shadow: 
        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: -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);
    /* 激活状态下的立体阴影 */
    box-shadow: 
        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: 15px;
    align-items: center;
    justify-content: center; /* 水平居中 */
    max-width: calc(100vw - 200px); /* 避免超出屏幕 */
    padding: 10px;
    background: transparent;
    overflow-x: auto; /* 如果内容过多，允许横向滚动 */
    overflow-y: hidden; /* 不允许纵向滚动 */
    /* 定位由JS动态设置，使用浏览器窗口坐标 */
}

.productguide-products-wrapper.active {
    display: flex; /* 激活时显示为flex布局 */
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* 产品包装器消失动画 */
.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 - 显示在产品图标下方，第一张卡片与分类图标间隔20px */
.productguide-detail-wrapper {
    position: fixed;
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    pointer-events: none;
}

.productguide-detail-wrapper.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 三张卡片的包装器 */
.productguide-detail-cards-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

/* 第一张卡片：产品图片卡片（360x360px） */
.productguide-detail-image-card {
    width: 360px;
    height: 360px;
    background: #fff;
    border-radius: 16px;
    padding: 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: 320px; /* 360 - 20*2 (padding) = 320px */
    height: 320px; /* 保持正方形 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 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: 600px;
    height: 650px;
    background: #fff;
    border-radius: 16px;
    padding: 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;
}

/* 产品详细内容 */
.productguide-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    word-wrap: break-word;
}

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

/* 第三张卡片：产品采购数据表格卡片（600x650px） */
.productguide-detail-purchase-card {
    width: 600px;
    height: 650px;
    background: #fff;
    border-radius: 16px;
    padding: 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;
}

/* 采购表格包装器 */
.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: 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;
    flex-wrap: nowrap; /* 不换行，保持在一行 */
    gap: 15px;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    max-width: calc(100vw - 200px); /* 避免超出屏幕 */
    overflow-x: auto; /* 如果内容过多，允许横向滚动 */
    overflow-y: hidden; /* 不允许纵向滚动 */
}

.productguide-product-thumb {
    position: relative;
    width: 130px;
    height: 130px;
    border-radius: 12px; /* 方形，带圆角 */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* 美化边框 */
    border: 2px solid rgba(255, 255, 255, 0.8);
    /* 立体阴影效果 */
    box-shadow: 
        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);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 初始位置：上方（准备掉落） */
    transform: translateY(-200px) scale(0.8);
    /* 确保元素可见但处于初始状态 */
    visibility: visible;
}

/* 从上方掉落动画 */
@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;
}

.productguide-product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px; /* 与容器圆角一致 */
    transition: all 0.3s ease;
}

.productguide-product-thumb.active {
    /* 选中状态：美化边框效果 */
    border: 3px solid rgba(102, 126, 234, 0.8);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.4),
        0 8px 20px rgba(102, 126, 234, 0.3),
        0 0 25px rgba(102, 126, 234, 0.2),
        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.05); /* 选中时轻微放大，不移动 */
}

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

.productguide-product-thumb:hover {
    transform: scale(1.03); /* 悬停时轻微放大，不移动 */
    box-shadow: 
        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);
    border-color: rgba(255, 255, 255, 1); /* 悬停时边框更亮 */
}

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

.productguide-product-thumb-title {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 6px;
    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 4px 12px rgba(0, 0, 0, 0.3);
}

.productguide-product-thumb-title::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.8);
}

.productguide-product-thumb:hover .productguide-product-thumb-title {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* 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::-webkit-scrollbar,
.productguide-detail-content::-webkit-scrollbar {
    width: 6px;
}

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

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

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

/* Loading Animation */
.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-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;
    }
}

/* 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);
}

