:root {
    /* Premium Warm Dark Theme (Inspired by product references) */
    --bg-canvas: #0A0A0C;
    --bg-app: #08080A;
    --surface: #141416; /* Deep pure black for the immersive feel */
    --surface-light: #1E1E22;
    
    --primary: #FF6600; /* Vibrant Orange */
    --primary-gradient: linear-gradient(135deg, #FF8C00 0%, #FF4500 100%);
    --gold: #FFB800;
    --gold-gradient: linear-gradient(135deg, #FFE082 0%, #FFA726 100%);
    
    --text: #FFFFFF;
    --text-muted: #999999;
    --border: #222222;
    
    --vip-bg: linear-gradient(135deg, #3A2610 0%, #1A1205 100%);
    --vip-text: #FFD166;

    --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar {
    display: none;
}

/* 锁死横向滚动：各原型 iframe 内页面只纵向滚动，禁止左右滑动 / macOS 回弹，
   使 390px 内容与 .mockup-frame 画框始终粘合。各页面内联 html{overflow-y:auto} 只设 Y 轴，
   X 轴默认 visible 会被规范计算为 auto（见上），故在此统一显式置为 hidden。 */
html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-canvas);
    color: var(--text);
    padding: 80px 4vw;
    min-height: 100vh;
}

/* Utility */
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 22px; height: 22px; }
.text-gold { color: var(--gold); }
.text-red { color: var(--primary); }
.text-secondary { color: var(--text-muted); }
.text-vip { color: var(--vip-text); }
.text-white { color: var(--text); }
.text-primary { color: var(--primary); }

/* --- PRESENTATION HEADER --- */
.presentation-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.presentation-header .icon-container { display: none; }
.presentation-header h1 {
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.presentation-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* --- GRID --- */
.screens-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px 40px;
    max-width: 1600px;
    margin: 0 auto;
    justify-content: center;
}
.screen-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.screen-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- MOCKUP FRAME --- */
.mockup-frame {
    width: 390px;
    height: 844px;
    background: #000;
    border-radius: 48px;
    padding: 8px;
    position: relative;
    box-shadow: 
        0 40px 80px rgba(0,0,0,0.8),
        inset 0 0 0 1px rgba(255,255,255,0.1);
}
.notch {
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 1000;
}

/* --- APP SCREEN --- */
.screen-content {
    width: 100%; height: 100%;
    background-color: var(--bg-app);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.status-bar {
    height: 44px; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; font-weight: 600; color: var(--text);
    position: absolute; top: 0; width: 100%; z-index: 999;
}
.status-bar .right-icons { display: flex; gap: 6px; }

.view {
    flex: 1; overflow-y: auto;
    padding-top: 44px; padding-bottom: 90px;
    position: relative; z-index: 1;
}
.view::-webkit-scrollbar { display: none; }

/* --- BOTTOM NAV --- */
.bottom-nav {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px; background: #0A0A0A;
    display: flex; justify-content: space-around; align-items: flex-start;
    padding-top: 12px; z-index: 100;
    border-top: 1px solid #1C1C1E;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: #666666; font-size: 10px; font-weight: 500;
}
.nav-item.active { color: var(--primary); }
.nav-item.active i { color: var(--primary); }
.nav-item i { width: 24px; height: 24px; }
/* Style the coin icon in nav specifically */
.nav-item img.nav-icon { width: 24px; height: 24px; opacity: 0.6; }
.nav-item.active img.nav-icon { opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)); }
.nav-reward svg { color: var(--gold); } /* 福利 icon 常亮 */

/* --- VIP PREMIUM CARD --- */
.vip-banner-card.premium {
    margin: 0 24px 24px;
    background: linear-gradient(145deg, #2D2214 0%, #151008 100%);
    padding: 20px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 209, 102, 0.15);
    box-shadow: 0 16px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255, 209, 102, 0.2);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vip-bg-fx {
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.15), transparent);
    transform: skewX(-25deg);
    animation: vipShine 5s infinite;
    pointer-events: none;
}
@keyframes vipShine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

.vip-header { display: flex; justify-content: space-between; align-items: flex-start; }
.vip-header h3 { font-size: 18px; font-weight: 700; color: var(--vip-text); display: flex; align-items: center; gap: 8px; margin: 0; }
.vip-header h3 i { width: 22px; height: 22px; }
.vip-badge { 
    background: linear-gradient(90deg, #FF4B2B, #FF416C); color: #fff; 
    font-size: 10px; font-weight: 700; padding: 4px 8px; 
    border-radius: 8px; border-bottom-left-radius: 0; box-shadow: 0 2px 8px rgba(255,65,108,0.4);
}

.vip-desc { font-size: 12px; color: rgba(255, 209, 102, 0.6); margin-top: -10px; }

.vip-privileges {
    display: flex; justify-content: space-around; align-items: flex-start; background: rgba(0,0,0,0.4);
    padding: 16px 8px; border-radius: 16px; border: 1px solid rgba(255, 209, 102, 0.05); width: 100%; box-sizing: border-box;
}
.privilege-item { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.privilege-item i { width: 26px; height: 26px; color: var(--text); opacity: 0.9; }
.privilege-item span { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 500; text-align: center; white-space: nowrap; }

.btn-vip-premium {
    width: 100%; padding: 14px; border: none;
    background: linear-gradient(90deg, #F3D5A5 0%, #D4A559 50%, #F3D5A5 100%);
    background-size: 200% auto;
    color: #4A3000; font-size: 15px; font-weight: 700; border-radius: var(--radius-full);
    box-shadow: 0 6px 16px rgba(212, 165, 89, 0.3);
    cursor: pointer; animation: gradientShine 3s ease infinite;
}
.btn-vip-premium.outline {
    background: transparent; border: 1px solid var(--vip-text); color: var(--vip-text); box-shadow: none; animation: none;
}

.header-top {
    padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.search-bar {
    background: #1C1C1E;
    padding: 8px 16px;
    display: flex; align-items: center; gap: 8px;
    flex: 1; color: #8E8E93;
    font-size: 14px; font-weight: 400;
    border-radius: var(--radius-full);
}
.header-icons { display: flex; gap: 16px; align-items: center; }

.top-tabs {
    display: flex; gap: 28px; padding: 4px 20px 12px;
    overflow-x: auto;
}
.top-tabs::-webkit-scrollbar { display: none; }
.tab {
    font-size: 15px; color: #888888;
    font-weight: 500; cursor: pointer; white-space: nowrap;
}
.tab.active { 
    font-size: 17px;
    font-weight: 600;
    color: #FFFFFF;
}
.tab:nth-child(3) { color: var(--gold); } /* 会员 */

/* ============================================================
   批注组件 (.annot) — 原型设计标注，可在任意页面复用
   用法：
     <div class="annot">                  // 基础（流式 / 旁注）
       <span class="annot-num">1</span>    // 序号徽标（可选）
       <div class="annot-body">
         <strong>标题</strong>说明文字…
       </div>
     </div>
   修饰类：
     .annot-side  旁注（紧贴画框/元素外侧）
     .annot-pin   悬浮标注（绝对定位 + 引导线，指向目标元素）
   ============================================================ */
.annot {
    --annot-bg: #FFD25A;
    --annot-fg: #2a2310;
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 210px;
    padding: 10px 12px;
    background: var(--annot-bg);
    color: var(--annot-fg);
    font-size: 12px;
    line-height: 1.5;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.annot-num {
    flex: 0 0 auto;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #1a1a1a;
    color: var(--annot-bg);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.annot-body strong { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 3px; }

/* 悬浮标注：绝对定位 + 引导线（默认指向左侧目标） */
.annot-pin { position: absolute; z-index: 60; }
.annot-pin::before {
    content: ""; position: absolute; left: -26px; top: 18px;
    width: 24px; border-top: 1px dashed #FFD25A;
}
.annot-pin::after {
    content: ""; position: absolute; left: -32px; top: 14px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #FFD25A; box-shadow: 0 0 0 3px rgba(255,210,90,0.25);
}

/* --- 题材标签胶囊（全站统一：灰色高亮 + ›；最多 3 个、每标签 ≤4 字；由 tags.js 渲染） --- */
.tag-chip {
    display: inline-flex; align-items: center;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
}
.tag-chip > i, .tag-chip > svg { width: 12px; height: 12px; margin-left: 2px; opacity: 0.7; }
.tag-chip:hover { background: rgba(255, 255, 255, 0.26); }

/* --- 底部半屏弹窗 (Bottom Sheet) --- */
.bottom-sheet-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: #141416;
    border-radius: 20px 20px 0 0;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    max-height: 85%;
}
.bottom-sheet.active {
    transform: translateY(0);
}

.sheet-handle-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
    cursor: pointer;
}
.sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.sheet-header {
    padding: 0 20px 16px;
}
.sheet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.sheet-content {
    padding: 0 20px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sheet-content::-webkit-scrollbar {
    display: none;
}

.sheet-drama-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
}
.sheet-drama-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sheet-drama-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 6px;
    border-radius: var(--radius-sm);
}
.sheet-drama-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sheet-drama-badge {
    position: absolute;
    top: 0; right: 0;
    background: linear-gradient(135deg, #FF4B6B, #FF2B4A);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    font-weight: 500;
    border-bottom-left-radius: var(--radius-sm);
}
.sheet-drama-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.sheet-drama-views {
    position: absolute;
    bottom: 4px; right: 6px;
    font-size: 10px;
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}
.sheet-drama-info {
    padding: 0 2px;
}
.sheet-drama-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}
