/* ==========================================================================
   Zhangshang · 掌心取景（Palm Viewfinder）· base
   --------------------------------------------------------------------------
   结构层：令牌 / 布局 / 通用组件。页面层见 ps-pages.css。
   类名族：ps- = 结构组件；pv- = 页面版式。
   --------------------------------------------------------------------------
   设计语系：石墨机身 / 松墨绿 / 钨金 / 取景器 HUD。
   页面是浅色幕布，顶栏、卡片机身与页脚是三段深色「机器外壳」，形成取景框。
   ========================================================================== */

:root {
    /* ---- 幕布与墨 -------------------------------------------------------- */
    --ps-paper: #edf0ea;          /* 页面底：雾松纸（冷灰绿，区别于暖纸模板） */
    --ps-surface: #fbfcf7;        /* 内容面：比幕布亮一档 */
    --ps-surface-2: #f1f4ec;      /* 次级面：标签底 / 输入框 */
    --ps-surface-3: #e1e6dc;      /* 图占位 / 骨架 */
    --ps-ink: #1b2320;            /* 墨绿黑 */
    --ps-ink-2: #4d5a54;          /* 次级文字 */
    --ps-ink-3: #87948c;          /* 弱文字（时间 / 计数） */
    --ps-line: #d8ded4;           /* 1px 分隔线 */
    --ps-line-2: #bfc8bd;         /* 强线（表格头 / 输入框） */

    /* ---- 取景器机身（深色，用于顶栏 / 卡片 / 页脚） ---------------------- */
    --ps-chrome: #16201d;
    --ps-chrome-2: #0f1714;
    --ps-chrome-line: #2b3934;
    --ps-chrome-text: #eef3ea;
    --ps-chrome-mute: #9aa8a0;

    /* ---- 松墨绿（唯一主操作色） ------------------------------------------ */
    --ps-accent: #2f5d50;
    --ps-accent-strong: #24493f;  /* hover 压深 */
    --ps-accent-ink: #f6fbf8;     /* 绿底上的字：深绿必须配白字 */
    --ps-accent-glow: #7ab79f;    /* 机身内的取景光点 / 细边 */
    --ps-accent-soft: rgba(47, 93, 80, .09);
    --ps-accent-soft-2: rgba(47, 93, 80, .20);

    /* ---- 钨金（评分 / 序号 / 状态刻度，仅做点缀） ------------------------ */
    --ps-gold: #a9793c;
    --ps-gold-soft: rgba(169, 121, 60, .13);

    /* 错误态：松墨绿的暗调变体，不引第二种彩色 */
    --ps-danger: #b33f2f;
    --ps-danger-soft: rgba(179, 63, 47, .3);
    --ps-danger-bg: rgba(179, 63, 47, .06);

    /* ---- 字号（最大标题 26px，需求方硬约束） ----------------------------- */
    --ps-fs-2xs: 11px;
    --ps-fs-xs: 12px;
    --ps-fs-sm: 13px;
    --ps-fs-base: 14px;
    --ps-fs-md: 15px;
    --ps-fs-lg: 18px;
    --ps-fs-xl: 20px;
    --ps-fs-h1: 24px;
    --ps-fs-max: 26px;
    --ps-lh: 1.7;
    --ps-lh-tight: 1.35;

    /* ---- 字体：标题无衬线 + 机身 HUD 等宽数字 ---------------------------- */
    --ps-display: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ps-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ps-mono: "Bahnschrift", "DIN Alternate", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

    /* ---- 容器与间距 ------------------------------------------------------ */
    --ps-shell: 1280px;
    --ps-gutter: clamp(12px, 2vw, 24px);
    --ps-gap-block: clamp(20px, 2vw, 30px);
    --ps-gap-inline: clamp(12px, 1.1vw, 16px);

    /* ---- 圆角：机身 8 / 屏幕 5 / 刻度 3 ---------------------------------- */
    --ps-r-xs: 3px;
    --ps-r-sm: 5px;
    --ps-r-md: 8px;
    --ps-r-lg: 12px;
    --ps-r-seal: 3px;

    /* ---- 阴影：机身在幕布上的实投影，屏幕内部用细内环 -------------------- */
    --ps-sh-1: 0 1px 2px rgba(15, 23, 20, .06);
    --ps-sh-2: 0 10px 26px rgba(15, 23, 20, .16);
    --ps-sh-screen: inset 0 0 0 1px rgba(238, 243, 234, .08);

    --ps-ease: cubic-bezier(.25, .6, .35, 1);
    --ps-t: .22s;

    --ps-header-h: 64px;
    --ps-anchor-offset: 80px;     /* 顶栏 64 + 吸顶呼吸位 */

    color-scheme: light;
}

/* --------------------------------------------------------------------------
   1. 容器
   -------------------------------------------------------------------------- */
.ps-shell {
    width: 100%;
    max-width: var(--ps-shell);
    margin-inline: auto;
    padding-inline: var(--ps-gutter);
}
.ps-main { padding-block: var(--ps-gap-block); min-height: 50vh; }

/* --------------------------------------------------------------------------
   2. 按钮 / 胶囊 / 印章
   -------------------------------------------------------------------------- */
.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;                 /* 硬约束：行内不压缩 */
    height: 36px;
    padding: 0 16px;
    border-radius: var(--ps-r-sm);
    background: var(--ps-accent);
    color: var(--ps-accent-ink);
    font-size: var(--ps-fs-base);
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease), border-color var(--ps-t) var(--ps-ease);
}
.ps-btn:hover { background: var(--ps-accent-strong); }
.ps-btn svg { width: 14px; height: 14px; fill: currentColor; flex: 0 0 auto; }
.ps-btn--ghost {
    background: transparent;
    color: var(--ps-ink);
    border: 1px solid var(--ps-line-2);
}
.ps-btn--ghost:hover { background: var(--ps-surface-2); border-color: var(--ps-accent); color: var(--ps-accent); }
.ps-btn--sm { height: 30px; padding: 0 12px; font-size: var(--ps-fs-sm); }

.ps-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    height: 27px;
    padding: 0 10px;
    border-radius: var(--ps-r-sm);
    background: var(--ps-surface-2);
    border: 1px solid transparent;
    font-size: var(--ps-fs-xs);
    color: var(--ps-ink-2);
    white-space: nowrap;
    max-width: 100%;
    transition: color var(--ps-t) var(--ps-ease), background var(--ps-t) var(--ps-ease), border-color var(--ps-t) var(--ps-ease);
}
.ps-chip:hover { color: var(--ps-accent); background: var(--ps-accent-soft); }
.ps-chip.is-active { background: var(--ps-accent); color: var(--ps-accent-ink); font-weight: 600; }

/* 印章编号：朱底白字小方章，用于楼层序号 / 榜单单号 */
.ps-seal {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: var(--ps-r-seal);
    background: var(--ps-accent);
    color: var(--ps-accent-ink);
    font: 700 var(--ps-fs-2xs)/1 var(--ps-display);
    font-variant-numeric: tabular-nums;
}
.ps-seal--ghost { background: var(--ps-accent-soft); color: var(--ps-accent); }

/* 编号数字（等宽，弱色）：行式榜的 01/02/03 */
.ps-num {
    font-family: var(--ps-mono);
    font-variant-numeric: tabular-nums;
    color: var(--ps-ink-3);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. 顶栏（取景器上盖：深色机身 + 松墨绿工作灯）
   -------------------------------------------------------------------------- */
.ps-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--ps-chrome);
    border-bottom: 1px solid var(--ps-chrome-line);
    box-shadow: 0 1px 0 rgba(238, 243, 234, .04), 0 8px 24px rgba(9, 15, 13, .18);
}
.ps-header__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--ps-header-h);
}

.ps-brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.ps-brand__mark {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 30%, #34473f 0%, #0b1411 72%);
    border: 1px solid rgba(169, 121, 60, .62);
    box-shadow: inset 0 0 0 4px rgba(169, 121, 60, .10), 0 0 0 1px rgba(238, 243, 234, .06);
    color: var(--ps-chrome-text);
    font: 700 15px/1 var(--ps-display);
}
.ps-brand__name {
    font-family: var(--ps-display);
    font-size: var(--ps-fs-lg);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ps-chrome-text);
}
.ps-brand__slogan {
    font: 500 10px/1 var(--ps-mono);
    letter-spacing: .10em;
    color: var(--ps-chrome-mute);
    padding-left: 9px;
    margin-left: 2px;
    border-left: 1px solid var(--ps-chrome-line);
    white-space: nowrap;
}
@media (max-width: 1179.98px) { .ps-brand__slogan { display: none; } }

.ps-header__nav { display: flex; min-width: 0; }
.ps-nav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.ps-nav__item { position: relative; }
.ps-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 34px;
    padding: 0 11px;
    border-radius: var(--ps-r-sm);
    font-size: var(--ps-fs-base);
    color: #b9c6bd;
    white-space: nowrap;
    transition: color var(--ps-t) var(--ps-ease), background var(--ps-t) var(--ps-ease), box-shadow var(--ps-t) var(--ps-ease);
}
.ps-nav__item:hover > .ps-nav__link,
.ps-nav__link.is-active {
    color: #f4f8f2;
    background: rgba(122, 183, 159, .13);
    box-shadow: inset 0 -1px 0 var(--ps-gold);
}
.ps-nav__caret {
    width: 10px; height: 10px;
    fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round;
    opacity: .55;
    transition: transform var(--ps-t) var(--ps-ease);
}
.ps-nav__item:hover > .ps-nav__link .ps-nav__caret { transform: rotate(180deg); }

.ps-nav__sub {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 3;
    width: max-content;             /* 不写会被条目宽度收缩成一条 */
    max-width: 460px;
    padding: 10px 12px;
    margin-top: 4px;
    background: var(--ps-chrome-2);
    border: 1px solid var(--ps-chrome-line);
    border-radius: var(--ps-r-md);
    box-shadow: 0 14px 30px rgba(8, 14, 12, .38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--ps-t) var(--ps-ease), visibility var(--ps-t) var(--ps-ease), transform var(--ps-t) var(--ps-ease);
}
.ps-nav__sub a {
    display: inline-block;
    padding: 4px 9px;
    margin: 2px 2px 2px 0;
    border-radius: var(--ps-r-xs);
    font-size: var(--ps-fs-sm);
    color: #b9c6bd;
}
.ps-nav__sub a:hover { background: rgba(122, 183, 159, .13); color: #f4f8f2; }
@media (min-width: 1024px) {
    .ps-nav__item:hover > .ps-nav__sub,
    .ps-nav__item:focus-within > .ps-nav__sub,
    .ps-nav__item[data-open="1"] > .ps-nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
}

.ps-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.ps-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--ps-chrome-line);
    border-radius: var(--ps-r-sm);
    background: rgba(238, 243, 234, .04);
    transition: border-color var(--ps-t) var(--ps-ease), background var(--ps-t) var(--ps-ease);
}
.ps-search:focus-within { border-color: var(--ps-accent-glow); background: rgba(238, 243, 234, .08); }
.ps-search svg { width: 14px; height: 14px; fill: none; stroke: var(--ps-chrome-mute); stroke-width: 2; flex: 0 0 auto; }
.ps-search input {
    width: 148px;
    border: 0;
    background: none;
    outline: none;
    color: var(--ps-chrome-text);
    font-size: var(--ps-fs-sm);
}
.ps-search input::placeholder { color: #7f8d86; }
.ps-iconbtn {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: var(--ps-r-sm);
    border: 1px solid var(--ps-chrome-line);
    color: #c8d3cb;
}
.ps-iconbtn:hover { border-color: var(--ps-accent-glow); color: var(--ps-accent-glow); background: rgba(122, 183, 159, .10); }
.ps-iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ps-header__burger { display: none; }
@media (max-width: 1023.98px) {
    .ps-nav, .ps-search { display: none; }
    .ps-header__burger { display: grid; }
}

/* 抽屉（窄屏把整棵菜单搬进来，见 js/ps-main.js） */
.ps-drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(5, 10, 8, .62);
}
.ps-drawer.is-open { display: block; }
.ps-drawer__panel {
    position: absolute;
    top: 0; right: 0;
    width: min(86vw, 360px);
    height: 100%;
    overflow-y: auto;
    background: var(--ps-chrome);
    border-left: 1px solid var(--ps-chrome-line);
    padding: 16px;
}
.ps-drawer__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ps-drawer__head strong { font-family: var(--ps-display); font-size: var(--ps-fs-md); color: var(--ps-chrome-text); }
.ps-drawer__close { margin-left: auto; }
.ps-drawer__search { margin-bottom: 14px; }
.ps-drawer__search .ps-search { display: flex; }
.ps-drawer__search .ps-search input { width: 100%; }

/* 抽屉里承载的是**被搬进来的同一棵菜单**（不是第二份 DOM）：
   窄屏竖排渲染，子分类就地展开成标签云。 */
.ps-drawer .ps-nav { display: block; }
.ps-drawer .ps-nav__item { display: block; border-bottom: 1px solid var(--ps-chrome-line); }
.ps-drawer .ps-nav__link {
    display: flex;
    width: 100%;
    height: auto;
    padding: 12px 8px;
    border-radius: 0;
    font-family: var(--ps-display);
    font-size: var(--ps-fs-md);
    font-weight: 700;
    color: var(--ps-chrome-text);
}
.ps-drawer .ps-nav__link.is-active { box-shadow: inset 2px 0 0 var(--ps-gold); background: rgba(122, 183, 159, .08); }
.ps-drawer .ps-nav__caret { display: none; }
.ps-drawer .ps-nav__sub {
    position: static;
    width: auto;
    max-width: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0 8px 10px;
    border: 0;
    box-shadow: none;
    background: none;
    display: flex;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   4. 区块头 / 面
   -------------------------------------------------------------------------- */
.ps-sec { margin-top: var(--ps-gap-block); }
.ps-sec__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--ps-line);
}
.ps-sec__head h2 { font-size: var(--ps-fs-lg); }
.ps-sec__head h2 a:hover { color: var(--ps-accent); }
.ps-sec__head em {
    font-style: normal;
    font-size: var(--ps-fs-sm);
    color: var(--ps-ink-3);
}
.ps-sec__more {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: var(--ps-fs-sm);
    color: var(--ps-ink-3);
}
.ps-sec__more:hover { color: var(--ps-accent); }

.ps-panel {
    background: var(--ps-surface);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-md);
    padding: 14px;
}

/* --------------------------------------------------------------------------
   5. 掌镜卡（全站共用 · 手持取景器）
   机身包住海报屏幕；悬停只「亮屏 / 扫光」，卡片本体不位移、不缩放。
   角标预算 = 2：左上评分目镜 + 屏内底部状态条（录制点并入状态条，不再加第三个）。
   -------------------------------------------------------------------------- */
.ps-card {
    position: relative;
    min-width: 0;
    padding: 5px;
    background: var(--ps-chrome);
    border: 1px solid var(--ps-chrome-line);
    border-radius: var(--ps-r-md);
    overflow: hidden;
    box-shadow: var(--ps-sh-1);
    transition: border-color var(--ps-t) var(--ps-ease), box-shadow var(--ps-t) var(--ps-ease), background var(--ps-t) var(--ps-ease);
}
.ps-card:hover {
    border-color: rgba(122, 183, 159, .72);
    background: var(--ps-chrome-2);
    box-shadow: var(--ps-sh-2);
}
.ps-card > a { display: block; border-radius: calc(var(--ps-r-md) - 2px); overflow: hidden; }
.ps-card__pic {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: var(--ps-r-sm);
    background: #0b1310;
    overflow: hidden;
    box-shadow: var(--ps-sh-screen);
    transition: box-shadow var(--ps-t) var(--ps-ease);
}
.ps-card:hover .ps-card__pic { box-shadow: var(--ps-sh-screen), inset 0 0 0 1px rgba(122, 183, 159, .34); }
/* 镜头玻璃反光：静止时极淡，悬停时随扫光微亮 */
.ps-card__pic::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(118deg, rgba(238, 243, 234, .13) 0%, rgba(238, 243, 234, 0) 36%, rgba(238, 243, 234, 0) 66%, rgba(238, 243, 234, .08) 100%);
    opacity: .65;
    transition: opacity var(--ps-t) var(--ps-ease);
}
.ps-card:hover .ps-card__pic::before { opacity: 1; }
/* 取景扫光：一条斜向绿光从屏幕左外扫到右外 */
.ps-card__pic::after {
    content: "";
    position: absolute;
    top: -10%;
    left: -42%;
    width: 36%;
    height: 120%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(122, 183, 159, .22), transparent);
    transform: translate3d(0, 0, 0) skewX(-12deg);
    transition: transform .72s var(--ps-ease);
}
.ps-card:hover .ps-card__pic::after { transform: translate3d(430%, 0, 0) skewX(-12deg); }
.ps-card__pic img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: saturate(.96) contrast(1.02);
    transition: filter .32s var(--ps-ease);
}
.ps-card:hover .ps-card__pic img { filter: saturate(1.10) contrast(1.04) brightness(1.03); }
/* 评分目镜：圆形镜头 + 钨金内环，取代方形角标 */
.ps-card__score {
    position: absolute;
    left: 6px; top: 6px;
    z-index: 3;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, rgba(238, 243, 234, .18), rgba(9, 15, 13, .88) 66%);
    border: 1px solid rgba(169, 121, 60, .72);
    box-shadow: 0 0 0 3px rgba(9, 15, 13, .30), inset 0 0 0 3px rgba(169, 121, 60, .12);
    color: var(--ps-gold);
    font: 700 11px/1 var(--ps-mono);
}
.ps-card__score i { font: 400 8px/1 var(--ps-sans); font-style: normal; opacity: .78; }
/* 取景状态条：屏内底部，绿点代表「有信号」，替代旧版右下角黑色胶囊 */
.ps-card__note {
    position: absolute;
    left: 6px; right: 6px; bottom: 6px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: var(--ps-r-xs);
    border: 1px solid rgba(238, 243, 234, .14);
    background: rgba(9, 15, 13, .78);
    color: #dfe8e1;
    font: 500 10px/1.5 var(--ps-mono);
    letter-spacing: .01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}
.ps-card__note::before {
    content: "";
    flex: 0 0 auto;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--ps-accent-glow);
    box-shadow: 0 0 0 3px rgba(122, 183, 159, .14);
}
.ps-card__body { display: block; padding: 8px 4px 9px; }
.ps-card__body h3 {
    position: relative;
    padding-left: 9px;
    font-family: var(--ps-display);
    font-size: var(--ps-fs-base);
    font-weight: 600;
    line-height: 1.45;
    color: var(--ps-chrome-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--ps-t) var(--ps-ease);
}
.ps-card__body h3::before {
    content: "";
    position: absolute;
    left: 0; top: .62em;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--ps-gold);
    opacity: .85;
}
.ps-card__body h3::after {
    content: "";
    position: absolute;
    left: 9px; right: 0; bottom: -3px;
    height: 1px;
    background: linear-gradient(90deg, var(--ps-accent-glow), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ps-ease);
}
.ps-card:hover .ps-card__body h3 { color: #fff; }
.ps-card:hover .ps-card__body h3::after { transform: scaleX(1); }
/* 取景扫光是装饰动效：系统开启「减少动态效果」时只保留悬停亮屏，不做位移扫光 */
@media (prefers-reduced-motion: reduce) {
    .ps-card, .ps-card__pic, .ps-card__pic::before { transition: none; }
    .ps-card__pic::after { display: none; }
    .ps-card__body h3::after { transition: none; }
    .ps-card:hover .ps-card__pic img { filter: saturate(.96) contrast(1.02); }
}
.ps-card__body p {
    margin-top: 3px;
    padding-left: 9px;
    font: 400 10px/1.5 var(--ps-mono);
    letter-spacing: .02em;
    color: var(--ps-chrome-mute);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (hover: none) {
    .ps-card__pic::after { display: none; }
    .ps-card:hover { border-color: var(--ps-chrome-line); background: var(--ps-chrome); box-shadow: var(--ps-sh-1); }
    .ps-card:hover .ps-card__pic { box-shadow: var(--ps-sh-screen); }
    .ps-card:hover .ps-card__pic img { filter: saturate(.96) contrast(1.02); }
}

/* --------------------------------------------------------------------------
   6. 行式条目（资讯 / 榜单 / 搜索结果共用）
   ⚠️ 多列布局要定义在**行内层**，不能定义在 ul/ol 上（li 会被依次塞进各列）
   -------------------------------------------------------------------------- */
.ps-vrow {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: var(--ps-r-sm);
    transition: background var(--ps-t) var(--ps-ease);
}
.ps-vrow:hover { background: var(--ps-surface-2); }
.ps-vrow__pic {
    width: 46px;
    aspect-ratio: 2 / 3;
    border-radius: var(--ps-r-xs);
    overflow: hidden;
    background: var(--ps-surface-3);
}
.ps-vrow__pic img { width: 100%; height: 100%; object-fit: cover; }
.ps-vrow__copy { display: grid; gap: 3px; min-width: 0; }
.ps-vrow__copy b {
    font-size: var(--ps-fs-base);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ps-vrow__copy i {
    font-style: normal;
    font-size: var(--ps-fs-xs);
    color: var(--ps-ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 文字榜：序号 / 标题 / 右侧计数 三列 —— 三列定义在行内 <a> 上 */
.ps-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.ps-rows > li { min-width: 0; }
.ps-rows > li > a {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: var(--ps-r-sm);
    font-size: var(--ps-fs-base);
    min-width: 0;
    transition: background var(--ps-t) var(--ps-ease), color var(--ps-t) var(--ps-ease);
}
.ps-rows > li > a:hover { background: var(--ps-surface-2); color: var(--ps-accent); }
.ps-rows > li > a > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.ps-rows > li > a em {
    font-style: normal;
    font-size: var(--ps-fs-xs);
    color: var(--ps-ink-3);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* 带缩略图的文字榜：序号 / 图 / 标题+副行 / 计数 */
.ps-rows--pic > li > a { grid-template-columns: 22px 42px minmax(0, 1fr) auto; }
.ps-rows--pic .pic {
    width: 42px;
    aspect-ratio: 2 / 3;
    border-radius: var(--ps-r-xs);
    overflow: hidden;
    background: var(--ps-surface-3);
}
.ps-rows--pic .pic img { width: 100%; height: 100%; object-fit: cover; }
.ps-rows--pic .tt { display: grid; gap: 2px; min-width: 0; }
.ps-rows--pic .tt b { font-size: var(--ps-fs-base); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-rows--pic .tt em { font-size: var(--ps-fs-xs); color: var(--ps-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-rows > li > a.is-top .ps-num { color: var(--ps-accent); }

/* --------------------------------------------------------------------------
   7. 资料表（详情页 / 演员页共用）
   -------------------------------------------------------------------------- */
.ps-facts { display: grid; gap: 0; }
.ps-facts > div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    font-size: var(--ps-fs-sm);
    border-bottom: 1px dashed var(--ps-line);
}
.ps-facts > div:last-child { border-bottom: 0; }
.ps-facts dt { color: var(--ps-ink-3); }
.ps-facts dd { min-width: 0; overflow-wrap: anywhere; color: var(--ps-ink-2); }
.ps-facts dd a { border-bottom: 1px solid var(--ps-line-2); }
.ps-facts dd a:hover { color: var(--ps-accent); border-color: var(--ps-accent); }
.ps-facts--links dd { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.ps-facts--links dd a { border-bottom: 0; }

/* 横排资料带（详情页顶卡底部）：dt:dd 成对横排、自动换行。
   ⚠️ 用横排带而不是竖排资料表，是为了让顶卡不必「三栏等高」——
      等高 + 某一栏内容短，必然在那一栏底部留一个洞（vela 实测 219px）。 */
.ps-facts--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}
.ps-facts--inline > div {
    display: flex;
    gap: 6px;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: var(--ps-fs-sm);
}
.ps-facts--inline dt { color: var(--ps-ink-3); flex: 0 0 auto; }
.ps-facts--inline dt::after { content: "："; }
.ps-facts--inline dd { color: var(--ps-ink-2); min-width: 0; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   8. 正文排版（资讯正文 / 详情页简介共用）
   宽度由调用方容器决定，本组件不设 max-width
   -------------------------------------------------------------------------- */
.ps-copy { color: var(--ps-ink-2); font-size: var(--ps-fs-md); line-height: 1.9; }
.ps-copy p { margin-bottom: 14px; }
.ps-copy p:last-child { margin-bottom: 0; }
.ps-copy h2, .ps-copy h3 {
    margin: 22px 0 10px;
    font-family: var(--ps-display);
    color: var(--ps-ink);
}
.ps-copy h2 { font-size: var(--ps-fs-lg); }
.ps-copy h3 { font-size: var(--ps-fs-md); }
.ps-copy a { color: var(--ps-accent); border-bottom: 1px solid var(--ps-accent-soft-2); }
.ps-copy ul, .ps-copy ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.ps-copy ol { list-style: decimal; }
.ps-copy li { margin: 4px 0; }
.ps-copy img { border-radius: var(--ps-r-sm); margin: 14px auto; }
.ps-copy blockquote {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid var(--ps-accent);
    background: var(--ps-accent-soft);
    color: var(--ps-ink-2);
}
.ps-copy table { margin-bottom: 14px; font-size: var(--ps-fs-sm); }
.ps-copy th, .ps-copy td { padding: 7px 10px; border: 1px solid var(--ps-line); text-align: left; }
.ps-copy th { background: var(--ps-surface-2); font-weight: 600; }
.ps-copy strong { color: var(--ps-ink); }

/* --------------------------------------------------------------------------
   9. 面包屑 / 页头
   -------------------------------------------------------------------------- */
.ps-pagehead {
    padding: 12px 0;
    border-bottom: 1px solid var(--ps-line);
}
.ps-pagebar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.ps-pagebar__side { margin-left: auto; }
.ps-pagebar__hint { font-size: var(--ps-fs-xs); color: var(--ps-ink-3); }
.ps-pagebar__hint b { color: var(--ps-ink-2); font-weight: 600; }
.ps-pagebar__hint i { font-style: normal; padding: 0 5px; opacity: .6; }

.ps-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: var(--ps-fs-sm); color: var(--ps-ink-3); min-width: 0; }
.ps-crumb svg {
    width: 11px; height: 11px;
    fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round;
    opacity: .5;
    flex: 0 0 auto;
}
.ps-crumb a:hover { color: var(--ps-accent); }
.ps-crumb [aria-current="page"] {
    color: var(--ps-ink-2);
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. 分页 / 空态
   -------------------------------------------------------------------------- */
.ps-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.ps-pager a, .ps-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--ps-line-2);
    border-radius: var(--ps-r-sm);
    font-size: var(--ps-fs-sm);
    color: var(--ps-ink-2);
}
.ps-pager a:hover { border-color: var(--ps-accent); color: var(--ps-accent); }
.ps-pager .is-active { background: var(--ps-accent); border-color: var(--ps-accent); color: var(--ps-accent-ink); font-weight: 600; }
.ps-pager .is-disabled { color: var(--ps-ink-3); opacity: .6; }
.ps-pager__meta { border: 0 !important; color: var(--ps-ink-3); font-size: var(--ps-fs-xs); }

/* 结果统计条：由 widget/page 在列表之后输出（此时 $__PAGING__ 才有值）。
   左右分栏：左「共 N 条」右「第 x / y 页」，窄屏换行居中。 */
.ps-resultbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 14px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ps-line);
    font-size: var(--ps-fs-sm);
    color: var(--ps-ink-3);
}
.ps-resultbar b { color: var(--ps-ink); font-family: var(--ps-mono); font-size: var(--ps-fs-md); }
@media (max-width: 560px) { .ps-resultbar { justify-content: center; } }

.ps-empty {
    padding: 40px 20px;
    text-align: center;
    background: var(--ps-surface);
    border: 1px solid var(--ps-line);
    border-radius: var(--ps-r-md);
}
.ps-empty h2 { font-size: var(--ps-fs-md); margin-bottom: 6px; }
.ps-empty p { font-size: var(--ps-fs-sm); color: var(--ps-ink-3); }

/* --------------------------------------------------------------------------
   11. 页脚（掌幕底座：品牌镜头 + 三组频道/入口/信息台 + 状态轨）
   分类全量内链保留，SEO 职责不变。
   -------------------------------------------------------------------------- */
.ps-foot {
    position: relative;
    margin-top: var(--ps-gap-block);
    padding: 32px 0 0;
    background: linear-gradient(180deg, #1a2621 0%, #101916 58%, #0b1210 100%);
    color: var(--ps-chrome-text);
    overflow: hidden;
}
.ps-foot::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ps-accent-glow) 18%, var(--ps-gold) 50%, var(--ps-accent-glow) 82%, transparent);
    opacity: .8;
}
.ps-foot::after {
    content: "";
    position: absolute;
    top: -120px; left: 50%;
    width: 760px; height: 280px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(122, 183, 159, .16), transparent 70%);
    pointer-events: none;
}
.ps-foot .ps-shell { position: relative; z-index: 1; }
.ps-foot__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 26px;
}
@media (min-width: 900px) {
    .ps-foot__top { grid-template-columns: minmax(0, .85fr) minmax(0, 2fr); gap: 36px; }
}
.ps-foot__brand { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.ps-foot__lens {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #34473f 0%, #0a1210 72%);
    border: 1px solid rgba(169, 121, 60, .58);
    box-shadow: inset 0 0 0 5px rgba(169, 121, 60, .10), 0 0 0 1px rgba(238, 243, 234, .06);
    color: #f3f7f0;
    font: 700 23px/1 var(--ps-display);
}
.ps-foot__brandcopy { min-width: 0; display: grid; gap: 7px; }
.ps-foot__brandcopy h3 {
    font-family: var(--ps-display);
    font-size: var(--ps-fs-lg);
    font-weight: 700;
    letter-spacing: .03em;
    color: #f3f7f0;
}
.ps-foot__brandcopy p {
    font-size: var(--ps-fs-sm);
    line-height: 1.8;
    color: var(--ps-chrome-mute);
    max-width: 34ch;
}
.ps-foot__model {
    font: 500 10px/1.4 var(--ps-mono);
    letter-spacing: .10em;
    color: #7f8d86;
}
.ps-foot__decks {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-width: 0;
}
@media (min-width: 640px)  { .ps-foot__decks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ps-foot__decks { grid-template-columns: minmax(0, 1.55fr) minmax(0, .7fr) minmax(0, .9fr); gap: 26px; } }
.ps-foot__deck { min-width: 0; }
.ps-foot__deck h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 11px;
    border-bottom: 1px solid var(--ps-chrome-line);
    font: 600 var(--ps-fs-sm)/1.4 var(--ps-display);
    letter-spacing: .04em;
    color: #edf3eb;
}
.ps-foot__deck h3 span {
    font: 500 10px/1 var(--ps-mono);
    letter-spacing: .08em;
    color: var(--ps-gold);
}
.ps-foot__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-foot__chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 9px;
    border: 1px solid var(--ps-chrome-line);
    border-radius: var(--ps-r-xs);
    background: rgba(238, 243, 234, .03);
    color: #b9c6bd;
    font-size: var(--ps-fs-xs);
    white-space: nowrap;
    transition: color var(--ps-t) var(--ps-ease), border-color var(--ps-t) var(--ps-ease), background var(--ps-t) var(--ps-ease);
}
.ps-foot__chip:hover { color: #f4f8f2; border-color: var(--ps-accent-glow); background: rgba(122, 183, 159, .12); }
.ps-foot__links { display: grid; gap: 7px; }
.ps-foot__links a { width: fit-content; font-size: var(--ps-fs-sm); color: #b9c6bd; }
.ps-foot__links a:hover { color: #f4f8f2; }
.ps-foot__meta { display: grid; gap: 7px; font-size: var(--ps-fs-sm); color: var(--ps-chrome-mute); }
.ps-foot__meta a { width: fit-content; color: #b9c6bd; border-bottom: 1px solid var(--ps-chrome-line); }
.ps-foot__meta a:hover { color: var(--ps-accent-glow); border-color: var(--ps-accent-glow); }
.ps-foot__rail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 13px 0 15px;
    border-top: 1px solid var(--ps-chrome-line);
    font-size: var(--ps-fs-xs);
    color: var(--ps-chrome-mute);
}
.ps-foot__signal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 500 10px/1 var(--ps-mono);
    letter-spacing: .08em;
    color: #cfdad2;
    white-space: nowrap;
}
.ps-foot__signal i {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--ps-accent-glow);
    box-shadow: 0 0 0 3px rgba(122, 183, 159, .12);
}
.ps-foot__legal { flex: 1 1 300px; min-width: 0; line-height: 1.7; }
.ps-foot__railmodel { margin-left: auto; font: 500 10px/1 var(--ps-mono); letter-spacing: .08em; color: #7f8d86; white-space: nowrap; }
.ps-foot__gotop {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 13px;
    border: 1px solid var(--ps-chrome-line);
    border-radius: 999px;
    color: #dfe8e1;
    font: 500 10px/1 var(--ps-mono);
    letter-spacing: .06em;
    white-space: nowrap;
}
.ps-foot__gotop:hover { border-color: var(--ps-gold); color: var(--ps-gold); background: var(--ps-gold-soft); }
@media (max-width: 719.98px) {
    .ps-foot__railmodel { display: none; }
    .ps-foot__gotop { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   12. 广告位 / 工具
   -------------------------------------------------------------------------- */
.ps-ad { display: block; margin: 0 auto; text-align: center; }
.ps-ad img { margin-inline: auto; }

.ps-clamp-1, .ps-clamp-2, .ps-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.ps-clamp-1 { -webkit-line-clamp: 1; }
.ps-clamp-2 { -webkit-line-clamp: 2; }
.ps-clamp-3 { -webkit-line-clamp: 3; }
