/**
 * Premium Visual Effects
 * 高端视觉效果 - 国际大厂级别的动效系统
 * 灵感来源：Apple, Anker, Tesla 等品牌网站
 */

/* ========================================
   1. 全局变量和基础设置 (Titanium & Precision Theme)
   ======================================== */
:root {
    /* 主色：深空科技蓝 (Deep Tech Blue) - 更深邃，像精密仪表盘 */
    --premium-gradient-1: linear-gradient(135deg, #005bb5 0%, #0071e3 100%);

    /* 辅色：钨钢灰 (Tungsten) - 模拟连接器外壳的金属质感 */
    --premium-gradient-2: linear-gradient(135deg, #48484a 0%, #1d1d1f 100%);

    /* 点缀：接触点金 (Copper Gold) - 代表Pin针的镀金工艺 */
    --premium-gradient-5: linear-gradient(135deg, #b88a44 0%, #e6d0a1 100%);

    /* 背景层次：不是纯白，而是极淡的“无尘灰” */
    --bg-base: #fbfbfd;
    --bg-subtle: #f5f5f7;

    /* 玻璃态升级：更厚重，像光学玻璃 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    /* 不透度提高，增加质感 */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.05);

    /* 光晕：冷白光 */
    --glow-color: rgba(0, 113, 227, 0.3);
}

body {
    background-color: var(--bg-base);
    color: #1d1d1f;
    /* Apple Black */
}

/* ========================================
   2. 氛围感背景 (Ambient Studio Light)
   ======================================== */
@keyframes ambient-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.animated-gradient {
    /* 不再是流动的色块，而是模拟顶部柔光灯打下来的效果 */
    background:
        radial-gradient(circle at 50% 0%, #ffffff 0%, transparent 70%),
        /* 顶部主光 */
        linear-gradient(180deg, #f5f5f7 0%, #ebedee 100%);
    /* 底部环境光 */
    position: relative;
    z-index: 1;
}

/* 添加细腻的噪点纹理，增加“实物感” */
.animated-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: -1;
}

/* ========================================
   3. 光线扫过效果（Apple风格）
   ======================================== */
@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    pointer-events: none;
    z-index: 10;
}

/* 鼠标悬停时触发光线扫过 */
.shine-on-hover {
    position: relative;
    overflow: hidden;
}

.shine-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    z-index: 10;
}

.shine-on-hover:hover::before {
    left: 100%;
}

/* ========================================
   4. 玻璃态效果（Glassmorphism）
   ======================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.45);
    transform: translateY(-5px);
}

/* 针对图片的特殊玻璃态适配 */
img.glass-card {
    padding: 10px;
    /* 增加内边距，形成相框感 */
    background: #ffffff;
    /* 图片背景纯白，更干净 */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* 极淡的边框 */
    border-radius: 12px;
    /* 圆角略小 */
    max-width: 100%;
    /* 确保图片不溢出 */
    height: auto;
}

/* 深色玻璃态 */
.glass-card-dark {
    background: rgba(29, 29, 31, 0.72);
    /* Apple Dark Gray */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 20px;
}

/* ========================================
   5. 3D倾斜效果（鼠标跟随）
   ======================================== */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(1.05);
}

/* 3D内部元素 */
.card-3d-inner {
    transform: translateZ(50px);
    transition: transform 0.2s ease-out;
}

/* ========================================
   6. 发光边框效果
   ======================================== */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--glow-color),
            0 0 40px var(--glow-color),
            0 0 60px var(--glow-color);
    }

    50% {
        box-shadow: 0 0 10px var(--glow-color),
            0 0 20px var(--glow-color),
            0 0 30px var(--glow-color);
    }
}

.glow-border {
    position: relative;
    border-radius: 20px;
    animation: glow-pulse 3s ease-in-out infinite;
}

/* 渐变发光边框 - 改为钛银色调 */
.glow-border-gradient {
    position: relative;
    border-radius: 20px;
    padding: 1px;
    /* 边框更细 */
    background: linear-gradient(45deg, #d2d2d7, #868f96, #0071e3, #d2d2d7);
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
}

.glow-border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    filter: blur(4px);
    /* 模糊度降低，更锐利 */
    opacity: 0.6;
}

/* ========================================
   7. 浮动动画
   ======================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-subtle {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-subtle {
    animation: float-subtle 4s ease-in-out infinite;
}

/* 浮动延迟变体 */
.float-delay-1 {
    animation-delay: 0.2s;
}

.float-delay-2 {
    animation-delay: 0.4s;
}

.float-delay-3 {
    animation-delay: 0.6s;
}

.float-delay-4 {
    animation-delay: 0.8s;
}

/* ========================================
   8. 光晕跟随效果（鼠标移动）
   ======================================== */
.glow-cursor-container {
    position: relative;
    overflow: hidden;
}

.glow-cursor-container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.glow-cursor-container:hover::after {
    opacity: 1;
}

/* ========================================
   9. 渐变文字效果 (Minimalist Obsidian Theme)
   ======================================== */
.gradient-text {
    /* 静态文字改为纯正的深黑色，模拟高级印刷品 */
    background: linear-gradient(135deg, #000000 0%, #1d1d1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.gradient-text-animated {
    /* 动态渐变改为黑曜石光泽：黑 -> 深灰 -> 黑，无杂色 */
    background: linear-gradient(-45deg,
            #000000,
            #434343,
            #1d1d1f,
            #000000);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

/* ========================================
   10. 粒子背景效果
   ======================================== */
@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: particle-float linear infinite;
}

/* ========================================
   11. 脉冲光圈效果
   ======================================== */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-ring {
    position: relative;
}

.pulse-ring::before,
.pulse-ring::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}

.pulse-ring::after {
    animation-delay: 1s;
}

/* ========================================
   12. 产品卡片高级效果
   ======================================== */
/* ========================================
   12. 产品卡片高级效果 (Titanium Finish)
   ======================================== */
.premium-product-card {
    position: relative;
    /* 模拟钛金属板的微暖色调 */
    background: linear-gradient(145deg, #ffffff 0%, #f0f2f5 100%);
    border-radius: 24px;
    padding: 40px;

    /* 关键：双层阴影打造悬浮感 + 顶部边缘高光(Highlight) */
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        /* 顶部高光倒角 */
        0 10px 40px -10px rgba(0, 0, 0, 0.08),
        /* 漫反射阴影 */
        0 0 0 1px rgba(0, 0, 0, 0.03);
    /* 极细描边 */

    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* 更像Apple的阻尼感 */
    overflow: hidden;
}

/* 添加金属拉丝光泽 */
.premium-product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.premium-product-card:hover {
    transform: translateY(-8px) scale(1.005);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 24px 60px -12px rgba(0, 71, 187, 0.15),
        /* 悬停时透出隐约的科技蓝光晕 */
        0 0 0 1px rgba(0, 113, 227, 0.1);
}

.premium-product-card:hover::after {
    opacity: 1;
    animation: shine 1.5s ease-out forwards;
}

/* ========================================
   13. Hero区域动态背景 (Studio Lighting)
   ======================================== */
.hero-premium-bg {
    position: relative;
    /* 摄影棚灯光：中心亮，四周微暗，打造聚焦感 */
    background:
        radial-gradient(100% 100% at 50% 0%, #ffffff 0%, transparent 80%),
        var(--bg-base);
    overflow: hidden;
}

.hero-premium-bg::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 140%;
    /* 极淡的顶光，不再用蓝色，而是纯白光增强通透感 */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    opacity: 0.6;
    filter: blur(80px);
    /* 极度柔化 */
    pointer-events: none;
    z-index: 0;
}

.hero-premium-bg::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
    /* 关键修复：防止遮挡点击 */
    z-index: 0;
}

/* ========================================
   14. 按钮高级效果 (Blue to Red - High Contrast)
   ======================================== */
.premium-button {
    position: relative;
    padding: 14px 38px;

    /* 默认状态：显眼的科技蓝 */
    background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);

    color: #ffffff;
    border: none;
    border-radius: 980px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);

    /* 蓝色光晕阴影 */
    box-shadow:
        0 4px 12px rgba(0, 113, 227, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;

    display: inline-block;
    text-decoration: none !important;
    text-align: center;
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    /* 流光增强 */
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.5s;
    pointer-events: none;
}

.premium-button:hover {
    transform: translateY(-2px);

    /* 聚焦/悬停状态：鲜艳的红色 */
    background: linear-gradient(135deg, #ff3b30 0%, #ff453a 100%);

    /* 红色阴影 */
    box-shadow:
        0 12px 32px rgba(255, 59, 48, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;

    color: #ffffff !important;
}

.premium-button:hover::before {
    left: 150%;
}

.premium-button:active,
.premium-button:focus,
.premium-button:visited {
    transform: translateY(0);
    /* 保持字体白色 */
    color: #ffffff !important;
    outline: none;
}

/* 激活状态（按下）稍微变暗的红色 */
.premium-button:active {
    background: linear-gradient(135deg, #d22e24 0%, #e0382d 100%);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.2);
}

/* ========================================
   15. 图片悬浮效果
   ======================================== */
.image-premium-hover {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-premium-hover img {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-premium-hover:hover img {
    transform: scale(1.1);
}

.image-premium-hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.image-premium-hover:hover::after {
    opacity: 1;
}

/* ========================================
   16. 移动端字体与排版深度优化 (Mobile Typography)
   ======================================== */
@media screen and (max-width: 768px) {
    html {
        /* 防止横向溢出 */
        overflow-x: hidden;
        /* 启用顺滑滚动 */
        -webkit-overflow-scrolling: touch;
    }

    body {
        /* 1. 字体栈升级：优先使用系统原生字体，确保清晰 */
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        /* 2. 字号调整：正文稍微调大，提升易读性 */
        font-size: 17px;
        line-height: 1.6;
        /* 3. 抗锯齿：让文字在Retina屏上更锐利 */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        /* 4. 字重优化：防止细体字发虚 */
        font-weight: 400;
        color: #333;
        /* 稍微加深，增加对比度 */
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        /* 标题行高优化 */
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

    p {
        margin-bottom: 1.2em;
    }
}

/* ========================================
   17. 移动端画廊布局优化 (Instagram Grid Style)
   ======================================== */
@media screen and (max-width: 768px) {
    .image-gallery {
        /* 恢复网格布局，双列显示，高效浏览 */
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        /* 紧凑间距 */
        padding: 0 16px 40px 16px !important;

        /* 禁用横向滚动 */
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .image-gallery::-webkit-scrollbar {
        display: none;
    }

    /* 图片项适配 */
    .image-gallery img {
        min-width: 0;
        /* 重置 */
        width: 100%;
        height: 100%;
        aspect-ratio: 1/1;
        /* 强制正方形，整齐划一 */
        object-fit: cover;

        scroll-snap-align: none;
        border-radius: 8px;
        box-shadow: none;
        /* 列表页去除阴影，更干净 */
        margin: 0 !important;
    }
}

/* ========================================
   18. 性能优化 (Restored)
   ======================================== */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ========================================
   19. 滚动视差效果 (Restored)
   ======================================== */
.parallax-slow {
    transform: translateY(calc(var(--scroll-position, 0) * -0.3px));
    transition: transform 0.1s ease-out;
}

.parallax-medium {
    transform: translateY(calc(var(--scroll-position, 0) * -0.5px));
    transition: transform 0.1s ease-out;
}

.parallax-fast {
    transform: translateY(calc(var(--scroll-position, 0) * -0.8px));
    transition: transform 0.1s ease-out;
}

/* ========================================
   20. 移动端专属深度优化 (Mobile-First Optimization)
   ======================================== */
@media (max-width: 768px) {
    /* ... Mobile optimizations ... */

    /* ========================================
   17. 滚动视差效果
   ======================================== */
    .parallax-slow {
        transform: translateY(calc(var(--scroll-position, 0) * -0.3px));
        transition: transform 0.1s ease-out;
    }

    .parallax-medium {
        transform: translateY(calc(var(--scroll-position, 0) * -0.5px));
        transition: transform 0.1s ease-out;
    }

    .parallax-fast {
        transform: translateY(calc(var(--scroll-position, 0) * -0.8px));
        transition: transform 0.1s ease-out;
    }

    /* ========================================
   18. 移动端专属深度优化 (Mobile-First Optimization)
   ======================================== */
    @media (max-width: 768px) {

        /* 1. 全局布局紧凑化 */
        .container {
            padding-left: 20px !important;
            padding-right: 20px !important;
        }

        /* 2. 交互/动效降级 - 确保流畅无误触 */
        .card-3d:hover {
            /* 手机上禁用3D翻转，只保留轻微缩放 */
            transform: scale(1.01);
        }

        .glass-card:hover {
            /* 禁用大幅度位移 */
            transform: none;
            background: rgba(255, 255, 255, 0.1);
        }

        .shine-on-hover::before {
            /* 禁用悬停光线，改为自动播放一次 */
            display: none;
        }

        /* 3. 按钮触摸优化 - 精致化调整 */
        .premium-button {
            width: auto;
            /* 取消全宽，保持胶囊形状 */
            min-width: 120px;
            /* 最小宽度，保证易触 */
            max-width: 100%;
            /* 防止溢出 */
            padding: 12px 24px;
            /* 减小内边距 */
            font-size: 0.95rem;
            /* 字号适中 */
            margin-bottom: 0 !important;
            /* 移除底部间距，由父容器gap控制 */
            display: inline-flex;
            justify-content: center;
            align-items: center;
        }

        /* 确保按钮容器有间距 */
        .hero-buttons,
        .contact-buttons-container,
        div[style*="display: flex"] {
            gap: 12px !important;
            /* 增加换行后的垂直和水平间距 */
        }

        .premium-button:hover {
            /* 移动端移除hover位移，防止粘连 */
            transform: none;
            box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
        }

        .premium-button:active {
            /* 增加按下时的反馈 */
            background: #1d1d1f;
            transform: scale(0.96);
        }

        /* 4. 图片视口优化 */
        img.glass-card {
            border-radius: 8px;
            /* 减小圆角 */
            padding: 5px;
            /* 减小内边距 */
        }

        /* 5. Hero区域高度自适应 */
        .hero-premium-bg {
            min-height: auto;
            padding: 60px 0;
        }

        /* 5. Hero区域高度自适应 */
        .hero-premium-bg {
            min-height: auto;
            padding: 60px 0;
        }

        /* 6. 功能禁用 */
        .glow-cursor-container::after {
            display: none;
            /* 禁用光晕跟随 */
        }

        .parallax-slow,
        .parallax-medium,
        .parallax-fast {
            transform: none !important;
            /* 禁用视差，防止滚动抖动 */
        }

        /* 7. 字体排版 */
        .hero-title {
            font-size: 2.5rem !important;
            /* 缩小大标题 */
        }

        .product-page-header h1 {
            font-size: 1.8rem;
            line-height: 1.3;
        }
    }

    /* ========================================
   21. 全屏滑动相册 (Instagram-style Lightbox)
   ======================================== */
    .lightbox-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #000;
        z-index: 9999;
        display: none;
        /* 默认隐藏 */
        opacity: 0;
        transition: opacity 0.3s ease;
        /* create proper stacking context */
        will-change: opacity;
        pointer-events: none;
        /* 防止隐藏时阻挡点击 */
    }

    .lightbox-overlay.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    /* 滑动容器 */
    .lightbox-slider {
        display: flex;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        /* 核心：原生CSS滑动吸附 */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .lightbox-slider::-webkit-scrollbar {
        display: none;
    }

    /* 单张图片容器 */
    .lightbox-slide {
        flex: 0 0 100%;
        /* 占满全屏宽度 */
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        scroll-snap-align: center;
        position: relative;
    }

    .lightbox-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        user-select: none;
    }

    /* 关闭按钮 */
    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba(40, 40, 40, 0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        z-index: 10000;
        backdrop-filter: blur(10px);
        -webkit-tap-highlight-color: transparent;
    }

    /* 页码指示器 */
    .lightbox-counter {
        position: absolute;
        top: 28px;
        left: 50%;
        transform: translateX(-50%);
        color: #fff;
        font-size: 16px;
        font-weight: 500;
        z-index: 10000;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        letter-spacing: 1px;
    }