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

/* ==================== 主题变量 ==================== */

:root {
    /* 亮色模式（默认）*/
    --primary-color: #2b7cee;
    --bg-color: #f6f7f8;
    --text-color: #111418;
    --text-secondary: #617289;
}

.dark {
    /* 暗色模式 */
    --primary-color: #2b7cee;
    --bg-color: #101822;
    --text-color: #ffffff;
    --text-secondary: #9ca3af;
}

/* ==================== 基础样式 ==================== */

/* 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: #1f2937;
}

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

/* 按钮悬停效果 */
.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);
}

.ocean .glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(187, 222, 251, 0.6);
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.08);
}

/* 响应式隐藏类 */
@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;
}

/* 视频模糊边缘效果 */
.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;
    z-index: 1; /* 模糊边缘层 */
}

/* 视频容器层级 - 关键！ */
.video-container {
    position: relative;
    isolation: isolate; /* 创建新的堆叠上下文 */
}

.video-container video {
    z-index: 5; /* 视频基础层级 */
}

/* 视频播放时提升层级 */
.video-container video.is-playing {
    z-index: 20 !important;
}

/* 视频封面层级控制 */
.video-poster {
    z-index: 10;
    transition: opacity 0.3s ease-in-out;
}

/* 封面隐藏状态 */
.video-poster.poster-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ==================== Cookie Banner动画 ==================== */

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.animate-slide-up {
    animation: slideUp 0.4s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-in forwards;
}

