/* ============================================================================
   HORIZON · 地平线 —— 主题样式
   ----------------------------------------------------------------------------
   作用域铁律：
     · 首页     → 全部规则挂在 .hz-body 下，类名 hz- 前缀，零依赖 car-ui.css
     · 内页     → 全部规则挂在 body.skin-horizon 下，只覆盖颜色/圆角/间距/顶栏
   绝不要在这里写裸选择器（body / .card / .btn），否则会污染经典车机版。
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
.hz-body,
body.skin-horizon {
    --hz-bg: #05070c;
    --hz-bg-2: #080b13;
    --hz-ink: #eef3ff;
    --hz-dim: #8e99b0;
    --hz-line: rgba(255, 255, 255, .075);
    --hz-line-2: rgba(255, 255, 255, .14);
    --hz-glass: rgba(13, 17, 26, .66);
    --hz-accent: #d8ff3f;
    --hz-accent-ink: #0a0d04;
    --hz-violet: #7c5cff;
    --hz-danger: #ff5f7a;
    --hz-r-sm: 12px;
    --hz-r: 18px;
    --hz-r-lg: 26px;
    --hz-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
    --hz-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- 首页骨架 */
.hz-body {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--hz-bg);
    color: var(--hz-ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
                 "Microsoft YaHei", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    user-select: none;
}

.hz-app {
    position: relative;
    z-index: 2;
    display: grid;
    height: 100vh;
    height: 100dvh;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 66px minmax(0, 1fr) 58px;
    grid-template-areas:
        "status status"
        "dock   stage"
        "keys   keys";
}

/* ---------------------------------------------------------------- 环境光 */
.hz-ambient {
    position: fixed;
    inset: -12% -8% auto -8%;
    height: 128%;
    z-index: 0;
    pointer-events: none;
    opacity: .85;
}
.hz-amb {
    position: absolute;
    inset: 0;
    background-position: center 22%;
    background-size: cover;
    filter: blur(72px) saturate(150%) brightness(.42);
    opacity: 0;
    transform: scale(1.14);
    transition: opacity .9s var(--hz-ease), transform 1.6s var(--hz-ease);
    will-change: opacity, transform;
}
.hz-amb.on { opacity: .9; transform: scale(1); }
.hz-body::before {
    /* 顶部冷光 + 底部压暗，保证任何海报做背景时文字都可读 */
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(120% 80% at 15% -10%, rgba(124, 92, 255, .22), transparent 60%),
        radial-gradient(90% 70% at 100% 0%, rgba(216, 255, 63, .10), transparent 62%),
        linear-gradient(180deg, rgba(5, 7, 12, .55) 0%, rgba(5, 7, 12, .86) 46%, #05070c 92%);
}
.hz-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .16;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
}

/* ---------------------------------------------------------------- 状态条 */
.hz-status {
    grid-area: status;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 22px 0 18px;
    border-bottom: 1px solid var(--hz-line);
    background: linear-gradient(180deg, rgba(8, 11, 18, .82), rgba(8, 11, 18, .38));
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.hz-status-left,
.hz-status-right { display: flex; align-items: center; gap: 16px; min-width: 0; }

.hz-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--hz-ink);
    text-decoration: none;
    border-radius: 14px;
    padding: 6px 10px 6px 6px;
    transition: background .2s;
}
.hz-brand:hover { background: rgba(255, 255, 255, .05); }
.hz-brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 6px 18px rgba(216, 255, 63, .38));
}
.hz-brand-mark svg { display: block; }
.hz-brand-txt {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-weight: 800;
    font-size: 15.5px;
    letter-spacing: .05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 34vw;
}
.hz-brand-txt em {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .38em;
    color: var(--hz-accent);
    opacity: .92;
    margin-top: 4px;
}

.hz-pad-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--hz-line);
    background: rgba(255, 255, 255, .03);
    font-size: 12px;
    color: var(--hz-dim);
    white-space: nowrap;
}
.hz-pad-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hz-dim);
    box-shadow: 0 0 0 4px rgba(142, 153, 176, .12);
}
.hz-pad-state.is-pad { color: var(--hz-accent); border-color: rgba(216, 255, 63, .38); }
.hz-pad-state.is-pad i { background: var(--hz-accent); box-shadow: 0 0 0 4px rgba(216, 255, 63, .18); animation: hzPulse 2.4s infinite; }
@keyframes hzPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.hz-clock {
    font-variant-numeric: tabular-nums;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--hz-ink);
    opacity: .92;
}

/* 车机全屏按钮：时钟后面的玻璃圆钮，与状态条胶囊同族 */
.hz-fs {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--hz-line);
    background: rgba(255, 255, 255, .035);
    color: var(--hz-dim);
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
    flex: none;
}
.hz-fs svg { display: block; }
.hz-fs:hover { color: var(--hz-accent); border-color: rgba(216, 255, 63, .45); background: rgba(216, 255, 63, .08); }
.hz-fs:active { transform: scale(.92); }
.hz-bar .hz-fs { width: 34px; height: 34px; }

/* 车机全屏按钮 · 首次进入提示气泡（JS 定位在按钮正下方，右侧对齐） */
.hz-fs-tip {
    position: fixed;
    z-index: 980;
    max-width: min(78vw, 340px);
    padding: 11px 16px 12px;
    border-radius: 14px;
    border: 1px solid rgba(216, 255, 63, .4);
    background: rgba(16, 22, 32, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 38px -10px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04), 0 6px 22px -10px rgba(216, 255, 63, .35);
    color: var(--hz-ink);
    font-size: 13.5px;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(-6px) scale(.96);
    transition: opacity .24s, transform .24s;
    pointer-events: none;
}
.hz-fs-tip.on { opacity: 1; transform: translateY(0) scale(1); }
.hz-fs-tip b {
    display: block;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--hz-accent);
}
.hz-fs-tip span { display: block; margin-top: 3px; color: var(--hz-dim); }
.hz-fs-tip i {
    position: absolute;
    top: -6px;
    right: 22px;
    width: 11px;
    height: 11px;
    transform: rotate(45deg);
    border-top: 1px solid rgba(216, 255, 63, .4);
    border-left: 1px solid rgba(216, 255, 63, .4);
    background: rgba(16, 22, 32, .96);
}
@media (max-width: 820px) {
    .hz-fs-tip { font-size: 12.5px; padding: 9px 13px 10px; }
    .hz-fs-tip b { font-size: 13px; }
}
.hz-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 13px 0 6px;
    border-radius: 999px;
    border: 1px solid var(--hz-line);
    background: rgba(255, 255, 255, .035);
    color: var(--hz-ink);
    text-decoration: none;
    font-size: 13px;
    max-width: 220px;
    transition: border-color .2s, background .2s;
}
.hz-user:hover { border-color: var(--hz-line-2); background: rgba(255, 255, 255, .06); }
.hz-user img,
.hz-ava {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: rgba(216, 255, 63, .14);
    color: var(--hz-accent);
    font-size: 13px;
    font-weight: 700;
}
.hz-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 账号按钮（原样式是 <a>，现在是真的按钮：点开账号面板） */
.hz-user { position: relative; }
.hz-user-btn { font: inherit; font-size: 13px; cursor: pointer; }
.hz-user-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hz-danger);
    box-shadow: 0 0 0 2px rgba(5, 7, 12, .9), 0 0 10px rgba(255, 95, 122, .8);
}

/* ---------------------------------------------------------------- 账号面板
   首页与内页共用（lib.php::hz_account_parts）。车机上是全屏遮罩 + 大按钮，
   触摸 / 手柄 / 键盘都能用：theme.js 维护 .is-focus 并接管方向键与 A/B。 */
.hz-acct {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(3, 5, 9, .74);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: hzFade .18s ease both;
}
.hz-acct[hidden] { display: none; }
/* 面板打开时锁住内页滚动（首页 body 本来就 overflow:hidden） */
body.hz-acct-on { overflow: hidden; }
.hz-acct-card {
    display: flex;
    flex-direction: column;
    width: min(560px, 94vw);
    max-height: min(86vh, 760px);
    border-radius: 26px;
    border: 1px solid var(--hz-line-2);
    background: linear-gradient(165deg, rgba(22, 28, 40, .98), rgba(9, 12, 19, .99));
    box-shadow: 0 44px 100px -34px #000, inset 0 1px 0 rgba(255, 255, 255, .05);
    overflow: hidden;
    animation: hzIn .22s var(--hz-ease) both;
}
.hz-acct-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px 16px 20px;
    border-bottom: 1px solid var(--hz-line);
    background: radial-gradient(120% 100% at 0% 0%, rgba(216, 255, 63, .08), transparent 60%);
}
.hz-acct-ava { flex: none; display: block; }
.hz-acct-ava img,
.hz-acct-ava .hz-ava {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: grid;
    place-items: center;
    background: rgba(216, 255, 63, .14);
    color: var(--hz-accent);
    font-size: 20px;
    font-weight: 800;
    border: 1px solid rgba(216, 255, 63, .28);
}
.hz-acct-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hz-acct-id b { font-size: 18px; font-weight: 800; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-acct-id span { font-size: 12.5px; color: var(--hz-dim); }
.hz-acct-st {
    font-style: normal;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--hz-accent);
}
.hz-acct-st.warn { color: var(--hz-danger); }
.hz-acct-x {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--hz-line);
    background: rgba(255, 255, 255, .04);
    color: var(--hz-dim);
    font-size: 15px;
    cursor: pointer;
    transition: color .18s, border-color .18s, background .18s;
}
.hz-acct-x:hover { color: var(--hz-ink); border-color: var(--hz-line-2); background: rgba(255, 255, 255, .08); }

.hz-acct-list {
    display: grid;
    gap: 7px;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.hz-acct-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 62px;
    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, .035);
    color: var(--hz-ink);
    font: inherit;
    font-size: 15px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s, background .16s, transform .16s;
}
.hz-acct-item:hover,
.hz-acct-item.is-focus {
    border-color: rgba(216, 255, 63, .45);
    background: rgba(216, 255, 63, .09);
    transform: translateX(2px);
}
.hz-acct-ico { flex: none; width: 30px; text-align: center; font-size: 19px; font-style: normal; }
.hz-acct-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hz-acct-txt b { font-size: 15.5px; font-weight: 700; }
.hz-acct-txt em { font-style: normal; font-size: 12px; color: var(--hz-dim); }

/* 购买会员：整个菜单里唯一的荧光绿实底，扫一眼就能找到 */
.hz-acct-item.is-buy {
    border-color: rgba(216, 255, 63, .5);
    background: linear-gradient(135deg, rgba(216, 255, 63, .96), rgba(159, 224, 0, .92));
    color: #0a0d04;
}
.hz-acct-item.is-buy .hz-acct-txt b { font-weight: 800; }
.hz-acct-item.is-buy .hz-acct-txt em { color: rgba(10, 13, 4, .66); }
.hz-acct-item.is-buy:hover,
.hz-acct-item.is-buy.is-focus {
    border-color: #d8ff3f;
    background: linear-gradient(135deg, #e4ff7a, #a9ea12);
    box-shadow: 0 12px 30px -12px rgba(216, 255, 63, .75);
}
.hz-acct-quit { color: var(--hz-dim); }
.hz-acct-form { display: contents; }

@media (max-width: 820px) {
    .hz-acct { padding: 14px; }
    .hz-acct-card { max-height: 90vh; border-radius: 22px; }
    .hz-acct-head { padding: 16px 14px 12px 16px; gap: 11px; }
    .hz-acct-ava img, .hz-acct-ava .hz-ava { width: 42px; height: 42px; font-size: 17px; }
    .hz-acct-id b { font-size: 16px; }
    .hz-acct-item { min-height: 56px; padding: 9px 13px; gap: 11px; }
    .hz-acct-txt b { font-size: 14.5px; }
}

/* ---------------------------------------------------------------- 左侧 Dock */
.hz-dock {
    grid-area: dock;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px 12px;
    border-right: 1px solid var(--hz-line);
    background: linear-gradient(180deg, rgba(8, 11, 18, .48), rgba(8, 11, 18, .16));
    overflow-y: auto;
    scrollbar-width: none;
}
.hz-dock::-webkit-scrollbar { display: none; }

.hz-dock-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 84px;
    min-height: 66px;
    padding: 8px 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--hz-dim);
    font: inherit;
    font-size: 11.5px;
    text-decoration: none;
    cursor: pointer;
    transition: color .18s, background .18s, transform .18s var(--hz-ease);
}
.hz-dock-item:hover { color: var(--hz-ink); background: rgba(255, 255, 255, .055); }
.hz-dock-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .04);
    transition: background .18s, box-shadow .18s;
}
.hz-dock-ico img { width: 21px; height: 21px; filter: invert(1) opacity(.72); }
.hz-dock-ico { font-size: 17px; }
.hz-dock-item.is-active { color: var(--hz-ink); background: rgba(216, 255, 63, .07); }
.hz-dock-item.is-active .hz-dock-ico { background: rgba(216, 255, 63, .14); box-shadow: inset 0 0 0 1px rgba(216, 255, 63, .3); }
.hz-dock-item.is-active .hz-dock-ico img { filter: invert(1) opacity(1); }
.hz-dock-item.is-active::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 3px;
    height: 26px;
    margin-top: -13px;
    border-radius: 0 3px 3px 0;
    background: var(--hz-accent);
    box-shadow: 0 0 14px rgba(216, 255, 63, .7);
}

/* ---------------------------------------------------------------- 舞台 */
.hz-stage {
    grid-area: stage;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 22px 26px 18px 26px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .16) transparent;
}
.hz-stage::-webkit-scrollbar { width: 8px; }
.hz-stage::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 99px; }

/* Hero ---------------------------------------------------------------- */
.hz-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
    align-items: center;
    gap: 26px;
    min-height: clamp(300px, 42vh, 400px);
    padding: clamp(22px, 2.6vw, 34px);
    margin-bottom: 26px;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-r-lg);
    background:
        radial-gradient(120% 130% at 88% 12%, rgba(216, 255, 63, .10), transparent 56%),
        linear-gradient(150deg, rgba(17, 22, 34, .92), rgba(9, 12, 19, .72));
    box-shadow: var(--hz-shadow);
    overflow: hidden;
}
.hz-hero-glow {
    position: absolute;
    inset: auto -12% -60% 40%;
    height: 70%;
    background: radial-gradient(50% 60% at 50% 50%, rgba(124, 92, 255, .38), transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.hz-hero-body { position: relative; z-index: 1; min-width: 0; }
.hz-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--hz-accent);
}
.hz-kicker i {
    width: 22px;
    height: 2px;
    background: var(--hz-accent);
    box-shadow: 0 0 12px rgba(216, 255, 63, .8);
}
.hz-hero-title {
    margin: 0 0 12px;
    font-size: clamp(30px, 4.1vw, 58px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.035em;
    text-wrap: balance;
    color: #fff;
    text-shadow: 0 16px 40px rgba(0, 0, 0, .55);
}
.hz-hero-desc {
    margin: 0 0 20px;
    max-width: 46ch;
    font-size: 14px;
    line-height: 1.7;
    color: var(--hz-dim);
}
.hz-hero-act { display: flex; flex-wrap: wrap; gap: 10px; }

.hz-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 58px;
    padding: 0 26px;
    border-radius: 16px;
    background: var(--hz-accent);
    color: var(--hz-accent-ink);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.01em;
    text-decoration: none;
    box-shadow: 0 16px 36px -14px rgba(216, 255, 63, .75);
    transition: transform .18s var(--hz-ease), box-shadow .18s;
}
.hz-cta span { font-size: 13px; }
.hz-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -14px rgba(216, 255, 63, .9); }

.hz-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 58px;
    padding: 0 20px;
    border-radius: 16px;
    border: 1px solid var(--hz-line-2);
    background: rgba(255, 255, 255, .035);
    color: var(--hz-ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s, background .18s, transform .18s;
}
.hz-ghost:hover { border-color: rgba(216, 255, 63, .45); background: rgba(216, 255, 63, .07); transform: translateY(-1px); }
.hz-ghost.on { border-color: rgba(255, 95, 122, .5); color: #ffb3c0; background: rgba(255, 95, 122, .08); }

.hz-hero-stats {
    display: flex;
    gap: 26px;
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--hz-line);
}
.hz-hero-stats dt {
    font-size: 10.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hz-dim);
    margin-bottom: 5px;
}
.hz-hero-stats dd {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hz-hero-poster {
    position: relative;
    z-index: 1;
    justify-self: center;
    margin: 0;
    width: min(100%, 300px);
    transform: rotate(-2.4deg);
    transition: transform .5s var(--hz-ease);
}
.hz-hero:hover .hz-hero-poster { transform: rotate(0deg) translateY(-4px); }
.hz-poster-frame {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: #0d1119;
    box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.hz-poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 28%, transparent 72%, rgba(0, 0, 0, .5));
    pointer-events: none;
}
.hz-poster-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-hero-poster figcaption {
    margin-top: 10px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--hz-dim);
}

/* 轨道 ---------------------------------------------------------------- */
.hz-shelf { margin-bottom: 22px; }
.hz-shelf-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 4px 12px;
}
.hz-shelf-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.015em;
    color: var(--hz-ink);
}
.hz-shelf-hint {
    font-size: 11.5px;
    color: var(--hz-dim);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hz-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    /* 横向 10px 内边距 + 负外边距找平：第一张磁贴的位置不变，
       但焦点环（7px 扩散 + 2px 环 ≈ 9px）不再被轨道边缘裁掉 */
    padding: 6px 10px 12px;
    margin-inline: -6px;
    scroll-padding-inline: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 96%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 96%, transparent 100%);
}
.hz-rail::-webkit-scrollbar { display: none; }

.hz-tile-wrap { position: relative; flex: 0 0 auto; animation: hzIn .5s var(--hz-ease) both; animation-delay: calc(var(--i, 0) * 34ms); }
.hz-tile {
    display: block;
    width: clamp(128px, 10.4vw, 168px);
    scroll-snap-align: start;
    color: inherit;
    text-decoration: none;
    transition: transform .24s var(--hz-ease);
}
.hz-tile-art {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: var(--hz-r);
    overflow: hidden;
    background: linear-gradient(160deg, #121826, #0b0f17);
    box-shadow: 0 14px 34px -20px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(255, 255, 255, .07);
    transition: box-shadow .24s, transform .24s var(--hz-ease);
}
.hz-tile-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--hz-ease), filter .3s; }
.hz-tile-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 56%, rgba(3, 5, 10, .72));
    opacity: .9;
    transition: opacity .24s;
}
.hz-tile:hover .hz-tile-art { transform: translateY(-4px); box-shadow: 0 22px 46px -20px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(216, 255, 63, .35); }
.hz-tile:hover .hz-tile-art img { transform: scale(1.05); }
.hz-tile-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 9px 2px 0;
}
.hz-tile-meta b {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hz-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hz-tile-meta i {
    font-style: normal;
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hz-dim);
}
.hz-tile-noimg { display: grid; place-items: center; width: 100%; height: 100%; font-size: 30px; opacity: .5; }

.hz-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(6, 9, 14, .62);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .2s, transform .2s, background .2s;
    backdrop-filter: blur(8px);
}
.hz-tile-wrap:hover .hz-fav,
.hz-tile-wrap:focus-within .hz-fav { opacity: 1; transform: none; }
.hz-fav.on { opacity: 1; transform: none; color: var(--hz-danger); }
.hz-fav:hover { background: rgba(255, 95, 122, .22); }

/* 「载入更多」磁贴：与海报同尺寸，焦点走到它就自动取下一批 ---------------- */
.hz-more-wrap { position: relative; flex: 0 0 auto; animation: none; }
.hz-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: clamp(128px, 10.4vw, 168px);
    aspect-ratio: 3 / 4;
    padding: 0;
    border: 2px dashed rgba(255, 255, 255, .2);
    border-radius: var(--hz-r);
    background: rgba(255, 255, 255, .028);
    color: var(--hz-dim);
    font: inherit;
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .22s var(--hz-ease), color .22s var(--hz-ease), background .22s var(--hz-ease);
}
.hz-more-ico { font-size: 32px; line-height: 1; font-weight: 300; }
.hz-more-txt { font-size: 13px; letter-spacing: .05em; }
.hz-more-wrap:hover .hz-more,
.hz-more.is-focus {
    border-color: var(--hz-accent);
    color: var(--hz-accent);
    background: rgba(216, 255, 63, .07);
}
.hz-more-wrap.is-loading .hz-more { border-style: solid; border-color: rgba(216, 255, 63, .55); color: var(--hz-accent); }
.hz-more-wrap.is-loading .hz-more-ico { animation: hzSpin 1.1s linear infinite; }
@keyframes hzSpin { to { transform: rotate(360deg); } }

/* 焦点：斜切角 + 双环 + 光晕，比系统 outline 明显得多 ------------------ */
.hz-focus { outline: none; }
/* 压掉站点全局 a:focus / button:focus 的 UA 描边（它们优先级比 .hz-focus 高） */
.hz-body .hz-focus,
.hz-body .hz-focus:focus,
.hz-body .hz-focus:focus-visible,
.hz-body a:focus-visible,
.hz-body button:focus-visible { outline: none !important; }
.hz-focus.is-focus,
.hz-focus:focus-visible {
    position: relative;
    z-index: 3;
    outline: none;
    box-shadow:
        0 0 0 2px var(--hz-accent),
        0 0 0 7px rgba(216, 255, 63, .16),
        0 26px 56px -22px rgba(216, 255, 63, .55) !important;
}
.hz-tile.is-focus .hz-tile-art { box-shadow: inset 0 0 0 1px rgba(216, 255, 63, .5); }
.hz-tile.is-focus .hz-tile-art img { transform: scale(1.045); filter: brightness(1.08); }
.hz-tile.is-focus .hz-tile-meta b { color: var(--hz-accent); }
.hz-cta.is-focus { transform: translateY(-2px) scale(1.02); }

/* 底部键位条 ---------------------------------------------------------- */
.hz-keys {
    grid-area: keys;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    border-top: 1px solid var(--hz-line);
    background: linear-gradient(0deg, rgba(8, 11, 18, .9), rgba(8, 11, 18, .42));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-size: 12px;
    color: var(--hz-dim);
    white-space: nowrap;
    overflow: hidden;
}
.hz-keys-left { display: flex; gap: 16px; overflow: hidden; }
.hz-keys-left span { display: inline-flex; align-items: center; gap: 6px; }
kbd {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 7px;
    border: 1px solid var(--hz-line-2);
    background: rgba(255, 255, 255, .05);
    font: inherit;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--hz-ink);
}
.hz-keys-right { display: flex; align-items: center; gap: 14px; }
.hz-row-dots { display: inline-flex; gap: 6px; }
.hz-row-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    transition: all .25s;
}
.hz-row-dots i.on { width: 18px; border-radius: 99px; background: var(--hz-accent); box-shadow: 0 0 10px rgba(216, 255, 63, .7); }
.hz-keys-tip { color: var(--hz-dim); opacity: .8; }

/* 搜索浮层 ------------------------------------------------------------ */
.hz-search {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: start center;
    padding-top: 12vh;
    background: rgba(3, 5, 9, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: hzFade .2s ease both;
}
.hz-search[hidden] { display: none; }
.hz-search-card { width: min(720px, 92vw); }
.hz-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 68px;
    padding: 0 10px 0 20px;
    border-radius: 18px;
    border: 1px solid rgba(216, 255, 63, .38);
    background: rgba(12, 16, 24, .96);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .95), 0 0 0 6px rgba(216, 255, 63, .07);
}
.hz-search-ico { font-size: 18px; opacity: .8; }
.hz-search-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--hz-ink);
    font: inherit;
    font-size: 20px;
    outline: none;
}
.hz-search-form input::placeholder { color: rgba(142, 153, 176, .7); }
.hz-search-go {
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--hz-accent);
    color: var(--hz-accent-ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.hz-search-hint {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: .1em;
    color: var(--hz-dim);
}

.hz-toast {
    position: fixed;
    left: 50%;
    bottom: calc(78px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(10px);
    z-index: 70;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid var(--hz-line-2);
    background: rgba(12, 16, 24, .95);
    color: var(--hz-ink);
    font-size: 13.5px;
    box-shadow: var(--hz-shadow);
    opacity: 0;
    transition: opacity .2s, transform .2s;
    pointer-events: none;
}
.hz-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.hz-toast[hidden] { display: none; }

.hz-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--hz-dim);
    border: 1px dashed var(--hz-line-2);
    border-radius: var(--hz-r);
}

@keyframes hzIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hzFade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================================
   内页（排行榜 / 收藏 / 消息 / 详情 …）：新顶栏 + 组件主题化
   base 车机样式（car-ui.css）仍作为结构兜底加载，这里只做覆盖，
   保证任何内页都不会因为换主题而布局崩掉。
   ========================================================================== */
body.skin-horizon {
    background: var(--hz-bg);
    color: var(--hz-ink);
}
body.skin-horizon.hz-body { background: var(--hz-bg); }

/* 内页顶栏 */
.hz-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 66px;
    padding: 0 18px;
    border-bottom: 1px solid var(--hz-line);
    background: rgba(6, 9, 15, .82);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.hz-bar .hz-brand-mark { width: 32px; height: 32px; }
.hz-bar .hz-brand-mark svg { width: 32px; height: 32px; }
.hz-bar-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hz-ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.hz-bar-nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; overflow-x: auto; scrollbar-width: none; }
.hz-bar-nav::-webkit-scrollbar { display: none; }
.hz-bar-nav a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 15px;
    border-radius: 12px;
    color: var(--hz-dim);
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s, background .18s;
}
.hz-bar-nav a:hover { color: var(--hz-ink); background: rgba(255, 255, 255, .05); }
.hz-bar-nav a.is-active { color: var(--hz-accent); background: rgba(216, 255, 63, .1); }
.hz-bar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hz-bar-time { font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: var(--hz-dim); letter-spacing: .06em; }
.hz-bar-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--hz-line);
    background: rgba(255, 255, 255, .035);
    color: var(--hz-ink);
    font: inherit;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.hz-bar-search:hover { border-color: rgba(216, 255, 63, .4); }

/* 内页容器：给 sticky 顶栏留出节奏，并统一主题底色 */
body.skin-horizon .container {
    padding-top: 22px;
    padding-bottom: 40px;
}

/* 组件主题化：只改外观（颜色/圆角/阴影），不动布局尺寸 */
body.skin-horizon .t-card,
body.skin-horizon .card {
    border-radius: var(--hz-r) !important;
    border-color: var(--hz-line) !important;
    background: linear-gradient(160deg, rgba(17, 22, 34, .88), rgba(10, 13, 20, .82)) !important;
    box-shadow: 0 16px 38px -26px rgba(0, 0, 0, .95) !important;
}
body.skin-horizon .t-card:hover,
body.skin-horizon .t-card.is-focus,
body.skin-horizon .t-card.tf.is-focus {
    border-color: rgba(216, 255, 63, .55) !important;
    box-shadow: 0 0 0 2px var(--hz-accent), 0 22px 46px -24px rgba(216, 255, 63, .45) !important;
}
body.skin-horizon .t-title,
body.skin-horizon .card .title { color: var(--hz-ink); }
body.skin-horizon .t-cplat,
body.skin-horizon .badge,
body.skin-horizon .tag {
    border-radius: 999px;
    color: var(--hz-accent);
    background: rgba(216, 255, 63, .12);
}
body.skin-horizon .btn,
body.skin-horizon button.btn {
    border-radius: 12px;
}
body.skin-horizon .btn.primary {
    background: var(--hz-accent) !important;
    border-color: var(--hz-accent) !important;
    color: var(--hz-accent-ink) !important;
    font-weight: 800;
}
body.skin-horizon .chip.active,
body.skin-horizon .rk-seg .active,
body.skin-horizon .rk-boardseg a.active,
body.skin-horizon .tab.active {
    background: rgba(216, 255, 63, .16) !important;
    border-color: rgba(216, 255, 63, .45) !important;
    color: var(--hz-accent) !important;
}
/* 榜单切换是「蓝色实心块」语言，激活态直接吃主题实心色 */
body.skin-horizon .rk-boardseg a { border-radius: 12px; }
body.skin-horizon .rk-boardseg a.active {
    background: var(--hz-accent) !important;
    color: var(--hz-accent-ink) !important;
}
body.skin-horizon .panel,
body.skin-horizon .sec,
body.skin-horizon .box {
    border-radius: var(--hz-r);
    border-color: var(--hz-line);
    background: rgba(12, 16, 24, .72);
}
/* 内页链接配色（★ 不能写成 body.skin-horizon a —— 首页也在 skin-horizon 下，
   那样会把 .hz-cta 的深色文字一起染成荧光绿，按钮就“隐形”了） */
body.skin-horizon:not(.hz-body) .container a { color: var(--hz-accent); }
body.skin-horizon ::selection { background: rgba(216, 255, 63, .28); color: #fff; }

/* ============================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
    .hz-app { grid-template-columns: 92px minmax(0, 1fr); }
    .hz-dock-item { width: 74px; font-size: 10.5px; }
    .hz-hero { grid-template-columns: minmax(0, 1fr) minmax(190px, .72fr); }
    .hz-keys-left span:nth-child(n+5) { display: none; }
}

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
    .hz-body { overflow: auto; height: auto; }
    .hz-app {
        height: auto;
        min-height: 100dvh;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 60px minmax(0, 1fr) auto auto;
        grid-template-areas: "status" "stage" "dock" "keys";
    }
    .hz-status { height: 60px; padding: 0 14px; }
    .hz-brand-txt { max-width: 40vw; font-size: 14px; }
    .hz-pad-state { display: none; }
    .hz-clock { font-size: 15px; }
    .hz-fs { width: 32px; height: 32px; }
    .hz-fs svg { width: 16px; height: 16px; }
    .hz-dock {
        position: sticky;
        bottom: 0;
        flex-direction: row;
        justify-content: space-around;
        gap: 2px;
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        border-right: 0;
        border-top: 1px solid var(--hz-line);
        background: rgba(6, 9, 15, .94);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        z-index: 30;
    }
    .hz-dock-item { width: auto; flex: 1 1 0; min-height: 56px; gap: 3px; font-size: 10px; }
    .hz-dock-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 9.5px; letter-spacing: 0; }
    .hz-dock-ico { width: 30px; height: 30px; border-radius: 10px; }
    .hz-dock-ico img { width: 17px; height: 17px; }
    .hz-dock-item.is-active::before { display: none; }
    .hz-stage { padding: 16px 14px 22px; overflow: visible; }
    .hz-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px; }
    .hz-hero-poster { order: -1; width: min(56%, 190px); justify-self: start; transform: none; }
    .hz-hero-title { font-size: clamp(26px, 8vw, 38px); }
    .hz-cta, .hz-ghost { height: 54px; }
    .hz-hero-stats { gap: 18px; }
    .hz-tile { width: 122px; }
    .hz-keys { display: none; }
    body.skin-horizon .hz-bar { height: 58px; padding: 0 12px; gap: 8px; }
    body.skin-horizon .hz-bar-nav a { height: 40px; padding: 0 12px; font-size: 12.5px; }
    body.skin-horizon .hz-bar-time { display: none; }
}

@media (max-height: 700px) and (min-width: 821px) {
    .hz-app { grid-template-rows: 58px minmax(0, 1fr) 50px; }
    .hz-hero { min-height: 260px; margin-bottom: 18px; padding: 20px; }
    .hz-hero-title { font-size: clamp(26px, 3.2vw, 42px); }
    .hz-hero-stats { display: none; }
    .hz-tile { width: 132px; }
}

/* ============================================================================
   大屏 / 车机全屏缩放
   ---------------------------------------------------------------------------- 车机浏览器进剧场全屏后视口接近整块屏幕（1920px 级），主题的固定
   px 尺寸是按 ~1250px 预览宽设计的，整块 UI 会显得偏小（左侧导航最明显）。
   磁贴本来就是 vw 自适应不用管；这里按视口宽度分两档放大
   Dock / 状态条 / 键位条 / 顶栏部件，窄屏（<1500px）完全不受影响。
   ========================================================================== */
@media (min-width: 1500px) {
    .hz-app { grid-template-columns: 136px minmax(0, 1fr); grid-template-rows: 78px minmax(0, 1fr) 64px; }    .hz-status { padding: 0 30px 0 24px; }
    .hz-brand { padding: 7px 12px 7px 8px; gap: 13px; }
    .hz-brand-mark { width: 48px; height: 48px; }
    .hz-brand-txt { font-size: 18px; }
    .hz-brand-txt em { font-size: 11px; margin-top: 5px; }
    .hz-pad-state { height: 34px; font-size: 13px; }
    .hz-clock { font-size: 22px; }
    .hz-fs { width: 42px; height: 42px; }
    .hz-fs svg { width: 21px; height: 21px; }
    .hz-user { height: 46px; padding: 0 15px 0 8px; }
    .hz-user-name { font-size: 14px; }
    .hz-dock { padding: 18px 12px 14px; gap: 8px; }
    .hz-dock-item { width: 112px; min-height: 86px; gap: 8px; font-size: 13.5px; border-radius: 18px; padding: 10px 4px; }
    .hz-dock-ico { width: 50px; height: 50px; border-radius: 16px; font-size: 21px; }
    .hz-dock-ico img { width: 27px; height: 27px; }
    .hz-dock-item.is-active::before { height: 32px; }
    .hz-keys { font-size: 13.5px; }
    .hz-keys kbd { padding: 2px 7px; font-size: 12px; }
    /* 内页顶栏同步放大 */
    body.skin-horizon .hz-bar { height: 78px; padding: 0 24px; gap: 18px; }
    body.skin-horizon .hz-bar .hz-fs { width: 38px; height: 38px; }
    body.skin-horizon .hz-nav-item { height: 44px; padding: 0 15px; font-size: 15px; border-radius: 13px; }
    body.skin-horizon .hz-bar-time { font-size: 17px; }
    body.skin-horizon .hz-bar-search { height: 46px; font-size: 14.5px; }
}

@media (min-width: 2000px) {
    .hz-app { grid-template-columns: 164px minmax(0, 1fr); grid-template-rows: 92px minmax(0, 1fr) 74px; }
    .hz-status { padding: 0 36px 0 28px; }
    .hz-brand { padding: 8px 14px 8px 9px; gap: 15px; }
    .hz-brand-mark { width: 56px; height: 56px; }
    .hz-brand-txt { font-size: 21px; }
    .hz-brand-txt em { font-size: 12.5px; margin-top: 6px; }
    .hz-pad-state { height: 38px; font-size: 14.5px; padding: 0 15px; }
    .hz-clock { font-size: 26px; }
    .hz-fs { width: 48px; height: 48px; }
    .hz-fs svg { width: 24px; height: 24px; }
    .hz-user { height: 52px; padding: 0 18px 0 10px; }
    .hz-user-name { font-size: 16px; }
    .hz-dock { padding: 22px 14px 18px; gap: 10px; }
    .hz-dock-item { width: 136px; min-height: 104px; gap: 10px; font-size: 16px; border-radius: 20px; padding: 12px 4px; }
    .hz-dock-ico { width: 62px; height: 62px; border-radius: 19px; font-size: 26px; }
    .hz-dock-ico img { width: 34px; height: 34px; }
    .hz-dock-item.is-active::before { height: 38px; }
    .hz-keys { font-size: 15.5px; padding: 0 32px; }
    .hz-keys kbd { padding: 3px 9px; font-size: 13.5px; }
    .hz-tile { width: clamp(168px, 11.5vw, 232px); }
    /* 内页顶栏同步放大 */
    body.skin-horizon .hz-bar { height: 92px; padding: 0 30px; gap: 22px; }
    body.skin-horizon .hz-nav-item { height: 50px; padding: 0 18px; font-size: 17px; border-radius: 15px; }
    body.skin-horizon .hz-bar-time { font-size: 20px; }
    body.skin-horizon .hz-bar-search { height: 52px; font-size: 16.5px; }
    body.skin-horizon .hz-bar .hz-fs { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .hz-body *,
    body.skin-horizon * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
