/* 基础设置 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'system-ui', sans-serif; }
body { background: linear-gradient(-45deg, #f8fafc, #e2e8f0, #f1f5f9, #fff); background-size: 400% 400%; animation: gradientBG 15s ease infinite; min-height: 100vh; color: #334155; line-height: 1.6; }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* 布局 */
.container { max-width: 1400px; margin: 0 auto; padding: 1rem; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; position: relative; z-index: 20; }
.w-full { width: 100%; }

/* 间距 */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.p-8 { padding: 2rem; }

/* 响应式工具 */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:text-7xl { font-size: 5rem; }
}

/* 字体与颜色 */
.text-slate-600 { color: #64748b; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-white { color: white; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.text-6xl { font-size: 4rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: 'monospace'; }

/* 按钮组件 */
.join-group-btn { white-space: nowrap; text-decoration: none !important; }
.bg-white { background-color: white; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.border { border-width: 1px; border-style: solid; }
.border-slate-100 { border-color: #f1f5f9; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.transition-all { transition: all 0.3s ease; }
.transform { transform: var(--tw-transform); }
.hover\:scale-105:hover { transform: scale(1.05); }
.active\:scale-95:active { transform: scale(0.95); }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

/* 图标尺寸 */
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-20 { width: 5rem; } .h-20 { height: 5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-2xl { border-radius: 1rem; }
.scale-150 { transform: scale(1.5); }
.icon-container { display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { .icon-container { transform: scale(1.2); } }

/* 平台图标与颜色 */
.platform-icon { transition: transform 0.2s ease; }
.platform-icon:hover { transform: scale(1.15); }
.fill-white { fill: white; }
.bg-iqiyi { background-color: #1677FF; }
.bg-tencent { background-color: #00B42A; }
.bg-youku { background-color: #FF6700; }
.bg-mangotv { background-color: #FF3333; }
.bg-bilibili { background-color: #FB7299; }
.bg-netflix { background-color: #E50914; }
.bg-netflix\/10 { background-color: rgba(229, 9, 20, 0.1); }
.fill-netflix { fill: #E50914; }
.bg-green-100 { background-color: #dcfce7; }
.text-green-600 { color: #166534; }
.bg-slate-100 { background-color: #f1f5f9; }
.fourK { color: #1F2937; }
.bg-fourK { background-color: #1F2937; }
.border-2 { border-width: 2px; }
.border-fourK { border-color: #1F2937; }
.bg-purple-100 { background-color: #f3e8ff; }
.text-purple-600 { color: #7e22ce; }
.bg-douban\/10 { background-color: rgba(34, 139, 34, 0.1); }
.text-douban { color: #228B22; }
.bg-support\/10 { background-color: rgba(245, 158, 11, 0.1); }
.text-support { color: #F59E0B; }
.gradient-to-r { background: linear-gradient(to right, #25F4EE, #FE2C55); }

/* 动画定义 */
.fourk-pulse { animation: pulse 2.5s infinite; }
.netflix-pulse { animation: netflixPulse 2.5s infinite alternate; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.03); } }
@keyframes netflixPulse { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 1; transform: scale(1.03); } }

/* Swiper 组件 */
.swiper { width: 100%; padding-top: 1rem; padding-bottom: 2rem; overflow-y: visible !important; }
.swiper-slide { background-position: center; background-size: cover; width: 280px; height: 45vh; min-height: 350px; max-height: 500px; filter: blur(2px); opacity: 0.7; transition: all 0.3s ease; }
.swiper-slide-active { filter: blur(0); opacity: 1; z-index: 10; }
.swiper-slide .card-content { height: 100%; transition: all 0.3s ease; border: 1px solid transparent; display: flex; flex-direction: column; justify-content: center; }
.swiper-slide-active .card-content { box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08); border-color: rgba(59, 130, 246, 0.2); transform: scale(1.05); }
.swiper-pagination-bullet { width: 8px; height: 8px; background: #cbd5e1; opacity: 1; transition: all 0.3s ease; }
.swiper-pagination-bullet-active { background-color: #3b82f6 !important; width: 24px !important; border-radius: 4px !important; }
.rounded-xl { border-radius: 0.75rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
@media (min-width: 768px) { .swiper-slide { width: 380px; height: 50vh; } }

/* 用户面板 */
.user-panel {
    position: fixed; top: 1.5rem; left: 1.5rem; z-index: 200;
    background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    padding: 1rem; border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(241, 245, 249, 0.8); 
    width: calc(100vw - 3rem); max-width: 340px;
    max-height: calc(100vh - 3rem); overflow-y: auto;
    font-size: 0.875rem; color: #475569;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform: translateX(-150%); display: block;
}
.user-panel.active { transform: translateX(0); }
.panel-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; padding-bottom: 0.25rem; border-bottom: 1px solid #e2e8f0; }
.panel-title { font-weight: 700; color: #1e293b; font-size: 1rem; }
.panel-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.panel-row:last-child { margin-bottom: 0; }
.panel-value { font-family: 'monospace'; }
.text-blue { color: #2563eb; } .text-orange { color: #f97316; } .text-green { color: #16a34a; }
.status-badge { background-color: #dcfce7; color: #15803d; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 700; }
.progress-section { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #e2e8f0; }
.progress-bar-bg { width: 100%; background-color: #e2e8f0; border-radius: 9999px; height: 0.5rem; margin: 0.25rem 0; }
.progress-bar-fill { background-color: #3b82f6; height: 100%; border-radius: 9999px; width: 0%; }

/* 菜单 */
.menu-section { margin-top: 0.75rem; padding-top: 0.5rem; border-top: 1px solid #e2e8f0; }
.menu-label { font-size: 0.75rem; color: #64748b; margin-bottom: 0.5rem; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin-bottom: 0.5rem; }
.menu-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.375rem; padding: 0.375rem;
    background-color: rgba(220, 252, 231, 0.5); color: #166534; border-radius: 0.5rem;
    font-size: 0.75rem; font-weight: 600; text-decoration: none; transition: all 0.2s ease;
}
.menu-btn:hover { background-color: rgba(220, 252, 231, 1); transform: translateY(-1px); }
.full-width { width: 100%; }
.menu-icon { font-size: 0.875rem; }

/* 移动端适配 */
.mobile-menu-btn {
    position: fixed; top: 1.5rem; left: 1.5rem; z-index: 110;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
    border: 1px solid rgba(241, 245, 249, 0.8); padding: 0.5rem; border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #475569; transition: all 0.2s ease;
}
.mobile-menu-btn.hidden { opacity: 0; pointer-events: none; }
.mobile-menu-btn:active { transform: scale(0.95); }
.mobile-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(2px);
    z-index: 90; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

@media (min-width: 1280px) {
    .user-panel { transform: none !important; display: block; }
    .user-panel:hover { transform: scale(1.02) !important; }
    .mobile-menu-btn, .mobile-overlay { display: none; }
}