@charset "UTF-8";
/* ==========================================================================
   TitanTV 终极赛博样式表 (XRob 5.0 跨维自适应旗舰版)
   - 优化：全平台响应式 (PC/Tablet/Mobile)
   - 优化：GPU 硬件加速与触控无延迟
   - 优化：苹果/安卓 Webkit 底层兼容
   ========================================================================== */

:root {
    /* 核心矩阵主色调 (Skooby 默认) */
    --color-main: 0 255 100;
    --color-dark: 0 100 40;
    /* 刘海屏/全面屏底部安全区隔离 */
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* 动态宇宙维度主题色切换 */
body.theme-ales { --color-main: 255 50 80; --color-dark: 120 0 20; }
body.theme-tire { --color-main: 0 200 255; --color-dark: 0 80 120; }
body.theme-gman { --color-main: 180 50 255; --color-dark: 80 0 120; }

/* 基础防线与抗锯齿渲染 */
body {
    font-family: 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
    background-color: #050505;
    color: #ffffff;
    font-size: 16px;
    overflow: hidden; 
    transition: --color-main 0.8s ease;
    -webkit-tap-highlight-color: transparent; /* 消除移动端点击闪烁黑块 */
    -webkit-font-smoothing: antialiased; /* macOS/iOS 字体抗锯齿优化 */
    -moz-osx-font-smoothing: grayscale;
}

/* 消除移动端触控延迟 300ms */
button, a, select, input {
    touch-action: manipulation;
}

/* ==========================================================================
   🎬 核心动画与引擎集 (Core Animations)
   ========================================================================== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hueRotate { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
@keyframes foilShine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes cyberBorderFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes scan { 0% { top: -10%; } 100% { top: 110%; } }
@keyframes pulse-red { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.05); } }

.fade-enter { animation: fadeIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hue-rotate { animation: hueRotate 6s linear infinite; }

/* ==========================================================================
   🖼️ 全局背景、遮罩与预加载
   ========================================================================== */
.bg-glow { 
    position: fixed; inset: 0; 
    background: radial-gradient(circle at 50% 0%, rgba(var(--color-main), 0.12) 0%, transparent 70%); 
    z-index: -1; pointer-events: none; 
}

.glass-panel { 
    background: rgba(5, 5, 5, 0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); /* iOS 玻璃兼容 */
    border: 1px solid rgba(var(--color-main), 0.4); 
    box-shadow: 0 0 20px rgba(var(--color-main), 0.2); 
}

#preloader { 
    position: fixed; inset: 0; background-color: #000; z-index: 99999; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    transition: opacity 0.5s ease; 
}
#preloader.hidden { display: none !important; }
.loading-bar-container { width: 80%; max-width: 400px; height: 4px; background: #222; border-radius: 2px; overflow: hidden; margin-top: 20px; }
.loading-bar { height: 100%; width: 0%; background: rgb(var(--color-main)); box-shadow: 0 0 10px rgb(var(--color-main)); transition: width 0.1s linear; }

/* ==========================================================================
   🧩 赛博 UI 核心组件阵列
   ========================================================================== */
.cyber-panel { 
    background: rgba(10, 10, 10, 0.5); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--color-main), 0.2); 
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 0 15px rgba(var(--color-main), 0.05); 
    border-radius: 12px; 
}

.cyber-input { 
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--color-main), 0.3); 
    color: #fff; padding: 10px 14px; border-radius: 8px; width: 100%; 
    transition: all 0.3s ease; 
    -webkit-appearance: none; /* iOS 默认样式覆写 */
}
.cyber-input:focus { border-color: rgb(var(--color-main)); box-shadow: 0 0 15px rgba(var(--color-main), 0.2); outline: none; }

.cyber-card { 
    background: rgba(10,10,10,0.7); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--color-main), 0.15); 
    border-radius: 12px; overflow: hidden; 
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, box-shadow, border-color; /* GPU 硬件加速 */
    transform: translateZ(0); 
}
@media (hover: hover) { 
    .cyber-card:hover { 
        transform: translateY(-4px) translateZ(0); 
        border-color: rgba(var(--color-main), 0.6); 
        box-shadow: 0 10px 25px rgba(var(--color-main), 0.2); 
    } 
}

/* ==========================================================================
   🕹️ 基础交互按钮 (常规/切角/发光)
   ========================================================================== */
.cyber-btn { 
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
    padding: 10px 20px; background: rgba(var(--color-main), 0.05); color: rgb(var(--color-main)); 
    border: 1px solid rgba(var(--color-main), 0.4); border-radius: 8px; font-weight: bold; 
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap; 
    will-change: transform, box-shadow;
}
@media (hover: hover) { 
    .cyber-btn:hover { background: rgb(var(--color-main)); color: #000; box-shadow: 0 0 15px rgba(var(--color-main), 0.5); transform: translateY(-2px); } 
}
.cyber-btn:active { transform: translateY(1px) scale(0.98); }
.cyber-btn.active { background: rgb(var(--color-main)); color: #000; border-color: rgb(var(--color-main)); }

.btn-sci { 
    position: relative; overflow: hidden; 
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(20,20,20,0.9)); 
    border: 1px solid rgba(var(--color-main), 0.5); color: rgb(var(--color-main)); 
    transition: all 0.3s ease; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); 
    will-change: transform, box-shadow;
}
@media (hover: hover) {
    .btn-sci:hover { background: rgba(var(--color-main), 0.15); border-color: rgb(var(--color-main)); box-shadow: 0 0 15px rgba(var(--color-main), 0.6); text-shadow: 0 0 5px rgb(var(--color-main)); }
}
.btn-sci:active { transform: scale(0.96); transition: all 0.1s; }

/* ==========================================================================
   🌟 终极赛博导航按钮 (多态独立反馈：正常/悬停/下压/高亮)
   ========================================================================== */
.cyber-nav-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px;
    font-family: 'Orbitron', 'Microsoft YaHei', sans-serif; font-weight: 900; font-size: 15px; letter-spacing: 2px;
    color: rgba(var(--btn-color), 0.7);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(var(--btn-color), 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    text-transform: uppercase; cursor: pointer; overflow: hidden; white-space: nowrap;
    will-change: transform, box-shadow, color, background;
    -webkit-backface-visibility: hidden;
}

/* 内部高光扫射动画 (隐藏待命) */
.cyber-nav-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-45deg); transition: left 0.6s ease;
}

.cyber-nav-btn i { font-size: 1.25rem; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), text-shadow 0.3s; }

/* 状态 2: 悬停/触摸 (Hover) */
@media (hover: hover) {
    .cyber-nav-btn:hover {
        color: #ffffff; background: rgba(var(--btn-color), 0.15); border-color: rgba(var(--btn-color), 0.8);
        box-shadow: 0 0 20px rgba(var(--btn-color), 0.3), inset 0 0 10px rgba(var(--btn-color), 0.2);
        transform: translateY(-2px);
    }
    .cyber-nav-btn:hover::before { left: 200%; transition: left 0.7s ease; }
    .cyber-nav-btn:hover i { transform: scale(1.15) rotate(-5deg); text-shadow: 0 0 12px rgb(var(--btn-color)); color: rgb(var(--btn-color)); }
}

/* 状态 3: 物理下压 (Active press) */
.cyber-nav-btn:active {
    transform: translateY(2px) scale(0.96); box-shadow: 0 0 8px rgba(var(--btn-color), 0.8);
    background: rgba(var(--btn-color), 0.3); transition: all 0.1s;
}

/* 状态 4: JS选中高亮驻留 (Selected) */
.cyber-nav-btn.active {
    background: rgb(var(--btn-color)); color: #000000 !important; border-color: rgb(var(--btn-color));
    box-shadow: 0 0 25px rgba(var(--btn-color), 0.6); transform: translateY(0);
}
.cyber-nav-btn.active i { color: #000000; text-shadow: none; transform: scale(1.1); }

/* 移动端导航按钮特供尺寸适配 */
@media (max-width: 768px) {
    .cyber-nav-btn { padding: 12px 16px; font-size: 14px; letter-spacing: 1px; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
    .cyber-nav-btn i { font-size: 1.15rem; }
}

/* ==========================================================================
   📊 数据标签与特工状态指示器
   ========================================================================== */
.tag-ur { background-color: #ff55ff; color: #000; }
.tag-ssr { background-color: #ffcc00; color: #000; }
.tag-ss { background-color: #ff4444; color: #000; }
.tag-s { background-color: #00ffff; color: #000; }
.tag-r { background-color: #cccccc; color: #000; }

.status-overlay-dead { background-color: rgba(255, 0, 0, 0.4); }
.status-overlay-damaged { background-color: rgba(255, 200, 0, 0.3); }
.status-overlay-upgrading_blue { background-color: rgba(0, 100, 255, 0.4); }
.status-overlay-evolving { background-color: rgba(255, 100, 0, 0.4); }
.status-overlay-healthy { display: none; }

.badge-today {
    position: absolute; top: 0px; right: 0px; background: #ff003c; color: #fff;
    font-size: 0.70rem; padding: 2px 8px; font-weight: 900;
    border-bottom-left-radius: 6px; border-top-right-radius: 4px; z-index: 20;
    letter-spacing: 0.5px; box-shadow: -2px 2px 8px rgba(0,0,0,0.5); text-transform: uppercase;
}

/* ==========================================================================
   📜 全局滚动条精美排版
   ========================================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #050505; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: rgba(var(--color-main), 0.5); border-radius: 3px; border: 1px solid #000; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--color-main), 0.8); }
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* 定制化巨屏滚动条 (用于播放器侧边栏) */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(var(--color-main), 0.3); border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   📱 瀑布流响应式阵列 (Grid / Columns)
   ========================================================================== */
.waterfall-grid { display: block; column-count: 2; column-gap: 12px; padding: 10px; }
@media (min-width: 640px) { .waterfall-grid { column-count: 2; column-gap: 16px; padding: 16px; } }
@media (min-width: 768px) { .waterfall-grid { column-count: 3; column-gap: 18px; } } 
@media (min-width: 1024px) { .waterfall-grid { column-count: 4; column-gap: 20px; } } 
@media (min-width: 1536px) { .waterfall-grid { column-count: 5; column-gap: 24px; } }

.waterfall-item {
    break-inside: avoid; margin-bottom: 16px; position: relative;
    background: #0a0a0a; border: 1px solid rgba(var(--color-main), 0.2);
    border-radius: 12px; overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
    will-change: transform, box-shadow; transform: translateZ(0);
}
@media (hover: hover) { .waterfall-item:hover { transform: translateY(-5px); border-color: rgb(var(--color-main)); box-shadow: 0 10px 25px rgba(var(--color-main), 0.25); } }
.waterfall-item.ratio-16-9 { aspect-ratio: 16 / 9; }
.waterfall-item.ratio-9-16 { aspect-ratio: 9 / 16; }
.waterfall-item img { width: 100%; display: block; height: auto; }

/* ==========================================================================
   ▶️ 播放器视窗容器
   ========================================================================== */
#main-player { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-container-16-9 { width: 100%; aspect-ratio: 16 / 9; background-color: #000; display: flex; align-items: center; justify-content: center; position: relative; }
.video-container-16-9 video { max-width: 100%; max-height: 100%; object-fit: contain; }

.play-overlay { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; z-index: 10; }
.play-overlay i { font-size: 40px; color: #00ff64; }

/* ==========================================================================
   ✒️ 实用类与特效修饰
   ========================================================================== */
.font-lcd { font-family: 'Orbitron', 'Share Tech Mono', sans-serif; letter-spacing: 0.05em; }
.clip-path-slant { clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px); }
.rounded-xl, .rounded-lg, .rounded { border-radius: 0px !important; }

.cyber-flow-card {
    position: relative; background: #050505; padding: 1.5px;
    background-image: linear-gradient(90deg, #000 0%, var(--glow-color) 50%, #000 100%);
    background-size: 200% auto; animation: cyberBorderFlow 2.5s linear infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    will-change: background-position, box-shadow;
}
@media (hover: hover) { .cyber-flow-card:hover { animation-duration: 1.2s; box-shadow: 0 0 30px var(--glow-color); } }

.landing-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease-in-out; }
.landing-slide.active { opacity: 0.6; }

/* ==========================================================================
   📖 战区富文本排版引擎 (响应式行距与字号)
   ========================================================================== */
.prose-custom h1 { font-size: 1.4rem; font-weight: bold; margin: 1.2rem 0 0.8rem; border-bottom: 1px solid rgba(var(--color-main), 0.3); padding-bottom: 0.5rem; color: #fff; line-height: 1.4; }
.prose-custom h1:first-child { margin-top: 0; }
.prose-custom h2 { color: rgb(var(--color-main)); font-size: 1.15rem; font-weight: bold; margin: 1.2rem 0 0.6rem; line-height: 1.5; }
.prose-custom p { color: #e2e8f0; line-height: 1.6; margin-bottom: 0.8rem; font-size: 0.9rem; letter-spacing: 0.5px; }
.prose-custom ul { list-style-type: square; margin-left: 1.2rem; color: #cbd5e1; margin-bottom: 0.8rem; line-height: 1.6; font-size: 0.9rem; }
.prose-custom img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; border: 1px solid rgba(255,255,255,0.1); }

/* 平板/桌面端恢复大间距舒展排版 */
@media (min-width: 768px) {
    .prose-custom h1 { font-size: 1.8rem; margin: 1.5rem 0 1rem; }
    .prose-custom h2 { font-size: 1.35rem; margin: 1.5rem 0 0.8rem; }
    .prose-custom p { line-height: 1.9; margin-bottom: 1.2rem; font-size: 1.05rem; }
    .prose-custom ul { margin-left: 1.5rem; margin-bottom: 1rem; line-height: 1.8; font-size: 1.05rem; }
}