/* 文章页面样式 - 商城风格 */
/* 使用主CSS变量系统统一风格 */

/* 产品页面布局 */
.product-page {
    padding: var(--pic-space-2xl) var(--pic-space-xl);
    background: var(--pic-bg-white);
    border-radius: var(--pic-radius-sm);
    box-shadow: var(--pic-shadow-sm);
}

/* 商品信息区域 */
.product-info-section {
    display: grid;
    grid-template-columns: 76px 1fr 0.8fr; /* 调整第一列宽度匹配缩略图画廊 */
    gap: 24px;
    align-items: stretch; /* 改为拉伸对齐，使所有列等高 */
    min-height: 560px; /* 调整最小高度以适配3:4比例图片 */
}

/* 产品画廊 */
.product-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* 填满容器高度 */
    justify-content: flex-start; /* 从顶部开始排列 */
}

/* 移动端画廊容器在桌面端隐藏 */
.product-gallery-mobile {
    display: none;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 3/4; /* 保持3:4比例 */
    box-shadow: var(--pic-shadow-md);
    border: 1px solid var(--pic-border);
    width: 100%;
    max-height: 600px;
}

/* 点击放大提示 */
.main-image-container::after {
    content: "点击放大";
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--pic-text-white);
    padding: var(--pic-space-xs) var(--pic-space-sm);
    border-radius: var(--pic-radius-sm);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}

.main-image-container:hover::after {
    opacity: 1;
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.main-product-image:hover {
    opacity: 0.9;
}

/* 放大图标已删除 */

/* 缩略图画廊 */
.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding: 2px; /* 添加小量内边距防止边框被遮挡 */
    scrollbar-width: none; /* Firefox */
    height: 100%; /* 填满容器高度 */
    width: 76px; /* 调整宽度：70px缩略图 + 2px边框 + 4px内边距 */
    align-self: stretch; /* 拉伸对齐 */
    align-items: center; /* 居中对齐缩略图 */
}

/* 垂直缩略图画廊滚动条样式 - PC端隐藏 */

.thumbnail-gallery::-webkit-scrollbar {
    width: 0px; /* 隐藏滚动条 */
    background: transparent; /* 可选：使滚动条透明 */
}

.thumbnail-item {
    width: 70px; /* 减小尺寸 */
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--pic-shadow-sm);
    flex-shrink: 0;
}

.thumbnail-item:hover {
    transform: translateY(-1px); /* 减小向上移动距离 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-item.active {
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transform: scale(1.02); /* 减小缩放比例，避免边框被遮挡 */
}

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

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

/* 产品详情 - 全新设计 */
.product-details {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 价格区域 */
.product-details .price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* 价格左侧区域 */
.product-details .price-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex: 1;
}

.product-details .current-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.product-details .price-symbol {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b35;
}

.product-details .price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
}

.product-details .original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

/* 免费资源标签 */
.free-badge {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-top: 4px;
}

/* 热卖标签 */
.hot-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(45deg, var(--pic-primary), var(--pic-primary-hover));
    color: var(--pic-text-white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 0; /* 移除下边距，使其与价格在同一行 */
    flex-shrink: 0; /* 防止在flex布局中收缩 */
}

.hot-badge i {
    font-size: 10px;
}

/* 产品标题 */
.product-details .product-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* 产品标签 */
.product-tags {
    display: flex;
    flex-wrap: wrap;
}

.product-tags .tag {
    background: var(--pic-bg-hover);
    color: var(--pic-text-light);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.product-tags .tag:first-child {
    background: var(--pic-primary);
    color: var(--pic-text-white);
}

/* 产品规格 */
.product-specs {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.spec-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* 购买按钮 */
.product-details .btn-purchase,
.product-details .btn-download {
    width: 100%;
    background: var(--pic-text);
    color: var(--pic-text-white);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-details .btn-purchase:hover,
.product-details .btn-download:hover {
    background: var(--pic-text-light);
    transform: translateY(-1px);
}

/* 收藏按钮 */
.btn-favorite {
    width: 100%;
    background: var(--pic-bg-white);
    color: var(--pic-text);
    border: 1px solid var(--pic-border);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-favorite:hover {
    background: var(--pic-primary-light);
    border-color: var(--pic-primary);
    color: var(--pic-primary);
}

.btn-favorite i {
    font-size: 13px;
}

.btn-favorite.favorited {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.btn-favorite.favorited i {
    color: #ffc107;
}

/* 旧样式已被新设计替代 */

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.feature-item i {
    color: #28a745;
    width: 16px;
}

/* 购买区域 */
.purchase-section {
    background: var(--pic-bg-white);
    border: 2px solid var(--pic-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
}

.purchase-options {
    margin-bottom: 20px;
}

.payment-methods {
    text-align: center;
}

.method-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
}

.payment-icon.alipay i {
    color: #1677ff;
}

.payment-icon.wechat i {
    color: #07c160;
}

/* 购买保障 */
.purchase-guarantee {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.guarantee-item i {
    color: #28a745;
    width: 16px;
}

/* 商品详情描述区域 */
.product-description-section {
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
    padding-top: 30px;
}

.product-description-section .content-wrapper {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.product-description-section .content-wrapper h1,
.product-description-section .content-wrapper h2,
.product-description-section .content-wrapper h3,
.product-description-section .content-wrapper h4,
.product-description-section .content-wrapper h5,
.product-description-section .content-wrapper h6 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #222;
    font-weight: 600;
}

.content-wrapper {
    line-height: 1.8;
    color: #333;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 规格表格 */
.specs-table {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

/* 评价区域 */
.reviews-section {
    padding: 20px 0;
}

.reviews-summary {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.average-rating {
    font-size: 48px;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-stars i {
    color: #ffc107;
    font-size: 20px;
    margin: 0 2px;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-reviews i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ===== 独立相关推荐区域 ===== */
.related-products-wrapper {
    background: var(--pic-bg-body);
}


/* 相关推荐区域样式 */
.related-products-section {
    margin: 40px 0;
}


/* 相关产品网格，使用首页同样的works-grid类 */
.related-products-section .works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px;
    margin-bottom: 0;
}

/* 无相关产品时的提示 */
.no-related-products {
    padding: 30px 0;
    text-align: center;
}

.no-content-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.no-content-message i {
    font-size: 32px;
    color: var(--pic-text-muted);
    opacity: 0.5;
}

.no-content-message p {
    color: var(--pic-text-muted);
}

.no-content-message a {
    color: var(--pic-primary);
    text-decoration: none;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .related-products-section .works-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .related-products-section .works-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {

    
    .related-products-section .works-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 图片占位符 */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pic-text-muted);
    font-size: 48px;
}

/* 图片放大模态框 - 优化显示效果 */
.image-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 40px 20px;
    box-sizing: border-box;
}

.zoom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 9998;
    /* 移除点击时的颜色变化 */
    -webkit-tap-highlight-color: transparent;
    background: rgba(0, 0, 0, 0.01); /* 保持透明，仅用于拦截点击 */
}

.zoom-modal-content {
    position: relative;
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.zoom-modal-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
    pointer-events: auto;
}

.zoom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff !important; /* 亮色背景，提升对比度 */
    border: none;
    color: #222 !important; /* 深色图标 */
    font-size: 18px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.zoom-close:hover {
    background: #ffeaea !important;
    color: #d32f2f !important;
    transform: scale(1.1);
}

/* 图片切换箭头 */
.zoom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.zoom-prev {
    left: 20px;
}

.zoom-next {
    right: 20px;
}

.zoom-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.zoom-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.zoom-arrow i {
    font-size: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-page {
        padding: 12px;
        max-width: calc(100vw - 16px);
    }
    
    .product-info-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .product-gallery-mobile {
        display: block !important;
        order: -1; /* 确保图片区域在移动端显示在最前面 */
    }
    
    /* 在移动端隐藏桌面端的缩略图和画廊 */
    .product-info-section > .thumbnail-gallery,
    .product-info-section > .product-gallery {
        display: none;
    }
    
    /* 移动端保持旧的缩略图样式为新的缩略图画廊 */
    
    /* 移动端隐藏旧的缩略图画廊，使用新的mobile-thumbnail-gallery */
    .thumbnail-gallery {
        display: none;
    }
    
    .product-details {
        padding: 0;
    }
    
    .product-details .product-title {
        font-size: 16px;
    }
    
    .product-details .price-amount {
        font-size: 24px;
    }
    
    .product-meta {
        gap: 12px;
        padding: 12px;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .product-pricing,
    .purchase-section {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .guarantee-item {
        font-size: 12px;
    }
    
    .payment-icons {
        flex-direction: column;
        gap: 8px;
    }
    
    .zoom-close {
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        width: 35px;
        height: 35px;
        font-size: 18px;
        background: #fff !important;
        color: #222 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }
    .zoom-arrow {
        width: 45px;
        height: 45px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        z-index: 10001;
        opacity: 1;
    }
    .zoom-prev {
        left: 20px;
    }
    .zoom-next {
        right: 20px;
    }
}
@media (max-width: 480px) {
    .thumbnail-gallery {
        gap: 6px;
    }
    
    .thumbnail-item {
        width: 55px;
        height: 55px;
    }
    
    .product-pricing,
    .purchase-section {
        padding: 16px;
    }
    
    .btn-purchase,
    .btn-download {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .product-name {
        font-size: 13px;
    }
    
    .price {
        font-size: 15px;
    }
    
    .main-image-container {
        max-height: 350px;
    }
    
    /* 移动端滑动画廊的额外优化 */
    .mobile-swiper-container {
        height: 300px; /* 减小高度适应小屏 */
        aspect-ratio: 3/4; /* 保持3:4比例 */
        margin-bottom: 12px;
    }
    
    .mobile-thumbnail-gallery {
        justify-content: center; /* 小屏幕居中显示 */
        padding: 8px 0; /* 减小上下间距 */
        gap: 4px; /* 进一步减小间距 */
    }
    
    .mobile-thumbnail-item {
        width: 45px; /* 更小的缩略图 */
        height: 45px;
        flex-shrink: 0; /* 防止缩略图被压缩 */
    }
    
    .image-zoom-modal {
        padding: 20px 10px;
    }
    
    .zoom-modal-content {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 40px);
    }

    .zoom-close {
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        width: 35px;
        height: 35px;
        font-size: 18px;
        background: #fff !important;
        color: #222 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        z-index: 10001;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: auto;
    }
    .zoom-arrow {
        width: 45px;
        height: 45px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
        z-index: 10001;
        opacity: 1;
    }
    .zoom-prev {
        left: 20px !important;
    }
    .zoom-next {
        right: 20px !important;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* 按钮加载状态 - 不旋转整个按钮 */
.btn-loading {
    opacity: 0.8;
    cursor: not-allowed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loading:hover {
    transform: none !important; /* 禁用hover效果 */
}

/* 只让图标旋转，不让整个按钮旋转 */
.btn-loading .fa-spinner {
    animation: spin 1s linear infinite;
    font-size: 14px;
}

/* 保留原有的loading样式用于其他元素，但移除对按钮的影响 */
.loading:not(.btn-loading) {
    opacity: 0.6;
    pointer-events: none;
}

.loading:not(.btn-loading)::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* 移动端滑动提示动画 */
@keyframes swipeHint {
    0%, 100% { 
        opacity: 0.8; 
        transform: translateY(-50%) translateX(0);
    }
    50% { 
        opacity: 0.4; 
        transform: translateY(-50%) translateX(3px);
    }
}

/* 移动端滑动画廊样式 */
.mobile-swiper-container {
    position: relative;
    width: 100%;
    height: 400px; /* 调整高度以适配3:4比例 */
    aspect-ratio: 3/4; /* 添加3:4比例 */
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateZ(0); /* 启用硬件加速 */
    contain: layout style paint; /* 优化渲染性能 */
}

.mobile-swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.mobile-swiper-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    transform: translateZ(0); /* 启用硬件加速 */
    backface-visibility: hidden; /* 避免闪烁 */
}

.mobile-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* 滑动指示器 */
.mobile-swiper-pagination {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* 移动端缩略图画廊 */
.mobile-thumbnail-gallery {
    display: flex;
    gap: 8px;
    padding: 16px 12px; /* 左右添加一些内边距 */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center; /* 默认居中 */
    min-height: 76px; /* 确保有足够的高度 */
}

.mobile-thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

.mobile-thumbnail-item {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.mobile-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mobile-thumbnail-item.active {
    border-color: var(--primary-color, #007cba);
    transform: scale(1.05);
}

.mobile-thumbnail-item:hover {
    transform: scale(1.02);
}

/* 滑动手势提示 */
.mobile-swiper-container::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(255, 255, 255, 0.6);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    animation: swipeHintMobile 3s ease-in-out infinite;
    z-index: 2;
    opacity: 0.8;
}

@keyframes swipeHintMobile {
    0%, 100% { 
        opacity: 0.8; 
        transform: translateY(-50%) translateX(0);
    }
    50% { 
        opacity: 0.3; 
        transform: translateY(-50%) translateX(5px);
    }
}

/* 触摸反馈 */
.mobile-swiper-slide.dragging {
    transition: none;
}

.mobile-swiper-wrapper.dragging {
    transition: none;
}

/* 下载信息模态框样式 */
.download-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-info-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.download-info-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.download-info-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(45deg, #007cba, #0073aa);
    color: white;
    border-radius: 12px 12px 0 0;
}

.download-info-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-info-modal .modal-header h3 i {
    font-size: 16px;
}

.download-info-modal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.download-info-modal .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.download-info-modal .modal-body {
    padding: 24px;
}

.download-info-modal .download-item {
    margin-bottom: 20px;
}

.download-info-modal .download-item:last-child {
    margin-bottom: 0;
}

.download-info-modal .download-item label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.download-info-modal .download-url {
    display: flex;
    gap: 8px;
    align-items: center;
}

.download-info-modal .download-url input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
}

.download-info-modal .download-url input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.download-info-modal .extract-code,
.download-info-modal .extract-password {
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-info-modal .code {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: #007cba;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
}

.download-info-modal .copy-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.download-info-modal .copy-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.download-info-modal .copy-btn:active {
    transform: translateY(0);
}

.download-info-modal .modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.download-info-modal .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.download-info-modal .btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.download-info-modal .btn i {
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .download-info-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .download-info-modal .modal-header,
    .download-info-modal .modal-body,
    .download-info-modal .modal-footer {
        padding: 16px;
    }
    
    .download-info-modal .download-url {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-info-modal .extract-code,
    .download-info-modal .extract-password {
        flex-direction: column;
        align-items: stretch;
    }
    
    .download-info-modal .copy-btn {
        margin-top: 8px;
    }
}

/* 下载信息区域样式 - 与产品规格风格一致 */
.download-info {
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.download-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.download-info .info-row:last-child {
    border-bottom: none;
}

.download-info .info-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.download-info .info-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
    font-family: monospace;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.download-info .info-value:hover {
    background: #e9ecef;
    color: #007cba;
}

.download-info .copy-icon {
    font-size: 11px;
    color: #999;
    opacity: 0.6;
}

.download-info .info-value:hover .copy-icon {
    opacity: 1;
    color: #007cba;
}

/* 复制成功状态 */
.download-info .info-value.copied {
    background: #d4edda;
    color: #155724;
}

.download-info .info-value.copied .copy-icon {
    color: #155724;
    opacity: 1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .download-info {
        margin-top: 12px;
        padding: 12px;
    }
    
    .download-info .info-row {
        padding: 8px 0;
    }
    
    .download-info .info-label,
    .download-info .info-value {
        font-size: 12px;
    }
}

/* 横向卡片式下载信息区域样式 */
.download-info-row {
    display: flex;
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0 12px;
    min-width: 180px;
    height: 40px;
    gap: 8px;
    box-sizing: border-box;
}

.info-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-right: 6px;
    min-width: 48px;
}

.info-value {
    font-family: monospace;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 4px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.copy-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.2s;
    margin-left: 2px;
}
.copy-btn:hover {
    background: #e9ecef;
    color: #007cba;
}

@media (max-width: 600px) {
    .download-info-row {
        flex-direction: column;
        gap: 10px;
    }
    .info-card {
        min-width: 0;
        width: 100%;
    }
} 

/* 下载区域美化 - 2024版UI */
.download-section-new {
    background: var(--pic-bg-light);
    border-radius: var(--pic-radius-lg);
    padding: var(--pic-space-md);
    margin-top: var(--pic-space-lg);
}

/* 下载按钮样式 */
.btn-download-new {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--pic-space-sm);
    background-color: var(--pic-primary);
    color: var(--pic-text-white);
    border: none;
    border-radius: var(--pic-radius-md);
    font-size: var(--pic-font-size-md);
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-download-new i {
    margin-right: var(--pic-space-xs);
    font-size: var(--pic-font-size-lg);
}

.btn-download-new:hover {
    background-color: var(--pic-primary-dark);
    transform: translateY(-2px);
    color: var(--pic-text-white);
    text-decoration: none;
}

/* 代码卡片样式 */
.code-card {
    display: flex;
    align-items: center;
    background-color: var(--pic-bg-white);
    border-radius: var(--pic-radius-md);
    padding: var(--pic-space-xs) var(--pic-space-md);
    margin-bottom: var(--pic-space-sm);
    border: 1px solid var(--pic-border-light);
}

.code-card-label {
    min-width: 70px;
    color: var(--pic-text-muted);
    font-size: var(--pic-font-size-sm);
    font-weight: 500;
}

.code-card-value {
    flex-grow: 1;
    font-family: monospace;
    font-size: var(--pic-font-size-md);
    color: var(--pic-text);
    font-weight: 500;
    margin: 0 var(--pic-space-sm);
}

.code-card-copy {
    background: none;
    border: none;
    color: var(--pic-primary);
    cursor: pointer;
    padding: var(--pic-space-xs);
    border-radius: var(--pic-radius-sm);
    transition: background-color 0.2s ease;
}

.code-card-copy:hover {
    background-color: var(--pic-primary-light);
    color: var(--pic-primary-dark);
}

/* 提示文本样式 */
.download-tip {
    font-size: var(--pic-font-size-xs);
    color: var(--pic-text-muted);
    text-align: center;
    margin-top: var(--pic-space-sm);
}

/* 复制成功状态 */
.code-card.copied {
    background-color: var(--pic-success-light);
    border-color: var(--pic-success);
}

.code-card.copied .code-card-value {
    color: var(--pic-success);
}

.code-card.copied .code-card-copy {
    color: var(--pic-success);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .btn-download-new {
        padding: var(--pic-space-sm) var(--pic-space-md);
    }
    
    .code-card {
        padding: var(--pic-space-xs) var(--pic-space-sm);
    }
} 

.model-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.model-label i {
    font-size: 13px;
    color: var(--pic-primary);
}
.model-name:hover {
    background: var(--pic-primary-hover);
    color: #fff;
}
.other-tags {
    display: flex;
    gap: 4px;
}
.tag-small {
    background: #f0f0f0;
    color: #888;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.tag-small:hover {
    background: #e0e0e0;
    color: #555;
} 

.category-tag {
    background: #e6f0ff;
    color: #2176ff;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.category-tag:hover {
    background: #cce0ff;
    color: #1251a3;
} 

.category-label {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    display: flex;
    align-items: center;
    margin-left: 12px;
}
.category-label i {
    color: var(--pic-primary);
    margin-right: 3px;
}
.category-more-text {
    margin-left: 1px;
}
.category-main {
    background: var(--pic-primary);
    color: var(--pic-text-white);
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
    text-decoration: none;
    transition: background 0.2s;
}
.category-main:hover {
    background: var(--pic-primary-hover);
    color: #fff;
} 