/* 
 * 闪连VPN - 自定义样式表 
 * 结合 Tailwind CSS 使用，处理部分特殊效果和性能优化
 */

/* 基础重置与优化 */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 导航栏毛玻璃效果增强 */
.glass-nav {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* 导航栏滚动时的阴影过渡 */
.glass-nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    background-color: rgba(255, 255, 255, 0.95);
}

/* 隐藏 details 默认的三角形图标 (Safari/Chrome 兼容) */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* 优化动画性能 */
.transform {
    will-change: transform;
}

/* 文本渐变兼容性 */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* 确保图片懒加载时有平滑的淡入效果 */
img[loading] {
    transition: opacity 0.3s ease-in-out;
}
img[loading="lazy"]:not(.loaded) {
    opacity: 0;
}
img.loaded {
    opacity: 1;
}