        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
            background-color: #0f1419; /* 更深邃的背景色 */
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* 顶部进度条 - 现代简约 */
        #progress-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: rgba(255, 255, 255, 0.05);
            z-index: 1000;
        }
        
        #progress-bar {
            height: 100%;
            background: #00a8ff; /* 现代蓝色 */
            width: 0%;
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: width;
            box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
        }
        /* 自定义滚动条样式 - 现代设计 */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }
        ::-webkit-scrollbar-track {
            background: #1a1f2e;
            border-radius: 5px;
        }
        ::-webkit-scrollbar-thumb {
            background: #2d3748;
            border-radius: 5px;
            border: 2px solid #1a1f2e;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #4a5568;
        }
        
        /* iOS 平滑滚动 */
        * {
            -webkit-overflow-scrolling: touch;
        }

        /* 加载指示器 - 现代设计 */
        .loader {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top: 3px solid #00a8ff;
            width: 40px;
            height: 40px;
            animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* 模态框动画 - 简化版 */
        #video-modal, #about-modal {
            transition: opacity 0.2s ease;
            backdrop-filter: blur(2px);
        }
        #modal-content, #about-modal > div {
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        
        /* 表单元素 - 现代设计 */
        select, input[type="text"], input[type="search"] {
            background-color: #1a1f2e;
            border: 1.5px solid #2d3748;
            border-radius: 8px;
            padding: 10px 14px;
            color: #e2e8f0;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        select:focus, input[type="text"]:focus, input[type="search"]:focus {
            outline: none;
            border-color: #00a8ff;
            background-color: #1e2433;
            box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1);
        }
        
        select:hover, input[type="text"]:hover, input[type="search"]:hover {
            border-color: #4a5568;
            background-color: #1e2433;
        }
        
        /* 工具提示 */
        .tooltip {
            position: relative;
        }
        
        .tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #1e293b;
            color: #f8fafc;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .tooltip::before {
            content: '';
            position: absolute;
            bottom: 115%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px;
            border-style: solid;
            border-color: transparent transparent #1e293b transparent;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 1000;
        }
        
        .tooltip:hover::after,
        .tooltip:hover::before {
            opacity: 1;
            visibility: visible;
        }
        
        /* 响应式调整 - 增强移动端体验 */
        @media (max-width: 640px) {
            .video-grid {
                grid-template-columns: 1fr;
            }
            
            .header-content {
                flex-direction: column;
                gap: 15px;
                padding: 15px;
            }
            
            .search-container {
                width: 100%;
            }
            
            #modal-content, #about-modal > div {
                margin: 10px;
                max-width: calc(100vw - 20px);
                max-height: 95vh;
            }
            
            #filters-container {
                flex-direction: column;
                gap: 10px;
            }
            
            #filters-container select {
                width: 100%;
            }
            
            /* 增大移动端触摸目标 */
            button, .btn-ripple, .favorite-btn {
                min-height: 44px;
                min-width: 44px;
            }
            
            /* 优化移动端输入框 */
            input, select {
                font-size: 16px; /* 防止 iOS 自动缩放 */
            }
        }
        
        /* 性能优化 */
        .animate-fade-in {
            animation: fadeIn 0.3s ease-out forwards;
            opacity: 0;
        }
        
        /* 减少动画复杂度 */
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
        /* 视频卡片 - 现代设计 */
        .video-card {
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid #2d3748;
            background-color: #1a1f2e;
            will-change: transform;
            border-radius: 12px;
            overflow: hidden;
        }
        
        @media (hover: hover) {
            .video-card:hover {
                transform: translateY(-4px);
                box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
                border-color: #00a8ff;
            }
        }
        
        /* 触摸设备优化 */
        @media (hover: none) {
            .video-card:active {
                transform: scale(0.98);
                opacity: 0.95;
            }
        }
        
        /* 标题样式 - 现代简约 */
        .title-gradient {
            color: #ffffff;
            position: relative;
            transition: color 0.2s ease;
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        .title-gradient:hover {
            color: #00a8ff;
        }
        /* 按钮交互 - 现代设计 */
        .btn-ripple {
            position: relative;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        .btn-ripple:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }
        .btn-ripple:active {
            transform: scale(0.97);
        }
        
        /* 按钮主色调 */
        button[style*="background-color: #00a8ff"]:hover,
        a[style*="background-color: #00a8ff"]:hover {
            background-color: #0096e6 !important;
        }
        
        button[style*="background-color: #2d3748"]:hover {
            background-color: #4a5568 !important;
        }
        
        /* 动态岛 - 简化版 */
        #dynamic-island-counter {
            transition: opacity 0.3s ease, transform 0.3s ease;
            opacity: 0;
            transform: translateY(-10px);
        }
        #dynamic-island-counter.active {
            opacity: 1;
            transform: translateY(0);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }
        .favorite-btn.favorited svg {
            fill: #fbbf24;
            stroke: #fbbf24;
            filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
        }

        /* 辅助文本 */
        .sr-only {
          position: absolute;
          width: 1px;
          height: 1px;
          padding: 0;
          margin: -1px;
          overflow: hidden;
          clip: rect(0, 0, 0, 0);
          white-space: nowrap;
          border-width: 0;
        }
        /* 卡片进入动画 - 现代设计 */
        .animate-fade-in {
            animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
            opacity: 0;
        }
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* 骨架屏样式 - 现代设计 */
        .skeleton {
            background: linear-gradient(90deg, #1a1f2e 25%, #2d3748 50%, #1a1f2e 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s ease-in-out infinite;
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        /* 移除重复的滚动条和标题样式 */
        
        /* 动态岛样式 - 现代设计 */
        .dynamic-island {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background-color: rgba(26, 31, 46, 0.95);
            backdrop-filter: blur(12px);
            border-radius: 24px;
            padding: 0.875rem 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
            color: #e2e8f0;
            font-size: 0.875rem;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateY(100%);
            opacity: 0;
            z-index: 100;
        }
        .dynamic-island.active {
            transform: translateY(0);
            opacity: 1;
        }
        
        /* 视频容器 - iOS 优化 */
        #video-container {
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 比例 */
            position: relative;
            background: #000;
        }
        #video-container video, #video-container iframe, #video-container > div {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        /* iOS 视频播放优化 */
        #video-container video {
            object-fit: contain;
        }
        
        body .filter-item {
            border: 1px solid var(--border-color);
            color: var(--text-primary);
        }
        
        body .filter-item.selected {
            background-color: #eef2ff;
            border-color: #818cf8;
        }

/* 额外的性能和触摸优化 */

/* 统一配色方案 - 现代化 */
:root {
    --primary-blue: #00a8ff;
    --primary-blue-hover: #0096e6;
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #2d3748;
    --border-color: #2d3748;
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* 现代化标题样式 */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
    font-weight: 600;
}

/* 平滑过渡 */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 焦点样式优化 */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* 图片优化 */
img {
    border-radius: 8px;
}


/* 图片懒加载优化 */
img[loading="lazy"] {
    content-visibility: auto;
}

/* 减少重绘 */
.video-card, .btn-ripple, button {
    contain: layout style paint;
}

/* 触摸反馈优化 */
@media (hover: none) and (pointer: coarse) {
    /* 移动设备触摸优化 */
    button, a, .favorite-btn, .video-card {
        -webkit-tap-highlight-color: rgba(96, 165, 250, 0.2);
        touch-action: manipulation;
    }
    
    /* 增大触摸目标 */
    .favorite-btn {
        padding: 0.75rem;
    }
    
    /* 移除悬停效果 */
    .video-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #374151;
    }
}

/* iOS 特定优化 */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari */
    body {
        -webkit-text-size-adjust: 100%;
    }
    
    input, textarea, select {
        font-size: 16px; /* 防止 iOS 缩放 */
    }
    
    /* 修复 iOS 滚动问题 */
    .overflow-y-auto, .overflow-auto {
        -webkit-overflow-scrolling: touch;
    }
}

/* 减少动画在低性能设备上的影响 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 优化模态框性能 */
#video-modal, #about-modal {
    will-change: opacity;
}

#modal-content, #about-modal > div {
    will-change: transform;
}

/* 视频播放器容器优化 */
#video-container {
    contain: strict;
    isolation: isolate;
}

/* 加载动画优化 */
.loader {
    will-change: transform;
}

/* 网格布局优化 */
#video-grid {
    contain: layout style;
}

/* 按钮统一样式 */
button, .btn-ripple {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* 链接样式 */
a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-blue-hover);
}

/* 卡片统一边框 - 现代设计 */
.bg-gray-800 {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

/* 输入框统一样式 - 现代设计 */
input:focus, select:focus, textarea:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.1) !important;
}
