/* ================= 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: 20px;
}
.t4-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 1; min-width: 0; max-width: 220px; }
.t4-logo { height: 26px; width: auto; border-radius: 6px; }
.t4-brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.t4-nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.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-nav a.active { color: var(--t4-text); background: var(--t4-control); font-weight: 600; }
.t4-topbar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex: 0 1 auto;
}
.t4-topbar-action,
.t4-topbar-links a {
    min-width: 0;
    max-width: 128px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--t4-text-2);
    font: inherit;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color .15s, background .15s;
}
.t4-topbar-action:hover,
.t4-topbar-links a:hover { color: var(--t4-text); background: var(--t4-control); }
.t4-topbar-bot { flex: 0 0 auto; color: var(--t4-text); background: var(--t4-control-soft); }
.t4-topbar-demand { flex: 0 0 auto; border: 1px solid var(--t4-hairline); color: var(--t4-text); }
.t4-topbar-demand:hover { border-color: var(--t4-text-3); }
.t4-topbar-links { min-width: 0; display: flex; align-items: center; gap: 2px; }
.t4-menu { position: relative; flex: 0 0 auto; }
.t4-menu summary {
    min-height: 44px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 999px;
    color: var(--t4-text-2);
    font-size: 13px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.t4-menu summary::-webkit-details-marker { display: none; }
.t4-menu summary:hover, .t4-menu[open] summary { color: var(--t4-text); background: var(--t4-control); }
.t4-menu summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t4-topbar-actions .t4-menu summary { min-height: 34px; }
.t4-menu-desktop[open] summary .lucide-chevron-down { transform: rotate(180deg); }
.t4-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 130;
    width: min(300px, calc(100vw - 24px));
    max-height: calc(100dvh - 76px);
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--t4-surface-raised);
    border: 1px solid var(--t4-hairline);
    border-radius: 14px;
    box-shadow: var(--t4-shadow-hover);
}
.t4-menu-group,
.t4-menu-links { display: grid; gap: 2px; }
.t4-menu-group + .t4-menu-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--t4-hairline);
}
.t4-menu-panel > a, .t4-menu-panel > button, .t4-menu-panel nav a, .t4-menu-group > a, .t4-menu-group > button, .t4-menu-links a {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--t4-text-2);
    font: inherit;
    font-size: 13px;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.t4-menu-panel > a:hover, .t4-menu-panel > button:hover, .t4-menu-panel nav a:hover, .t4-menu-group > a:hover, .t4-menu-group > button:hover, .t4-menu-links a:hover {
    color: var(--t4-text);
    background: var(--t4-control);
}
.t4-menu-mobile { display: none; }
.t4-mobile-quick-actions {
    display: none;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}
.t4-mobile-quick-links { display: contents; }
.t4-mobile-quick-actions a,
.t4-mobile-quick-actions button {
    position: relative;
    isolation: isolate;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--t4-text-2);
    font: inherit;
    cursor: pointer;
    appearance: none;
    touch-action: manipulation;
    margin: 0;
}
.t4-mobile-quick-actions a::before,
.t4-mobile-quick-actions button::before {
    content: '';
    position: absolute;
    inset: 7px;
    z-index: -1;
    border: 1px solid var(--t4-hairline);
    border-radius: 50%;
    background: var(--t4-control-soft);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.t4-mobile-quick-actions a:hover,
.t4-mobile-quick-actions a:focus-visible,
.t4-mobile-quick-actions button:hover,
.t4-mobile-quick-actions button:focus-visible { color: var(--t4-text); }
.t4-mobile-quick-actions a:hover::before,
.t4-mobile-quick-actions a:focus-visible::before,
.t4-mobile-quick-actions button:hover::before,
.t4-mobile-quick-actions button:focus-visible::before {
    border-color: var(--t4-text-3);
    background: var(--t4-control-hover);
    box-shadow: var(--t4-shadow);
}
.t4-mobile-quick-actions svg,
.t4-mobile-quick-links a::after {
    width: 15px;
    height: 15px;
}
.t4-mobile-quick-actions svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.t4-mobile-quick-links a {
    overflow: hidden;
    font-size: 0;
    line-height: 0;
}
.t4-mobile-quick-links a::after {
    content: '';
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15%203h6v6'/%3E%3Cpath d='M10%2014%2021%203'/%3E%3Cpath d='M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15%203h6v6'/%3E%3Cpath d='M10%2014%2021%203'/%3E%3Cpath d='M18%2013v6a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V8a2%202%200%200%201%202-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* theme3 / theme4 共用的配置入口弹层 */
.t34-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--t4-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.t34-dialog {
    position: relative;
    width: min(380px, 100%);
    max-height: calc(100dvh - 32px);
    padding: 24px;
    overflow-y: auto;
    border: 1px solid var(--t4-hairline);
    border-radius: 18px;
    background: var(--t4-surface-raised);
    color: var(--t4-text);
    box-shadow: var(--t4-shadow-hover);
}
.t34-dialog h2 { margin: 0 44px 18px 0; font-size: 20px; }
.t34-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--t4-text-2);
    cursor: pointer;
}
.t34-dialog-close:hover { background: var(--t4-control); color: var(--t4-text); }
.t34-dialog-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.t34-qr-image { width: 100%; max-height: min(64vh, 340px); display: block; border-radius: 12px; object-fit: contain; }
.t34-dialog-label { display: block; margin-bottom: 8px; color: var(--t4-text-2); font-size: 13px; }
.t34-dialog textarea { width: 100%; min-height: 120px; padding: 12px 14px; resize: vertical; border: 1px solid var(--t4-hairline); border-radius: 12px; outline: none; color: var(--t4-text); background: var(--t4-control); font: inherit; }
.t34-dialog textarea:focus { border-color: var(--t4-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t4-focus) 24%, transparent); }
.t34-dialog-submit { width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--t4-control-active); color: var(--t4-control-active-text); font-weight: 700; cursor: pointer; }
.t34-dialog-submit:hover { opacity: .86; }
.t34-wechat-overlay { animation: t34-overlay-in .16s ease-out both; }
.t34-wechat-dialog {
    width: min(420px, 100%);
    overflow: hidden;
    background: color-mix(in srgb, var(--t4-surface-raised) 92%, transparent);
    backdrop-filter: saturate(1.25) blur(24px);
    -webkit-backdrop-filter: saturate(1.25) blur(24px);
    animation: t34-dialog-in .2s var(--t4-ease) both;
}
.t34-wechat-heading { display: flex; align-items: center; gap: 12px; margin: 0 48px 20px 0; text-align: left; }
.t34-wechat-heading-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border: 1px solid var(--t4-hairline);
    border-radius: 13px;
    background: var(--t4-control);
    color: var(--t4-text);
    box-shadow: var(--t4-shadow);
}
.t34-wechat-heading-icon svg,
.t34-wechat-status-icon svg,
.t34-wechat-retry svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t34-wechat-heading-copy { min-width: 0; display: block; }
.t34-wechat-heading h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.t34-wechat-heading-copy > span { display: block; color: var(--t4-text-2); font-size: 12px; line-height: 1.55; }
.t34-wechat-qr {
    width: min(236px, 100%);
    aspect-ratio: 1;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}
.t34-wechat-qr img { width: 100%; height: 100%; display: block; object-fit: contain; }
.t34-wechat-qr-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: linear-gradient(145deg, #fafafa, #ededf0); color: #8a8a8f; }
.t34-wechat-qr-placeholder svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.t34-wechat-status {
    min-height: 52px;
    margin-top: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--t4-hairline);
    border-radius: 12px;
    background: var(--t4-control-soft);
    color: var(--t4-text-2);
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}
.t34-wechat-status-icon { width: 20px; height: 20px; display: inline-flex; flex: 0 0 20px; }
.t34-wechat-status.is-loading,
.t34-wechat-status.is-connecting { border-color: var(--t4-warning-border); background: var(--t4-warning-surface); color: var(--t4-warning); }
.t34-wechat-status.is-ready { border-color: transparent; background: var(--t4-control-active); color: var(--t4-control-active-text); font-weight: 600; }
.t34-wechat-status.is-error,
.t34-wechat-status.is-expired { border-color: var(--t4-error-border); background: var(--t4-error-surface); color: var(--t4-error); }
.t34-wechat-status.is-loading .lucide-loader-circle,
.t34-wechat-status.is-connecting .lucide-loader-circle { animation: t34-spin .8s linear infinite; }
.t34-wechat-retry { display: flex; align-items: center; justify-content: center; gap: 8px; }
.t34-wechat-retry:disabled { opacity: .56; cursor: not-allowed; }
@keyframes t34-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes t34-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes t34-spin { to { transform: rotate(360deg); } }
.t4-topbar-search {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--t4-control);
    border-radius: 999px;
    padding: 0 10px 0 4px;
    height: 34px;
    width: 240px;
    flex: 0 0 auto;
    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-submit {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--t4-text-3);
    cursor: pointer;
}
.t4-topbar-search-submit:hover { color: var(--t4-text); background: var(--t4-control-hover); }
.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: 1;
    transform: none;
    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: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    z-index: 6;
    opacity: .72;
    transition: opacity .2s, background .15s;
}
.t4-hero:hover .t4-hero-arrow { opacity: 1; }
.t4-hero-arrow:focus-visible { opacity: 1; }
.t4-hero-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.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: 0;
    display: flex;
    gap: 0;
    z-index: 6;
}
.t4-hero-dot {
    position: relative;
    width: 40px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.t4-hero-dot::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transform: translate(-50%, -50%);
    transition: width .25s, background .25s;
}
.t4-hero-dot:hover::before, .t4-hero-dot:focus-visible::before { background: rgba(255, 255, 255, 0.72); }
.t4-hero-dot.active::before { 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;
}
#t4Discover { scroll-margin-top: 72px; }

/* ---------- 浏览器（网格 + 无限滚动） ---------- */
.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;
    justify-content: center;
    height: 28px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--t4-text-2);
    background: var(--t4-control);
    cursor: pointer;
    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 { width: min(520px, calc(100vw - 24px)); --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; }
    .t34-wechat-overlay, .t34-wechat-dialog, .t34-wechat-status-icon svg { animation: 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 {
    width: 100%;
    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: 1100px) {
    .t4-topbar-inner { gap: 10px; padding-inline: 16px; }
    .t4-brand { max-width: 150px; }
    .t4-nav a { padding-inline: 7px; }
    .t4-topbar-search { width: 150px; }
    .t4-topbar-search:focus-within { width: 190px; }
    .t4-topbar-action,
    .t4-topbar-links a { max-width: 82px; padding-inline: 8px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .t4-nav { display: none; }
    .t4-topbar-actions { display: none; }
    .t4-menu-desktop { display: none; }
    .t4-menu-mobile { display: block; margin-left: auto; }
    .t4-mobile-quick-actions { display: flex; margin-left: auto; }
    .t4-mobile-quick-actions + .t4-menu-mobile { margin-left: 0; }
    .t4-topbar-search { flex: 1; width: auto; min-width: 0; min-height: 44px; }
    .t4-topbar-search:focus-within { width: auto; }
    .t4-topbar-search-submit { width: 44px; height: 44px; }
    .t4-topbar-home .t4-topbar-inner { position: relative; }
    .t4-topbar-home .t4-topbar-search {
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: 16px;
        z-index: 1;
        width: auto;
        border: 1px solid var(--t4-hairline);
        background: var(--t4-surface-raised);
        box-shadow: var(--t4-shadow);
        backdrop-filter: saturate(1.4) blur(16px);
        -webkit-backdrop-filter: saturate(1.4) blur(16px);
    }
    .t4-topbar-home .t4-topbar-search:focus-within { width: auto; }
    .t4-hero { height: clamp(300px, 40svh, 360px); min-height: 0; }
    .t4-hero-title { font-size: 32px; }
    .t4-rankstrip-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .t34-wechat-dialog { padding: 18px; border-radius: 16px; }
    .t34-wechat-heading { gap: 10px; margin-bottom: 16px; }
    .t34-wechat-heading-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
    .t34-wechat-heading h2 { font-size: 18px; }
    .t34-wechat-qr { width: min(228px, 100%); }
    .t4-topbar-inner { padding: 8px 12px; gap: 8px 4px; height: auto; min-height: 104px; flex-wrap: wrap; }
    .t4-brand { order: 1; flex: 1 1 0; min-width: 0; max-width: none; overflow: hidden; }
    .t4-logo { max-width: 72px; object-fit: contain; }
    .t4-mobile-quick-actions { order: 2; }
    .t4-menu-mobile { order: 3; }
    .t4-menu-mobile summary { width: 44px; padding: 0; font-size: 12px; }
    .t4-menu-mobile summary span { display: none; }
    .t4-menu-mobile .t4-menu-panel {
        position: fixed;
        top: 60px;
        right: 12px;
        width: min(272px, calc(100% - 24px));
        max-height: calc(100dvh - 72px);
        padding: 6px;
        border-radius: 12px;
    }
    .t4-menu-mobile .t4-menu-group[aria-label="移动端导航"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
    .t4-menu-mobile .t4-menu-group[aria-label="移动端导航"] a { justify-content: center; padding: 6px 8px; }
    .t4-menu-mobile .t4-menu-panel > a,
    .t4-menu-mobile .t4-menu-panel > button,
    .t4-menu-mobile .t4-menu-panel nav a,
    .t4-menu-mobile .t4-menu-group > a,
    .t4-menu-mobile .t4-menu-group > button,
    .t4-menu-mobile .t4-menu-links a { padding: 6px 10px; border-radius: 8px; font-size: 12px; }
    .t4-topbar-search { order: 4; flex: 1 0 100%; width: 100%; }
    .t4-topbar-search:focus-within { width: 100%; }
    .t4-topbar-home .t4-topbar-inner { min-height: 60px; }
    .t4-topbar-home .t4-topbar-search {
        right: 12px;
        left: 12px;
    }
    .t4-main { padding: 0 12px 40px; gap: 22px; }
    .t4-hero { height: clamp(228px, 30svh, 252px); min-height: 0; }
    .t4-hero-content { bottom: 44px; padding: 0 16px; }
    .t4-hero-kicker { font-size: 11px; margin-bottom: 6px; }
    .t4-hero-title {
        max-width: calc(100% - 32px);
        margin-bottom: 6px;
        font-size: 22px;
        line-height: 1.08;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .t4-hero-sub {
        max-width: calc(100% - 24px);
        margin-bottom: 8px;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .t4-hero-desc, .t4-hero-cast { display: none; }
    .t4-hero-actions { gap: 8px; }
    .t4-hero .t4-btn-light,
    .t4-hero a.t4-btn-light { --t4-hero-cta-pad: 5px; font-size: 11px; }
    .t4-hero-arrow {
        top: 8px;
        transform: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        isolation: isolate;
        opacity: 1;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .t4-hero-arrow::before {
        content: '';
        position: absolute;
        inset: 5px;
        z-index: -1;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: background .15s;
    }
    .t4-hero-arrow:hover { background: transparent; }
    .t4-hero-arrow:hover::before,
    .t4-hero-arrow:focus-visible::before { background: rgba(0, 0, 0, 0.42); }
    .t4-hero-arrow svg { width: 18px; height: 18px; }
    .t4-hero-arrow.prev { left: 10px; }
    .t4-hero-arrow.next { right: 10px; }
    #t4Discover { scroll-margin-top: 126px; }
    .t4-spotlight { padding-top: 24px; }
    .t4-spotlight-title { margin-bottom: 12px; font-size: 20px; }
    .t4-spotlight-search { gap: 8px; padding: 4px 4px 4px 14px; }
    .t4-spotlight-search input { font-size: 13px; }
    .t4-spotlight-btn { font-size: 12px; }
    .t4-spotlight-chips { gap: 4px; margin-top: 8px; }
    .t4-word-chip { font-size: 11px; }
    .t4-discover-head { margin: 0 -12px 10px; }
    .t4-tabs {
        flex-wrap: nowrap;
        gap: 2px;
        overflow-x: auto;
        padding: 0 12px 2px;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .t4-tabs::-webkit-scrollbar { display: none; }
    .t4-discover-head .t4-tab,
    .t4-chip { flex: 0 0 auto; font-size: 12px; }
    .t4-discover-shelves { gap: 28px; }
    .t4-shelf-head { margin-bottom: 10px; }
    .t4-shelf-title { font-size: 18px; }
    .t4-shelf-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; padding-top: 2px; }
    .t4-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
    .t4-poster { border-radius: 8px; }
    .t4-badge { padding: 1px 5px; border-radius: 5px; font-size: 10px; }
    .t4-badge-rating { right: 5px; bottom: 5px; }
    .t4-badge-remarks { left: 5px; top: 5px; }
    .t4-badge-year { right: 5px; top: 5px; }
    .t4-card-title { margin: 7px 0 1px; font-size: 12px; }
    .t4-card-sub { font-size: 11px; line-height: 1.4; }
    .t4-list-page, .t4-subpage { padding-top: 18px; gap: 22px; }
    .t4-result-shell, .t4-bottom { padding: 12px; 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; }
    .t4-appearance-hotspot {
        width: calc(64px + env(safe-area-inset-left));
        height: calc(64px + env(safe-area-inset-bottom));
        padding: 0 0 calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
    }
    .t4-appearance-toggle { position: relative; border: 0; background: transparent; box-shadow: none; }
    .t4-appearance-toggle::before {
        content: '';
        position: absolute;
        inset: 4px;
        border: 1px solid var(--t4-hairline);
        border-radius: 50%;
        background: var(--t4-surface-raised);
        box-shadow: var(--t4-shadow);
    }
    .t4-appearance-toggle:hover { background: transparent; }
    .t4-appearance-toggle:hover::before { background: var(--t4-control-hover); }
    .t4-appearance-toggle svg { position: relative; z-index: 1; width: 18px; height: 18px; }
}

@media (pointer: coarse) and (min-width: 901px) {
    .t4-nav,
    .t4-topbar-actions,
    .t4-menu-desktop { display: none; }
    .t4-menu-mobile { display: block; margin-left: auto; }
    .t4-mobile-quick-actions { display: flex; }
    .t4-topbar-search { flex: 1; width: auto; min-height: 44px; }
    .t4-topbar-search:focus-within { width: auto; }
}

/* 触屏紧凑控件：44px 命中区与 30px（分页 32px）视觉层分离。 */
@media (max-width: 900px), (pointer: coarse) {
    .t4-brand {
        min-width: 0;
        min-height: 44px;
    }
    .t4-nav a,
    .t4-topbar-action,
    .t4-topbar-links a,
    .t4-shelf-more {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .t4-topbar-search {
        height: 44px;
        min-height: 44px;
    }
    .t4-topbar-search-submit {
        width: 44px;
        height: 44px;
    }
    .t4-topbar-search input,
    .t4-spotlight-search input { height: 44px; }

    .t4-btn { min-width: 44px; min-height: 44px; }
    .t4-tab,
    .t4-chip,
    .t4-word-chip,
    .t4-pill,
    .t4-segment a,
    .t4-line-pills a,
    .t4-pager-link,
    .t4-hero .t4-btn-light,
    .t4-spotlight-btn {
        position: relative;
        isolation: isolate;
        min-width: 44px;
        width: auto;
        height: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: transparent;
    }

    .t4-tab { padding: 0 8px; --t4-compact-bg: transparent; }
    .t4-chip { padding: 0 8px; --t4-compact-bg: transparent; }
    .t4-word-chip { padding: 0 9px; --t4-compact-bg: var(--t4-control); }
    .t4-pill { padding: 0 8px; --t4-compact-bg: var(--t4-control); }
    .t4-segment a { padding: 0 10px; --t4-compact-bg: var(--t4-control); }
    .t4-line-pills a { padding: 0 9px; --t4-compact-bg: var(--t4-control-soft); }
    .t4-pager-link { padding: 0 10px; --t4-compact-bg: var(--t4-control); }
    .t4-hero .t4-btn-light { padding: 0 var(--t4-hero-cta-pad, 8px); flex-shrink: 0; white-space: nowrap; --t4-compact-bg: #fff; }
    .t4-spotlight-btn { padding: 0 8px; --t4-compact-bg: var(--t4-control-active); }

    .t4-tab::before,
    .t4-chip::before,
    .t4-word-chip::before,
    .t4-pill::before,
    .t4-segment a::before,
    .t4-line-pills a::before,
    .t4-pager-link::before,
    .t4-hero .t4-btn-light::before,
    .t4-spotlight-btn::before {
        content: '';
        position: absolute;
        inset: 7px 1px;
        z-index: -1;
        border-radius: 999px;
        background: var(--t4-compact-bg, transparent);
        pointer-events: none;
        transition: background .15s, box-shadow .15s, opacity .15s;
    }
    .t4-pager-link::before { inset-block: 6px; border-radius: 8px; }

    .t4-tab:hover,
    .t4-tab:focus-visible,
    .t4-tab:active,
    .t4-chip:hover,
    .t4-chip:focus-visible,
    .t4-chip:active {
        --t4-compact-bg: var(--t4-control);
        background: transparent;
        color: var(--t4-text);
    }
    .t4-tab.active,
    .t4-chip.active {
        --t4-compact-bg: var(--t4-control-active);
        background: transparent;
        color: var(--t4-control-active-text);
    }

    .t4-word-chip:hover,
    .t4-word-chip:focus-visible,
    .t4-word-chip:active,
    .t4-pill:hover,
    .t4-pill:focus-visible,
    .t4-pill:active,
    .t4-segment a:hover,
    .t4-segment a:focus-visible,
    .t4-segment a:active,
    .t4-line-pills a:hover,
    .t4-line-pills a:focus-visible,
    .t4-line-pills a:active,
    .t4-pager-link:hover:not(.disabled):not(.active),
    .t4-pager-link:focus-visible:not(.disabled):not(.active),
    .t4-pager-link:active:not(.disabled):not(.active) {
        --t4-compact-bg: var(--t4-control-hover);
        background: transparent;
        color: var(--t4-text);
    }
    .t4-segment { gap: 2px; padding: 0; background: transparent; }
    .t4-segment a.active,
    .t4-line-pills a.active,
    .t4-pager-link.active {
        --t4-compact-bg: var(--t4-control-active);
        background: transparent;
        color: var(--t4-control-active-text);
    }
    .t4-pager-link.disabled {
        --t4-compact-bg: var(--t4-control-soft);
        background: transparent;
        color: var(--t4-text-3);
        cursor: default;
        pointer-events: none;
    }

    .t4-pill-primary,
    .t4-body a.t4-pill-primary {
        --t4-compact-bg: var(--t4-control-active);
        background: transparent;
        color: var(--t4-control-active-text);
    }
    .t4-pill-primary:hover,
    .t4-pill-primary:focus-visible,
    .t4-pill-primary:active,
    .t4-body a.t4-pill-primary:hover,
    .t4-body a.t4-pill-primary:focus-visible,
    .t4-body a.t4-pill-primary:active {
        --t4-compact-bg: color-mix(in srgb, var(--t4-control-active) 86%, transparent);
        background: transparent;
        color: var(--t4-control-active-text);
        opacity: 1;
    }

    .t4-hero .t4-btn-light,
    .t4-hero a.t4-btn-light,
    .t4-body .t4-hero a.t4-btn-light {
        background: transparent;
        color: #0d0d0f;
        opacity: 1;
        transform: none;
    }
    .t4-hero .t4-btn-light:hover,
    .t4-hero .t4-btn-light:focus-visible,
    .t4-hero .t4-btn-light:active,
    .t4-hero a.t4-btn-light:hover,
    .t4-body .t4-hero a.t4-btn-light:hover {
        --t4-compact-bg: rgba(255, 255, 255, 0.86);
        background: transparent;
        color: #0d0d0f;
        opacity: 1;
        transform: none;
    }
    .t4-spotlight-btn,
    .t4-body .t4-spotlight-btn {
        background: transparent;
        color: var(--t4-control-active-text);
        opacity: 1;
        transform: none;
    }
    .t4-spotlight-btn:hover,
    .t4-spotlight-btn:focus-visible,
    .t4-spotlight-btn:active,
    .t4-body .t4-spotlight-btn:hover {
        --t4-compact-bg: color-mix(in srgb, var(--t4-control-active) 86%, transparent);
        background: transparent;
        color: var(--t4-control-active-text);
        opacity: 1;
        transform: none;
    }

    .t4-breadcrumb a {
        min-width: 44px;
        min-height: 44px;
        padding-inline: 6px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .t4-dialog-url .nav a {
        min-height: 44px;
        max-width: 100%;
        padding-block: 4px;
        display: inline-flex;
        align-items: center;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

    .t4-hero-dot {
        width: 44px;
        height: 44px;
    }

    .t4-pagination {
        max-width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .t4-pagination::-webkit-scrollbar { display: none; }
    .t4-pagination .el-pagination { margin-inline: auto; }
    .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 {
        position: relative;
        isolation: isolate;
        min-width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }
    .t4-body .el-pagination.is-background .el-pager li::before,
    .t4-body .el-pagination.is-background .btn-prev::before,
    .t4-body .el-pagination.is-background .btn-next::before {
        content: '';
        position: absolute;
        inset: 6px 1px;
        z-index: -1;
        border-radius: 8px;
        background: var(--t4-control);
        pointer-events: none;
        transition: background .15s;
    }
    .t4-body .el-pagination.is-background .el-pager li:hover,
    .t4-body .el-pagination.is-background .el-pager li:focus-visible,
    .t4-body .el-pagination.is-background .btn-prev:hover:not(:disabled),
    .t4-body .el-pagination.is-background .btn-prev:focus-visible:not(:disabled),
    .t4-body .el-pagination.is-background .btn-next:hover:not(:disabled),
    .t4-body .el-pagination.is-background .btn-next:focus-visible:not(:disabled) {
        background: transparent;
        color: var(--t4-text);
    }
    .t4-body .el-pagination.is-background .el-pager li:hover::before,
    .t4-body .el-pagination.is-background .el-pager li:focus-visible::before,
    .t4-body .el-pagination.is-background .btn-prev:hover:not(:disabled)::before,
    .t4-body .el-pagination.is-background .btn-prev:focus-visible:not(:disabled)::before,
    .t4-body .el-pagination.is-background .btn-next:hover:not(:disabled)::before,
    .t4-body .el-pagination.is-background .btn-next:focus-visible:not(:disabled)::before {
        background: var(--t4-control-hover);
    }
    .t4-body .el-pagination.is-background .el-pager li.is-active {
        background: transparent;
        color: var(--t4-control-active-text);
    }
    .t4-body .el-pagination.is-background .el-pager li.is-active::before {
        background: var(--t4-control-active);
    }
    .t4-body .el-pagination.is-background .btn-prev:disabled,
    .t4-body .el-pagination.is-background .btn-next:disabled,
    .t4-body .el-pagination.is-background .el-pager li.is-disabled {
        background: transparent;
        color: var(--t4-text-3);
    }
    .t4-body .el-pagination.is-background .btn-prev:disabled::before,
    .t4-body .el-pagination.is-background .btn-next:disabled::before,
    .t4-body .el-pagination.is-background .el-pager li.is-disabled::before {
        background: var(--t4-control-soft);
    }
}
