/* 正式业务的媒体、角标及状态补充；静态原样式与预览继续保留。 */
.nx-header .nx-avatar, .nx-profile-avatar { position: relative; }
/* 初始字与图片分别填满同一个圆形，VIP单独定位，不参与头像的flex尺寸。 */
.nx-header .nx-avatar { flex: 0 0 32px; font-size: 14px; font-weight: 600; }
[data-nx-avatar-initial] { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; flex: 0 0 100%; border-radius: inherit; background: var(--nx-brand); color: #fff; line-height: 1; }
[data-nx-avatar-image] { display: block; width: 100%; height: 100%; flex: 0 0 100%; border-radius: inherit; object-fit: cover; }
[data-nx-avatar-initial][hidden], [data-nx-avatar-image][hidden], [data-nx-vip][hidden] { display: none !important; }
.nx-vip-mark { position: absolute; right: -6px; bottom: -4px; padding: 0 4px; border-radius: 5px; background: #ffd233; color: #543900; font-size: 9px; font-weight: 700; line-height: 15px; }
.nx-player video { width: 100%; height: 100%; min-width: 0; min-height: 0; position: absolute; inset: 0; object-fit: contain; }
.nx-player-state { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; background: #14171be8; text-align: center; }
.nx-player-state .nx-inline-actions { justify-content: center; flex-wrap: wrap; }
.nx-player-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; background: #14171b80; }
.nx-player-paused { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 5px; color: #fff; background: #0009; pointer-events: none; font-size: 12px; }
.nx-episode { position: relative; }
.nx-episode[data-access-badge]::after { content: attr(data-access-badge); position: absolute; top: -5px; right: -3px; min-width: 20px; padding: 0 3px; border-radius: 3px; background: #ff3f7c; color: white; font-size: 9px; line-height: 14px; }
.nx-episode[data-access-type="vip"]::after { background: #ffd233; color: #543900; }
.nx-episode[aria-disabled="true"] { opacity: .4; cursor: default; }
.nx-detail-summary, .nx-profile-info { min-width: 0; }
.nx-description { white-space: pre-line; }
/* 栏目简介与下方视频列表留白，沿用页面标题区的桌面间距。 */
.nx-wrap > p.nx-subtitle { margin-bottom: 24px; }
.nx-profile-avatar { flex-shrink: 0; }
.nx-profile-info .nx-inline-actions { flex-wrap: wrap; }
.nx-panel > [data-nx-private] { padding-top: 20px; }
.nx-panel .nx-grid { margin-top: 16px; }
/* 主分区沿原文字标签和底线；计数独立留白，避免通用chip粉底吞掉标题。 */
.nx-panel-tabs { gap: 28px; padding-bottom: 0; }
.nx-panel-tabs > a.nx-chip { display: inline-flex; gap: 8px; min-height: 0; padding: 0 0 16px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #888; white-space: nowrap; }
.nx-panel-tabs > a.nx-chip.is-active { border-bottom-color: var(--nx-brand); background: transparent; color: var(--nx-brand); }
.nx-panel-tabs [data-nx-summary] { padding: 1px 6px; border-radius: 5px; background: #f5f5f5; font-size: 11px; font-weight: 400; line-height: 18px; }
.nx-panel-tabs .is-active [data-nx-summary] { background: var(--nx-brand-weak); color: var(--nx-brand); }
.nx-profile-filters > a.nx-chip.is-active { background: var(--nx-brand-weak); color: var(--nx-brand); }
/* 分享区使用独立紧凑布局；认证头的hidden保持优先，表单面板继续沿原布局。 */
.nx-dialog [data-nx-auth-head][hidden] { display: none !important; }
.nx-dialog[data-auth-mode="share"] { padding-top: 40px; }
.nx-dialog [data-nx-modal-panel="share"]:not([hidden]) { display: grid; justify-items: center; gap: 16px; text-align: center; }
.nx-dialog [data-nx-modal-panel="share"] > h3 { margin: 0; font-size: 22px; }
.nx-dialog [data-nx-modal-panel="share"] .nx-dialog-description { margin: 0; }
.nx-dialog [data-nx-share-url] { width: 100%; min-width: 0; color: #777; font-size: 12px; text-align: left; }
.nx-dialog [data-nx-modal-panel="share"] > .nx-button { width: 100%; }
.nx-identity-status { text-align: center; padding: 24px; }
.nx-pay-panel [data-nx-pay-number], .nx-pay-panel [data-nx-pay-status] { margin-top: 16px; overflow-wrap: anywhere; }
.nx-pay-panel > .nx-inline-actions { flex-wrap: wrap; margin-top: 16px; }
.nx-pay-page .nx-plan-grid:empty { min-height: 90px; }
.nx-color-option[data-color="pink"] input:checked + span { outline-color: #ff6699; }
/* 图标搜索由正文既有表单承接，足宽页头显示输入框；整幅推荐链接仅作用于手机。 */
.nx-hero-mobile-link { display: none; }
@media (min-width: 1600px) { .nx-search-entry { display: none; } }
@media (max-width: 767px) { .nx-hero-mobile-link { display: block; position: absolute; inset: 0; z-index: 2; } .nx-hero-dots { z-index: 3; } }
@media (max-width: 767px) { .nx-player-state { padding: 12px; font-size: 12px; } .nx-player-state .nx-button { padding: 7px 12px; min-height: 32px; font-size: 12px; } .nx-episode[data-access-badge]::after { top: -4px; font-size: 8px; line-height: 12px; } }

/* 正式栏目与Logo同处顶部一行；导航自身滚动，避免挤压品牌及右侧入口。 */
.nx-header { display: block; }
.nx-header .nx-header-inner { width: min(1600px, calc(100% - 48px)); gap: 12px; }
.nx-header .nx-mobile-brand, .nx-header-search { display: none; }
.nx-header .nx-search { flex: 0 0 200px; min-width: 0; margin-left: 0; }
.nx-header .nx-header-actions { gap: 12px; }
.nx-public-navigation { display: flex; flex: 1 1 0; min-width: 0; align-items: center; gap: 12px; padding-block: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #f3ccda transparent; }
.nx-public-navigation > a { flex: none; }
/* 七项和更多维持服务端分组，宽度不参与收纳；Popover位于顶层，不受菜单滚动裁切。 */
.nx-public-navigation [data-base-menu-navigation][data-base-menu-direction="horizontal"] { flex: none; width: auto; max-width: none; gap: 8px; overflow: visible; }
.nx-public-navigation [data-base-menu-navigation][data-base-menu-direction="horizontal"] > [data-base-menu-node] { flex: none; overflow: visible; }
.nx-public-navigation [data-base-menu-navigation][data-base-menu-direction="horizontal"] > [data-base-menu-node] > a { flex: none; overflow: visible; }
.nx-public-navigation [data-base-menu-node] > .nx-category { padding-inline: 8px; }
.nx-public-navigation [data-base-menu-children] { background: #fff; color: #656565; box-shadow: 0 8px 28px #3113211c, inset 0 0 0 1px #f0dce4; }
.nx-public-navigation [data-base-menu-children] a:hover,
.nx-public-navigation [data-base-menu-children] a[aria-current],
.nx-public-navigation [data-base-menu-overflow] > [data-base-menu-active] { color: var(--nx-brand); background: var(--nx-brand-weaker); }
.nx-public-navigation [data-base-menu-overflow] > [data-base-menu-node]:has(> [aria-expanded="true"]) { background: #fff2f7; box-shadow: inset 0 0 0 1px #f4dbe5; }
.nx-public-navigation [data-base-menu-overflow] > [data-base-menu-node] > [data-base-menu-expand],
.nx-public-navigation [data-base-menu-inline] > a { background: #fff5f8; color: #656565; }
.nx-public-navigation [data-base-menu-overflow] > [data-base-menu-node]:has(> [aria-expanded="true"]) > a { color: var(--nx-brand); }
.nx-filter-actions { display: flex; justify-content: flex-end; margin-bottom: 16px; }
/* 无图只显示本站名称，长名称在原品牌容器内省略。 */
.nx-mobile-brand { min-width: 0; }
.nx-mobile-brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 公共内容按奶心浅色皮肤分栏，覆盖后加载公共样式的尺寸、间距与颜色。 */
.nx-footer { border-color: #f1e9ed; background: #fffafb; color: #888; }
.nx-footer .nx-footer-inner { padding-block: 32px 20px; text-align: left; }
.nx-footer-columns { display: grid; grid-template-columns: minmax(220px, 1.8fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.nx-footer-columns > * { min-width: 0; }
.nx-footer .nx-footer-brand .nx-brand { width: auto; height: auto; min-height: 36px; margin: 0 0 12px; white-space: normal; }
.nx-footer .nx-footer-brand .nx-logo-name { overflow: visible; font-size: 20px; line-height: 1.5; text-overflow: clip; }
.nx-footer .nx-footer-brand .nx-brand > img { max-width: 100%; }
.nx-footer .nx-footer-copy { line-height: 1.9; }
.nx-footer .nx-footer-group > h3, .nx-footer [data-site-footer-functions] > h3 { margin: 4px 0 14px; color: #555; font-size: 14px; font-weight: 600; line-height: 22px; }
.nx-footer .nx-footer-links, .nx-footer [data-site-footer-functions] .site-footer-function-links { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 9px; margin: 0; font-size: 12px; }
.nx-footer [data-site-footer-functions] { margin: 0; text-align: left; }
.nx-footer .nx-footer-links a, .nx-footer [data-site-footer-functions] a { margin: 0; color: #888; font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.nx-footer .nx-footer-links a:hover, .nx-footer [data-site-footer-functions] a:hover { color: var(--nx-brand); }
.nx-footer [data-site-footer-addresses], .nx-footer [data-site-footer-contacts], .nx-footer [data-site-footer-anti-lost] { margin: 14px 0 0; color: #888; text-align: left; }
.nx-footer [data-site-footer-addresses] > h3, .nx-footer [data-site-footer-anti-lost] > h3 { margin: 0 0 8px; color: #777; font-size: 12px; font-weight: 500; }
.nx-footer .site-footer-pills { justify-content: flex-start; gap: 6px; }
.nx-footer [data-site-footer-addresses] a, .nx-footer [data-site-footer-contacts] nav a, .nx-footer [data-site-footer-anti-lost] a { min-height: 26px; padding: 3px 9px; border-color: #f0dce4; background: #fff; color: #888; font-size: 11px; }
.nx-footer .site-footer-email { color: #888; font-size: 12px; }
.nx-footer [data-site-footer-copyright] { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #f1e9ed; text-align: center; color: #aaa; font-size: 11px; }
.nx-player-column { min-width: 0; width: 100%; }
.nx-player-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nx-player-sources > span { font-size: 13px; color: var(--nx-text-2); }
@media (max-width: 1100px) {
    .nx-footer-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
    .nx-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    /* 手机与标题区统一为20px，避免多行简介紧贴首排封面。 */
    .nx-wrap > p.nx-subtitle { margin-bottom: 20px; }
    .nx-panel-tabs { gap: 16px; }
    .nx-panel-tabs > a.nx-chip { gap: 5px; padding-bottom: 12px; }
    .nx-panel-tabs [data-nx-summary] { padding-inline: 4px; font-size: 10px; }
    /* 保留原手机底栏安全间距，版权滚到底后仍在固定导航上方。 */
    .nx-footer .nx-footer-inner { padding-block: 24px calc(112px + env(safe-area-inset-bottom)); }
    .nx-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
    .nx-footer .nx-footer-brand .nx-brand { justify-content: flex-start; margin-bottom: 10px; }
    .nx-footer .nx-footer-group > h3, .nx-footer [data-site-footer-functions] > h3 { margin-top: 0; margin-bottom: 10px; font-size: 13px; }
    .nx-footer .nx-footer-copy { font-size: 11px; }
    .nx-footer [data-site-footer-copyright] { margin-top: 22px; padding-top: 14px; font-size: 10px; }
}
@media (max-width: 768px) {
    /* 手机保留品牌、横向栏目和搜索同一行，个人入口继续使用原底栏。 */
    .nx-header { height: 49px; }
    .nx-header .nx-header-inner { width: calc(100% - 24px); height: 48px; gap: 8px; }
    .nx-header .nx-brand, .nx-header .nx-header-actions { display: none; }
    .nx-header .nx-mobile-brand { display: flex; align-items: center; flex: 0 0 112px; max-width: 32vw; height: 34px; overflow: hidden; color: var(--nx-brand); font-size: 16px; font-weight: 700; }
    .nx-header .nx-mobile-brand > img { display: block; width: 100%; height: 34px; object-fit: contain; }
    .nx-public-navigation { gap: 8px; padding-block: 6px; }
    .nx-public-navigation .nx-category { padding: 7px 8px; font-size: 12px; }
    .nx-public-navigation [data-base-menu-navigation][data-base-menu-direction="horizontal"] { gap: 4px; }
}
@media (max-width: 1599px) {
    .nx-header .nx-search { display: none; }
    .nx-header-search { display: inline-flex; flex: none; width: 32px; height: 32px; }
}
@media (min-width: 769px) and (max-width: 1199px) {
    .nx-header-action-label { display: none; }
    .nx-header .nx-header-actions .nx-action-link { width: 28px; justify-content: center; }
}
