/* ================= theme4 · Apple 影视风格主题 ================= */
:root {
    --t4-bg: #0d0d0f;
    --t4-surface: #17171a;
    --t4-surface-raised: #1d1d21;
    --t4-bg-elev: var(--t4-surface);
    --t4-bg-card: var(--t4-surface-raised);
    --t4-text: rgba(255, 255, 255, 0.92);
    --t4-text-2: rgba(255, 255, 255, 0.64);
    --t4-text-3: rgba(255, 255, 255, 0.48);
    --t4-hairline: rgba(255, 255, 255, 0.10);
    --t4-accent: #ffffff;
    --t4-gold: #ffd60a;
    --t4-control: rgba(255, 255, 255, 0.08);
    --t4-control-soft: rgba(255, 255, 255, 0.04);
    --t4-control-hover: rgba(255, 255, 255, 0.16);
    --t4-control-active: #ffffff;
    --t4-control-active-text: #0d0d0f;
    --t4-focus: rgba(255, 255, 255, 0.85);
    --t4-link: #64b5ff;
    --t4-overlay: rgba(13, 13, 15, 0.75);
    --t4-loading-mask: rgba(13, 13, 15, 0.82);
    --t4-topbar: rgba(13, 13, 15, 0.72);
    --t4-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.45);
    --t4-shadow-hover: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 14px 34px rgba(0, 0, 0, 0.6);
    --t4-error: #ff8a80;
    --t4-error-surface: rgba(255, 69, 58, 0.14);
    --t4-error-border: rgba(255, 69, 58, 0.25);
    --t4-warning: #ffd60a;
    --t4-warning-surface: rgba(255, 214, 10, 0.08);
    --t4-warning-border: rgba(255, 214, 10, 0.18);
    --t4-poster-fallback: linear-gradient(160deg, #232327, #17171a);
    --t4-skeleton: rgba(255, 255, 255, 0.05);
    --t4-skeleton-highlight: rgba(255, 255, 255, 0.10);
    --t4-radius: 12px;
    --t4-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --t4-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

[data-theme4-appearance="light"] {
    --t4-bg: #f5f5f7;
    --t4-surface: #ffffff;
    --t4-surface-raised: #ffffff;
    --t4-text: #1d1d1f;
    --t4-text-2: #515154;
    --t4-text-3: #6e6e73;
    --t4-hairline: rgba(0, 0, 0, 0.12);
    --t4-accent: #1d1d1f;
    --t4-gold: #765800;
    --t4-control: rgba(0, 0, 0, 0.06);
    --t4-control-soft: rgba(0, 0, 0, 0.035);
    --t4-control-hover: rgba(0, 0, 0, 0.11);
    --t4-control-active: #1d1d1f;
    --t4-control-active-text: #ffffff;
    --t4-focus: #0066cc;
    --t4-link: #005eb8;
    --t4-overlay: rgba(0, 0, 0, 0.38);
    --t4-loading-mask: rgba(255, 255, 255, 0.86);
    --t4-topbar: rgba(255, 255, 255, 0.82);
    --t4-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 8px 22px rgba(0, 0, 0, 0.14);
    --t4-shadow-hover: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 14px 34px rgba(0, 0, 0, 0.19);
    --t4-error: #b42318;
    --t4-error-surface: #fff1f0;
    --t4-error-border: #f3b7b2;
    --t4-warning: #664d00;
    --t4-warning-surface: #fff8d6;
    --t4-warning-border: #e7cd69;
    --t4-poster-fallback: linear-gradient(160deg, #f0f0f2, #e2e2e7);
    --t4-skeleton: rgba(0, 0, 0, 0.06);
    --t4-skeleton-highlight: rgba(0, 0, 0, 0.12);
}

html[data-theme4-appearance] {
    min-height: 100%;
    background: var(--t4-bg);
}

/* 焦点可达性 */
.t4-body :is(a, button, input):focus-visible {
    outline: 2px solid var(--t4-focus) !important;
    outline-offset: 2px;
    border-radius: 6px;
}

.t4-body {
    margin: 0;
    min-height: 100vh;
    background: var(--t4-bg);
    color: var(--t4-text);
    font-family: var(--t4-font);
    -webkit-font-smoothing: antialiased;
}
.t4-body * { box-sizing: border-box; }
.t4-body a { text-decoration: none; color: inherit; }
.t4-body button { font-family: inherit; }

/* ---------- 顶栏（毛玻璃） ---------- */
.t4-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--t4-topbar);
    backdrop-filter: saturate(1.8) blur(20px);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    border-bottom: 1px solid var(--t4-hairline);
}
.t4-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.t4-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.t4-logo { height: 26px; width: auto; border-radius: 6px; }
.t4-brand-name { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.t4-nav { display: flex; gap: 2px; flex: 1; }
.t4-nav a {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--t4-text-2);
    transition: color .15s, background .15s;
}
.t4-nav a:hover { color: var(--t4-text); background: var(--t4-control); }
.t4-topbar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--t4-control);
    border-radius: 999px;
    padding: 0 14px;
    height: 34px;
    width: 240px;
    transition: background .15s, width .2s;
}
.t4-topbar-search:focus-within { background: var(--t4-control-hover); width: 300px; }
.t4-topbar-search .t4-search-icon { width: 14px; height: 14px; color: var(--t4-text-3); flex-shrink: 0; }
.t4-topbar-search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--t4-text);
    font-size: 13px;
}
.t4-topbar-search input::placeholder { color: var(--t4-text-3); }
/* 首页：正文大搜索框可见时隐藏顶栏搜索框，滚出视口后淡入（键盘聚焦时始终可见） */
.t4-topbar-home .t4-topbar-search { transition: opacity .25s ease, transform .25s ease, background .15s, width .2s; }
.t4-topbar-home:not(.t4-topbar-search-on) .t4-topbar-search:not(:focus-within) {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
}

/* 左下角外观切换热区 */
.t4-appearance-hotspot {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 120;
    width: calc(82px + env(safe-area-inset-left));
    height: calc(82px + env(safe-area-inset-bottom));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 0 calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
}
.t4-appearance-toggle {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--t4-hairline);
    border-radius: 50%;
    background: var(--t4-surface-raised);
    color: var(--t4-text);
    box-shadow: var(--t4-shadow);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s var(--t4-ease), transform .2s var(--t4-ease), background .15s;
}
.t4-appearance-hotspot:hover .t4-appearance-toggle,
.t4-appearance-hotspot:focus-within .t4-appearance-toggle {
    opacity: 1;
    transform: none;
}
.t4-appearance-toggle:hover { background: var(--t4-control-hover); }
.t4-appearance-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-appearance-toggle [data-theme4-icon="moon"],
[data-theme4-appearance="light"] .t4-appearance-toggle [data-theme4-icon="sun"] { display: none; }
[data-theme4-appearance="light"] .t4-appearance-toggle [data-theme4-icon="moon"] { display: block; }

/* ---------- Hero ---------- */
.t4-hero {
    position: relative;
    height: 62vh;
    min-height: 420px;
    max-height: 640px;
    overflow: hidden;
    background: #000;
    color: rgba(255, 255, 255, 0.92);
}
.t4-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s var(--t4-ease);
    pointer-events: none;
}
.t4-hero-slide.active { opacity: 1; pointer-events: auto; }
.t4-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    transform: scale(1.06);
    transition: transform 6s linear;
}
.t4-hero-slide.active .t4-hero-bg { transform: scale(1); }
.t4-hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, #0d0d0f 0%, rgba(13, 13, 15, 0.55) 22%, transparent 55%),
        linear-gradient(90deg, rgba(13, 13, 15, 0.72) 0%, rgba(13, 13, 15, 0.25) 40%, transparent 70%);
}
.t4-hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.t4-hero-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 10px;
}
.t4-hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.08;
    margin: 0 0 10px;
    max-width: 640px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    text-wrap: balance;
}
.t4-hero-sub { font-size: 16px; color: rgba(255, 255, 255, 0.72); margin: 0 0 8px; max-width: 560px; }
.t4-hero-desc {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t4-hero-actions { display: flex; align-items: center; gap: 16px; }
.t4-hero-cast { font-size: 12px; color: rgba(255, 255, 255, 0.62); max-width: 420px; }
.t4-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    transition: opacity .2s, background .15s;
}
.t4-hero:hover .t4-hero-arrow { opacity: 1; }
.t4-hero-arrow:hover { background: rgba(255, 255, 255, 0.28); }
.t4-hero-arrow.prev { left: 18px; }
.t4-hero-arrow.next { right: 18px; }
.t4-hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 6;
}
.t4-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    padding: 0;
    cursor: pointer;
    transition: all .25s;
}
.t4-hero-dot.active { width: 20px; background: #fff; }

/* ---------- 按钮 ---------- */
.t4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
}
.t4-btn-light,
.t4-body a.t4-btn-light { background: var(--t4-control-active); color: var(--t4-control-active-text); }
.t4-btn-light:hover,
.t4-body a.t4-btn-light:hover { opacity: .88; transform: scale(1.02); color: var(--t4-control-active-text); }
.t4-hero .t4-btn-light,
.t4-hero a.t4-btn-light { background: #fff; color: #0d0d0f; }

/* ---------- 主体 ---------- */
.t4-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 64px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ---------- 搜索聚光 ---------- */
.t4-spotlight { padding-top: 36px; text-align: center; }
.t4-spotlight-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 18px;
}
.t4-spotlight-search {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 660px;
    margin: 0 auto;
    background: var(--t4-control);
    border: 1px solid var(--t4-hairline);
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    transition: background .15s, border-color .15s;
}
.t4-spotlight-search:focus-within { background: var(--t4-control-hover); border-color: var(--t4-focus); }
.t4-spotlight-search .t4-search-icon { width: 17px; height: 17px; color: var(--t4-text-3); flex-shrink: 0; }
.t4-spotlight-search input {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    outline: none;
    color: var(--t4-text);
    font-size: 15px;
    height: 40px;
}
.t4-spotlight-search input::placeholder { color: var(--t4-text-3); }
.t4-spotlight-btn { flex-shrink: 0; }
.t4-spotlight-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.t4-word-chip {
    font-size: 12px;
    padding: 5px 13px;
    border-radius: 999px;
    background: var(--t4-control);
    color: var(--t4-text-2);
    transition: all .15s;
}
.t4-word-chip:hover { background: var(--t4-control-hover); color: var(--t4-text); }
.t4-word-chip.top { color: var(--t4-gold); }

/* ---------- 货架 ---------- */
.t4-shelf-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.t4-shelf-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}
.t4-shelf-more { margin-left: auto; font-size: 13px; color: var(--t4-text-3); }
.t4-shelf-more:hover { color: var(--t4-text); }
/* 货架改为与默认主题一致的换行网格，不再横向滚动，箭头隐藏（模板/JS 保留兼容） */
.t4-shelf-arrows { display: none; }
.t4-shelf-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--t4-control);
    color: var(--t4-text-2);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.t4-shelf-arrow:hover { background: var(--t4-control-hover); color: var(--t4-text); }
.t4-shelf-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 20px 14px;
    padding: 6px 2px 4px;
}

/* ---------- 卡片 ---------- */
.t4-card { position: relative; min-width: 0; }
.t4-card-main { display: block; }
.t4-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--t4-bg-card);
    box-shadow: var(--t4-shadow);
    transition: transform .22s var(--t4-ease), box-shadow .22s var(--t4-ease);
}
.t4-card:hover .t4-poster {
    transform: scale(1.04);
    box-shadow: var(--t4-shadow-hover);
}
.t4-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t4-poster-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t4-text-3);
    text-align: center;
    background: var(--t4-poster-fallback);
}
.t4-badge {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    line-height: 1.5;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.t4-badge-rating { right: 6px; bottom: 6px; color: var(--t4-gold); }
.t4-badge-remarks { left: 6px; top: 6px; max-width: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t4-badge-year { right: 6px; top: 6px; }
.t4-card-title {
    margin: 9px 0 2px;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.t4-card-sub {
    margin: 0;
    font-size: 12px;
    color: var(--t4-text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- 浏览器（网格 + 无限滚动） ---------- */
.t4-explorer-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.t4-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.t4-tab {
    border: none;
    background: transparent;
    color: var(--t4-text-2);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .15s;
}
.t4-tab:hover { color: var(--t4-text); background: var(--t4-control); }
.t4-tab.active { background: var(--t4-control-active); color: var(--t4-control-active-text); }
.t4-filter-panel { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.t4-chips {
    display: flex;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    padding: 3px 0;
    scrollbar-width: none;
}
.t4-chips::-webkit-scrollbar { display: none; }
.t4-chips-label { font-size: 12px; color: var(--t4-text-3); margin-right: 6px; flex-shrink: 0; }
.t4-chip {
    border: none;
    background: transparent;
    color: var(--t4-text-2);
    font-size: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
}
.t4-chip:hover { color: var(--t4-text); background: var(--t4-control); }
.t4-chip.active { background: var(--t4-control-active); color: var(--t4-control-active-text); font-weight: 600; }
.t4-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
    gap: 22px 14px;
}
.t4-explorer-status {
    text-align: center;
    color: var(--t4-text-3);
    font-size: 13px;
    padding: 22px 0 4px;
}

/* ---------- 搜索风云榜 ---------- */
.t4-rankstrip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 28px;
}
.t4-rankstrip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 8px;
    border-radius: 10px;
    transition: background .15s;
}
.t4-rankstrip-item:hover { background: var(--t4-control); }
.t4-rank-num {
    width: 22px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-style: italic;
    color: var(--t4-text-3);
    flex-shrink: 0;
}
.t4-rank-num.top { color: var(--t4-gold); }
.t4-rankstrip-word {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.t4-rankstrip-item:hover .t4-rankstrip-word { color: var(--t4-text); }
.t4-rankstrip-count { font-size: 12px; color: var(--t4-text-3); flex-shrink: 0; }

/* ================= 搜索结果页 ================= */
.t4-list-page { padding-top: 26px; gap: 30px; }
.t4-result-shell {
    background: var(--t4-bg-elev);
    border: 1px solid var(--t4-hairline);
    border-radius: 16px;
    padding: 20px 22px;
}
.t4-segment-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.t4-segment {
    display: inline-flex;
    background: var(--t4-control);
    border-radius: 999px;
    padding: 3px;
}
.t4-segment a {
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t4-text-2);
    transition: all .15s;
}
.t4-segment a.active { background: var(--t4-control-active); color: var(--t4-control-active-text); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18); }
.t4-line-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.t4-line-pills a {
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--t4-text-2);
    background: var(--t4-control-soft);
    transition: all .15s;
}
.t4-line-pills a:hover { color: var(--t4-text); background: var(--t4-control-hover); }
.t4-line-pills a.active { background: var(--t4-control-active); color: var(--t4-control-active-text); font-weight: 600; }
.t4-result-note { font-size: 13px; color: var(--t4-text-2); margin: 0 0 14px; }
.t4-result-note strong { color: var(--t4-text); }
.t4-result-list { display: flex; flex-direction: column; }
.t4-result-item {
    padding: 16px 2px 18px;
    border-bottom: 1px solid var(--t4-hairline);
}
.t4-result-item:last-child { border-bottom: none; }
.t4-result-head { display: flex; align-items: flex-start; gap: 12px; }
.t4-result-title-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.t4-result-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.t4-result-title span { color: var(--t4-gold); }
.t4-result-title-wrap:hover .t4-result-title { color: var(--t4-text); text-decoration: underline; text-underline-offset: 3px; }
.t4-result-desc {
    font-size: 12px;
    color: var(--t4-text-3);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.t4-result-desc span { color: var(--t4-gold); }
.t4-result-category {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--t4-text-2);
    background: var(--t4-control);
    padding: 3px 10px;
    border-radius: 999px;
}
.t4-result-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.t4-meta-time, .t4-meta-tag {
    font-size: 11px;
    color: var(--t4-text-3);
    background: var(--t4-control-soft);
    padding: 2px 9px;
    border-radius: 999px;
}
.t4-link-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.t4-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    background: var(--t4-control-soft);
}
.t4-link-row:hover { background: var(--t4-control); }
.t4-disk-icon { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }
.t4-link-name { font-size: 13px; color: var(--t4-text-2); flex: 1; min-width: 0; }
.t4-link-actions { display: flex; gap: 8px; flex-shrink: 0; }
.t4-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--t4-text-2);
    background: var(--t4-control);
    transition: all .15s;
}
.t4-pill:hover { color: var(--t4-text); background: var(--t4-control-hover); }
.t4-pill-primary,
.t4-body a.t4-pill-primary { background: var(--t4-control-active); color: var(--t4-control-active-text); }
.t4-pill-primary:hover,
.t4-body a.t4-pill-primary:hover { opacity: .86; color: var(--t4-control-active-text); }
.t4-pagination { display: flex; justify-content: center; padding-top: 18px; }
.t4-empty { text-align: center; padding: 40px 0; color: var(--t4-text-2); font-size: 14px; }
.t4-empty .t4-btn { margin-top: 14px; }
.t4-loading { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 40px 0; }
.t4-loading-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--t4-text-2);
    animation: t4-bounce 1.2s infinite ease-in-out;
}
.t4-loading-dot:nth-child(2) { animation-delay: .15s; }
.t4-loading-dot:nth-child(3) { animation-delay: .3s; }
.t4-loading-text { font-size: 13px; color: var(--t4-text-2); margin-left: 8px; }
@keyframes t4-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: .4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

/* 聚合推荐 */
.t4-bottom {
    background: var(--t4-bg-elev);
    border: 1px solid var(--t4-hairline);
    border-radius: 16px;
    padding: 18px 22px;
}
.t4-bottom-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.t4-bottom-head .t4-shelf-more { margin-left: auto; }
.t4-bottom-empty { color: var(--t4-text-3); font-size: 13px; padding: 18px 0; text-align: center; }

/* ---------- 资源弹窗 ---------- */
.t4-dialog-url-box { --el-dialog-bg-color: var(--t4-surface-raised); border-radius: 16px; }
.t4-dialog-url-box .el-dialog__header { padding: 10px; }
.t4-dialog-url { text-align: center; color: var(--t4-text); padding: 0 12px 8px; }
.t4-dialog-url .title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.t4-dialog-url .title span { color: var(--t4-gold); }
.t4-dialog-url .tips { font-size: 12px; color: var(--t4-text-3); margin-bottom: 12px; }
.t4-dialog-url .qrcode {
    display: flex;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    width: fit-content;
    margin: 0 auto 12px;
}
.t4-dialog-url .nav { font-size: 13px; }
.t4-dialog-url .nav .item { margin-bottom: 8px; word-break: break-all; }
.t4-dialog-url .nav .t { font-weight: 600; }
.t4-dialog-url .nav a { color: var(--t4-link); text-decoration: underline; text-underline-offset: 2px; }
.t4-dialog-url .t4-dialog-error { color: var(--t4-error); }
.t4-dialog-statement {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--t4-hairline);
    font-size: 11px;
    color: var(--t4-text-3);
    line-height: 1.7;
    text-align: left;
}
.t4-dialog-statement p { margin: 0 0 4px; }

/* ElementPlus 分页/弹窗/警告条/加载遮罩 */
.t4-body .el-pagination.is-background .el-pager li,
.t4-body .el-pagination.is-background .btn-prev,
.t4-body .el-pagination.is-background .btn-next {
    background: var(--t4-control);
    color: var(--t4-text-2);
    border-radius: 8px;
}
.t4-body .el-pagination.is-background .el-pager li:hover { color: var(--t4-text); background: var(--t4-control-hover); }
.t4-body .el-pagination.is-background .el-pager li.is-active {
    background: var(--t4-control-active);
    color: var(--t4-control-active-text);
}
.t4-body .el-pagination.is-background .btn-prev:disabled,
.t4-body .el-pagination.is-background .btn-next:disabled {
    background: var(--t4-control-soft);
    color: var(--t4-text-3);
}
.t4-body .el-overlay { background: var(--t4-overlay); }
.t4-body .el-overlay .el-dialog { background: var(--t4-surface-raised); color: var(--t4-text); border: 1px solid var(--t4-hairline); border-radius: 16px; }
.t4-body .el-dialog__headerbtn .el-dialog__close { color: var(--t4-text-2); }
.t4-body .el-dialog__headerbtn:hover .el-dialog__close { color: var(--t4-text); }
.t4-body .el-loading-mask { background-color: var(--t4-loading-mask); }
.t4-body .el-loading-spinner .path { stroke: var(--t4-link); }
.t4-body .el-loading-spinner .el-loading-text { color: var(--t4-text-2); }
.t4-body .el-alert--error {
    background: var(--t4-error-surface);
    border: 1px solid var(--t4-error-border);
    border-radius: 10px;
}
.t4-body .el-alert--error .el-alert__title { color: var(--t4-error); }

/* 减弱动效偏好：关闭装饰性动画 */
@media (prefers-reduced-motion: reduce) {
    .t4-hero-slide { transition: opacity .01s; }
    .t4-hero-bg, .t4-hero-slide.active .t4-hero-bg { transform: none; transition: none; }
    .t4-poster, .t4-card:hover .t4-poster { transform: none; transition: none; }
    .t4-btn-light:hover { transform: none; }
    .t4-loading-dot { animation: none; opacity: .7; }
    .t4-shelf-track { scroll-behavior: auto; scroll-snap-type: none; }
    .t4-appearance-toggle { transition: none; }
}

/* ================= 发现模块（推荐 + 筛选） ================= */
.t4-quick-foot { display: flex; justify-content: center; padding: 20px 0 4px; }
.t4-discover-head { margin-bottom: 20px; }
.t4-discover-head .t4-tab { font-size: 14px; padding: 7px 18px; }
.t4-discover-shelves { display: flex; flex-direction: column; gap: 40px; }
.t4-btn-more {
    background: var(--t4-control);
    color: var(--t4-text-2);
    min-width: 180px;
}
.t4-btn-more:hover:not(:disabled) { background: var(--t4-control-hover); color: var(--t4-text); }
.t4-btn-more:disabled { cursor: default; color: var(--t4-text-3); background: var(--t4-control-soft); }

/* ================= 子页面（热门/最新/搜索榜） ================= */
.t4-subpage { padding-top: 26px; gap: 30px; }
.t4-page-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.t4-page-head .t4-shelf-more { margin-left: auto; }
.t4-page-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.018em;
    margin: 0;
}
.t4-subnav { flex-wrap: wrap; margin-bottom: 12px; overflow: visible; }
.t4-onecol { grid-template-columns: 1fr; }
.t4-hot-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--t4-error);
    background: var(--t4-error-surface);
    border-radius: 5px;
    padding: 2px 6px;
}
.t4-pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 18px;
}
.t4-pager-link {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--t4-text-2);
    background: var(--t4-control);
    transition: all .15s;
}
.t4-pager-link:hover:not(.disabled):not(.active) { background: var(--t4-control-hover); color: var(--t4-text); }
.t4-pager-link.active { background: var(--t4-control-active); color: var(--t4-control-active-text); font-weight: 600; }
.t4-pager-link.disabled { color: var(--t4-text-3); background: var(--t4-control-soft); pointer-events: none; }

/* ================= 详情页 ================= */
.t4-detail-page { padding-top: 26px; gap: 26px; }
.t4-detail-shell {
    background: var(--t4-bg-elev);
    border: 1px solid var(--t4-hairline);
    border-radius: 16px;
    padding: 24px 26px;
}
.t4-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--t4-text-3);
    margin-bottom: 14px;
}
.t4-breadcrumb a:hover { color: var(--t4-text); }
.t4-breadcrumb em { font-style: normal; color: var(--t4-text-2); }
.t4-detail-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.2;
    margin: 0 0 12px;
    text-wrap: balance;
}
.t4-detail-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.t4-detail-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--t4-text-2);
    margin: 0 0 16px;
    max-width: 760px;
}
.t4-detail-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--t4-warning);
    background: var(--t4-warning-surface);
    border: 1px solid var(--t4-warning-border);
    border-radius: 10px;
    padding: 9px 14px;
    margin: 0 0 14px;
}
.t4-notice-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-scan-hint { font-size: 12px; color: var(--t4-text-3); margin: 10px 2px 0; }
.t4-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0; }

/* ================= 浏览器骨架屏 ================= */
.t4-skeleton .t4-poster { box-shadow: inset 0 0 0 1px var(--t4-hairline); }
.t4-skeleton-block {
    background: linear-gradient(100deg, var(--t4-skeleton) 40%, var(--t4-skeleton-highlight) 50%, var(--t4-skeleton) 60%);
    background-size: 200% 100%;
    animation: t4-shimmer 1.4s infinite linear;
}
.t4-skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-top: 10px;
}
.t4-skeleton-line.short { width: 60%; margin-top: 6px; }
@keyframes t4-shimmer {
    from { background-position: 200% 0; }
    to { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .t4-skeleton-block { animation: none; }
}

/* 公共页脚 */
.t4-body .footerBox { background: transparent; padding: 26px 0 44px; }
.t4-body .footerBox .box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--t4-text-3);
    font-size: 12px;
}
.t4-body .footerBox a { color: var(--t4-text-2); }

@media (hover: none), (pointer: coarse) {
    .t4-appearance-toggle {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .t4-nav { display: none; }
    .t4-topbar-search { flex: 1; width: auto; }
    .t4-topbar-search:focus-within { width: auto; }
    .t4-hero { height: 46vh; min-height: 320px; }
    .t4-hero-title { font-size: 32px; }
    .t4-rankstrip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .t4-topbar-inner { padding: 0 12px; gap: 12px; }
    .t4-main { padding: 0 12px 48px; gap: 28px; }
    .t4-hero { height: 40vh; min-height: 260px; }
    .t4-hero-content { bottom: 32px; }
    .t4-hero-title { font-size: 24px; }
    .t4-hero-desc { display: none; }
    .t4-hero-arrow { display: none; }
    .t4-spotlight-title { font-size: 21px; }
    .t4-spotlight-search { padding-left: 14px; }
    .t4-spotlight-btn { padding: 0 16px; height: 34px; }
    .t4-shelf-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
    .t4-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
    .t4-result-shell, .t4-bottom { padding: 14px; border-radius: 12px; }
    .t4-result-head { flex-direction: column; gap: 6px; }
    .t4-link-row { flex-wrap: wrap; }
    .t4-link-name { flex: 1 1 auto; }
    .t4-link-actions { margin-left: auto; }
}
