/* ─── Bilibili 风格移动端主题（粉色）─── */
:root {
    --bl-primary: #fb7299;      /* B站粉 */
    --bl-primary-dark: #e75b82;
    --bl-black: #18191c;        /* B站黑 */
    --bl-bg: #f5f5f7;
    --bl-card: #ffffff;
    --bl-text: #18191c;
    --bl-text2: #61666d;
    --bl-text3: #9499a0;
    --bl-border: #e3e5e7;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bl-bg);
    color: var(--bl-text);
    max-width: 640px; margin: 0 auto; min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }

/* 顶部：B站黑 */
.bl-header { position: sticky; top: 0; z-index: 100; background: var(--bl-black); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.bl-header-inner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.bl-logo { color: #fff; font-size: 1.15rem; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.bl-logo b { color: var(--bl-primary); }
.bl-search { flex: 1; display: flex; align-items: center; background: #3a3b3e; border-radius: 17px; height: 32px; padding: 0 6px 0 12px; }
.bl-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: .85rem; color: #ddd; }
.bl-search button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--bl-primary); cursor: pointer; flex-shrink: 0; }
.bl-search button::before { content: "🔍"; font-size: .72rem; }
.bl-nav { display: flex; gap: 2px; overflow-x: auto; white-space: nowrap; padding: 0 8px 6px; scrollbar-width: none; }
.bl-nav::-webkit-scrollbar { display: none; }
.bl-nav a { color: rgba(255,255,255,.85); font-size: .85rem; padding: 4px 10px; border-radius: 12px; flex-shrink: 0; }
.bl-nav a.on { color: #fff; background: var(--bl-primary); }

/* 主体 */
.bl-main { padding: 10px 10px 20px; min-height: 60vh; }

/* 区块 */
.bl-section { margin-bottom: 16px; }
.bl-section-head { display: flex; align-items: center; padding: 4px 2px 8px; }
.bl-section-head h2 { font-size: .98rem; font-weight: 700; flex: 1; }
.bl-section-head h2::before { content: "◆ "; color: var(--bl-primary); }
.bl-section-head .bl-more { font-size: .78rem; color: var(--bl-text3); }

/* 横滑卡片（B站视频卡片） */
.bl-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bl-scroll::-webkit-scrollbar { display: none; }
.bl-card { width: 150px; flex-shrink: 0; background: var(--bl-card); border-radius: 8px; overflow: hidden; }
.bl-card .bl-poster { aspect-ratio: 16/10; background: #eee; position: relative; }
.bl-card .bl-poster img { width: 100%; height: 100%; object-fit: cover; }
.bl-card .bl-poster .bl-dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .6rem; padding: 1px 5px; border-radius: 3px; }
.bl-card .bl-poster .bl-flag { position: absolute; left: 4px; top: 4px; background: var(--bl-primary); color: #fff; font-size: .6rem; padding: 1px 5px; border-radius: 3px; }
.bl-card .bl-name { font-size: .8rem; font-weight: 500; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-card .bl-sub { font-size: .66rem; color: var(--bl-text3); padding: 0 8px 6px; display: flex; gap: 6px; }

/* 网格 */
.bl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bl-grid .bl-card { width: 100%; }

/* 图标导航 */
.bl-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--bl-card); border-radius: 10px; padding: 12px 6px; margin-bottom: 12px; }
.bl-icons a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; }
.bl-icons .bl-ico { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; }
.bl-icons span { font-size: .72rem; color: var(--bl-text2); }

/* Banner */
.bl-banner { position: relative; border-radius: 8px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16/6; }
.bl-banner .bl-banner-list { display: flex; height: 100%; transition: transform .4s; }
.bl-banner .bl-banner-item { min-width: 100%; position: relative; }
.bl-banner .bl-banner-item img { width: 100%; height: 100%; object-fit: cover; }
.bl-banner .bl-banner-txt { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .85rem; padding: 20px 10px 6px; }
.bl-banner .bl-dots { position: absolute; right: 8px; bottom: 6px; display: flex; gap: 4px; }
.bl-banner .bl-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.bl-banner .bl-dots i.on { background: var(--bl-primary); }

/* 筛选 */
.bl-filter { display: flex; gap: 8px; flex-wrap: wrap; background: var(--bl-card); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.bl-filter a { padding: 4px 12px; border-radius: 14px; font-size: .78rem; color: var(--bl-text2); background: var(--bl-bg); }
.bl-filter a.on { background: var(--bl-primary); color: #fff; }

/* 分页 */
.bl-page { display: flex; justify-content: center; gap: 8px; padding: 16px 0; }
.bl-page a, .bl-page span { padding: 6px 14px; border-radius: 6px; background: var(--bl-card); font-size: .82rem; color: var(--bl-text2); }
.bl-page .on { background: var(--bl-primary); color: #fff; }

/* 详情 */
.bl-detail { background: var(--bl-card); border-radius: 10px; padding: 12px; }
.bl-detail-head { display: flex; gap: 12px; }
.bl-detail-poster { width: 108px; flex-shrink: 0; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: #eee; }
.bl-detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.bl-detail-info { flex: 1; min-width: 0; }
.bl-detail-info h1 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.bl-detail-meta { font-size: .76rem; color: var(--bl-text2); line-height: 1.9; }
.bl-detail-meta b { color: var(--bl-text); font-weight: 600; }
.bl-play-btn { display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--bl-primary); color: #fff; border-radius: 6px; font-size: .9rem; font-weight: 600; padding: 9px 0; margin-top: 10px; }
.bl-detail-desc { margin-top: 12px; font-size: .82rem; line-height: 1.8; color: var(--bl-text2); }
.bl-detail-desc h3 { color: var(--bl-text); font-size: .9rem; margin-bottom: 4px; }

/* 剧集 */
.bl-eps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bl-eps a, .bl-eps span { padding: 6px 0; text-align: center; background: var(--bl-bg); border-radius: 5px; font-size: .74rem; color: var(--bl-text2); }
.bl-eps .on { background: var(--bl-primary); color: #fff; }

/* 播放器 */
.bl-player { background: #000; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }

/* 明星 */
.bl-actor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bl-actor { text-align: center; }
.bl-actor .bl-avatar { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #eee; margin-bottom: 5px; border: 2px solid var(--bl-primary); }
.bl-actor .bl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bl-actor span { font-size: .74rem; color: var(--bl-text2); }

/* 文章 */
.bl-article { background: var(--bl-card); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; display: flex; gap: 10px; }
.bl-article .bl-art-pic { width: 120px; height: 68px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #eee; }
.bl-article .bl-art-pic img { width: 100%; height: 100%; object-fit: cover; }
.bl-article .bl-art-body { flex: 1; min-width: 0; }
.bl-article h3 { font-size: .85rem; font-weight: 600; line-height: 1.4; }
.bl-article p { font-size: .74rem; color: var(--bl-text3); margin-top: 4px; }

/* 链接标签 */
.bl-links { display: flex; flex-wrap: wrap; gap: 6px; background: var(--bl-card); border-radius: 10px; padding: 10px; }
.bl-links a { padding: 4px 10px; border-radius: 12px; background: var(--bl-bg); font-size: .74rem; color: var(--bl-text2); }

/* 底部 */
.bl-footer { text-align: center; padding: 18px 12px 26px; color: var(--bl-text3); font-size: .72rem; line-height: 1.9; border-top: 1px solid var(--bl-border); background: var(--bl-black); }
.bl-footer, .bl-footer a { color: #a6a8ad; }
.bl-copy { color: #6d6f73; font-size: .68rem; }
