/**
 * 🎨 WiseFido 自定义样式
 * 补充 Tailwind CSS 的额外样式
 */

/* Material Symbols 图标配置 */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 暗色模式滚动条 */
.dark ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4a4a5a;
}

/* 按钮悬停效果 */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(43, 124, 238, 0.3);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

/* 图片悬停缩放 */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* 导航栏活动状态 */
.nav-link-active {
    color: #2b7cee;
    font-weight: 700;
    border-bottom: 2px solid #2b7cee;
}

/* 表单输入框焦点样式 */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2b7cee;
    box-shadow: 0 0 0 3px rgba(43, 124, 238, 0.1);
}

/* 加载动画 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2b7cee;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 渐变背景 */
.gradient-primary {
    background: linear-gradient(135deg, #2b7cee 0%, #1e5bb8 100%);
}

/* 玻璃态效果 */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .glass {
    background: rgba(16, 24, 34, 0.8);
}

/* 响应式隐藏类 */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* 视频保护样式 - 防止下载和右键 */
video {
    pointer-events: auto;
}

video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* 防止视频拖拽 */
video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
}

/* 视频模糊边缘效果 - 建议7 */
.video-blur-edge {
    position: relative;
}

.video-blur-edge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 50px 20px rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
}
