/* 奶心风格普通短剧皮肤：样式仅作用于 nx 命名空间，不影响其他主题。 */
.nx-body {
  --nx-brand: #ff3f7c;
  --nx-brand-hover: #ff2a6d;
  --nx-brand-weak: #ffe8f0;
  --nx-brand-weaker: #fff3f7;
  --nx-text: #0d0d0d;
  --nx-text-2: #0000008c;
  --nx-text-3: #00000059;
  --nx-line: #0000001a;
  --nx-fill: #fafafa;
  --nx-gold: #ffd233;
  margin: 0;
  background: #fff;
  color: var(--nx-text);
  font: 14px/1.5 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
.nx-body *, .nx-body *::before, .nx-body *::after { box-sizing: border-box; }
.nx-body [hidden] { display: none !important; }
.nx-body a { color: inherit; text-decoration: none; }
.nx-body button, .nx-body input, .nx-body select, .nx-body textarea { font: inherit; }
.nx-body button { cursor: pointer; }
.nx-body button:disabled { cursor: default; }
.nx-body button, .nx-body input, .nx-body textarea, .nx-body select { color: inherit; }
.nx-body button { -webkit-tap-highlight-color: transparent; }
.nx-body a:focus-visible, .nx-body button:focus-visible, .nx-body input:focus-visible, .nx-body textarea:focus-visible {
  outline: 2px solid var(--nx-brand);
  outline-offset: 4px;
}
.nx-body img, .nx-body svg { vertical-align: middle; }
.nx-body svg { flex-shrink: 0; }
.nx-body img { max-width: 100%; }
.nx-body h1, .nx-body h2, .nx-body h3, .nx-body p { margin-top: 0; }
.nx-body h1, .nx-body h2, .nx-body h3 { font-weight: 600; }
.nx-wrap { width: min(1200px, calc(100% - 100px)); margin-inline: auto; min-width: 0; }
.nx-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nx-icon { width: 20px; height: 20px; }
.nx-main { min-height: 55vh; padding-top: 24px; padding-bottom: 48px; }

/* PC 品牌容器固定为 138×46，图片等比包含，避免随 rem 缩放。 */
.nx-header { position: sticky; top: 0; z-index: 100; height: 77px; border-bottom: 1px solid var(--nx-line); background: #fffffffa; }
.nx-header-inner { display: flex; align-items: center; height: 76px; gap: 24px; }
.nx-brand { display: flex; align-items: center; gap: 8px; width: 138px; height: 46px; flex: 0 0 138px; color: var(--nx-brand); white-space: nowrap; }
.nx-brand > img { display: block; width: 138px; height: 46px; object-fit: contain; }
.nx-brand > img.nx-logo-mark { width: 33px; height: 33px; }
.nx-brand > .nx-logo-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nx-logo-mark { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 33px; width: 33px; height: 33px; color: var(--nx-brand); }
.nx-logo-mark svg { width: 100%; height: 100%; }
.nx-logo-name { font-size: 21px; font-weight: 700; letter-spacing: -.6px; color: var(--nx-brand); }
.nx-topnav { display: flex; align-items: center; gap: 26px; white-space: nowrap; }
.nx-topnav a { padding-block: 26px; font-size: 16px; font-weight: 500; }
.nx-topnav a:hover, .nx-topnav a.is-active { color: var(--nx-brand); }
.nx-search { display: flex; align-items: center; gap: 8px; min-width: 0; height: 38px; padding: 0 12px 0 16px; border: 1px solid #ededed; border-radius: 999px; background: #f7f7f7; }
.nx-header .nx-search { flex: 1 1 260px; max-width: 320px; margin-left: auto; }
.nx-search-input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font-size: 13px; }
.nx-search-input::placeholder { color: #999; }
.nx-search-input:focus-visible { outline: 0 !important; }
.nx-search:focus-within { border-color: #ff9fbd; }
.nx-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; }
.nx-icon-button:hover { color: var(--nx-brand); background: var(--nx-brand-weaker); }
.nx-header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 20px; }
.nx-action-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; font-size: 13px; }
.nx-action-link:hover { color: var(--nx-brand); }
.nx-action-link svg { width: 21px; height: 21px; }
.nx-action-link[href*="recharge"] svg { color: #ffb02e; }
.nx-action-link[href*="vip"] svg { color: #e7b430; }
.nx-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f7e5ee; color: var(--nx-brand); }
.nx-mobile-header, .nx-mobile-nav { display: none; }

/* 题材与筛选：只让导航内部滚动，品牌和正文不被长文本撑宽。 */
.nx-categories { display: flex; align-items: center; gap: 8px; padding-block: 4px 22px; min-width: 0; }
.nx-categories nav, .nx-category-list { display: flex; align-items: center; flex: 1; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nx-categories nav::-webkit-scrollbar, .nx-category-list::-webkit-scrollbar { display: none; }
.nx-category { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: #656565; font-size: 14px; white-space: nowrap; }
.nx-category:hover, .nx-category.is-active { color: var(--nx-brand); background: var(--nx-brand-weaker); }
.nx-filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 12px; flex-shrink: 0; border: 0; background: transparent; color: #656565; white-space: nowrap; }
.nx-filter-toggle:hover, .nx-filter-toggle.is-active { color: var(--nx-brand); }
.nx-filters { margin: 0 0 24px; padding: 16px 20px; border: 1px solid #f1f1f1; border-radius: 8px; background: #fafafa; }
.nx-filters.nx-wrap { margin-inline: auto; }
.nx-filter-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 12px; }
.nx-filter-row:first-child { margin-top: 0; }
.nx-filter-row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.nx-filter-label { min-width: 50px; flex-shrink: 0; padding-top: 6px; color: var(--nx-text-2); }
.nx-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 13px; border: 1px solid transparent; border-radius: 6px; background: #fff; color: #656565; font-size: 13px; }
.nx-chip:hover, .nx-chip.is-active { color: var(--nx-brand); background: var(--nx-brand-weak); }

/* 首页横幅与六列海报卡片；横幅所有文案保持在同一可点击内容项内。 */
.nx-hero { position: relative; width: 100%; overflow: hidden; isolation: isolate; aspect-ratio: 2.4; border-radius: 12px; background: #303849; }
.nx-hero-slide { position: absolute; inset: 0; display: block; overflow: hidden; }
.nx-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nx-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #101822a6, #10182205 75%), linear-gradient(0deg, #101822a3, transparent 70%); }
.nx-hero-copy { position: absolute; z-index: 1; left: 40px; bottom: 36px; max-width: min(560px, 70%); color: #fff; }
.nx-eyebrow { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: 2px; opacity: .8; }
.nx-hero-title { margin-bottom: 12px; font-size: 36px; line-height: 1.3; letter-spacing: 1px; }
.nx-hero-description { margin-bottom: 22px; font-size: 14px; line-height: 1.8; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 10px 26px; border: 1px solid var(--nx-brand); border-radius: 999px; background: var(--nx-brand); color: #fff !important; font-weight: 500; white-space: nowrap; }
.nx-button:hover { border-color: var(--nx-brand-hover); background: var(--nx-brand-hover); }
.nx-button-ghost { border-color: #e6e6e6; background: #fff; color: #555 !important; }
.nx-button-ghost:hover { border-color: #ffb7cf; color: var(--nx-brand) !important; background: var(--nx-brand-weaker); }
.nx-hero-dots { position: absolute; right: 28px; bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 7px; }
.nx-hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #ffffff66; transition: width .2s, background .2s; }
.nx-hero-dot.is-active { width: 24px; background: #fff; }
.nx-section { margin-top: 32px; }
.nx-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.nx-section-title { margin: 0; font-size: 22px; line-height: 30px; }
.nx-more { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; color: var(--nx-text-2) !important; font-size: 13px; }
.nx-more:hover { color: var(--nx-brand) !important; }
.nx-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 20px; min-width: 0; }
.nx-card { display: block; min-width: 0; }
.nx-card-cover { display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 4; border-radius: 8px; background: #f3f1f4; }
.nx-card-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s; }
.nx-card:hover .nx-card-image { transform: scale(1.035); }
.nx-card:hover .nx-card-title { color: var(--nx-brand); }
.nx-badge { position: absolute; top: 7px; right: 7px; padding: 2px 6px; border-radius: 4px; background: #ff9000; color: #fff; font-size: 11px; font-weight: 500; }
.nx-badge-vip { background: linear-gradient(120deg, #ffe580, #facc15); color: #694923; }
.nx-card-episode { position: absolute; right: 8px; bottom: 7px; z-index: 1; color: #fff; font-size: 12px; text-shadow: 0 1px 3px #0009; }
.nx-card-cover::after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #0005); pointer-events: none; }
.nx-card-title { margin: 9px 0 5px; color: var(--nx-text); font-size: 15px; font-weight: 500; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; color: var(--nx-text-2); font-size: 11px; line-height: 18px; }
.nx-card-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-card-meta > span:last-child { flex-shrink: 0; }
.nx-promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; padding: 24px 32px; overflow: hidden; border: 1px solid #ffe4ed; border-radius: 10px; background: linear-gradient(110deg, #fff3f7, #fffafd); }
.nx-promo-copy h2, .nx-promo-copy h3 { margin-bottom: 6px; font-size: 20px; }
.nx-promo-copy p { margin: 0; color: var(--nx-text-2); font-size: 13px; }
.nx-promo-icon { width: 44px; height: 44px; flex-shrink: 0; color: var(--nx-brand); }

.nx-footer { border-top: 1px solid #f0f0f0; background: #fafafa; color: var(--nx-text-2); }
.nx-footer-inner { padding-block: 32px 28px; text-align: center; }
.nx-footer-inner .nx-brand { margin-inline: auto; margin-bottom: 16px; }
.nx-footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin: 18px 0; font-size: 13px; }
.nx-footer-links a:hover { color: var(--nx-brand); }
.nx-footer-copy { margin-bottom: 8px; font-size: 12px; line-height: 22px; }
.nx-footer-copy:last-child { margin-bottom: 0; }
.nx-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: #888; font-size: 13px; }
.nx-breadcrumb a:hover { color: var(--nx-brand); }
.nx-page-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.nx-page-title { margin: 0; font-size: 26px; line-height: 36px; }
.nx-subtitle { margin: 0; color: var(--nx-text-2); font-size: 13px; font-weight: 400; }
.nx-page-head + .nx-search { max-width: 480px; margin-bottom: 24px; }
.nx-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; }
.nx-page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 7px 12px; border: 1px solid #ededed; border-radius: 6px; background: #fff; color: #666; }
.nx-page-link:hover, .nx-page-link.is-active { border-color: var(--nx-brand); background: var(--nx-brand); color: #fff; }
.nx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 48px 20px; text-align: center; color: #999; }
.nx-empty-art { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; margin-bottom: 20px; border-radius: 50%; background: #fff3f7; color: #ffb9cf; }
.nx-empty-art svg { width: 44px; height: 44px; }
.nx-empty-title { margin-bottom: 8px; color: #666; font-size: 17px; font-weight: 500; }
.nx-empty p { margin-bottom: 20px; font-size: 13px; }

/* 详情与播放保持固定黑色舞台，状态文案绝对定位，不挤压播放器尺寸。 */
.nx-detail-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.nx-player { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #14171b; color: #fff; }
.nx-player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.nx-play-button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border: 1px solid #ffffffa6; border-radius: 50%; background: #ffffff1a; color: #fff; backdrop-filter: blur(5px); }
.nx-play-button svg { width: 28px; height: 28px; margin-left: 3px; }
.nx-play-button:hover { background: var(--nx-brand); border-color: var(--nx-brand); }
/* 集号高于底部操作栏，窄屏下也不与播放提示重叠。 */
.nx-player-label { position: absolute; right: 20px; bottom: 52px; left: 20px; margin: 0; color: #ffffffb3; font-size: 12px; text-align: center; pointer-events: none; }
.nx-player-controls { position: absolute; right: 14px; bottom: 8px; left: 14px; z-index: 2; display: flex; align-items: center; gap: 12px; color: #ffffffb3; font-size: 11px; }
.nx-player-controls input { min-width: 0; flex: 1; accent-color: var(--nx-brand); }
.nx-player-controls .nx-status { padding: 0; margin: 0; overflow: hidden; background: none; color: #ffffff80; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.nx-detail-summary { min-width: 0; }
.nx-detail-title { margin-bottom: 12px; font-size: 27px; line-height: 1.4; }
.nx-detail-meta { margin-bottom: 18px; color: #888; font-size: 13px; line-height: 1.8; }
.nx-inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin: 18px 0; }
.nx-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #888; font-size: 13px; }
.nx-text-button:hover, .nx-text-button.is-active { color: var(--nx-brand); }
.nx-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 14px 0; list-style: none; }
.nx-tags a, .nx-tags span { display: inline-flex; padding: 4px 10px; border-radius: 4px; background: #f5f5f5; color: #888; font-size: 12px; }
.nx-tags a:hover { color: var(--nx-brand); background: var(--nx-brand-weaker); }
.nx-description { color: #777; font-size: 13px; line-height: 1.9; }
.nx-description.is-collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nx-detail-tabs { display: flex; align-items: center; gap: 30px; padding-bottom: 14px; margin: 32px 0 20px; border-bottom: 1px solid var(--nx-line); }
.nx-detail-tabs button, .nx-detail-tabs a { padding: 0; border: 0; background: transparent; font-size: 18px; font-weight: 500; }
.nx-detail-tabs .is-active { position: relative; color: var(--nx-brand); }
.nx-detail-tabs .is-active::after { position: absolute; bottom: -15px; left: 20%; right: 20%; height: 3px; border-radius: 2px; background: var(--nx-brand); content: ""; }
.nx-episodes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.nx-episode { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 6px; overflow: hidden; border: 1px solid transparent; border-radius: 6px; background: #f6f6f6; color: #666; font-size: 13px; }
.nx-episode:hover, .nx-episode.is-active { border-color: #ffb9cf; background: var(--nx-brand-weaker); color: var(--nx-brand); }
.nx-episode[data-access-badge]:not([data-access-badge=""])::after { position: absolute; top: 0; right: 0; padding: 0 3px; border-bottom-left-radius: 3px; background: #f9d55b; color: #725412; font-size: 8px; line-height: 13px; content: attr(data-access-badge); }
.nx-episode[data-access-type="paid"]::after { background: #ffb855; color: #7d4a13; }
.nx-status { padding: 12px 16px; margin-top: 20px; border-radius: 6px; background: #fafafa; color: #999; font-size: 13px; }

.nx-tag-cloud { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.nx-tag-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 18px; border: 1px solid #ededed; border-radius: 999px; background: #fff; font-size: 14px; }
.nx-tag-link:hover, .nx-tag-link.is-active { color: var(--nx-brand); border-color: #ffb9cf; background: var(--nx-brand-weaker); }
.nx-tag-count { color: #aaa; font-size: 12px; }
.nx-surface { padding: 28px; border: 1px solid #efefef; border-radius: 12px; background: #fff; box-shadow: 0 2px 18px #00000003; }
.nx-home-address { max-width: 760px; margin: 12px auto 0; text-align: center; }
.nx-home-address > .nx-logo-mark { width: 58px; height: 58px; margin-bottom: 16px; }
.nx-home-address .nx-page-title { margin-bottom: 12px; }
.nx-home-address > .nx-surface { margin-top: 24px; }
.nx-address-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-top: 16px; border: 1px solid #ffe0ea; border-radius: 8px; background: var(--nx-brand-weaker); text-align: left; }
.nx-address-row > div { min-width: 0; }
.nx-address-row strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.nx-address-row span, .nx-address-row p { margin: 0; color: #888; font-size: 12px; }
.nx-home-steps { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; margin: 32px 0 0; border-radius: 8px; background: #fafafa; list-style: none; text-align: center; }
.nx-home-steps > h2 { margin: 3px 0; font-size: 17px; }
.nx-home-steps > li, .nx-home-steps > div { padding: 20px 12px; border-radius: 8px; background: #fafafa; }
.nx-home-steps strong { display: block; margin: 12px 0 8px; font-size: 15px; font-weight: 500; }
.nx-home-steps p { margin: 0; color: #999; font-size: 12px; line-height: 1.8; }
.nx-info-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.nx-info-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; background: #fafafa; }
.nx-info-nav a { display: block; padding: 12px 16px; border-radius: 6px; color: #666; }
.nx-info-nav a:hover, .nx-info-nav a.is-active { color: var(--nx-brand); background: #fff; }
.nx-prose { min-width: 0; color: #777; font-size: 14px; line-height: 1.9; }
.nx-prose h1 { margin-bottom: 10px; color: var(--nx-text); font-size: 28px; }
.nx-prose h2 { margin: 28px 0 12px; color: #333; font-size: 18px; }
.nx-prose h3 { color: #333; font-size: 16px; }
.nx-prose p, .nx-prose ul, .nx-prose ol { margin-bottom: 16px; }
.nx-prose a { color: var(--nx-brand); }
.nx-prose details { padding: 18px 0; border-bottom: 1px solid #eee; }
.nx-prose summary { color: #444; font-weight: 500; cursor: pointer; }
.nx-prose details p { margin: 12px 0 0; }

/* 个人中心采用轻粉色人物区、双钱包和同一资料弹窗。 */
.nx-profile-hero { display: flex; align-items: center; gap: 24px; padding: 32px; border-radius: 12px; background: linear-gradient(110deg, #fff0f5, #fff8fa); }
.nx-profile-avatar { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; flex-shrink: 0; border: 4px solid #fff; border-radius: 50%; background: #f8b2ca; color: #fff; font-size: 32px; font-weight: 600; }
.nx-profile-avatar svg { width: 44px; height: 44px; }
.nx-profile-info { min-width: 0; flex: 1; }
.nx-profile-info h1, .nx-profile-info h2 { margin-bottom: 6px; font-size: 24px; }
.nx-profile-info p { margin-bottom: 12px; color: #999; font-size: 13px; }
.nx-profile-info .nx-inline-actions { margin: 10px 0 0; gap: 12px; }
.nx-profile-hero > .nx-button { min-height: 36px; padding: 6px 20px; font-size: 13px; }
.nx-profile-wallets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.nx-wallet { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px; border: 1px solid #f3e7dd; border-radius: 10px; background: #fffbf6; }
.nx-wallet:nth-child(2) { border-color: #eee8dc; background: #fffcf5; }
.nx-wallet h2, .nx-wallet h3 { margin-bottom: 6px; font-size: 17px; }
.nx-wallet p { margin: 0; color: #999; font-size: 12px; }
.nx-wallet strong { display: inline-block; margin-right: 6px; color: #bb8b40; font-size: 23px; font-weight: 600; }
.nx-wallet .nx-button { min-height: 34px; padding: 5px 16px; border-color: #f4d29b; background: #f4d29b; color: #795024 !important; font-size: 12px; }
.nx-panel { margin-top: 28px; padding: 24px; border: 1px solid #eee; border-radius: 10px; background: #fff; }
.nx-panel-tabs { display: flex; align-items: center; gap: 28px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
.nx-panel-tabs a, .nx-panel-tabs button { padding: 0; border: 0; background: transparent; color: #888; font-size: 16px; }
.nx-panel-tabs .is-active { color: var(--nx-brand); font-weight: 500; }
.nx-form { display: flex; flex-direction: column; gap: 18px; }
.nx-form > .nx-button { width: 100%; margin-top: 4px; }
.nx-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.nx-field > label, .nx-field > span { font-size: 13px; color: #666; }
.nx-input { display: block; width: 100%; height: 44px; padding: 10px 14px; border: 1px solid #e9e9e9; border-radius: 7px; outline: 0; background: #fafafa; }
.nx-input:focus { border-color: #ff9fbd; background: #fff; }
.nx-input::placeholder { color: #b7b7b7; }
.nx-color-options { display: flex; gap: 12px; }
.nx-color-option { position: relative; display: block; width: 32px; height: 32px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #f8b2ca; box-shadow: 0 0 0 1px #eee; cursor: pointer; }
.nx-color-option > input { position: absolute; inset: -3px; width: 32px; height: 32px; margin: 0; opacity: 0; cursor: pointer; }
.nx-color-option:has(input:checked) { box-shadow: 0 0 0 2px var(--nx-brand); }
.nx-color-option:has(input:focus-visible) { outline: 2px solid var(--nx-brand); outline-offset: 4px; }
.nx-field:is(fieldset) { min-width: 0; padding: 0; margin: 0; border: 0; }
.nx-field > legend { padding: 0; margin-bottom: 10px; color: #666; font-size: 13px; }
.nx-color-option:nth-child(2) { background: #c3b1ed; }
.nx-color-option:nth-child(3) { background: #9ecbcb; }
.nx-color-option:nth-child(4) { background: #dfba90; }
.nx-color-option.is-active { box-shadow: 0 0 0 2px var(--nx-brand); }
.nx-settings { max-width: 760px; margin: 0 auto; }
.nx-page-title + .nx-settings { margin-top: 24px; }
.nx-setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.nx-setting-row:last-child { border-bottom: 0; }
.nx-setting-row strong { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 500; }
.nx-setting-row p { margin: 0; color: #999; font-size: 12px; }

/* 金币与会员只展示静态选择态，金色与粉色用于区分套餐层级。 */
.nx-pay-page { position: relative; max-width: 940px; margin: 0 auto; }
.nx-pay-top { display: flex; flex-direction: column; align-items: center; padding: 24px 20px 30px; border-radius: 14px 14px 0 0; background: linear-gradient(#fff7f9, #fff); text-align: center; }
.nx-pay-page[data-vip="1"] .nx-pay-top { background: linear-gradient(#fff8e8, #fff); }
.nx-pay-top h1 { margin-bottom: 8px; font-size: 28px; }
.nx-pay-top p { margin: 0; color: #999; font-size: 13px; }
.nx-pay-icon { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin-bottom: 16px; border: 1px solid #ffe1a9; border-radius: 50%; background: #fff3d6; color: #edb133; }
.nx-pay-icon svg { width: 38px; height: 38px; }
.nx-pay-balance { margin-top: 14px; color: #888; font-size: 13px; }
.nx-pay-balance strong { color: #d49835; font-size: 30px; font-weight: 600; }
.nx-pay-panel { padding: 30px; border: 1px solid #eee; border-radius: 12px; background: #fff; box-shadow: 0 4px 28px #00000004; }
.nx-pay-panel > h2 { margin-bottom: 20px; font-size: 18px; }
.nx-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nx-plan { position: relative; min-width: 0; min-height: 140px; padding: 24px 12px 18px; overflow: hidden; border: 1px solid #e9e9e9; border-radius: 10px; background: #fff; text-align: center; }
.nx-plan:hover, .nx-plan.is-active { border-color: var(--nx-brand); background: #fff6f9; }
.nx-pay-page[data-vip="1"] .nx-plan:hover, .nx-pay-page[data-vip="1"] .nx-plan.is-active { border-color: #e4bc6e; background: #fff9ec; }
.nx-plan.is-active::after { position: absolute; right: -11px; bottom: -11px; width: 25px; height: 25px; background: var(--nx-brand); content: ""; transform: rotate(45deg); }
.nx-pay-page[data-vip="1"] .nx-plan.is-active::after { background: #e4bc6e; }
.nx-plan-title { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 500; }
.nx-plan-price { display: block; color: var(--nx-brand); font-size: 28px; line-height: 1.3; font-weight: 600; }
.nx-plan-price small { font-size: 14px; font-weight: 400; }
.nx-pay-page[data-vip="1"] .nx-plan-price { color: #a67526; }
.nx-plan-desc { display: block; margin-top: 8px; color: #999; font-size: 12px; }
.nx-plan-bonus { position: absolute; top: 0; right: 0; padding: 2px 7px; border-bottom-left-radius: 6px; background: #ffb234; color: #fff; font-size: 10px; }
.nx-pay-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; margin-top: 26px; border-top: 1px solid #eee; }
.nx-pay-summary strong { color: var(--nx-brand); font-size: 26px; font-weight: 600; }
.nx-pay-summary p { margin: 3px 0 0; color: #999; font-size: 12px; }
.nx-pay-summary .nx-button { min-width: 210px; }
.nx-payment-methods { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 0; color: #999; font-size: 12px; }
.nx-payment-methods h3 { margin: 0; color: #555; font-size: 14px; font-weight: 500; }
.nx-payment-methods .nx-chip { border-color: #ededed; }
.nx-privileges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; }
.nx-privilege { padding: 24px 16px; border-radius: 10px; background: #fffcf6; text-align: center; }
.nx-privilege svg { width: 28px; height: 28px; color: #cca353; }
.nx-privilege h3 { margin: 12px 0 5px; color: #795a2f; font-size: 15px; }
.nx-privilege p { margin: 0; color: #aa977b; font-size: 12px; }

/* 使用原生 dialog 顶层与独立提示节点，键盘焦点由浏览器管理。 */
.nx-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 32px; overflow-y: auto; border: 0; border-radius: 14px; background: #fff; color: var(--nx-text); box-shadow: 0 8px 40px #00000026; }
.nx-dialog::backdrop { background: #0008; backdrop-filter: blur(2px); }
.nx-dialog-close { position: absolute; top: 13px; right: 13px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #aaa; font-size: 24px; line-height: 1; }
.nx-dialog-close:hover { background: #f7f7f7; color: #444; }
.nx-dialog-head { margin-bottom: 24px; text-align: center; }
.nx-dialog-head > img { margin-bottom: 12px; }
.nx-dialog-head .nx-brand { margin: 0 auto 14px; }
.nx-dialog-head h2 { margin-bottom: 8px; font-size: 24px; }
.nx-dialog-description { margin-bottom: 18px; color: #999; font-size: 12px; line-height: 1.8; text-align: center; }
.nx-dialog-tabs { display: flex; justify-content: center; gap: 36px; margin-bottom: 24px; }
.nx-dialog-tabs button { padding: 8px 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #aaa; font-size: 18px; }
.nx-dialog-tabs button.is-active { border-color: var(--nx-brand); color: var(--nx-brand); }
.nx-error { margin: 0; color: #e5484d; font-size: 12px; line-height: 1.6; }
.nx-toast { position: fixed; left: 50%; bottom: 36px; z-index: 1100; max-width: min(480px, calc(100vw - 40px)); padding: 12px 22px; border-radius: 8px; background: #151515df; color: #fff; font-size: 13px; text-align: center; box-shadow: 0 4px 18px #0002; transform: translateX(-50%); }
.nx-dialog .nx-toast { position: sticky; left: auto; bottom: 0; width: fit-content; max-width: 100%; margin: 16px auto 0; transform: none; }

@media (max-width: 1100px) and (min-width: 768px) {
  .nx-wrap { width: calc(100% - 48px); }
  .nx-header-inner { gap: 16px; }
  .nx-topnav { gap: 16px; }
  .nx-header-actions { gap: 12px; }
  .nx-action-link { font-size: 12px; }
  .nx-header .nx-search { flex-basis: 170px; }
  .nx-grid { gap: 20px 14px; }
  .nx-detail-grid { grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 22px; }
  .nx-episodes { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}

/* 手机保持源站的三列海报与独立底栏；正文和页脚留出菜单安全空间。 */
@media (max-width: 767px) {
  .nx-body { font-size: 13px; }
  .nx-wrap { width: calc(100% - 30px); }
  .nx-header { display: none; }
  .nx-mobile-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 48px; padding: 0 16px; background: #fffffff7; border-bottom: 1px solid #f5f5f5; }
  .nx-mobile-brand { display: flex; align-items: center; gap: 6px; flex-shrink: 0; height: 36px; }
  .nx-mobile-brand img { max-width: 118px; height: 34px; object-fit: contain; }
  .nx-mobile-brand > img[alt=""] { width: 28px; height: 28px; }
  .nx-mobile-brand > img + span { color: var(--nx-brand); font-size: 18px; font-weight: 700; letter-spacing: -.5px; }
  .nx-mobile-brand .nx-logo-mark { width: 26px; height: 26px; flex-basis: 26px; }
  .nx-mobile-brand .nx-logo-name { font-size: 18px; }
  .nx-mobile-header .nx-search { max-width: 180px; height: 32px; padding-left: 12px; }
  .nx-mobile-header .nx-search-input { font-size: 11px; }
  .nx-mobile-header > .nx-icon-button { width: 32px; height: 32px; }
  .nx-mobile-nav { position: fixed; right: 24px; bottom: max(16px, env(safe-area-inset-bottom)); left: 24px; z-index: 100; display: flex; align-items: stretch; justify-content: space-around; height: 60px; padding: 5px 10px; border: 1px solid #f4f4f4; border-radius: 15px; background: #fffffffa; box-shadow: 0 2px 18px #00000012; backdrop-filter: blur(12px); }
  .nx-mobile-nav-item { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; color: #999 !important; font-size: 10px; }
  .nx-mobile-nav-item svg { width: 22px; height: 22px; }
  .nx-mobile-nav-item.is-active { color: var(--nx-brand) !important; }
  .nx-main { padding-top: 16px; padding-bottom: 28px; }
  .nx-categories { gap: 6px; margin: -8px -15px 16px; padding: 0 12px; height: 36px; }
  .nx-categories.nx-wrap { width: 100%; margin: -8px auto 16px; padding-inline: 15px; }
  .nx-categories nav, .nx-category-list { gap: 4px; }
  .nx-category { min-height: 30px; padding: 5px 10px; font-size: 12px; }
  .nx-filter-toggle { gap: 3px; padding: 5px 2px 5px 8px; font-size: 11px; }
  .nx-filter-toggle svg { width: 15px; height: 15px; }
  .nx-filters { margin-bottom: 16px; padding: 12px; }
  .nx-filter-row { gap: 6px; margin-top: 10px; }
  .nx-filter-row > div { gap: 6px; }
  .nx-filter-label { min-width: 34px; font-size: 11px; }
  .nx-chip { min-height: 28px; padding: 4px 9px; font-size: 11px; }
  .nx-hero { border-radius: 8px; }
  .nx-hero-copy { left: 18px; bottom: 18px; max-width: 75%; }
  .nx-eyebrow { margin-bottom: 5px; font-size: 8px; letter-spacing: 1px; }
  .nx-hero-title { margin-bottom: 0; font-size: 23px; line-height: 1.3; }
  .nx-hero-description, .nx-hero-copy > .nx-button { display: none; }
  .nx-hero-dots { right: 14px; bottom: 14px; gap: 5px; }
  .nx-hero-dot { width: 5px; height: 5px; }
  .nx-hero-dot.is-active { width: 15px; }
  .nx-section { margin-top: 24px; }
  .nx-section-head { gap: 10px; margin-bottom: 12px; }
  .nx-section-title { font-size: 18px; line-height: 25px; }
  .nx-more { font-size: 11px; }
  .nx-more svg { width: 14px; height: 14px; }
  .nx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 9px; }
  .nx-scroll-grid { display: flex; gap: 9px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .nx-scroll-grid::-webkit-scrollbar { display: none; }
  .nx-scroll-grid > .nx-card { flex: 0 0 calc((100% - 18px) / 3); scroll-snap-align: start; }
  .nx-card-cover { border-radius: 6px; }
  .nx-card-title { margin: 7px 0 3px; font-size: 12px; line-height: 18px; }
  .nx-card-meta { gap: 3px; font-size: 9px; line-height: 15px; }
  .nx-card-episode { right: 5px; bottom: 5px; font-size: 10px; }
  .nx-badge { top: 4px; right: 4px; padding: 1px 4px; border-radius: 3px; font-size: 9px; }
  .nx-promo { gap: 14px; margin-top: 24px; padding: 18px 16px; border-radius: 8px; }
  .nx-promo-copy h2, .nx-promo-copy h3 { margin-bottom: 4px; font-size: 15px; }
  .nx-promo-copy p { font-size: 10px; }
  .nx-promo-icon { width: 32px; height: 32px; }
  .nx-promo .nx-button { min-height: 32px; padding: 5px 13px; font-size: 11px; }
  .nx-button { min-height: 38px; padding: 8px 20px; font-size: 12px; }
  .nx-footer-inner { padding-top: 26px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .nx-footer-inner .nx-brand { width: auto; height: 36px; justify-content: center; margin-bottom: 12px; }
  .nx-footer-inner .nx-logo-mark { width: 25px; height: 25px; flex-basis: 25px; }
  .nx-footer-inner .nx-logo-name { font-size: 17px; }
  .nx-footer-links { gap: 10px 16px; margin: 14px 0; font-size: 11px; }
  .nx-footer-copy { margin-bottom: 5px; font-size: 10px; line-height: 19px; }
  .nx-breadcrumb { gap: 6px; margin-bottom: 18px; font-size: 11px; }
  .nx-page-head { margin-bottom: 20px; gap: 8px; }
  .nx-page-title { font-size: 22px; line-height: 30px; }
  .nx-subtitle { font-size: 11px; }
  .nx-pagination { gap: 6px; margin-top: 28px; }
  .nx-page-link { min-width: 32px; min-height: 32px; padding: 6px 10px; font-size: 12px; }
  .nx-empty { min-height: 260px; padding: 36px 16px; }
  .nx-empty-art { width: 74px; height: 74px; margin-bottom: 16px; }
  .nx-empty-art svg { width: 36px; height: 36px; }
  .nx-empty-title { font-size: 15px; }
  .nx-empty p { font-size: 11px; }
  .nx-detail-grid { display: flex; flex-direction: column; gap: 20px; }
  .nx-detail-summary { width: 100%; }
  .nx-detail-title { margin-bottom: 8px; font-size: 22px; }
  .nx-detail-meta { margin-bottom: 12px; font-size: 11px; }
  .nx-player { border-radius: 8px; }
  .nx-play-button { width: 48px; height: 48px; }
  .nx-play-button svg { width: 22px; height: 22px; }
  .nx-player-label { right: 10px; bottom: 48px; left: 10px; font-size: 10px; }
  .nx-inline-actions { gap: 16px; margin: 14px 0; }
  .nx-text-button { font-size: 12px; }
  .nx-tags { gap: 6px; margin: 12px 0; }
  .nx-tags a, .nx-tags span { padding: 3px 8px; font-size: 10px; }
  .nx-description { font-size: 12px; }
  .nx-detail-tabs { gap: 28px; margin-top: 24px; padding-bottom: 12px; }
  .nx-detail-tabs button, .nx-detail-tabs a { font-size: 16px; }
  .nx-detail-tabs .is-active::after { bottom: -13px; }
  .nx-episodes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .nx-episode { min-height: 38px; padding: 7px 4px; font-size: 12px; }
  .nx-status { padding: 10px 12px; font-size: 11px; }
  .nx-tag-cloud { gap: 10px; margin-top: 20px; }
  .nx-tag-link { gap: 8px; min-height: 38px; padding: 8px 14px; font-size: 12px; }
  .nx-tag-count { font-size: 10px; }
  .nx-surface { padding: 20px 16px; border-radius: 10px; }
  .nx-home-address { margin-top: 0; }
  .nx-home-address > .nx-logo-mark { width: 48px; height: 48px; }
  .nx-address-row { gap: 10px; padding: 14px 12px; }
  .nx-address-row strong { font-size: 12px; }
  .nx-address-row span, .nx-address-row p { font-size: 10px; }
  .nx-address-row .nx-button { min-height: 32px; padding: 5px 12px; font-size: 10px; }
  .nx-home-steps { gap: 8px; margin-top: 20px; }
  .nx-home-steps > h2 { font-size: 15px; }
  .nx-home-steps > li, .nx-home-steps > div { padding: 16px 8px; }
  .nx-home-steps strong { margin: 9px 0 6px; font-size: 12px; }
  .nx-home-steps p { font-size: 10px; }
  .nx-info-layout { display: block; }
  .nx-info-nav { flex-direction: row; gap: 6px; margin-bottom: 22px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
  .nx-info-nav a { flex-shrink: 0; padding: 7px 10px; font-size: 12px; }
  .nx-prose { font-size: 12px; line-height: 1.9; }
  .nx-prose h1 { font-size: 22px; }
  .nx-prose h2 { margin-top: 24px; font-size: 16px; }
  .nx-prose h3 { font-size: 14px; }
  .nx-profile-hero { gap: 14px; padding: 22px 16px; flex-wrap: wrap; }
  .nx-profile-avatar { width: 64px; height: 64px; border-width: 3px; font-size: 24px; }
  .nx-profile-avatar svg { width: 30px; height: 30px; }
  .nx-profile-info h1, .nx-profile-info h2 { margin-bottom: 4px; font-size: 20px; }
  .nx-profile-info p { margin-bottom: 8px; font-size: 11px; }
  .nx-profile-info .nx-inline-actions { gap: 10px; }
  .nx-profile-hero > .nx-button { min-height: 30px; padding: 4px 12px; font-size: 11px; }
  .nx-profile-wallets { gap: 10px; margin-top: 12px; }
  .nx-wallet { gap: 10px; padding: 16px 12px; }
  .nx-wallet h2, .nx-wallet h3 { margin-bottom: 4px; font-size: 14px; }
  .nx-wallet p { font-size: 10px; }
  .nx-wallet strong { font-size: 20px; }
  .nx-wallet .nx-button { min-height: 28px; padding: 4px 12px; font-size: 10px; }
  .nx-panel { margin-top: 20px; padding: 16px 12px; }
  .nx-panel-tabs { gap: 26px; padding-bottom: 14px; }
  .nx-panel-tabs a, .nx-panel-tabs button { font-size: 14px; }
  .nx-form { gap: 16px; }
  .nx-input { height: 42px; padding: 9px 12px; font-size: 13px; }
  .nx-setting-row { gap: 14px; padding-block: 18px; }
  .nx-setting-row strong { font-size: 13px; }
  .nx-setting-row p { font-size: 11px; }
  .nx-pay-top { padding: 16px 12px 24px; }
  .nx-pay-top h1 { font-size: 24px; }
  .nx-pay-top p { font-size: 11px; }
  .nx-pay-icon { width: 60px; height: 60px; margin-bottom: 12px; }
  .nx-pay-icon svg { width: 32px; height: 32px; }
  .nx-pay-balance { font-size: 12px; }
  .nx-pay-panel { padding: 20px 14px; border-radius: 10px; }
  .nx-pay-panel > h2 { margin-bottom: 16px; font-size: 16px; }
  .nx-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .nx-plan { min-height: 128px; padding: 22px 10px 16px; }
  .nx-plan-title { margin-bottom: 8px; font-size: 14px; }
  .nx-plan-price { font-size: 25px; }
  .nx-plan-desc { font-size: 11px; }
  .nx-pay-summary { gap: 12px; margin-top: 22px; padding-top: 20px; }
  .nx-pay-summary strong { font-size: 24px; }
  .nx-pay-summary .nx-button { min-width: 150px; padding-inline: 18px; }
  .nx-payment-methods { gap: 7px; margin-top: 18px; font-size: 11px; }
  .nx-privileges { gap: 8px; margin-top: 20px; }
  .nx-privilege { padding: 18px 8px; }
  .nx-privilege svg { width: 24px; height: 24px; }
  .nx-privilege h3 { margin: 10px 0 5px; font-size: 12px; }
  .nx-privilege p { font-size: 10px; }
  .nx-dialog { padding: 28px 24px; }
  .nx-dialog-head h2 { font-size: 22px; }
  .nx-dialog-tabs { gap: 30px; }
  .nx-dialog-tabs button { font-size: 17px; }
  .nx-toast { bottom: calc(96px + env(safe-area-inset-bottom)); padding: 10px 16px; font-size: 12px; }
  .nx-dialog .nx-toast { bottom: 0; }
}

@media (max-width: 360px) {
  .nx-wrap { width: calc(100% - 24px); }
  .nx-mobile-header { padding-inline: 12px; }
  .nx-mobile-header .nx-search { max-width: 140px; }
  .nx-mobile-brand .nx-logo-name { font-size: 16px; }
  .nx-categories { margin-inline: -12px; padding-inline: 9px; }
  .nx-categories.nx-wrap { margin-inline: auto; padding-inline: 12px; }
  .nx-hero-title { font-size: 20px; }
  .nx-hero-copy { left: 15px; bottom: 15px; }
  .nx-hero-dots { right: 12px; bottom: 12px; }
  .nx-promo { flex-wrap: wrap; }
  .nx-promo-copy { flex: 1; }
  .nx-pay-summary .nx-button { min-width: 125px; padding-inline: 12px; }
  .nx-profile-hero { gap: 12px; padding: 20px 12px; }
  .nx-wallet { padding: 14px 10px; }
  .nx-episodes { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .nx-body *, .nx-body *::before, .nx-body *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
