/* ─── Pomoho 移动端主题（橙色简约）─── */
:root {
    --pm-primary: #ff6b35;      /* 活力橙 */
    --pm-primary-dark: #e8551f;
    --pm-grad: linear-gradient(135deg, #ff8a50, #ff6b35);
    --pm-bg: #f5f5f5;
    --pm-card: #ffffff;
    --pm-text: #222;
    --pm-text2: #666;
    --pm-text3: #999;
    --pm-border: #f0f0f0;
    --pm-red: #ff4d4f;
}

* { 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(--pm-bg);
    color: var(--pm-text);
    max-width: 640px; margin: 0 auto; min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }

/* 顶部 */
.pm-header { position: sticky; top: 0; z-index: 100; background: var(--pm-grad); box-shadow: 0 2px 10px rgba(255,107,53,.3); }
.pm-header-inner { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.pm-logo { color: #fff; font-size: 1.2rem; font-weight: 800; white-space: nowrap; flex-shrink: 0; letter-spacing: -.5px; }
.pm-search { flex: 1; display: flex; align-items: center; background: rgba(255,255,255,.95); border-radius: 18px; height: 34px; padding: 0 6px 0 12px; }
.pm-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: .85rem; }
.pm-search button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--pm-primary); cursor: pointer; flex-shrink: 0; }
.pm-search button::before { content: "🔍"; font-size: .78rem; }
.pm-nav { display: flex; gap: 2px; overflow-x: auto; white-space: nowrap; padding: 0 8px 6px; scrollbar-width: none; }
.pm-nav::-webkit-scrollbar { display: none; }
.pm-nav a { color: rgba(255,255,255,.95); font-size: .85rem; padding: 4px 10px; border-radius: 12px; flex-shrink: 0; }

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

/* 区块 */
.pm-section { margin-bottom: 16px; }
.pm-section-head { display: flex; align-items: center; padding: 4px 2px 8px; }
.pm-section-head .pm-bar { width: 4px; height: 15px; border-radius: 2px; background: var(--pm-primary); margin-right: 7px; }
.pm-section-head h2 { font-size: .98rem; font-weight: 700; flex: 1; }
.pm-section-head .pm-more { font-size: .78rem; color: var(--pm-text3); }

/* 横滑卡片 */
.pm-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pm-scroll::-webkit-scrollbar { display: none; }
.pm-card { width: 108px; flex-shrink: 0; background: var(--pm-card); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.pm-card .pm-poster { aspect-ratio: 3/4; background: #eee; position: relative; }
.pm-card .pm-poster img { width: 100%; height: 100%; object-fit: cover; }
.pm-card .pm-poster .pm-flag { position: absolute; left: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .62rem; padding: 1px 5px; }
.pm-card .pm-name { font-size: .78rem; padding: 5px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

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

/* Banner */
.pm-banner { position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16/7; }
.pm-banner .pm-banner-list { display: flex; height: 100%; transition: transform .4s; }
.pm-banner .pm-banner-item { min-width: 100%; position: relative; }
.pm-banner .pm-banner-item img { width: 100%; height: 100%; object-fit: cover; }
.pm-banner .pm-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; }
.pm-banner .pm-dots { position: absolute; right: 8px; bottom: 6px; display: flex; gap: 4px; }
.pm-banner .pm-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.pm-banner .pm-dots i.on { background: #fff; }

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

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

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

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

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

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

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

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

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