/* 全页禁止选中文本（输入框除外），配合脚本拦截复制 */
body, body *:not(input):not(textarea) {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* 自定义右键菜单 */
.custom-context-menu {
  position: fixed;
  z-index: 99999;
  min-width: 140px;
  padding: 6px;
  border: 1px solid rgba(120, 180, 255, 0.36);
  border-radius: 10px;
  background: rgba(10, 19, 40, 0.95);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.custom-context-menu__item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  text-align: left;
  color: #dcecff;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.custom-context-menu__item:hover {
  background: rgba(72, 146, 255, 0.22);
}
:root {
  /* 手机专用布局上限。勿用 520px：视口在地址栏/滚动条附近抖动时会与 521px+ 规则来回切换导致布局「突然变形」 */
  --phone-max: 640px;
  /* 专业资源站：降低饱和度与“发光感”，更耐看 */
  --bg: #0c1429;
  --bg-2: #121f3d;
  --panel: rgba(12, 20, 40, 0.62);
  --panel-border: rgba(160, 195, 255, 0.09);
  --text: rgba(235, 243, 255, 0.92);
  --muted: rgba(184, 204, 235, 0.88);
  --primary: #78a9ff;
  --primary-2: #7fe0ff;
  --notice-bg: linear-gradient(90deg, rgba(126, 224, 255, 0.14), rgba(127, 171, 255, 0.16));
  /* 与游侠网等国内门户相近：优先微软雅黑 UI / 微软雅黑 / 苹方（系统自带，无需外联字体） */
  --font-sans: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Heiti SC",
    "WenQuanYi Micro Hei", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* 顶栏主按钮 / 下拉触发 / 子菜单项：同一套尺寸与圆角，保证 1:1 */
  --ui-nav-pill-fs: 15px;
  --ui-nav-pill-lh: 1.25;
  --ui-nav-pill-py: 9px;
  --ui-nav-pill-px: 16px;
  --ui-nav-pill-radius: 11px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  color-scheme: dark;
  /* 允许页面自然纵向滚动（分类较多时由页面滚动条承载） */
  overflow-y: auto;
  /* 与 .topbar{position:sticky} 配合：scrollIntoView 等滚动锚点不会把内容顶到顶栏下方被遮挡 */
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--sticky-topbar-h, 80px));
}
body {
  margin: 0;
  color: var(--text);
  overflow-y: auto;
  background: radial-gradient(1200px 700px at 15% -10%, rgba(58, 95, 168, 0.68) 0%, transparent 68%),
              radial-gradient(1100px 800px at 90% -5%, rgba(61, 84, 152, 0.62) 0%, transparent 62%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  font-family: var(--font-sans);
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: 0.012em;
}

/* 详情模式：点击卡片后只展示详情（隐藏卡片列表等） */
body.detail-only #resourceList,
body.detail-only .pager-page-row,
body.detail-only #homeHotStripMount,
body.detail-only #categoryContextBar,
body.detail-only #categoryTabs,
body.detail-only #subCategoryTabs,
body.detail-only #statsBarTop,
body.detail-only #statsBarPage {
  display: none !important;
}
body.detail-only #embeddedDetailExperience {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
body.detail-only #embeddedDetailPanel {
  display: block !important;
}

@media (min-width: 521px) {
  html {
    overflow-x: auto;
  }
  .container {
    width: max(1000px, min(1480px, calc(100vw - 48px)));
  }
}
body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: -5;
  pointer-events: none;
  background:
    radial-gradient(36% 28% at 12% 24%, rgba(122, 169, 255, 0.17), transparent 74%),
    radial-gradient(42% 34% at 82% 16%, rgba(94, 226, 255, 0.13), transparent 76%),
    radial-gradient(38% 32% at 56% 86%, rgba(131, 137, 255, 0.11), transparent 74%);
  animation: dreamFlow 22s ease-in-out infinite alternate;
}

#particleBg {
  position: fixed;
  inset: 0;
  z-index: -4;
}
.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.18;
  z-index: -3;
}
.orb-a { width: 240px; height: 240px; left: 8%; top: 16%; background: rgba(90, 139, 255, 0.48); }
.orb-b { width: 320px; height: 320px; right: 10%; top: 10%; background: rgba(81, 215, 255, 0.42); }
.orb-a { animation: orbFloatA 13s ease-in-out infinite; }
.orb-b { animation: orbFloatB 16s ease-in-out infinite; }
.bg-orb::after {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: inherit;
  border: 1px solid rgba(170, 215, 255, 0.18);
  opacity: 0.32;
  animation: orbPulse 5.6s ease-in-out infinite;
}
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 24%, rgba(160, 205, 255, 0.045) 50%, transparent 76%);
  transform: translateX(-80%);
  animation: gridSweep 13s linear infinite;
}
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(120, 170, 255, 0.032) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 170, 255, 0.032) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 95%);
  z-index: -2;
}

.container {
  width: min(1480px, calc(100vw - 48px));
  margin: 0 auto;
}
.topbar .container {
  overflow: visible;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: visible;
  backdrop-filter: saturate(104%) blur(16px);
  -webkit-backdrop-filter: saturate(104%) blur(16px);
  border-bottom: 1px solid rgba(160, 195, 255, 0.08);
  background: rgba(10, 18, 36, 0.6);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  overflow: visible;
}
.brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 18px;
}
.brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  display: block;
  letter-spacing: 1px;
  background: linear-gradient(90deg, rgba(225, 236, 255, 0.92), rgba(160, 205, 255, 0.86), rgba(205, 248, 255, 0.86), rgba(225, 236, 255, 0.92));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandFlow 9s linear infinite;
}
.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(120, 189, 255, 0.16);
  transform-origin: center;
  animation: brandLogoPulse 3.2s ease-in-out infinite;
}
.ad-rail-mobile {
  display: none;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(175, 225, 255, 0.42);
  color: rgba(235, 247, 255, 0.92);
  background: linear-gradient(135deg, rgba(103, 177, 255, 0.5), rgba(105, 106, 255, 0.42));
  box-shadow: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.6;
  white-space: nowrap;
}
/* 若旧模板仍把 badge 放在站名里，强制隐藏，避免跑到左侧 */
.brand h1 .brand-badge {
  display: none !important;
}
.brand-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  text-align: left;
  position: relative;
  z-index: 2;
}
.brand-side .brand-badge { order: 1; }
.brand-side p { order: 2; }
.brand-side > .brand-badge {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.brand-side p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
/* 再次兜底：左侧站名区不显示任何 badge，避免“跑到左边” */
.brand-main .brand-badge {
  display: none !important;
}
.brand-side p::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 210, 255, 0.5), transparent);
  opacity: 0.45;
  animation: subtitleGlow 3.2s ease-in-out infinite;
}
.nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  overflow: visible;
  min-width: 0;
}
/* 主链接、下拉父按钮、子菜单项：同一变量与盒模型，视觉 1:1 */
.nav a,
.nav-dropdown-trigger,
.nav-submenu a {
  box-sizing: border-box;
  font-size: var(--ui-nav-pill-fs);
  line-height: var(--ui-nav-pill-lh);
  padding: var(--ui-nav-pill-py) var(--ui-nav-pill-px);
  min-height: 38px;
  border-radius: var(--ui-nav-pill-radius);
  border: 1px solid rgba(150, 185, 240, 0.2);
  background: linear-gradient(180deg, rgba(40, 64, 110, 0.32), rgba(22, 38, 72, 0.34));
  box-shadow: inset 0 0 0 1px rgba(114, 151, 231, 0.06);
  color: #dfeaff;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* 详情模式：一级分类在圆角详情壳（`.embedded-detail-shell`）之外，与本容器同宽对齐 */
.embedded-detail-experience {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--sticky-topbar-h, 80px) + 12px);
}

/* 关闭详情时依赖 [hidden]；必须压过本类的 display:flex，以及 html.boot-direct-detail 下的 !important，否则会仍显示整块详情 */
#embeddedDetailExperience[hidden],
.embedded-detail-experience[hidden] {
  display: none !important;
}
body.detail-only #embeddedDetailExperience[hidden] {
  display: none !important;
}

/* 直达详情（?rid=）：避免刷新时先闪“综合列表”再进详情 */
html.boot-direct-detail #resourceList,
html.boot-direct-detail .pager-page-row,
html.boot-direct-detail #homeHotStripMount,
html.boot-direct-detail #categoryContextBar,
html.boot-direct-detail #categoryTabs,
html.boot-direct-detail #subCategoryTabs,
html.boot-direct-detail #statsBarTop,
html.boot-direct-detail #statsBarPage {
  display: none !important;
}
html.boot-direct-detail #embeddedDetailExperience {
  display: flex !important;
}
html.boot-direct-detail #embeddedDetailPanel {
  display: block !important;
}

.embedded-detail-boot {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  box-sizing: border-box;
}
.embedded-detail-boot__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--panel-border) 90%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-2) 58%, transparent),
    color-mix(in srgb, var(--bg) 74%, transparent)
  );
  box-shadow: var(--ed-elev-1), var(--ed-inset);
}
.embedded-detail-boot__spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--primary) 55%, rgba(255, 255, 255, 0.12));
  border-top-color: rgba(255, 255, 255, 0.92);
  animation: embeddedDetailBootSpin 0.9s linear infinite;
  flex: 0 0 auto;
}
.embedded-detail-boot__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.embedded-detail-boot__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
@keyframes embeddedDetailBootSpin {
  to {
    transform: rotate(360deg);
  }
}

/* 页面内嵌详情区（净源搜主题：仅用 --bg / --panel / --primary 等语义色） */
.embedded-detail-panel {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 详情页顶部：复用 `.category-tabs` 视觉；与下方 `.embedded-detail-shell` 同最大宽度居中 */
.embedded-detail-root-tabs {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 详情区：更“立体”的专业质感（分层阴影 + 高光边 + 玻璃渐变） */
:root {
  --ed-elev-1: 0 10px 26px rgba(0, 0, 0, 0.28);
  --ed-elev-2: 0 22px 54px rgba(0, 0, 0, 0.34);
  --ed-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  --ed-border-hi: rgba(210, 235, 255, 0.22);
}
.embedded-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 2px;
  padding: 0 2px 0;
}
.embedded-detail-head h3 {
  margin: 0;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.22;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.embedded-detail-title-decor {
  color: color-mix(in srgb, var(--primary) 72%, white);
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1;
  opacity: 0.95;
}
.embedded-detail-title-text {
  display: inline-block;
}
.embedded-detail-copyable {
  cursor: pointer;
}
.embedded-detail-copyable:hover {
  color: color-mix(in srgb, var(--primary) 80%, white);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#embeddedDetailPanel .meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
#embeddedDetailCloseBtn {
  border: 1px solid var(--panel-border);
  background: rgba(12, 20, 40, 0.55);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s ease, filter 0.18s ease;
}
#embeddedDetailCloseBtn:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--panel-border));
  filter: brightness(1.06);
}
.embedded-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
}
.embedded-detail-topcard,
.embedded-detail-bottomcard,
.embedded-detail-tabs {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-2) 56%, transparent),
    color-mix(in srgb, var(--bg) 68%, transparent)
  );
  box-shadow:
    var(--ed-elev-2),
    var(--ed-inset);
  position: relative;
  overflow: hidden;
}
.embedded-detail-topcard::before,
.embedded-detail-bottomcard::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -40%;
  width: 140%;
  height: 120%;
  background:
    radial-gradient(closest-side at 20% 18%, rgba(120, 190, 255, 0.16), transparent 62%),
    radial-gradient(closest-side at 82% 26%, rgba(110, 130, 255, 0.10), transparent 60%),
    radial-gradient(closest-side at 60% 88%, rgba(60, 120, 255, 0.08), transparent 62%);
  pointer-events: none;
  filter: blur(0.2px);
  opacity: 0.85;
}
.embedded-detail-topcard::after,
.embedded-detail-bottomcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 14px 22px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}
/* 详情正文区域按需求去掉“外层容器”视觉，仅保留内容本身 */
.embedded-detail-tabs {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.embedded-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .embedded-detail-hero {
    grid-template-columns: 1fr;
  }
}
.embedded-detail-media-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.embedded-detail-main {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    var(--ed-elev-2),
    var(--ed-inset);
}
.embedded-detail-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px var(--ed-border-hi),
    inset 0 18px 26px rgba(255, 255, 255, 0.02);
}
.embedded-detail-main__stage {
  width: 100%;
  height: 100%;
  display: block;
}
.embedded-detail-main-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  color: var(--text);
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, border-color 0.18s ease, filter 0.18s ease;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.embedded-detail-main:hover .embedded-detail-main-nav,
.embedded-detail-main:focus-within .embedded-detail-main-nav {
  opacity: 0.92;
  pointer-events: auto;
}
.embedded-detail-main-nav:hover {
  transform: translateY(-50%) !important;
  border-color: color-mix(in srgb, var(--primary) 40%, var(--panel-border));
  filter: brightness(1.05);
}
.embedded-detail-main-nav:active,
.embedded-detail-main-nav:focus-visible {
  transform: translateY(-50%) !important;
}
.embedded-detail-main-nav--left { left: 10px; }
.embedded-detail-main-nav--right { right: 10px; }
.embedded-detail-main__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.embedded-detail-main__video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: cover;
}
.embedded-detail-main__placeholder {
  padding: 36px 20px;
  color: var(--muted);
  font-size: 14px;
}
.embedded-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.embedded-detail-thumb-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 10px;
  border: 1px solid color-mix(in srgb, var(--panel-border) 85%, transparent);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 62%, transparent),
    color-mix(in srgb, var(--bg-2) 80%, transparent)
  );
  box-shadow: var(--ed-elev-1), var(--ed-inset);
}
.embedded-detail-thumbs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 2px 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.embedded-detail-thumbs-row.is-dragging {
  scroll-behavior: auto !important;
}
.embedded-detail-thumbs-row::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.embedded-detail-thumbs-row::-webkit-scrollbar-thumb {
  background: transparent;
}
.embedded-detail-thumbs-row::-webkit-scrollbar-track {
  background: transparent;
}
.embedded-detail-thumbs-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 4px;
}
.embedded-detail-thumb-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}
.embedded-detail-thumb-nav-btn {
  width: 26px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);
  background: color-mix(in srgb, var(--bg-2) 70%, #000);
  color: color-mix(in srgb, var(--text) 86%, #9fb6d6);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}
.embedded-detail-thumb-nav-btn:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--panel-border));
  color: color-mix(in srgb, var(--text) 92%, white);
  background: color-mix(in srgb, var(--bg-2) 58%, #000);
}
.embedded-detail-thumb-progress {
  display: block;
  position: relative;
  height: 20px;
  border-radius: 2px;
  border: 1px solid color-mix(in srgb, var(--panel-border) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 76%, #000);
  overflow: hidden;
  touch-action: none;
}
.embedded-detail-thumb-progress-bar {
  position: absolute;
  left: 0%;
  top: 0;
  display: block;
  height: 100%;
  width: 18%;
  min-width: 16px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 38%, #2a3a55),
    color-mix(in srgb, var(--primary) 30%, #223049)
  );
  transform: none;
  border-radius: 1px;
  cursor: grab;
}
.embedded-detail-thumb-progress-bar:active {
  cursor: grabbing;
}
.embedded-detail-thumb {
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--panel-border) 78%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--bg-2) 82%, #000);
  cursor: pointer;
  overflow: hidden;
  width: 118px;
  height: 66px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.embedded-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.embedded-detail-thumb__vid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 19px;
  color: rgba(245, 250, 255, 0.96);
  background: rgba(8, 16, 32, 0.62);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  line-height: 1;
  padding: 6px 10px;
  z-index: 2;
  pointer-events: none;
}
.embedded-detail-thumb__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: color-mix(in srgb, var(--bg) 70%, #000);
  pointer-events: none;
}
.embedded-detail-thumb__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 19px;
  color: rgba(245, 250, 255, 0.96);
  background: rgba(8, 16, 32, 0.62);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  line-height: 1;
  padding: 6px 10px;
  z-index: 2;
  pointer-events: none;
}
.embedded-detail-thumb:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--panel-border));
}
.embedded-detail-thumb--active {
  border-color: color-mix(in srgb, var(--primary) 60%, white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 32%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent);
}
.embedded-detail-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.embedded-detail-side > * {
  position: relative;
}
.embedded-detail-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.embedded-detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  font-size: 12px;
  line-height: 1.2;
}
.embedded-detail-pill__k { color: var(--muted); }
.embedded-detail-pill__v { color: var(--text); font-weight: 700; }
.embedded-detail-sep {
  display: none;
}
.embedded-detail-side-cover-wrap {
  display: flex;
  justify-content: center;
}
.embedded-detail-side-cover {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
}
.embedded-detail-alias {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.embedded-detail-brief {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.55;
}
.embedded-detail-facts {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  box-shadow: var(--ed-elev-1), var(--ed-inset);
}
.embedded-detail-fact {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  padding: 3px 2px;
}
.embedded-detail-fact__dt {
  color: var(--muted);
  letter-spacing: 0.02em;
}
.embedded-detail-fact__dd {
  color: var(--text);
  word-break: break-word;
}
.embedded-detail-tags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.embedded-detail-tags-card {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  box-shadow: var(--ed-elev-1), var(--ed-inset);
}
.embedded-detail-tags-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.embedded-detail-tag {
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  color: var(--text);
  background: color-mix(in srgb, var(--bg-2) 78%, transparent);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.embedded-detail-tag--placeholder {
  color: var(--muted);
}
.embedded-detail-tags--empty {
  grid-template-columns: 1fr;
}
.embedded-detail-disk__title,
.embedded-detail-block__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.embedded-detail-disk {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  box-shadow: var(--ed-elev-1), var(--ed-inset);
}
.embedded-detail-disk-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.embedded-detail-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 2px;
}
.embedded-detail-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.embedded-detail-tab {
  border: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--muted);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.embedded-detail-tab:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--panel-border));
  color: var(--text);
}
.embedded-detail-tab.is-active {
  border-color: color-mix(in srgb, var(--primary) 60%, var(--panel-border));
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 14%, var(--bg-2));
}
.embedded-detail-tabpanel {
  min-height: 120px;
}

.embedded-detail-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  align-items: start;
}
@media (max-width: 980px) {
  .embedded-detail-lower {
    grid-template-columns: 1fr;
  }
}

.embedded-req-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--panel-border) 92%, transparent);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(900px 260px at 18% 0%, rgba(120, 190, 255, 0.12), transparent 58%),
    radial-gradient(760px 240px at 92% 18%, rgba(120, 140, 255, 0.10), transparent 55%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-2) 58%, transparent),
      color-mix(in srgb, var(--bg) 74%, transparent)
    );
  box-shadow:
    var(--ed-elev-1),
    var(--ed-inset);
}
.embedded-req-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px var(--ed-border-hi),
    inset 0 18px 26px rgba(255, 255, 255, 0.02);
}
.embedded-req-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px -2px 12px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--panel-border) 86%, transparent);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--primary) 18%, transparent),
    transparent 62%
  );
  border-radius: 12px 12px 0 0;
}
.embedded-req-head h4 {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.02em;
  font-weight: 800;
}
.embedded-req-gear {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--panel-border) 88%, transparent);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: color-mix(in srgb, var(--primary) 82%, white);
}
.embedded-req-list {
  display: grid;
  gap: 8px;
}
.embedded-req-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--panel-border) 88%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 66%, transparent),
    color-mix(in srgb, var(--bg-2) 78%, transparent)
  );
  font-size: 12px;
  line-height: 1.45;
  position: relative;
  transition: border-color 0.16s ease, transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}
.embedded-req-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 70%, transparent),
    color-mix(in srgb, var(--primary) 18%, transparent)
  );
  opacity: 0.55;
  pointer-events: none;
}
.embedded-req-item:hover {
  border-color: color-mix(in srgb, var(--primary) 34%, var(--panel-border));
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.embedded-req-item__k {
  color: color-mix(in srgb, var(--muted) 92%, #bcd7ff);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-left: 10px;
}
.embedded-req-item__v {
  color: color-mix(in srgb, var(--text) 92%, #eaf2ff);
  word-break: break-word;
  font-weight: 650;
}
.embedded-req-item--skeleton .embedded-req-item__v { color: var(--muted); }
.embedded-detail-extra {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
}
.embedded-detail-extra-inner {
  display: grid;
  gap: 8px;
}
.embedded-detail-article {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.embedded-detail-block {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--bg-2) 50%, transparent);
}
.embedded-detail-prose {
  color: var(--text);
  line-height: 1.72;
  font-size: 14px;
  overflow: hidden;
}
.embedded-detail-prose img,
.embedded-detail-prose video,
.embedded-detail-prose iframe {
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 8px auto;
  border-radius: 8px;
}
.embedded-detail-prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--panel-border);
}

/* 再兜底：详情容器内任何富媒体都不允许超出容器（覆盖第三方内联样式） */
#embeddedDetailContent img,
#embeddedDetailContent video,
#embeddedDetailContent iframe {
  max-width: 100% !important;
  height: auto !important;
}
.embedded-rich-video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.embedded-rich-video-wrap .notice-body-video,
.embedded-rich-video-wrap .embedded-detail-inline-video,
.embedded-rich-video-wrap video {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 8px;
}
.embedded-rich-video-toggle {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(8, 16, 32, 0.66);
  color: rgba(245, 250, 255, 0.96);
  line-height: 1;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.embedded-rich-video-wrap:hover .embedded-rich-video-toggle {
  display: inline-flex;
}
.embedded-detail-prose--rich .detail-body-block {
  color: var(--text);
}
#embeddedDetailContent .detail-stack {
  display: grid;
  gap: 10px;
}
#embeddedDetailContent .detail-layer {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg-2) 45%, transparent);
}
.embedded-detail-prose--rich .detail-stack,
.embedded-detail-prose--rich .detail-layer {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#embeddedDetailContent .detail-desc-block,
#embeddedDetailContent .detail-body-block {
  color: var(--text);
  line-height: 1.7;
}
#embeddedDetailContent .detail-unzip-block {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}
#embeddedDetailContent .detail-unzip-label {
  color: var(--muted);
  font-size: 12px;
}
#embeddedDetailContent .detail-unzip-code {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--text);
  border: 1px solid var(--panel-border);
}
.embedded-disk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@keyframes embedded-disk-nudge {
  0%,
  86%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  88% {
    transform: translate3d(-1px, 0, 0) rotate(-0.35deg);
  }
  90% {
    transform: translate3d(1px, 0, 0) rotate(0.35deg);
  }
  92% {
    transform: translate3d(-1px, 0, 0) rotate(-0.25deg);
  }
  94% {
    transform: translate3d(1px, 0, 0) rotate(0.25deg);
  }
  96% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

/* 内嵌详情下载按钮：更紧凑，支持多个按钮并排展示 */
#embeddedDetailContent .embedded-disk-links .detail-disk-link {
  width: auto;
  min-width: 96px;
  max-width: 180px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.22),
    0 8px 18px rgba(0, 8, 28, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: embedded-disk-nudge 7.2s ease-in-out infinite;
  will-change: transform;
}
#embeddedDetailContent .embedded-disk-links .detail-disk-link:hover {
  transform: translateY(-1px) scale(1.01);
  animation: none;
}
#embeddedDetailContent .embedded-disk-links .detail-disk-link:focus-visible {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  #embeddedDetailContent .embedded-disk-links .detail-disk-link {
    animation: none;
  }
}
.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav a:hover,
.nav-dropdown-trigger:hover,
.nav-submenu a:hover {
  filter: brightness(1.1);
  border-color: rgba(165, 205, 255, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(114, 151, 231, 0.1),
    0 0 14px rgba(100, 160, 255, 0.22);
}
.nav a:active,
.nav-dropdown-trigger:active,
.nav-submenu a:active {
  filter: brightness(0.88);
}
.nav a.active {
  border-color: rgba(145, 191, 255, 0.64);
  background: linear-gradient(180deg, rgba(83, 129, 226, 0.42), rgba(46, 80, 165, 0.3));
  box-shadow: 0 0 12px rgba(104, 157, 255, 0.16), inset 0 0 0 1px rgba(160, 210, 255, 0.16);
}
.nav a.active:hover,
.nav a.nav-sort-latest-active:hover {
  filter: brightness(1.06);
  border-color: rgba(160, 210, 255, 0.72);
}
.nav a.nav-sort-latest-active {
  border-color: rgba(186, 228, 255, 0.88);
  background: linear-gradient(180deg, rgba(100, 160, 255, 0.52), rgba(56, 95, 195, 0.42));
  box-shadow:
    0 0 14px rgba(120, 185, 255, 0.24),
    inset 0 0 0 1px rgba(210, 236, 255, 0.24);
  color: #ffffff;
}
.nav a:focus-visible,
.nav-dropdown-trigger:focus-visible,
.nav-submenu a:focus-visible {
  outline: 2px solid rgba(166, 215, 255, 0.85);
  outline-offset: 2px;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 30;
  /* 由 app.js 写入父按钮像素宽度，子菜单与父按钮同宽 */
  --nav-dd-trigger-w: auto;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.nav-dropdown.open .nav-dropdown-trigger {
  filter: brightness(1.08);
  border-color: rgba(175, 210, 255, 0.52);
  box-shadow:
    inset 0 0 0 1px rgba(114, 151, 231, 0.12),
    0 0 16px rgba(100, 160, 255, 0.24);
}
/* 仅作纵向排列容器：不要深色底板/描边（避免出现「一圈黑」包住子按钮） */
.nav-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
  box-sizing: border-box;
  width: var(--nav-dd-trigger-w, max-content);
  min-width: min(var(--nav-dd-trigger-w, 100%), 100%);
  max-width: min(360px, calc(100vw - 16px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}
/* 下拉整体超出右缘时改为右对齐，整颗面板留在视口内 */
.nav-submenu.nav-submenu--align-end {
  left: auto;
  right: 0;
}
.nav-dropdown.open .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-submenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-submenu a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.notice-wrap {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.notice-banner {
  border: 1px solid rgba(160, 210, 255, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(130deg, rgba(111, 185, 255, 0.16), rgba(73, 120, 225, 0.06)),
    rgba(18, 36, 72, 0.52);
  box-shadow:
    inset 0 0 24px rgba(133, 200, 255, 0.08),
    0 6px 18px rgba(10, 24, 52, 0.18);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, background .25s ease;
}
.notice-banner:hover {
  border-color: rgba(180, 224, 255, 0.45);
  box-shadow:
    inset 0 0 24px rgba(138, 206, 255, 0.1),
    0 8px 22px rgba(12, 28, 58, 0.22);
}
.notice-trigger {
  width: 100%;
  border: none;
  background: transparent;
  color: #e5f5ff;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.notice-trigger:hover .notice-text { text-decoration: underline; }
.notice-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(123, 191, 255, 0.35), rgba(63, 117, 222, 0.2));
  box-shadow: inset 0 0 0 1px rgba(186, 226, 255, 0.35);
  font-size: 13px;
}
.notice-line {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.notice-badge-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.notice-badge-wrap:empty {
  display: none;
}
.notice-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.notice-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #e5f5ff;
}
.notice-text.title-by-badge { font-weight: 700; }
.notice-badge.res-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notice-pin-badge {
  box-shadow:
    0 0 0 1px rgba(255, 155, 155, 0.42),
    0 2px 10px rgba(255, 78, 108, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.notice-more {
  font-size: 12px;
  color: #b9dfff;
  border: 1px solid rgba(161, 214, 255, 0.42);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(71, 129, 215, 0.2);
}
.notice-banner a {
  color: #dff4ff;
  text-decoration: none;
  font-weight: 600;
}
.notice-banner a:hover { text-decoration: underline; }
.notice-single {
  overflow: hidden;
}
.notice-main-item {
  border-bottom: 1px solid rgba(138, 196, 255, 0.18);
}
.notice-single .notice-main-item:last-child {
  border-bottom: none;
}
/* 悬停 / 键盘聚焦展开：列表区约 5 行高，超出用滚动条（无「点击再展开」） */
.notice-all-list {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .28s ease, opacity .22s ease;
}
.notice-single.notice-expanded .notice-all-list,
.notice-single:focus-within .notice-all-list {
  /* 约 5 行：padding 12*2 + 内容 ~28px ≈ 52px/行 */
  max-height: calc(52px * 5 + 6px);
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(132, 187, 255, 0.88) rgba(14, 30, 61, 0.56);
}
.notice-single.notice-expanded .notice-all-list::-webkit-scrollbar,
.notice-single:focus-within .notice-all-list::-webkit-scrollbar {
  width: 8px;
}
.notice-single.notice-expanded .notice-all-list::-webkit-scrollbar-track,
.notice-single:focus-within .notice-all-list::-webkit-scrollbar-track {
  background: rgba(14, 30, 61, 0.56);
  border-radius: 999px;
}
.notice-single.notice-expanded .notice-all-list::-webkit-scrollbar-thumb,
.notice-single:focus-within .notice-all-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(145, 203, 255, 0.95), rgba(95, 145, 241, 0.95));
  border-radius: 999px;
  border: 1px solid rgba(182, 224, 255, 0.5);
}
.notice-sub-item {
  border-top: 1px solid rgba(138, 196, 255, 0.16);
  background: linear-gradient(90deg, rgba(82, 137, 234, 0.06), rgba(57, 106, 210, 0.03));
  transition: background .2s ease, border-color .2s ease;
}
.notice-sub-item:hover {
  border-top-color: rgba(163, 217, 255, 0.34);
  background: linear-gradient(90deg, rgba(108, 173, 255, 0.22), rgba(102, 131, 255, 0.16));
  animation: noticeItemShift 1.8s ease-in-out infinite alternate;
}
.notice-expand-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: none;
  border-top: 1px solid rgba(138, 196, 255, 0.16);
  background: linear-gradient(90deg, rgba(60, 110, 210, 0.22), rgba(40, 80, 160, 0.12));
  color: #b9dfff;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.notice-expand-toggle:hover {
  background: linear-gradient(90deg, rgba(90, 150, 240, 0.28), rgba(60, 110, 210, 0.18));
  color: #e8f4ff;
  filter: brightness(1.06);
}
.notice-expand-toggle:active {
  filter: brightness(0.92);
}
.notice-trigger.notice-roll-up {
  animation: noticeRollUp .36s ease;
}
@keyframes noticeRollUp {
  0% { transform: translateY(10px); opacity: 0.25; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes noticeItemShift {
  0% { filter: saturate(100%) brightness(1); }
  100% { filter: saturate(114%) brightness(1.06); }
}
/* 手机端多条通知默认收起，见 .notice-expand-toggle + app.js */
#noticeDialogLink {
  color: #dff4ff;
  text-decoration: none;
  border: 1px solid rgba(145, 201, 255, 0.55);
  border-radius: 10px;
  padding: 8px 12px;
}
#noticeDialogLink:hover {
  text-decoration: underline;
}

.demand-form {
  display: grid;
  gap: 10px;
}
#demandContentInput {
  min-height: 120px;
  resize: vertical;
}

.page-shell {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: start;
  /* 桌面保持宽布局：视口再窄也先横向滚动，而不是立刻切换移动布局 */
  min-width: 1360px;
  overflow-x: auto;
  overflow-y: visible;
}
.page-shell.page-shell--no-side-ads {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  overflow-x: visible;
}
.page-shell.page-shell--no-side-ads .ad-side {
  display: none !important;
}
.layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 160px minmax(0, 1fr);
}

/* 分类侧栏：不使用内层滚动，分类多时由页面自然滚动 */
#categoryPanel {
  max-height: none;
  overflow: visible;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 14px;
  backdrop-filter: saturate(104%) blur(16px);
  -webkit-backdrop-filter: saturate(104%) blur(16px);
  box-shadow:
    0 10px 32px rgba(6, 14, 32, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.resource-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: none;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.panel-title-row h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.chip {
  border: 1px solid rgba(160, 200, 255, 0.18);
  border-radius: 999px;
  padding: 2px 9px;
  color: rgba(226, 239, 255, 0.9);
  font-size: 12px;
}

#categoryList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
#categoryList .category-item {
  /* 桌面分类按钮再窄一些，给资源名列腾空间 */
  width: 86%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  padding: 6px 10px;
  min-height: 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e4edff;
  text-shadow: 0 1px 2px rgba(0, 12, 40, 0.22);
  border: 1px solid rgba(150, 188, 255, 0.28);
  background:
    linear-gradient(
      168deg,
      rgba(118, 168, 255, 0.22) 0%,
      rgba(72, 118, 210, 0.16) 40%,
      rgba(36, 64, 130, 0.38) 100%
    );
  box-shadow:
    0 5px 16px rgba(4, 12, 36, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -4px 10px rgba(0, 8, 32, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease,
    filter 0.2s ease,
    background 0.22s ease;
}
#categoryList .category-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 42%,
    transparent 100%
  );
  opacity: 0.85;
}
#categoryList .category-item:hover:not(.active) {
  transform: none;
  filter: brightness(1.08);
  border-color: rgba(175, 210, 255, 0.42);
  box-shadow:
    0 6px 18px rgba(4, 12, 36, 0.26),
    0 0 12px rgba(100, 160, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -4px 10px rgba(0, 8, 32, 0.12);
}
#categoryList .category-item:active:not(.active) {
  filter: brightness(0.9);
}
#categoryList .category-item.active {
  color: #f4f8ff;
  border-color: rgba(186, 224, 255, 0.72);
  background:
    linear-gradient(
      168deg,
      rgba(130, 190, 255, 0.38) 0%,
      rgba(82, 138, 240, 0.32) 38%,
      rgba(48, 88, 190, 0.52) 100%
    );
  box-shadow:
    0 6px 18px rgba(30, 90, 220, 0.18),
    0 0 14px rgba(120, 185, 255, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    inset 0 -6px 14px rgba(0, 20, 80, 0.2);
}
#categoryList .category-btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  min-height: 28px;
  padding: 0 8px;
  line-height: 1.15;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#categoryList .category-btn::before {
  display: none;
}
#categoryList .category-btn:hover,
#categoryList .category-btn.active {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  filter: none;
}
/* 父分类：纵向排列，子列表在文档流内展开，把下方兄弟项顶下去，避免绝对定位叠盖 */
#categoryList .category-item--parent {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
#categoryList .category-item--parent > .category-btn {
  flex-shrink: 0;
}
#categoryList .category-item--parent > .category-sublist {
  position: static;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
  transform: none;
  transition:
    opacity 0.18s ease,
    max-height 0.24s ease,
    padding 0.24s ease,
    visibility 0.18s ease;
  pointer-events: none;
  z-index: auto;
}
#categoryList .category-item--parent.open > .category-sublist,
#categoryList .category-item--parent:focus-within > .category-sublist {
  opacity: 1;
  visibility: visible;
  max-height: min(2000px, 85vh);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 6px;
  border: 1px solid rgba(150, 188, 240, 0.28);
  background: rgba(16, 30, 58, 0.92);
  box-shadow: 0 8px 20px rgba(8, 18, 44, 0.28);
  pointer-events: auto;
}
#categoryList .category-sublist > .category-item {
  width: 100%;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 9px;
  margin-bottom: 6px;
}
#categoryList .category-sublist > .category-item > .category-btn {
  font-size: 11px;
}
#categoryList .category-sublist > .category-item:last-child {
  margin-bottom: 0;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.toolbar-primary {
  display: flex;
  flex: 1 1 280px;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.toolbar-primary .search-scope-wrap {
  flex: 0 0 auto;
}
.toolbar-primary .search-wrap {
  flex: 1 1 120px;
  min-width: 0;
}
.toolbar-primary #searchBtn {
  flex: 0 0 auto;
}

/* 搜索区更聚焦：更大输入框与按钮（保持现有风格） */
.toolbar-primary .search-wrap #searchInput {
  height: 44px;
  font-size: 14px;
  border-radius: 14px;
  border-color: rgba(170, 210, 255, 0.42);
  background: rgba(16, 30, 56, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(200, 228, 255, 0.08),
    0 8px 20px rgba(8, 21, 52, 0.24);
}
.toolbar-primary .search-wrap #searchInput:focus {
  outline: none;
  border-color: rgba(200, 235, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(220, 242, 255, 0.14),
    0 10px 26px rgba(50, 98, 214, 0.22),
    0 0 0 3px rgba(110, 175, 255, 0.16);
}
.toolbar-primary #searchClearBtn {
  width: 28px;
  height: 28px;
  min-width: 28px;
}
.toolbar-primary #searchBtn {
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
}
.toolbar-secondary {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-secondary > :only-child {
  flex: 1 1 auto;
}

/* 保留蓝色风格，恢复“上方分类 + 顶栏搜索”布局 */
body.layout-topcats .topbar-inner {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
  align-items: center;
  padding-top: 0;
}
body.layout-topcats .brand {
  min-width: 320px;
}
body.layout-topcats .top-search-row {
  min-width: 0;
  width: 100%;
  max-width: 760px;
  justify-self: start;
}
body.layout-topcats .top-toolbar {
  margin: 0;
  min-height: 36px;
  padding: 4px 6px;
  border-radius: 10px;
}
body.layout-topcats .top-toolbar .toolbar-primary {
  flex: 1 1 auto;
  gap: 6px;
}
body.layout-topcats .top-toolbar .toolbar-secondary {
  gap: 6px;
}
body.layout-topcats .top-toolbar #searchInput,
body.layout-topcats .top-toolbar #searchBtn,
body.layout-topcats .top-toolbar .disk-filter-btn,
body.layout-topcats .top-toolbar #searchScopeBtn {
  height: 34px;
  font-size: 12px;
}
body.layout-topcats .top-toolbar #searchBtn {
  min-width: 66px;
  border-radius: 10px;
  padding: 0 12px;
}
body.layout-topcats .top-toolbar #searchBtn .search-btn-label {
  font-size: 12px;
}
body.layout-topcats .top-toolbar .disk-filter-btn {
  border-radius: 10px;
  padding: 6px 9px;
}
body.layout-topcats #categoryPanel {
  display: none !important;
}
body.layout-topcats .layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  overflow: visible;
}
body.layout-topcats .page-shell {
  grid-template-columns: minmax(0, 1fr);
  /* 桌面端：宁可横向滚动，也保持每行 4 卡 */
  min-width: 1360px;
  overflow-x: visible;
  overflow-y: visible;
}
body.layout-topcats .page-shell .ad-side.left {
  display: none !important;
}
body.layout-topcats .page-shell .layout {
  grid-column: 1;
}
body.layout-topcats .page-shell .ad-side.right {
  display: none !important;
}
body.layout-topcats .home-portal-head {
  margin-top: 0;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
/* 分类 Tab 下方：与综合页 .hot-category-section__head 同一套式样（左标题条 + 右排序） */
.category-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(125, 160, 230, 0.12);
  background: linear-gradient(90deg, rgba(16, 30, 58, 0.56), rgba(11, 24, 48, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.category-context-bar__hint {
  margin: 0;
  flex: 1 1 180px;
  min-width: 0;
  position: relative;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(190, 206, 233, 0.72);
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.category-context-bar__hint::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 14px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(86, 186, 255, 0.95), rgba(62, 142, 238, 0.95));
}
.category-context-bar__prefix {
  font-weight: 500;
  color: rgba(195, 210, 235, 0.78);
}
.category-context-bar__name {
  margin-left: 2px;
  font-weight: 700;
  color: #ffc78a;
  text-shadow: 0 0 18px rgba(255, 160, 80, 0.22);
}
.category-context-bar__sort {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}
/* 与 .hot-category-section__sort-tag 同系：未选中略淡，选中同综合块内标签 */
.category-sort-btn {
  box-sizing: border-box;
  margin: 0;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(125, 160, 230, 0.16);
  background: rgba(40, 64, 110, 0.16);
  color: rgba(178, 197, 231, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  cursor: pointer;
  transition: filter 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.category-sort-btn:hover {
  filter: brightness(1.06);
  border-color: rgba(155, 185, 235, 0.4);
  color: rgba(210, 225, 255, 0.95);
}
.category-sort-btn.is-active {
  border-color: rgba(130, 190, 245, 0.45);
  background: rgba(52, 116, 208, 0.3);
  color: rgba(218, 235, 255, 0.98);
  filter: none;
}
.category-sort-btn:focus-visible {
  outline: 2px solid rgba(166, 215, 255, 0.85);
  outline-offset: 2px;
}
/* 顶部第一行导航（提需求等；最新/最热已迁至分类栏） */
body.layout-topcats #topNav {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  position: relative;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: auto;
  max-width: 100%;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
}
body.layout-topcats #topNav::before {
  content: none;
  position: absolute;
  left: 50%;
  top: -1px;
  width: 100vw;
  height: calc(100% + 1px);
  transform: translateX(-50%);
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 36, 72, 0.74), rgba(14, 28, 56, 0.68)),
    rgba(12, 24, 48, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(182, 216, 255, 0.08),
    inset 0 -1px 0 rgba(110, 155, 236, 0.1);
}
body.layout-topcats .brand {
  grid-row: 2;
}
body.layout-topcats .top-search-row {
  grid-row: 2;
}
body.layout-topcats #topNav a,
body.layout-topcats #topNav .nav-dropdown-trigger {
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 24px;
  white-space: nowrap;
}
body.layout-topcats #topNav a.active {
  box-shadow: none;
}

/* 让搜索区不必贴到最右侧，保留右侧呼吸空间 */
body.layout-topcats .top-search-row .toolbar-primary {
  flex: 1 1 auto;
  min-width: 0;
}
body.layout-topcats .top-search-row .toolbar-secondary {
  flex: 0 0 auto;
}
body.layout-topcats .stats-primary {
  display: none !important;
}
body.layout-topcats #rightFeaturePanel {
  display: grid;
  gap: 10px;
  position: sticky;
  top: calc(var(--sticky-topbar-h, 80px) + 8px);
  z-index: 8;
  align-self: start;
  height: fit-content;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.layout-topcats #rightFeaturePanel .right-feature-search-mount {
  padding: 10px;
}
body.layout-topcats #rightFeaturePanel .top-search-row {
  width: 100%;
  max-width: none;
  min-width: 0;
}
body.layout-topcats #rightFeaturePanel .top-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .toolbar-primary,
body.layout-topcats #rightFeaturePanel .top-toolbar .toolbar-secondary {
  width: 100%;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .toolbar-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body.layout-topcats #rightFeaturePanel #searchScopeWrap,
body.layout-topcats #rightFeaturePanel #diskFilterWrap {
  display: none !important;
}
body.layout-topcats #rightFeaturePanel #categoryTagFilterWrap {
  grid-column: 1 / -1;
}
body.layout-topcats #rightFeaturePanel .top-toolbar #searchInput,
body.layout-topcats #rightFeaturePanel .top-toolbar #searchBtn,
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn,
body.layout-topcats #rightFeaturePanel .top-toolbar #searchScopeBtn {
  height: 36px;
  font-size: 13px;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn {
  border: 1px solid rgba(138, 170, 220, 0.36);
  background: rgba(15, 30, 56, 0.72);
  color: #dce9ff;
  border-radius: 8px;
  padding: 0 10px;
  box-shadow: none;
  text-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn::before {
  display: none;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn:hover:not(:disabled) {
  border-color: rgba(166, 196, 238, 0.56);
  background: rgba(20, 38, 68, 0.82);
  color: #edf4ff;
  box-shadow: none;
  filter: none;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn:active:not(:disabled) {
  background: rgba(12, 24, 46, 0.88);
  border-color: rgba(125, 156, 202, 0.6);
  filter: none;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn[aria-expanded="true"] {
  border-color: rgba(173, 205, 245, 0.76);
  background: rgba(24, 44, 76, 0.9);
  box-shadow: none;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn #searchScopeLabel,
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn #diskFilterLabel {
  font-size: 12px;
  color: #d4e3fd;
}
body.layout-topcats #rightFeaturePanel .top-toolbar .disk-filter-btn .disk-filter-caret {
  border-top-color: rgba(182, 208, 244, 0.95);
}
body.layout-topcats #rightFeaturePanel .top-toolbar #searchBtn .search-btn-label {
  font-size: 13px;
}
body.layout-topcats #rightFeaturePanel .top-toolbar #searchBtn {
  min-width: 72px;
  padding: 0 12px;
}
body.layout-topcats #rightFeaturePanel .top-toolbar #searchClearBtn {
  font-size: 12px;
}
body.layout-topcats .right-feature-box {
  border: 1px solid rgba(160, 200, 255, 0.26);
  border-radius: 10px;
  background: rgba(16, 30, 56, 0.46);
  box-shadow: 0 6px 18px rgba(8, 21, 52, 0.22);
  overflow: hidden;
}
body.layout-topcats .right-feature-search-block {
  overflow: visible;
}
body.layout-topcats .right-feature-search-block .right-feature-title {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(160, 200, 255, 0.2);
}
body.layout-topcats .right-feature-ads-block {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body.layout-topcats .right-feature-title {
  margin: 0;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(160, 200, 255, 0.2);
  color: #eaf3ff;
}
body.layout-topcats .right-feature-keywords {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}
body.layout-topcats .right-feature-keyword {
  border-radius: 8px;
  border: 1px solid rgba(150, 185, 240, 0.22);
  background: rgba(18, 36, 72, 0.35);
  color: #dfeaff;
  font-size: 12px;
  text-align: left;
  padding: 6px 8px;
  box-shadow: none;
}
body.layout-topcats .right-feature-ad-link {
  display: block;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(160, 200, 255, 0.24);
  background: rgba(15, 30, 56, 0.5);
  box-shadow: 0 6px 16px rgba(8, 21, 52, 0.2);
  overflow: hidden;
}
body.layout-topcats .right-feature-ads {
  display: grid;
  gap: 10px;
  padding: 0;
}
body.layout-topcats .right-feature-ads .right-feature-ad-link {
  padding: 0;
}
body.layout-topcats .right-feature-ad-img {
  width: 100%;
  display: block;
  border-radius: 0;
  border: 0;
}
body.layout-topcats .right-feature-ad-name {
  margin-top: 0;
  padding: 7px 10px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #d3e3ff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(10, 22, 44, 0.55);
  border-top: 1px solid rgba(160, 200, 255, 0.16);
}
body.layout-topcats .right-feature-empty {
  padding: 12px;
  color: #b9c9e7;
  font-size: 12px;
}
body.layout-topcats .category-tabs {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(150, 180, 235, 0.22);
  background: rgba(20, 36, 72, 0.18);
  border-radius: 0;
  overflow: visible;
  gap: 0;
  padding: 0 10px;
  box-shadow: none;
}
body.layout-topcats .category-tabs .category-tab {
  width: auto;
  min-height: 44px;
  padding: 9px 20px;
  border: 0;
  border-right: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #cfe0ff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1px;
  box-shadow: none;
}
body.layout-topcats .category-tabs .category-tab:last-child {
  border-right: 0;
}
body.layout-topcats .category-tabs .category-tab:hover {
  color: #f0f6ff;
  background: rgba(177, 205, 255, 0.1);
  filter: none;
}
body.layout-topcats .category-tabs .category-tab.is-active {
  color: #ffbf9a;
  border-bottom-color: rgba(231, 136, 84, 0.95);
  background: transparent;
  box-shadow: none;
}
body.layout-topcats .category-tabs .category-tab.category-tab--update-log {
  color: #ffd2b3;
  border-bottom-color: transparent;
}
body.layout-topcats .category-tabs .category-tab.category-tab--update-log:hover {
  background: rgba(231, 136, 84, 0.18);
}
body.layout-topcats .sub-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 9px 12px 10px;
  border: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
}
body.layout-topcats .sub-category-tab {
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #d5e3ff;
  font-size: 14px;
  padding: 3px 6px 5px;
}
body.layout-topcats .sub-category-tab.is-active {
  border-bottom-color: rgba(231, 136, 84, 0.95);
  color: #ffbf9a;
}
@media (max-width: 980px) {
  body.layout-topcats .topbar-inner {
    grid-template-columns: 1fr;
  }
  body.layout-topcats .brand {
    min-width: 0;
  }
  body.layout-topcats .top-toolbar {
    padding: 8px;
  }
  body.layout-topcats #topNav {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 2px;
    border-top: 1px solid rgba(124, 171, 255, 0.22);
    border-bottom: 1px solid rgba(124, 171, 255, 0.18);
  }
  body.layout-topcats #topNav::before {
    content: "";
  }
  body.layout-topcats .brand,
  body.layout-topcats .top-search-row {
    grid-row: auto;
  }
  body.layout-topcats .layout {
    grid-template-columns: 1fr;
  }
  body.layout-topcats .page-shell {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  body.layout-topcats #rightFeaturePanel {
    position: static;
    order: 3;
    max-height: none;
    overflow: visible;
  }
  body.layout-topcats .category-tabs .category-tab {
    min-height: 38px;
    padding: 7px 14px;
    font-size: 15px;
  }
  body.layout-topcats .sub-category-tabs {
    gap: 8px;
    padding: 8px 10px;
  }
  body.layout-topcats .sub-category-tab {
    font-size: 13px;
  }
}

/* 首页“门户节奏”：分类 Tab + 热搜词 + 热门条挂载区 */
.home-portal-head {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.category-tabs {
  display: none;
  gap: 8px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.category-tabs::-webkit-scrollbar {
  height: 8px;
}
.category-tabs::-webkit-scrollbar-thumb {
  background: rgba(150, 195, 255, 0.22);
  border-radius: 999px;
}
.category-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(150, 185, 240, 0.24);
  background: linear-gradient(180deg, rgba(40, 64, 110, 0.26), rgba(22, 38, 72, 0.28));
  color: #dfeaff;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.category-tab:hover {
  filter: brightness(1.08);
  border-color: rgba(165, 205, 255, 0.48);
  box-shadow: 0 0 14px rgba(100, 160, 255, 0.18);
}
.category-tab:active {
  filter: brightness(0.9);
}
.category-tab.is-active {
  border-color: rgba(186, 228, 255, 0.9);
  background: linear-gradient(180deg, rgba(100, 160, 255, 0.44), rgba(56, 95, 195, 0.34));
  box-shadow: 0 0 14px rgba(120, 185, 255, 0.2), inset 0 0 0 1px rgba(210, 236, 255, 0.18);
  color: #fff;
}
.category-tab--update-log {
  margin-left: 2px;
  border-style: dashed;
  border-color: rgba(254, 194, 143, 0.52);
  color: #ffd2b3;
}
.category-tab--update-log:hover {
  border-color: rgba(255, 201, 160, 0.8);
  box-shadow: 0 0 14px rgba(255, 173, 120, 0.22);
}

.update-log-drawer[hidden] {
  display: none !important;
}
.update-log-drawer {
  position: fixed;
  inset: 0;
  z-index: 2300;
}
.update-log-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, 0.58);
  backdrop-filter: blur(1px);
}
.update-log-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(620px, 92vw);
  height: 100%;
  background: linear-gradient(180deg, rgba(9, 21, 47, 0.98), rgba(6, 14, 33, 0.98));
  border-left: 1px solid rgba(141, 184, 244, 0.3);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}
.update-log-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(132, 175, 237, 0.25);
}
.update-log-drawer__head h3 {
  margin: 0;
  font-size: 18px;
  color: #e9f2ff;
}
.update-log-drawer__close {
  border: 0;
  background: transparent;
  color: #bcd2f8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.update-log-drawer__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px 12px 22px;
}
.update-log-empty {
  padding: 26px 10px;
  color: #b9cae7;
  text-align: center;
}
.update-log-group {
  margin-top: 18px;
}
.update-log-group__day {
  position: relative;
  top: auto;
  z-index: 1;
  padding: 8px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a9bddf;
  font-size: 12px;
  font-weight: 500;
  background: rgba(12, 24, 46, 0.44);
  border: 1px solid rgba(118, 161, 224, 0.1);
  border-radius: 8px;
}
.update-log-group__count {
  color: #8ca4ca;
  font-size: 12px;
}
.update-log-row {
  width: 100%;
  border: 1px solid rgba(120, 160, 220, 0.18);
  background: rgba(14, 30, 60, 0.52);
  margin-top: 12px;
  border-radius: 12px;
  color: #eaf2ff;
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.update-log-row:hover {
  border-color: rgba(170, 205, 255, 0.28);
  background: rgba(19, 39, 78, 0.54);
}
.update-log-row:active {
  transform: translateY(0.5px);
}
.update-log-row__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(140, 180, 245, 0.4);
}
.update-log-row__bar--create {
  background: linear-gradient(180deg, rgba(120, 245, 235, 0.9), rgba(56, 170, 255, 0.88));
}
.update-log-row__bar--update {
  background: linear-gradient(180deg, rgba(255, 214, 158, 0.92), rgba(240, 132, 84, 0.9));
}
.update-log-row__title {
  color: #f1f6ff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  flex: 1 1 auto;
}
.update-log-row__title-main {
  color: #f3f7ff;
}
.update-log-row__title-meta {
  margin-left: 8px;
  color: #8ea4c5;
  font-size: 12px;
  font-weight: 500;
  display: none;
}
.update-log-row:hover .update-log-row__title-meta {
  display: inline;
}
.update-log-row__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  padding-left: 2px;
}
.update-log-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  line-height: 1.45;
  border: 1px solid rgba(126, 168, 228, 0.22);
  color: #b9ccec;
  background: rgba(18, 34, 66, 0.46);
}
.update-log-chip--action {
  border-color: rgba(126, 168, 228, 0.28);
  color: #d8e8ff;
  background: rgba(32, 58, 102, 0.42);
  font-size: 12px;
  font-weight: 600;
}
.update-log-chip--create {
  border-color: rgba(120, 245, 235, 0.26);
  background: rgba(46, 140, 160, 0.2);
  color: #d8f4ff;
}
.update-log-chip--update {
  border-color: rgba(255, 214, 158, 0.24);
  background: rgba(140, 86, 44, 0.2);
  color: #ffe9d3;
}
.update-log-chip--category {
  border-color: rgba(129, 179, 228, 0.26);
  color: #c8daf4;
  background: rgba(18, 34, 66, 0.38);
  font-size: 10px;
  padding: 2px 8px;
}
.update-log-chip--platform-steam {
  border-color: rgba(118, 162, 236, 0.28);
  background: rgba(52, 88, 150, 0.28);
  color: #d9e8ff;
}
.update-log-chip--platform-switch {
  border-color: rgba(116, 204, 230, 0.28);
  background: rgba(38, 124, 154, 0.24);
  color: #d5f3ff;
}
.update-log-chip--platform-psp {
  border-color: rgba(178, 150, 239, 0.28);
  background: rgba(92, 72, 150, 0.24);
  color: #eadfff;
}
.update-log-chip--platform-default {
  border-color: rgba(129, 179, 228, 0.22);
  background: rgba(18, 34, 66, 0.34);
  color: #c8daf4;
}
.update-log-inline-mount[hidden] {
  display: none !important;
}
.update-log-inline {
  border: 1px solid rgba(118, 160, 225, 0.22);
  background: linear-gradient(180deg, rgba(8, 20, 44, 0.84), rgba(7, 16, 36, 0.9));
  border-radius: 12px;
  padding: 12px 12px 16px;
}
.update-log-inline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(128, 170, 235, 0.22);
  padding: 4px 4px 12px;
  margin-bottom: 12px;
}
.update-log-inline__head h3 {
  margin: 0;
  color: #e8f1ff;
  font-size: 17px;
  font-weight: 700;
}
.update-log-inline__close {
  border: 1px solid rgba(150, 190, 246, 0.36);
  background: rgba(18, 36, 70, 0.6);
  color: #dceaff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.update-log-inline__close:hover {
  border-color: rgba(184, 216, 255, 0.62);
  filter: brightness(1.06);
}
.update-log-inline__body {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.hot-keywords {
  flex: 1 1 360px;
  min-width: 0;
}
.hot-keywords[hidden] {
  display: none !important;
}
.hot-keywords__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(150, 185, 240, 0.22);
  background: rgba(14, 28, 54, 0.52);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: 8px;
}
.hot-keywords__shuffle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(150, 185, 240, 0.18);
  background: rgba(18, 36, 72, 0.26);
  color: #dfeaff;
  font-size: 12px;
  cursor: pointer;
  margin-right: 8px;
  box-shadow: inset 0 0 0 1px rgba(200, 228, 255, 0.06);
}
.hot-keywords__shuffle:hover:not(:disabled) {
  filter: brightness(1.08);
  border-color: rgba(165, 205, 255, 0.44);
}
.hot-keywords__shuffle:active:not(:disabled) {
  filter: brightness(0.9);
}
.hot-keywords__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  vertical-align: middle;
}
.hot-keyword-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(150, 185, 240, 0.18);
  background: rgba(18, 36, 72, 0.34);
  color: #dfeaff;
  font-size: 12px;
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.hot-keyword-chip:hover {
  filter: brightness(1.08);
  border-color: rgba(165, 205, 255, 0.44);
  box-shadow: 0 0 12px rgba(100, 160, 255, 0.14);
}
.hot-keyword-chip:active {
  filter: brightness(0.9);
}
.home-hot-mount {
  margin-top: 10px;
}
.home-hot-mount:empty {
  display: none;
}

/* 桌面端可选展示分类 Tab（由 config.js 开关控制） */
html.ui-tabs-desktop .category-tabs {
  display: flex;
}

/* 可选隐藏热搜词（由 config.js 开关控制） */
html.ui-hide-hot-keywords .hot-keywords {
  display: none !important;
}

@media (max-width: 1200px) {
  .category-tabs {
    display: flex;
  }
}

@media (max-width: 640px) {
  .resource-card-grid {
    gap: 14px;
  }
}
.search-scope-wrap {
  position: relative;
  min-width: 0;
}
.cat-toggle-btn {
  display: none;
}
.disk-filter-wrap {
  position: relative;
  min-width: 0;
}
.disk-filter-btn {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(160, 200, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(90, 138, 230, 0.34), rgba(44, 78, 150, 0.42)),
    rgba(14, 28, 54, 0.62);
  color: #eaf3ff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 5px 12px rgba(8, 21, 52, 0.2),
    inset 0 0 0 1px rgba(200, 228, 255, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
#searchScopeWrap .disk-filter-btn {
  min-width: 78px;
}
#diskFilterWrap .disk-filter-btn {
  min-width: 92px;
}
#categoryTagFilterWrap .disk-filter-btn {
  min-width: 92px;
}
.disk-filter-btn:hover {
  border-color: rgba(177, 214, 255, 0.9);
  filter: brightness(1.08);
  box-shadow:
    0 7px 16px rgba(8, 21, 52, 0.26),
    0 0 10px rgba(103, 163, 255, 0.14),
    inset 0 0 0 1px rgba(205, 233, 255, 0.14);
}
.disk-filter-btn:active {
  filter: brightness(0.9);
}
.disk-filter-btn[aria-expanded="true"] {
  border-color: rgba(186, 228, 255, 0.95);
  box-shadow:
    0 0 12px rgba(120, 185, 255, 0.2),
    inset 0 0 0 1px rgba(220, 240, 255, 0.16);
}
.disk-filter-btn #diskFilterLabel,
.disk-filter-btn #searchScopeLabel,
.disk-filter-btn #categoryTagFilterLabel {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.disk-filter-caret {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(190, 220, 255, 0.9);
  margin-top: 2px;
  transition: transform 0.2s ease;
}
.disk-filter-btn[aria-expanded="true"] .disk-filter-caret {
  transform: rotate(180deg);
}
.disk-filter-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 45;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid rgba(145, 190, 255, 0.52);
  background: rgba(10, 20, 42, 0.97);
  backdrop-filter: blur(14px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(130, 175, 255, 0.1);
  max-height: min(320px, 52vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 184, 255, 0.85) rgba(12, 23, 48, 0.65);
}
.disk-filter-menu[hidden] {
  display: none !important;
}
.disk-filter-menu::-webkit-scrollbar {
  width: 8px;
}
.disk-filter-menu::-webkit-scrollbar-thumb {
  background: rgba(122, 181, 255, 0.75);
  border-radius: 8px;
}
.disk-filter-menu li {
  margin: 0;
  padding: 0;
}
.disk-filter-menu button {
  width: 100%;
  margin: 0;
  padding: 9px 11px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e2ecff;
  font-size: 12px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.disk-filter-menu button::before {
  display: none;
}
.disk-filter-menu button:hover {
  background: rgba(120, 165, 250, 0.3);
  color: #ffffff;
  transform: none;
  filter: brightness(1.08);
}
.disk-filter-menu button:active {
  filter: brightness(0.9);
}
.disk-filter-menu button.is-active {
  background: rgba(102, 153, 255, 0.32);
  color: #ffffff;
  border: 1px solid rgba(160, 205, 255, 0.45);
}
.disk-filter-menu .disk-filter-empty {
  padding: 10px 11px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.disk-filter-count {
  color: rgba(167, 206, 255, 0.78);
  font-size: 12px;
  margin-left: 6px;
}
#categoryTagFilterMenu {
  left: auto;
  right: 0;
  top: calc(100% + 1px);
  width: min(720px, calc(100vw - 120px));
  max-height: min(380px, 58vh);
  padding: 10px;
}
#categoryTagFilterMenu:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 6px 8px;
}
#categoryTagFilterMenu li {
  margin: 0;
  padding: 0;
}
#categoryTagFilterMenu .disk-filter-empty {
  grid-column: 1 / -1;
}
#categoryTagFilterMenu button {
  height: 34px;
  border-radius: 9px;
  padding: 6px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-wrap {
  position: relative;
}
.search-wrap #searchInput {
  width: 100%;
  padding-right: 12px;
}
#searchClearBtn {
  display: none !important;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  display: none;
}
#searchClearBtn.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
input, button {
  border-radius: 10px;
  border: 1px solid rgba(150, 182, 240, 0.34);
  background: rgba(16, 30, 56, 0.55);
  color: var(--text);
  font-size: 13px;
}
textarea {
  border-radius: 10px;
  border: 1px solid rgba(150, 182, 240, 0.34);
  background: rgba(16, 30, 56, 0.55);
  color: var(--text);
  font-size: 13px;
  padding: 10px 12px;
  font-family: inherit;
}
input { padding: 10px 12px; }
button {
  position: relative;
  overflow: hidden;
  padding: 10px 16px;
  cursor: pointer;
  color: #eaf3ff;
  border: 1px solid rgba(160, 200, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(90, 138, 230, 0.34), rgba(44, 78, 150, 0.42)),
    rgba(14, 28, 54, 0.62);
  box-shadow:
    0 6px 16px rgba(8, 21, 52, 0.22),
    inset 0 0 0 1px rgba(200, 228, 255, 0.1);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}
button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 22%, rgba(193, 226, 255, 0.3) 48%, transparent 74%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform .4s ease, opacity .3s ease;
  pointer-events: none;
}
button:hover:not(:disabled) {
  transform: none;
  border-color: rgba(185, 218, 255, 0.62);
  filter: brightness(1.1);
  box-shadow:
    0 8px 20px rgba(8, 21, 52, 0.32),
    0 0 12px rgba(100, 160, 255, 0.16),
    inset 0 0 0 1px rgba(210, 233, 255, 0.16);
}
button:hover::before {
  opacity: 0.22;
  transform: translateX(0);
}
button:active:not(:disabled) {
  transform: none;
  filter: brightness(0.88);
  box-shadow:
    0 3px 10px rgba(6, 16, 40, 0.45),
    inset 0 0 0 1px rgba(198, 229, 255, 0.14);
}
button:focus-visible {
  outline: 2px solid rgba(166, 215, 255, 0.85);
  outline-offset: 2px;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(178, 205, 255, 0.1);
}
button:disabled::before { display: none; }

#searchBtn,
#submitDemandBtn,
#acceptComplianceBtn {
  border-color: rgba(174, 226, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(91, 164, 255, 0.9), rgba(79, 98, 255, 0.82));
  box-shadow:
    0 10px 24px rgba(50, 98, 214, 0.42),
    inset 0 0 0 1px rgba(224, 242, 255, 0.28);
}
#searchBtn:hover:not(:disabled),
#submitDemandBtn:hover:not(:disabled),
#acceptComplianceBtn:hover:not(:disabled) {
  border-color: rgba(200, 235, 255, 0.98);
  filter: brightness(1.12);
  box-shadow:
    0 12px 28px rgba(50, 98, 214, 0.48),
    0 0 16px rgba(130, 190, 255, 0.28),
    inset 0 0 0 1px rgba(234, 247, 255, 0.32);
}
#searchBtn:active:not(:disabled),
#submitDemandBtn:active:not(:disabled),
#acceptComplianceBtn:active:not(:disabled) {
  filter: brightness(0.9);
}
#searchBtn {
  white-space: nowrap;
}
#searchBtn .search-btn-label {
  position: relative;
  z-index: 1;
}

#prevBtn,
#nextBtn,
#closeDetail,
#cancelDemandBtn,
#declineComplianceBtn {
  background:
    linear-gradient(180deg, rgba(100, 132, 200, 0.26), rgba(52, 78, 130, 0.28)),
    rgba(18, 32, 58, 0.55);
}

/* 筛选下拉触发器与通用 button 同标签，需压过上面的 button:hover 背景 */
button.disk-filter-btn:hover:not(:disabled) {
  border-color: rgba(177, 214, 255, 0.9);
  filter: brightness(1.08);
  box-shadow:
    0 7px 16px rgba(8, 21, 52, 0.26),
    0 0 10px rgba(103, 163, 255, 0.14),
    inset 0 0 0 1px rgba(205, 233, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(90, 138, 230, 0.34), rgba(44, 78, 150, 0.42)),
    rgba(14, 28, 54, 0.62);
}
button.disk-filter-btn:active:not(:disabled) {
  filter: brightness(0.9);
}

/* 主统计在列表上方；当前页资源/总页数与分页同排（见 .pager-page-row）。手机/极窄时见 @media (max-width: 640px) */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stats-primary {
  margin-top: 12px;
}
.pager-page-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
}
.pager-page-row .pager {
  margin-top: 0;
}
.stats-page {
  flex: 1 1 auto;
  min-width: min(100%, 220px);
  justify-content: center;
}
.metric {
  font-size: 11px;
  color: #c8daf8;
  border: 1px solid rgba(130, 165, 244, 0.3);
  background: rgba(93, 124, 206, 0.1);
  border-radius: 999px;
  padding: 4px 9px;
}
.metric--warn {
  border-color: rgba(255, 183, 77, 0.55);
  background: rgba(255, 160, 60, 0.12);
  color: #ffe0b2;
}

/* 资源标题/详情里的「（12集）」高级标签样式 */
.episode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #eaf7ff;
  border: 1px solid rgba(140, 190, 255, 0.62);
  background: linear-gradient(135deg, rgba(110, 168, 255, 0.36), rgba(128, 230, 255, 0.12));
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(182, 215, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateY(-0.5px);
}

.episode-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(128, 230, 255, 0.95), rgba(110, 168, 255, 0.95));
  box-shadow: 0 0 14px rgba(128, 230, 255, 0.35);
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.title-text .episode-pill {
  line-height: 1.1;
}

#resourceList {
  margin-top: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: visible;
  overflow-x: hidden;
  /* 避免替换列表 DOM 后浏览器滚动锚定把 scrollTop 维持在中间/底部 */
  overflow-anchor: none;
  padding-right: 0;
  scrollbar-width: auto;
}

/* 首页：窄屏下列表随页面滚动，固定「返回顶部」 */
.home-resource-back-top {
  display: none;
  position: fixed;
  left: auto;
  right: max(86px, calc(env(safe-area-inset-right, 0px) + 22px));
  bottom: max(38px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  z-index: 165;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 10px 11px;
  border-radius: 999px;
  border: 1px solid rgba(140, 195, 255, 0.48);
  background: linear-gradient(158deg, rgba(88, 128, 228, 0.95), rgba(36, 62, 148, 0.96));
  box-shadow:
    0 10px 28px rgba(0, 12, 48, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 0 0 1px rgba(0, 0, 0, 0.18) inset;
  color: #f4f8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.home-resource-back-top.is-visible {
  display: inline-flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.home-resource-back-top:hover {
  border-color: rgba(190, 228, 255, 0.65);
  box-shadow:
    0 14px 36px rgba(40, 90, 220, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.home-resource-back-top:focus-visible {
  outline: 2px solid rgba(130, 200, 255, 0.9);
  outline-offset: 2px;
}
.home-resource-back-top__icon {
  flex-shrink: 0;
  opacity: 0.92;
}
.home-resource-back-top__text {
  line-height: 1;
}
@media (max-width: 640px) {
  .home-resource-back-top__text {
    display: none;
  }
  .home-resource-back-top {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-resource-back-top {
    transition: none;
  }
}

/* 列表容器：条目为独立卡片，中间留缝 */
.resource-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 4px 2px 8px;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.resource-list-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 综合页热门分组（替代旧热门横条） */
.hot-category-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hot-category-section {
  padding: 14px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(130, 165, 230, 0.16);
  background: linear-gradient(
    165deg,
    rgba(27, 50, 100, 0.45) 0%,
    rgba(14, 30, 62, 0.58) 45%,
    rgba(20, 40, 84, 0.42) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(185, 210, 255, 0.08),
    0 12px 30px rgba(3, 12, 36, 0.3);
}
.hot-category-section:nth-child(even) {
  border-color: rgba(150, 175, 240, 0.14);
  background: linear-gradient(
    195deg,
    rgba(22, 42, 92, 0.48) 0%,
    rgba(14, 32, 70, 0.54) 52%,
    rgba(20, 38, 84, 0.4) 100%
  );
}
.hot-category-section:nth-child(3n) {
  border-color: rgba(118, 175, 236, 0.18);
  background: linear-gradient(
    185deg,
    rgba(24, 48, 94, 0.5) 0%,
    rgba(12, 28, 64, 0.58) 56%,
    rgba(18, 44, 88, 0.42) 100%
  );
}
.hot-category-section:nth-child(4n) {
  border-color: rgba(136, 180, 232, 0.16);
  background: linear-gradient(
    172deg,
    rgba(24, 46, 88, 0.46) 0%,
    rgba(13, 30, 66, 0.56) 52%,
    rgba(20, 42, 90, 0.38) 100%
  );
}
.hot-category-section + .hot-category-section {
  margin-top: 2px;
}
.hot-category-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(125, 160, 230, 0.16);
  background:
    linear-gradient(90deg, rgba(18, 34, 66, 0.72), rgba(12, 26, 52, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hot-category-section__title {
  margin: 0;
  position: relative;
  padding-left: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #e8f1ff;
}
.hot-category-section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, rgba(86, 186, 255, 0.96), rgba(62, 142, 238, 0.96));
}
.hot-category-section__sort-tag {
  display: inline-block;
  margin-left: 10px;
  vertical-align: middle;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(198, 218, 255, 0.96);
  background: rgba(68, 108, 210, 0.28);
  border: 1px solid rgba(125, 160, 230, 0.35);
}
.hot-category-section__more {
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(190, 205, 228, 0.82);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-shadow: none;
  letter-spacing: 0.02em;
}
.hot-category-section__more::before {
  display: none;
}
.hot-category-section__more:hover:not(:disabled) {
  color: #eef4ff;
  background: transparent;
  box-shadow: none;
  filter: none;
}
.hot-category-section__more:active:not(:disabled) {
  color: rgba(214, 224, 244, 0.94);
  background: transparent;
  box-shadow: none;
  filter: none;
}
.hot-category-section__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 4px 2px 2px;
}

/* 资源卡片：更窄时再降列数（保证常见桌面宽度仍为 4 列） */
@media (max-width: 900px) {
  .resource-card-grid,
  .hot-category-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .resource-card-grid,
  .hot-category-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.hot-category-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(118, 150, 208, 0.22);
  border-radius: 8px;
  background: rgba(14, 30, 62, 0.82);
  overflow: hidden;
  padding: 0;
  text-align: left;
  box-shadow:
    0 8px 20px rgba(3, 10, 30, 0.26),
    inset 0 1px 0 rgba(182, 214, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.hot-category-card:hover {
  border-color: rgba(172, 208, 255, 0.34);
  background: rgba(16, 35, 72, 0.8);
  transform: translateY(-1px);
  box-shadow:
    0 12px 24px rgba(3, 10, 30, 0.32),
    inset 0 1px 0 rgba(198, 224, 255, 0.1);
}

.hot-category-section__grid .hot-category-card--spacer {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.hot-category-card__img,
.hot-category-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: rgba(18, 34, 68, 0.62);
}
.hot-category-card__img {
  filter: none;
}
.hot-category-card__title {
  display: block;
  padding: 9px 10px 10px;
  font-size: 13px;
  line-height: 1.38;
  font-weight: 500;
  color: rgba(198, 214, 235, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 首页热门：最多 10 个封面，横向滚动 */
.home-hot-strip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 11px 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(132, 145, 214, 0.34);
  background: linear-gradient(
    135deg,
    rgba(16, 34, 76, 0.88) 0%,
    rgba(38, 43, 98, 0.88) 42%,
    rgba(24, 54, 86, 0.9) 72%,
    rgba(12, 39, 66, 0.92) 100%
  );
  box-shadow:
    0 12px 28px rgba(4, 10, 30, 0.44),
    0 0 0 1px rgba(98, 112, 188, 0.16),
    inset 0 1px 0 rgba(182, 194, 255, 0.1),
    inset 0 -1px 0 rgba(104, 154, 220, 0.14);
}
.home-hot-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(150, 146, 240, 0.14), rgba(150, 146, 240, 0));
}
.home-hot-strip__head {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}
.home-hot-strip__kicker {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e8f3ff;
  text-shadow: 0 1px 10px rgba(90, 170, 255, 0.3);
}
.home-hot-strip__tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(136, 178, 238, 0.4);
  background: linear-gradient(180deg, rgba(12, 25, 54, 0.66), rgba(8, 18, 39, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 10px rgba(6, 16, 38, 0.36);
}
.home-hot-strip__tab {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 166, 236, 0.42);
  background: linear-gradient(180deg, rgba(28, 50, 92, 0.84), rgba(16, 34, 68, 0.88));
  color: rgba(218, 233, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    filter 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}
.home-hot-strip__tab:hover:not(.is-active) {
  transform: none;
  filter: brightness(1.12);
  border-color: rgba(196, 226, 255, 0.7);
  color: #f4f9ff;
  box-shadow:
    0 6px 14px rgba(14, 34, 74, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.home-hot-strip__tab:active:not(.is-active) {
  filter: brightness(0.88);
}
.home-hot-strip__tab[data-home-hot-period="day"] {
  border-color: rgba(112, 208, 255, 0.52);
  background: linear-gradient(180deg, rgba(36, 90, 130, 0.78), rgba(19, 50, 84, 0.9));
}
.home-hot-strip__tab[data-home-hot-period="week"] {
  border-color: rgba(124, 182, 255, 0.5);
  background: linear-gradient(180deg, rgba(36, 72, 134, 0.8), rgba(18, 43, 92, 0.9));
}
.home-hot-strip__tab[data-home-hot-period="month"] {
  border-color: rgba(178, 158, 255, 0.52);
  background: linear-gradient(180deg, rgba(66, 68, 146, 0.82), rgba(34, 35, 98, 0.92));
}
.home-hot-strip__tab.is-active {
  border-color: rgba(204, 235, 255, 0.9);
  background: linear-gradient(160deg, rgba(133, 201, 255, 0.9), rgba(77, 140, 245, 0.9));
  color: #ffffff;
  box-shadow:
    0 8px 18px rgba(36, 114, 232, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}
.home-hot-strip__tab[data-home-hot-period="day"].is-active {
  background: linear-gradient(160deg, rgba(84, 205, 255, 0.62), rgba(55, 155, 230, 0.62));
}
.home-hot-strip__tab[data-home-hot-period="week"].is-active {
  background: linear-gradient(160deg, rgba(110, 182, 255, 0.6), rgba(70, 120, 225, 0.62));
}
.home-hot-strip__tab[data-home-hot-period="month"].is-active {
  background: linear-gradient(160deg, rgba(154, 147, 255, 0.62), rgba(102, 104, 224, 0.62));
}
.home-hot-strip__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 196px);
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* 触摸端无 hover：必须默认可横向滚动，否则 min-content 过宽会撑开整页 */
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 188, 255, 0.55) rgba(12, 23, 48, 0.45);
}
.home-hot-strip__grid::-webkit-scrollbar {
  height: 6px;
}
.home-hot-strip__grid::-webkit-scrollbar-track {
  background: rgba(12, 23, 48, 0.7);
  border-radius: 999px;
}
.home-hot-strip__grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(140, 198, 255, 0.95), rgba(84, 155, 232, 0.88));
  border-radius: 999px;
}
.home-hot-strip__grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(170, 214, 255, 0.98), rgba(104, 174, 246, 0.92));
}
.home-hot-strip__cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(8, 16, 36, 0.55);
  border: 1px solid rgba(120, 160, 220, 0.22);
  box-shadow: 0 4px 12px rgba(0, 8, 24, 0.25);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  text-align: left;
}
.home-hot-strip__cell:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 220, 255, 0.45);
  box-shadow: 0 8px 20px rgba(0, 12, 40, 0.35);
}
.home-hot-strip__cell:focus-visible {
  outline: 2px solid rgba(180, 220, 255, 0.95);
  outline-offset: 2px;
}
.home-hot-strip__cell--empty {
  cursor: default;
  pointer-events: none;
  opacity: 0.35;
  min-height: 72px;
}
.home-hot-strip__img {
  display: block;
  width: 100%;
  aspect-ratio: 19 / 9;
  object-fit: cover;
  object-position: center;
  background: rgba(10, 18, 36, 0.5);
}
.home-hot-strip__placeholder {
  width: 100%;
  aspect-ratio: 19 / 9;
  background: linear-gradient(145deg, rgba(30, 50, 90, 0.5), rgba(14, 26, 52, 0.65));
}
.home-hot-strip__title {
  display: block;
  padding: 5px 6px 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(225, 235, 255, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hot-strip__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 6px;
  min-width: 0;
}
.home-hot-strip__meta .cat-pill {
  max-width: 58%;
  font-size: 10px;
  line-height: 1.2;
  padding: 1px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-hot-strip__size-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 42%;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #d8ebff;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(150, 205, 255, 0.38);
  background: rgba(18, 46, 90, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resource-item--spotlight {
  border-color: rgba(120, 220, 255, 0.65) !important;
  box-shadow:
    0 0 0 2px rgba(100, 200, 255, 0.35),
    0 10px 28px rgba(8, 22, 52, 0.28) !important;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.resource-list-wrap--solo {
  gap: 0;
  padding: 0;
  border: 1px solid rgba(129, 160, 240, 0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 6px 22px rgba(0, 8, 28, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.resource-list-head, .resource-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.resource-list-head > div {
  text-align: center;
}
.resource-list-head {
  background: linear-gradient(165deg, rgba(88, 124, 210, 0.32), rgba(48, 78, 148, 0.4));
  font-size: 13px;
  font-weight: 500;
  color: #ddeaff;
  border-radius: 14px;
  border: 1px solid rgba(160, 195, 240, 0.26);
  box-shadow:
    0 5px 16px rgba(8, 20, 48, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.resource-list-head > div {
  padding: 12px;
}
.resource-item > .row-main {
  padding: 14px 16px 13px;
}
/* 单条资源：立体卡片 */
.resource-item {
  border-top: none;
  cursor: default;
  opacity: 1;
  transform: none;
  animation: fadeUp .34s ease both;
  position: relative;
  min-width: 0;
  max-width: 100%;
  border-radius: 14px;
  background: linear-gradient(
    165deg,
    rgba(42, 68, 128, 0.52) 0%,
    rgba(22, 40, 78, 0.72) 48%,
    rgba(16, 32, 62, 0.82) 100%
  );
  border: 1px solid rgba(150, 188, 240, 0.22);
  box-shadow:
    0 8px 28px rgba(8, 18, 48, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}
.resource-item:hover {
  transform: translateY(-3px) scale(1.003);
  border-color: rgba(190, 220, 255, 0.48);
  box-shadow:
    0 14px 36px rgba(8, 22, 52, 0.26),
    0 6px 16px rgba(40, 100, 220, 0.12),
    0 0 0 1px rgba(140, 190, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 22px rgba(80, 140, 255, 0.08);
  background: linear-gradient(
    165deg,
    rgba(52, 82, 148, 0.58) 0%,
    rgba(28, 50, 98, 0.78) 50%,
    rgba(20, 38, 78, 0.88) 100%
  );
  filter: saturate(1.02);
}
/* 置顶：左侧光带 + 浅底；另在标题侧显示「置顶」字牌（避免用户误以为排序异常） */
.resource-item--pinned {
  background: linear-gradient(
    90deg,
    rgba(255, 183, 77, 0.12) 0%,
    rgba(255, 183, 77, 0.04) 14%,
    rgba(42, 68, 128, 0.48) 38%,
    rgba(22, 40, 78, 0.76) 100%
  );
}
.resource-item--pinned::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, #ffe082 0%, #ff9800 42%, #e65100 100%);
  box-shadow: 0 0 10px rgba(255, 160, 60, 0.28);
  pointer-events: none;
}
.resource-item--pinned:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 200, 120, 0.14) 0%,
    rgba(255, 190, 100, 0.06) 16%,
    rgba(52, 82, 148, 0.52) 40%,
    rgba(28, 50, 98, 0.82) 100%
  );
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.row-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
/* 第一行：左名称（+角标+可选大小），右更新日期 */
.row-line--title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-wrap: nowrap;
}
.row-main {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.row-stack {
  min-width: 0;
  flex: 1;
}

/* 无封面时保持旧版 1:1 观感：不引入“封面列”布局影响间距 */
.resource-item--no-cover .row-main {
  display: block;
}

.row-line-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

/* 标题下方：游戏ID（点击可复制） */
.row-line--sub {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: -3px;
}

/* 游戏 ID + 版本/模式/语言：同一行；规格条与 ID 轻分隔 */
.row-line--id-pkg .row-id-pkg-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
  width: 100%;
}
.row-line--id-pkg .row-game-id + .row-spec-slab {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
/* 版本/模式/语言：与「游戏 ID」药丸同一套容器语言，清爽细胶囊 */
.row-spec-slab {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 2px;
  column-gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 2px 10px 2px 9px;
  border-radius: 999px;
  background: rgba(18, 34, 68, 0.35);
  border: 1px solid rgba(120, 165, 230, 0.22);
  box-shadow: 0 1px 4px rgba(0, 6, 20, 0.18);
  color: rgba(205, 225, 255, 0.88);
}
.row-spec-slot {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  max-width: min(100%, 280px);
  padding: 0 1px;
}
.row-spec-slot__hint {
  flex-shrink: 0;
  /* 与 button.row-game-id 同档 10px；色相与 .row-game-id-label 同系，略弱一档作副标 */
  font-size: 10px;
  font-weight: 700;
  color: rgba(190, 220, 255, 0.72);
  letter-spacing: 0.04em;
}
.row-spec-slot__val {
  min-width: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(235, 245, 255, 0.96);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-spec-sep {
  align-self: center;
  width: 1px;
  height: 8px;
  margin: 0 6px;
  background: rgba(120, 165, 230, 0.22);
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .row-spec-slot {
    max-width: 100%;
  }
  .row-line--id-pkg .row-game-id + .row-spec-slab {
    padding-left: 8px;
    margin-left: 0;
    border-left: none;
    flex: 1 1 100%;
  }
}
.row-line--steam-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  flex-wrap: nowrap;
}
.row-meta-chip {
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(120, 165, 230, 0.2);
  background: rgba(20, 36, 66, 0.34);
  color: #9fb0c9;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-meta-chip__text {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-bar-meta {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.row-bar-meta .row-line--steam-meta {
  justify-content: flex-start;
}
.row-meta-chip--cat {
  color: #bcd7ff;
  background: rgba(52, 96, 160, 0.2);
  border-color: rgba(120, 180, 245, 0.28);
  max-width: 150px;
}
.row-meta-chip--date {
  font-variant-numeric: tabular-nums;
}
.row-meta-chip--release {
  position: relative;
  gap: 8px;
  padding: 3px 11px 3px 8px;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 14px rgba(0, 10, 28, 0.28);
}
.row-meta-chip--release::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.02) 42%,
    rgba(255, 255, 255, 0) 70%
  );
}
.row-release-flag,
.row-release-date {
  position: relative;
  z-index: 1;
}
.row-release-flag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.row-release-date {
  font-weight: 600;
  color: rgba(235, 245, 255, 0.94);
}
/* 发行时间标签：越近越醒目 — 本周暖金、本月青绿、本季冷灰（与页面蓝紫底拉开色相） */
.row-meta-chip--release-week {
  color: #fff8f0;
  border-color: rgba(255, 190, 105, 0.92);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 210, 120, 0.58) 0%, rgba(255, 120, 72, 0) 58%),
    linear-gradient(135deg, rgba(245, 130, 45, 0.88), rgba(236, 72, 58, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 0 1px rgba(255, 170, 90, 0.5),
    0 12px 30px rgba(220, 90, 40, 0.48),
    0 0 36px rgba(255, 160, 70, 0.55);
  animation: releasePulseWeek 2.8s ease-in-out infinite;
}
.row-meta-chip--release-week .row-release-flag {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 220, 170, 0.2));
  color: #fffaf2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}
.row-meta-chip--release-month {
  color: #ecfeff;
  border-color: rgba(45, 212, 191, 0.72);
  background:
    radial-gradient(108% 120% at 8% 10%, rgba(45, 212, 191, 0.42) 0%, rgba(20, 184, 166, 0) 62%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.72), rgba(14, 165, 233, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 22px rgba(13, 148, 136, 0.38),
    0 0 22px rgba(34, 211, 238, 0.28);
  animation: releaseSheenMonth 4.6s linear infinite;
}
.row-meta-chip--release-month .row-release-flag {
  background: linear-gradient(135deg, rgba(167, 243, 208, 0.35), rgba(94, 234, 212, 0.18));
  color: #f0fffa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.row-meta-chip--release-quarter {
  color: #c8d0dd;
  border-color: rgba(100, 116, 139, 0.42);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(100, 116, 139, 0.22) 0%, rgba(71, 85, 105, 0) 64%),
    linear-gradient(135deg, rgba(51, 65, 85, 0.55), rgba(30, 41, 59, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 14px rgba(15, 23, 42, 0.32);
}
.row-meta-chip--release-quarter .row-release-flag {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.22), rgba(100, 116, 139, 0.12));
  color: #dce4f0;
}
.row-meta-chip--release-archive {
  color: #c5d3e9;
  border-color: rgba(126, 146, 176, 0.34);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(102, 124, 160, 0.18) 0%, rgba(102, 124, 160, 0) 64%),
    linear-gradient(135deg, rgba(40, 52, 83, 0.5), rgba(31, 42, 70, 0.34));
}
.row-meta-chip--release-archive .row-release-flag {
  background: rgba(126, 146, 176, 0.18);
  color: #d7e4f8;
}
.row-release-date-plain {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  color: rgba(212, 224, 244, 0.9);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}
.row-meta-chip--release:hover {
  filter: brightness(1.06) saturate(1.06);
  transform: translateY(-1px);
  transition: transform 0.16s ease, filter 0.18s ease;
}
@keyframes releasePulseWeek {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      0 0 0 1px rgba(255, 170, 90, 0.42),
      0 10px 26px rgba(220, 90, 40, 0.4),
      0 0 28px rgba(255, 150, 60, 0.42);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      0 0 0 1px rgba(255, 200, 120, 0.55),
      0 14px 34px rgba(240, 100, 50, 0.52),
      0 0 40px rgba(255, 180, 90, 0.58);
  }
}
@keyframes releaseSheenMonth {
  0% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.06);
  }
  100% {
    filter: saturate(1) brightness(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .row-meta-chip--release-week {
    animation: none;
  }
  .row-meta-chip--release:hover {
    transform: none;
  }
}
button.row-game-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 2px 10px 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(120, 165, 230, 0.22);
  background: rgba(18, 34, 68, 0.35);
  color: rgba(205, 225, 255, 0.88);
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 6, 20, 0.18);
  transition: border-color 0.16s ease, filter 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
button.row-game-id:hover {
  border-color: rgba(170, 205, 255, 0.35);
  filter: brightness(1.06);
}
button.row-game-id:active {
  transform: translateY(1px);
}
button.row-game-id:focus-visible {
  outline: 2px solid rgba(180, 220, 255, 0.95);
  outline-offset: 2px;
}
.row-game-id-label {
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(190, 220, 255, 0.92);
}
.row-game-id-code {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  color: rgba(235, 245, 255, 0.96);
}
button.row-game-id.is-copied {
  border-color: rgba(80, 220, 170, 0.38);
  background: rgba(16, 64, 52, 0.32);
}

.row-cover-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 162px;
  aspect-ratio: 19 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(150, 188, 240, 0.22);
  background: rgba(10, 18, 36, 0.35);
  box-shadow: 0 6px 18px rgba(0, 8, 28, 0.22);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

/* 封面反光：默认隐藏，hover 时扫过一次（类似热门封面卡片的反光质感） */
.row-cover-wrap::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    120deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(180, 225, 255, 0.12) 54%,
    transparent 66%
  );
  transform: translateX(-65%) rotate(12deg);
  will-change: transform, opacity;
}

/* 资源条目 hover 时，封面也要有类似「热门封面」的悬停质感 */
.resource-item:hover .row-cover-wrap,
.resource-item:focus-within .row-cover-wrap {
  transform: translateY(-2px);
  border-color: rgba(190, 220, 255, 0.45);
  box-shadow:
    0 10px 24px rgba(0, 12, 40, 0.38),
    0 2px 8px rgba(40, 120, 255, 0.14);
  filter: saturate(1.03) contrast(1.02);
}

.resource-item:hover .row-cover-wrap::after,
.resource-item:focus-within .row-cover-wrap::after {
  opacity: 1;
  animation: coverSheen 0.9s ease both;
}

@keyframes coverSheen {
  0% {
    opacity: 0;
    transform: translateX(-70%) rotate(12deg);
  }
  18% { opacity: 0.85; }
  100% {
    opacity: 0;
    transform: translateX(70%) rotate(12deg);
  }
}
/* 封面右上角：体积角标（尽量小、半透明，少挡画面） */
.row-cover-size-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 2;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: rgba(248, 252, 255, 0.94);
  background: rgba(6, 14, 32, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px) saturate(1.1);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
/* 封面底部：窄色带 + 玻璃分类条（渐变只占底部一小条，标签半透明） */
.row-cover-cats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  padding: 3px 6px 4px;
  background: linear-gradient(
    to top,
    rgba(0, 6, 18, 0.78) 0%,
    rgba(6, 18, 40, 0.42) 42%,
    transparent 100%
  );
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.row-cover-cats::-webkit-scrollbar {
  display: none;
  height: 0;
}
.row-cover-cats .cat-pill {
  flex-shrink: 0;
  padding: 2px 9px 2px 8px;
  font-size: 10px;
  font-weight: 700;
  max-width: min(100%, 8.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.46);
  /* 保留 cat-tone 自身配色，不再统一同色背景 */
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
}
.row-cover-cats .cat-pill[class*="cat-tone-"] {
  padding-left: 6px;
  /* 封面位上提高饱和度与亮度，保证不同分类更容易区分 */
  filter: saturate(1.18) brightness(1.05);
}
.row-cover-cats .cat-pill[class*="cat-tone-"]::before {
  width: 5px;
  height: 5px;
  margin-right: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.34),
    0 0 8px rgba(255, 255, 255, 0.24);
}
.row-cover-cats .cat-pill-muted {
  opacity: 0.94;
  background: rgba(10, 22, 48, 0.62);
  border-style: solid;
}
.row-cover-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  object-position: center;
}
/* 标题行：名称（省略）+ 特性渐变条 + 大小 */
.row-title-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  flex-wrap: nowrap;
}
.title-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}
.title-text-wrap .title-text {
  flex: 1;
  min-width: 0;
}
.title-text-wrap .feat-strip {
  flex-shrink: 0;
}
.feat-strip {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  max-width: 100%;
}
.feat-strip-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.35;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: rgba(235, 242, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.22),
    0 1px 6px rgba(0, 8, 24, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.feat-strip-pill--dlc {
  background: linear-gradient(145deg, rgba(72, 130, 118, 0.72), rgba(32, 58, 72, 0.88));
  border-color: rgba(120, 200, 185, 0.28);
}
.feat-strip-pill--denuvo {
  background: linear-gradient(145deg, rgba(155, 118, 72, 0.75), rgba(72, 48, 36, 0.88));
  border-color: rgba(220, 170, 120, 0.28);
  color: rgba(255, 236, 216, 0.96);
}
.feat-strip-pill--workshop {
  background: linear-gradient(145deg, rgba(108, 92, 168, 0.72), rgba(48, 38, 92, 0.88));
  border-color: rgba(170, 150, 230, 0.28);
}
.feat-strip-pill--music {
  background: linear-gradient(145deg, rgba(168, 108, 128, 0.72), rgba(72, 38, 58, 0.88));
  border-color: rgba(230, 160, 185, 0.28);
}
.feat-strip-pill--achievement {
  position: relative;
  padding-left: 9px;
  color: rgba(255, 247, 214, 0.98);
  border-color: rgba(255, 216, 122, 0.48);
  background:
    linear-gradient(135deg, rgba(255, 227, 148, 0.28) 0%, rgba(255, 178, 74, 0.18) 45%, rgba(129, 76, 18, 0.58) 100%),
    radial-gradient(circle at 18% 30%, rgba(255, 249, 225, 0.45), transparent 58%);
  box-shadow:
    0 0 0 1px rgba(255, 205, 102, 0.22),
    0 3px 10px rgba(42, 20, 2, 0.45),
    inset 0 1px 0 rgba(255, 243, 200, 0.42);
}
.feat-strip-pill--achievement::before {
  content: "★";
  font-size: 10px;
  line-height: 1;
  margin-right: 4px;
  color: rgba(255, 241, 184, 0.98);
  text-shadow: 0 0 6px rgba(255, 226, 135, 0.5);
}
.row-title-size {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(160, 190, 235, 0.78);
  white-space: nowrap;
}
.row-title-dates {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
  max-width: min(52%, 380px);
}
.row-title-dates--na {
  opacity: 0.55;
}
.row-date-na {
  font-size: 12px;
  color: rgba(160, 188, 230, 0.65);
}
.row-date-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid rgba(130, 170, 220, 0.22);
  background: rgba(28, 48, 92, 0.45);
  box-shadow: 0 1px 4px rgba(0, 6, 20, 0.22);
  color: rgba(195, 215, 250, 0.92);
  cursor: default;
}
.row-date-chip--add {
  border-color: rgba(110, 170, 230, 0.28);
  background: rgba(32, 58, 108, 0.42);
}
.row-date-chip--upd {
  border-color: rgba(200, 150, 100, 0.28);
  background: rgba(72, 44, 32, 0.42);
  color: rgba(240, 215, 195, 0.9);
}
.row-date-chip:hover {
  border-color: rgba(170, 200, 240, 0.35);
}
.row-date-chip--upd:hover {
  border-color: rgba(220, 170, 120, 0.38);
}
.row-date-icon {
  flex-shrink: 0;
  opacity: 0.85;
  width: 12px;
  height: 12px;
  filter: drop-shadow(0 0 2px rgba(120, 180, 255, 0.25));
}
.row-date-icon--upd {
  filter: drop-shadow(0 0 2px rgba(255, 180, 100, 0.28));
}
.row-date-chip-text {
  flex-shrink: 0;
}
/* 第二行：分类 | 特性标签 | 网盘 | 详情 — 单行横排，窄屏横向滚动 */
.row-line--bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 36px;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid rgba(100, 140, 200, 0.12);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(150, 190, 255, 0.35) transparent;
}
.row-line--bar::-webkit-scrollbar {
  height: 5px;
}
.row-line--bar::-webkit-scrollbar-thumb {
  background: rgba(150, 190, 255, 0.3);
  border-radius: 999px;
}
.row-bar-part {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.row-bar-part + .row-bar-part {
  border-left: 1px solid rgba(120, 150, 200, 0.16);
  padding-left: 9px;
  margin-left: 9px;
}
.row-line--bar .row-cats {
  flex-wrap: nowrap;
}
.row-line--bar .row-bar-cats {
  flex: 0 0 126px;
  min-width: 126px;
  max-width: 126px;
  overflow: hidden;
}
.row-line--bar .row-bar-cats .cat-pill {
  max-width: 100%;
}
.row-line--bar .row-type {
  min-height: 0;
  justify-content: flex-start;
  width: auto;
  max-width: none;
  flex-wrap: nowrap;
}
.row-bar-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 9px;
  border-left: 1px solid rgba(120, 150, 200, 0.16);
}
.row-line--bar .row-detail-btn {
  flex-shrink: 0;
}
/* 详情入口：默认即清晰可见，悬停再略提亮 */
.row-detail-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(160, 205, 255, 0.55);
  border-radius: 9px;
  background:
    linear-gradient(165deg, rgba(110, 165, 255, 0.42), rgba(45, 85, 190, 0.55)),
    rgba(18, 36, 78, 0.75);
  color: #e8f4ff;
  cursor: pointer;
  opacity: 0.92;
  box-shadow:
    0 2px 8px rgba(0, 12, 40, 0.45),
    0 0 14px rgba(90, 150, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    opacity 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease,
    box-shadow 0.18s ease;
}
.resource-item:hover .row-detail-btn {
  opacity: 0.92;
  box-shadow:
    0 2px 8px rgba(0, 12, 40, 0.45),
    0 0 14px rgba(90, 150, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.row-detail-btn:hover {
  border-color: rgba(190, 220, 255, 0.72);
  color: #ffffff;
  transform: none;
  filter: brightness(1.12);
  opacity: 1;
}
.row-detail-btn:active {
  filter: brightness(0.88);
}
.row-detail-btn:focus-visible {
  outline: 2px solid rgba(180, 220, 255, 0.95);
  outline-offset: 2px;
  opacity: 1;
}
/* 列表「查看详情」：文字胶囊，与「立即获取」并列（勿用 --text 后缀：易与 var(--text) 等组合触发 Chrome :-- 伪类弃用误报） */
button.row-detail-btn.row-detail-btn--pill {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid rgba(140, 175, 220, 0.35);
  background: rgba(40, 68, 120, 0.4);
  color: rgba(220, 235, 255, 0.95);
  box-shadow: none;
}
button.row-detail-btn.row-detail-btn--pill:hover {
  border-color: rgba(175, 205, 245, 0.55);
  color: #ffffff;
  background: rgba(52, 88, 145, 0.55);
  filter: brightness(1.08);
}
button.row-detail-btn.row-detail-btn--pill:active {
  filter: brightness(0.9);
}
.row-detail-btn-icon {
  display: block;
  filter: drop-shadow(0 0 3px rgba(180, 220, 255, 0.55));
  opacity: 1;
}
.res-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  flex-shrink: 0;
  align-items: center;
}
.res-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 7px 1px 6px;
  border-radius: 6px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.04em;
  text-transform: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.res-badge-featured {
  background: linear-gradient(155deg, rgba(220, 90, 90, 0.82), rgba(120, 28, 38, 0.88));
}
.res-badge-must {
  background: linear-gradient(155deg, rgba(210, 95, 95, 0.82), rgba(120, 28, 42, 0.88));
}
.res-badge-rec {
  background: linear-gradient(155deg, rgba(210, 155, 95, 0.78), rgba(150, 85, 35, 0.82));
  color: rgba(35, 24, 12, 0.95);
  border-color: rgba(200, 160, 100, 0.35);
}
.res-badge-hot {
  background: linear-gradient(155deg, rgba(200, 95, 130, 0.82), rgba(120, 35, 75, 0.88));
}
.res-badge-news {
  background: linear-gradient(155deg, rgba(115, 100, 92, 0.82), rgba(52, 42, 36, 0.88));
}
.res-badge-play {
  background: linear-gradient(155deg, rgba(145, 115, 205, 0.82), rgba(65, 42, 120, 0.88));
}
.res-badge-dlc {
  background: linear-gradient(155deg, rgba(85, 175, 220, 0.82), rgba(28, 88, 145, 0.88));
}
.res-badge-custom {
  background: linear-gradient(155deg, rgba(105, 125, 138, 0.82), rgba(48, 62, 72, 0.88));
}
.res-badge-pin {
  background: linear-gradient(155deg, rgba(255, 171, 64, 0.92), rgba(191, 96, 0, 0.95));
  border-color: rgba(255, 200, 120, 0.45);
  color: rgba(28, 18, 8, 0.96);
  font-weight: 700;
}
.title-text {
  display: block;
  max-width: 100%;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
  min-width: 0;
  cursor: pointer;
}
.row-title-main .title-text {
  width: auto;
}
.row-title-main .title-text {
  position: relative;
  padding-left: 14px;
}
.row-title-main .title-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(210, 244, 255, 0.95), rgba(126, 200, 255, 0.55) 45%, rgba(120, 140, 255, 0.12) 72%);
  box-shadow:
    0 0 0 1px rgba(140, 210, 255, 0.20),
    0 0 14px rgba(120, 190, 255, 0.28);
}
.title-toned { font-weight: 600; }
.title-toned-pin { color: #ffb74d; }
/* 列表标签 → 资源名色（与角标色相呼应，彼此区分明显） */
.title-by-badge {
  font-weight: 500;
}
.title-tb-featured { color: #7ec8ff; }
.title-tb-essence { color: #b89cff; }
.title-tb-mustsee { color: #8fd8b8; }
.title-tb-hot { color: #7fb0ff; }
.title-tb-rec { color: #ffd88a; }
.title-tb-news { color: #d7ccc8; }
.title-tb-play { color: #b388ff; }
.title-tb-dlc { color: #40c4ff; }
.title-tb-x0 { color: #69f0ae; }
.title-tb-x1 { color: #ffab40; }
.title-tb-x2 { color: #18ffff; }
.title-tb-x3 { color: #ea80fc; }
.title-tb-x4 { color: #80cbc4; }
.resource-item:hover .title-text:not(.title-by-badge) { color: #8fd0ff; }
.resource-item:hover .title-text.title-toned-pin { color: #ffcc80; }
.resource-item:hover .title-text.title-tb-featured { color: #bfe6ff; }
.resource-item:hover .title-text.title-tb-essence { color: #ddd0ff; }
.resource-item:hover .title-text.title-tb-mustsee { color: #c8f0dc; }
.resource-item:hover .title-text.title-tb-hot { color: #a9c9ff; }
.resource-item:hover .title-text.title-tb-rec { color: #ffe6b2; }
.resource-item:hover .title-text.title-tb-news { color: #efebe9; }
.resource-item:hover .title-text.title-tb-play { color: #d1c4e9; }
.resource-item:hover .title-text.title-tb-dlc { color: #b3e5fc; }
.resource-item:hover .title-text.title-tb-x0 { color: #b9f6ca; }
.resource-item:hover .title-text.title-tb-x1 { color: #ffe082; }
.resource-item:hover .title-text.title-tb-x2 { color: #84ffff; }
.resource-item:hover .title-text.title-tb-x3 { color: #f8bbd0; }
.resource-item:hover .title-text.title-tb-x4 { color: #b2dfdb; }
.row-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  transition: filter 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.cat-pill[class*="cat-tone-"]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.cat-pill-muted {
  opacity: 0.65;
  border-style: dashed;
  color: #9fb2da;
  border-color: rgba(130, 160, 210, 0.4);
  background: rgba(40, 60, 110, 0.25);
}
/* 分类标签：色相拉开 + 左侧色点，一眼能区分，仍属冷色体系 */
.cat-pill[class*="cat-tone-"] {
  padding-left: 8px;
  gap: 0;
}
/* 资源列表「分类」列：略紧凑，减轻与操作区并列时的拥挤感 */
.row-cats .cat-pill {
  padding: 4px 11px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 500;
}
.row-cats .cat-pill[class*="cat-tone-"] {
  padding-left: 9px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 1px 5px rgba(0, 0, 0, 0.12);
}
.cat-pill[class*="cat-tone-"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.cat-pill.cat-tone-0 {
  color: #dce8ff;
  border-color: rgba(130, 175, 255, 0.62);
  background: linear-gradient(145deg, rgba(45, 75, 150, 0.55), rgba(22, 38, 88, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.18);
}
.cat-pill.cat-tone-0::before {
  background: linear-gradient(145deg, #9ec5ff, #5b8ae8);
  box-shadow:
    0 0 12px rgba(130, 180, 255, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.cat-pill.cat-tone-1 {
  color: #ebe4ff;
  border-color: rgba(190, 165, 255, 0.55);
  background: linear-gradient(145deg, rgba(95, 65, 155, 0.52), rgba(48, 32, 95, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 2px 10px rgba(0, 0, 0, 0.18);
}
.cat-pill.cat-tone-1::before {
  background: linear-gradient(145deg, #d4b8ff, #9b6ee8);
  box-shadow:
    0 0 12px rgba(180, 140, 255, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
/* 单机游戏等：偏翠绿/青绿，与蓝青系软件标签明显区分 */
.cat-pill.cat-tone-2 {
  color: #d8fff0;
  border-color: rgba(72, 220, 160, 0.55);
  background: linear-gradient(145deg, rgba(18, 95, 72, 0.58), rgba(12, 58, 48, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(200, 255, 230, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.18);
}
.cat-pill.cat-tone-2::before {
  background: linear-gradient(145deg, #5ef5b8, #0d9f6e);
  box-shadow:
    0 0 12px rgba(60, 230, 150, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.cat-pill.cat-tone-3 {
  color: #e8e6ff;
  border-color: rgba(150, 140, 255, 0.55);
  background: linear-gradient(145deg, rgba(58, 48, 130, 0.58), rgba(32, 26, 78, 0.54));
  box-shadow:
    inset 0 1px 0 rgba(220, 215, 255, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.18);
}
.cat-pill.cat-tone-3::before {
  background: linear-gradient(145deg, #c4b5ff, #6c5ce8);
  box-shadow:
    0 0 12px rgba(150, 130, 255, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
/* 未映射分类哈希档：钢青蓝，与 tone-2 绿、tone-6 琥珀区分 */
.cat-pill.cat-tone-4 {
  color: #e0f0ff;
  border-color: rgba(100, 170, 240, 0.5);
  background: linear-gradient(145deg, rgba(32, 72, 118, 0.58), rgba(18, 42, 72, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(200, 230, 255, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.18);
}
.cat-pill.cat-tone-4::before {
  background: linear-gradient(145deg, #7cc4ff, #2a78d4);
  box-shadow:
    0 0 12px rgba(90, 170, 255, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
.cat-pill.cat-tone-5 {
  color: #ffe8f2;
  border-color: rgba(255, 130, 180, 0.48);
  background: linear-gradient(145deg, rgba(110, 40, 78, 0.55), rgba(62, 22, 48, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 230, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.18);
}
.cat-pill.cat-tone-5::before {
  background: linear-gradient(145deg, #ff8ec8, #e040a8);
  box-shadow:
    0 0 12px rgba(255, 120, 180, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
/* 软件工具：暖琥珀，与冷色分类一眼区分 */
.cat-pill.cat-tone-6 {
  color: #fff6e5;
  border-color: rgba(255, 190, 100, 0.55);
  background: linear-gradient(145deg, rgba(120, 72, 28, 0.58), rgba(72, 42, 14, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255, 230, 180, 0.14),
    0 2px 10px rgba(0, 0, 0, 0.2);
}
.cat-pill.cat-tone-6::before {
  background: linear-gradient(145deg, #ffd54f, #e65100);
  box-shadow:
    0 0 12px rgba(255, 180, 60, 0.65),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}
/* 扩展哈希档：玫红偏品红 */
.cat-pill.cat-tone-7 {
  color: #ffeaf5;
  border-color: rgba(255, 120, 200, 0.5);
  background: linear-gradient(145deg, rgba(105, 32, 85, 0.56), rgba(58, 18, 52, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 200, 230, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.18);
}
.cat-pill.cat-tone-7::before {
  background: linear-gradient(145deg, #ff7eb8, #c2185b);
  box-shadow:
    0 0 12px rgba(255, 100, 160, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
/* 列表行内：色点略小、外发光收敛，减轻与「立即获取」并列时的花眼感 */
.row-cats .cat-pill[class*="cat-tone-"]::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
}
.row-type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.title-tooltip {
  position: fixed;
  z-index: 150;
  max-width: min(520px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #eaf1ff !important;
  border: 1px solid rgba(145, 190, 255, 0.55);
  background-color: rgba(11, 21, 42, 0.98) !important;
  background-image: linear-gradient(165deg, rgba(22, 38, 78, 0.95), rgba(10, 18, 38, 0.98));
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(120, 175, 255, 0.14),
    0 0 22px rgba(100, 160, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  word-break: break-word;
  white-space: pre-wrap;
}
.title-tooltip.show {
  opacity: 1;
}
.type-pill {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(153, 189, 255, 0.65);
  background: linear-gradient(180deg, rgba(96, 143, 242, 0.34), rgba(62, 103, 196, 0.3));
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  color: #dbe8ff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(8, 22, 52, 0.32), inset 0 0 0 1px rgba(182, 215, 255, 0.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, filter .18s ease, color .18s ease;
}
.type-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(220, 240, 255, 0.42) 48%, transparent 78%);
  transform: translateX(-130%);
  opacity: 0;
  transition: transform .34s ease, opacity .2s ease;
  pointer-events: none;
}
.type-pill:hover {
  color: #eff6ff;
  transform: none;
  border-color: rgba(185, 210, 255, 0.82);
  filter: brightness(1.1);
  box-shadow:
    0 6px 14px rgba(8, 22, 52, 0.4),
    inset 0 0 0 1px rgba(200, 228, 255, 0.2);
}
.type-pill:hover::before {
  opacity: 0.2;
  transform: translateX(0);
}
.type-pill:active {
  transform: none;
  filter: brightness(0.88);
  box-shadow: 0 2px 8px rgba(8, 24, 58, 0.45), inset 0 0 0 1px rgba(186, 219, 255, 0.18);
}
.type-pill-muted {
  opacity: .7;
  border-style: dashed;
  pointer-events: none;
}
/* 列表主操作：立即获取 */
button.type-pill.disk-get-btn {
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-color: rgba(100, 195, 155, 0.45);
  background: linear-gradient(165deg, rgba(48, 145, 115, 0.38), rgba(28, 88, 78, 0.44));
  color: rgba(230, 255, 245, 0.96);
  box-shadow:
    0 2px 8px rgba(0, 18, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
button.type-pill.disk-get-btn:hover:not(:disabled) {
  border-color: rgba(130, 220, 185, 0.65);
  color: #ffffff;
  filter: brightness(1.1);
  box-shadow:
    0 4px 14px rgba(0, 22, 30, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
button.type-pill.disk-get-btn:active:not(:disabled) {
  filter: brightness(0.88);
}
button.type-pill.disk-get-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.empty-card { padding: 24px; color: #bdd0f8; text-align: center; }

.pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.pager-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#pageJumpInput {
  width: 84px;
  padding: 8px 10px;
  text-align: center;
}
#pageJumpInput::-webkit-outer-spin-button,
#pageJumpInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#pageJumpInput[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.ad-side {
  display: grid;
  gap: 16px;
  position: sticky;
  /* 进一步减少侧边广告“顶上空太多”：让第一张广告尽量贴近顶部 */
  top: 26px;
  max-height: calc(100vh - 22px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(140, 184, 255, 0.75) rgba(20, 34, 64, 0.5);
}
.ad-item {
  position: relative;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(160, 195, 240, 0.22);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 44, 78, 0.55), rgba(18, 32, 58, 0.58));
  box-shadow: inset 0 0 0 1px rgba(200, 228, 255, 0.06), 0 6px 20px rgba(6, 14, 36, 0.2);
}
.ad-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(176, 215, 255, 0.2), transparent 42%, transparent 58%, rgba(132, 189, 255, 0.12));
}
.ad-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(176, 207, 255, 0.08);
}
.ad-item-visual {
  position: relative;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}
.ad-item img {
  width: 100%;
  aspect-ratio: 19 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}
/* 右上角分类/角标（后台「角标」字段，可空） */
.ad-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 5px 12px 6px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #2f8bff 0%, #1a6ee6 45%, #0f52c4 100%);
  border-radius: 0 11px 0 12px;
  box-shadow: 0 2px 10px rgba(8, 50, 140, 0.5);
  line-height: 1.2;
  max-width: min(11em, calc(100% - 8px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
/* 广告图名：在图片下方展示（与早期侧栏样式一致），不在图内叠层 */
.ad-title {
  position: relative;
  z-index: 1;
  padding: 8px 10px 10px;
  font-size: 12px;
  color: #d6e6ff;
  line-height: 1.35;
  word-break: break-word;
  text-align: center;
}
.ad-item:hover {
  border-color: rgba(165, 208, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(189, 223, 255, 0.14),
              0 12px 30px rgba(5, 13, 31, 0.45),
              0 0 16px rgba(116, 180, 255, 0.28);
  filter: brightness(1.04);
}
.ad-item:not(.no-link):active {
  filter: brightness(0.92);
}
.ad-item.no-link {
  cursor: default;
}

/* 列表内网盘链接：桌面悬停小浮层（广告已改为点击弹窗，不再用此类） */
.disk-link-qr-tooltip {
  position: fixed;
  z-index: 9999;
  width: 210px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(10, 20, 40, 0.94);
  border: 1px solid rgba(151, 186, 255, 0.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.disk-link-qr-tooltip img#diskLinkQrImg {
  width: 190px;
  height: 190px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.disk-link-qr-tooltip .disk-link-qr-tip {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(214, 230, 255, 0.95);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.disk-link-qr-tooltip .disk-link-qr-tip-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: rgba(188, 215, 255, 0.86);
  text-align: center;
}

/* 广告图：点击后居中弹窗（二维码 + 打开链接） */
.ad-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px 16px;
}
.ad-qr-modal[hidden] {
  display: none !important;
}
.ad-qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 12%, rgba(100, 160, 255, 0.22), transparent 45%),
    rgba(4, 8, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ad-qr-modal-card {
  position: relative;
  z-index: 1;
  width: min(320px, calc(100vw - 32px));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(150, 195, 255, 0.42);
  background: linear-gradient(165deg, rgba(22, 40, 82, 0.97) 0%, rgba(10, 18, 40, 0.99) 100%);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(110, 170, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: modalPop 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ad-qr-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(175, 213, 255, 0.45);
  background: linear-gradient(180deg, rgba(95, 140, 230, 0.4), rgba(45, 78, 150, 0.55));
  color: #f0f6ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 10, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.ad-qr-modal-head {
  padding: 18px 48px 10px 18px;
  text-align: center;
}
.ad-qr-modal-sub {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(180, 210, 255, 0.88);
}
.ad-qr-modal-head .ad-qr-modal-sub:first-child {
  margin-top: 0;
}
.ad-qr-modal-body {
  padding: 0 18px 18px;
  text-align: center;
}
.ad-qr-modal-qr {
  width: min(200px, 72vw);
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.ad-qr-modal-scan-tip {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(195, 218, 255, 0.82);
}
.ad-qr-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
a.ad-qr-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #0d1a14;
  background: linear-gradient(180deg, #9effc8 0%, #5ed399 100%);
  border: 1px solid rgba(120, 255, 190, 0.45);
  box-shadow: 0 4px 18px rgba(80, 220, 150, 0.28);
}
a.ad-qr-open-link:hover {
  filter: brightness(1.06);
}

dialog {
  border: none;
  padding: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
  width: min(800px, calc(100vw - 24px));
  font-size: 14px;
}

dialog[open] > article {
  animation: modalPop .34s cubic-bezier(.22, .61, .36, 1);
}

dialog:not(.notice-dialog-premium) > article {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 18px 22px 18px;
  background: linear-gradient(
    165deg,
    rgba(24, 42, 86, 0.92) 0%,
    rgba(8, 15, 34, 0.96) 100%
  );
  border: 1px solid rgba(150, 195, 255, 0.42);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(112, 170, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -20px 60px rgba(100, 160, 255, 0.05);
}

/* 详情弹窗：内容过长时不要无限撑高，改为内部滚动 */
#detailDialog > article {
  max-height: min(78vh, 760px);
  display: flex;
  flex-direction: column;
}
#detailDialog > article > #detailContent {
  flex: 1 1 auto;
  min-height: 0; /* 允许 flex 子项收缩，才能触发滚动 */
  overflow: auto;
  padding-right: 4px; /* 给滚动条留一点空间，避免贴边遮字 */
  scrollbar-gutter: stable;
}
#detailDialog .detail-floating-disk-wrap {
  position: absolute;
  top: 86px;
  right: 22px;
  z-index: 4;
  width: auto;
  max-width: min(220px, 38vw);
}
#detailDialog .detail-floating-disk-wrap[hidden] {
  display: none !important;
}
#detailDialog .detail-floating-btn--top {
  position: absolute;
  z-index: 4;
  border: 1px solid rgba(162, 206, 255, 0.6);
  color: #ecf5ff;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(94, 138, 220, 0.32), rgba(32, 66, 130, 0.5)),
    rgba(18, 32, 58, 0.62);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform .14s ease, filter .16s ease, border-color .16s ease;
  right: 22px;
  bottom: 78px;
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
}
#detailDialog .detail-floating-btn--top:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(215, 236, 255, 0.95);
}
#detailDialog .detail-floating-btn--top:active {
  transform: translateY(0);
}
#detailDialog .detail-floating-btn--top[hidden] {
  display: none !important;
}

dialog:not(.notice-dialog-premium) > article::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 18% 0%, rgba(120, 175, 255, 0.18), transparent 55%),
    radial-gradient(90% 60% at 100% 20%, rgba(92, 240, 255, 0.12), transparent 55%);
}

dialog:not(.notice-dialog-premium) > article::before {
  content: "";
  position: absolute;
  left: -45%;
  right: -45%;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(91, 140, 255, 0),
    rgba(91, 140, 255, 0.85),
    rgba(92, 240, 255, 0.75),
    rgba(196, 163, 255, 0.75),
    rgba(91, 140, 255, 0)
  );
  background-size: 220% 100%;
  animation: noticeAccentFlow 10s linear infinite;
  opacity: 0.9;
}
#detailTitle {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(90deg, #d9e9ff, #8fc7ff, #b6f0ff, #d9e9ff);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 16px 50px rgba(120, 189, 255, 0.16);
}
#detailMeta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-pkg-meta-slot {
  flex: 1 1 100%;
  margin-top: 6px;
}
.detail-pkg-meta-slot .row-spec-slab {
  max-width: 100%;
}
.detail-pkg-meta-slot .row-spec-slot__hint {
  color: rgba(170, 198, 232, 0.48);
}
.detail-pkg-meta-slot .row-spec-slot__val {
  color: rgba(236, 244, 255, 0.95);
}
.detail-meta-left {
  min-width: 140px;
}
.detail-game-link-wrap {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}
.detail-game-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(162, 206, 255, 0.62);
  color: #ecf5ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(7, 20, 56, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform .14s ease, filter .16s ease, border-color .16s ease;
}
.detail-game-link-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(215, 236, 255, 0.95);
}
.detail-game-link-btn:active {
  transform: translateY(0);
}
.detail-game-link-btn--steam {
  background: linear-gradient(140deg, rgba(66, 107, 185, 0.88), rgba(30, 58, 115, 0.95));
}
.detail-game-link-btn--steamdb {
  background: linear-gradient(140deg, rgba(92, 168, 255, 0.85), rgba(50, 108, 220, 0.95));
}

#demandDialog h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(90deg, #d9e9ff, #8fc7ff, #b6f0ff, #d9e9ff);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 16px 50px rgba(120, 189, 255, 0.16);
}

/* 详情弹窗：自上而下分层堆叠（简要信息 → 详情摘要 → 解压密码 → 正文 → 链接） */
#detailContent .detail-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#detailContent .detail-layer {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 255, 0.28);
  background: linear-gradient(165deg, rgba(22, 40, 78, 0.45), rgba(10, 18, 40, 0.62));
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.32),
    0 10px 28px rgba(0, 8, 28, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#detailContent .detail-layer--fields {
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#detailContent .detail-layer--fields .detail-unzip-block {
  margin: 0;
}
#detailContent .detail-layer--summary {
  padding: 14px 16px 16px;
  border-color: rgba(140, 190, 255, 0.38);
  background: linear-gradient(168deg, rgba(32, 56, 108, 0.52), rgba(14, 26, 52, 0.72));
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 14px 32px rgba(0, 10, 36, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
#detailContent .detail-layer--summary .detail-desc-block {
  margin: 0;
  line-height: 1.65;
  color: rgba(220, 232, 255, 0.94);
  font-size: 14px;
}
#detailContent .detail-layer--password {
  padding: 0;
  border-color: rgba(255, 200, 120, 0.38);
  background: linear-gradient(168deg, rgba(48, 32, 18, 0.42), rgba(16, 12, 8, 0.58));
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.3),
    0 14px 36px rgba(20, 8, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#detailContent .detail-layer--password .detail-unzip-block {
  margin: 0;
  border-radius: 13px;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
#detailContent .detail-layer--body {
  padding: 0;
  margin-top: 2px;
  border-radius: 16px;
  border: 1px solid rgba(110, 190, 255, 0.42);
  background: linear-gradient(175deg, rgba(20, 38, 88, 0.55), rgba(6, 12, 32, 0.88));
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.32),
    0 22px 50px rgba(0, 14, 44, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -24px 48px rgba(0, 0, 0, 0.12);
}
#detailContent .detail-body-heading {
  margin: 0;
  padding: 12px 16px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(160, 210, 255, 0.95);
  border-bottom: 1px solid rgba(100, 160, 240, 0.28);
  background: linear-gradient(180deg, rgba(50, 90, 160, 0.35), rgba(20, 36, 72, 0.25));
  border-radius: 16px 16px 0 0;
}
#detailContent .detail-layer--body .detail-body-block {
  margin: 0;
  padding: 14px 16px 18px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(232, 240, 255, 0.94);
  font-size: 14px;
}
#detailContent .detail-layer--links {
  padding: 12px 16px 14px;
  border-color: rgba(100, 170, 255, 0.32);
  background: linear-gradient(168deg, rgba(18, 34, 68, 0.58), rgba(8, 14, 32, 0.75));
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 8, 24, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#detailContent .detail-layer--links h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(170, 210, 255, 0.95);
  letter-spacing: 0.04em;
}
#detailContent .detail-layer--links ul.detail-disk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
#detailContent .detail-layer--links ul.detail-disk-list > li {
  margin: 0;
  min-width: 0;
}
#detailFloatingDiskWrap ul.detail-disk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
#detailFloatingDiskWrap ul.detail-disk-list > li {
  margin: 0;
  width: auto;
}
#detailFloatingDiskWrap .detail-disk-more-btn {
  width: auto;
  min-width: 110px;
  min-height: 34px;
  border-radius: 10px;
  border: 1px dashed rgba(170, 210, 255, 0.55);
  background: linear-gradient(160deg, rgba(24, 46, 92, 0.62), rgba(10, 18, 42, 0.8));
  color: rgba(214, 234, 255, 0.96);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .14s ease, filter .16s ease, border-color .16s ease;
}
#detailFloatingDiskWrap .detail-disk-more-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(220, 235, 255, 0.85);
}
#detailFloatingDiskWrap .detail-disk-more-btn:active {
  transform: translateY(0);
}
#detailContent .detail-disk-list > li:nth-child(2) .detail-disk-link__shine {
  animation-delay: 0.7s;
}
#detailContent .detail-disk-list > li:nth-child(3) .detail-disk-link__shine {
  animation-delay: 1.4s;
}
#detailContent .detail-disk-list > li:nth-child(n + 4) .detail-disk-link__shine {
  animation-delay: 2.1s;
}

/* 详情「下载链接」：网盘主按钮 — 玻璃质感 + 品牌渐变 + 扫光 */
@keyframes detailDiskShine {
  0% {
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  100% {
    transform: translateX(220%) skewX(-18deg);
    opacity: 0;
  }
}
@keyframes detailDiskBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(6%, -8%) scale(1.08);
    opacity: 0.75;
  }
}

#detailContent .detail-disk-link,
#detailFloatingDiskWrap .detail-disk-link,
#embeddedDetailContent .detail-disk-link {
  --disk-fg: rgba(245, 250, 255, 0.98);
  --disk-border: rgba(180, 215, 255, 0.45);
  --disk-glow: rgba(120, 170, 255, 0.35);
  --disk-bg0: rgba(42, 72, 140, 0.55);
  --disk-bg1: rgba(14, 26, 58, 0.82);
  --disk-accent0: rgba(130, 190, 255, 0.95);
  --disk-accent1: rgba(88, 140, 255, 0.85);
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0 16px 0 14px;
  border-radius: 14px;
  border: 1px solid var(--disk-border);
  color: var(--disk-fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(155deg, var(--disk-bg0), var(--disk-bg1));
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 14px 32px rgba(0, 8, 28, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    filter 0.2s ease;
}
#detailFloatingDiskWrap .detail-disk-link {
  width: auto;
  max-width: 100%;
  min-height: 32px;
  padding: 0 9px 0 8px;
  border-radius: 10px;
  font-size: 13px;
}
#detailFloatingDiskWrap .detail-disk-link__inner {
  min-height: 32px;
  gap: 6px;
  width: auto;
}
#detailFloatingDiskWrap .detail-disk-link__icon {
  width: 23px;
  height: 23px;
  border-radius: 7px;
}
#detailFloatingDiskWrap .detail-disk-link__svg {
  width: 14px;
  height: 14px;
}
#detailFloatingDiskWrap .detail-disk-link__label {
  flex: 0 1 auto;
  font-size: 13px;
  white-space: nowrap;
}
#detailFloatingDiskWrap .detail-disk-link__arrow {
  width: 7px;
  height: 7px;
  margin-left: 1px;
}
#detailContent .detail-disk-link:hover,
#detailFloatingDiskWrap .detail-disk-link:hover,
#embeddedDetailContent .detail-disk-link:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(220, 235, 255, 0.62);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.26),
    0 20px 44px rgba(0, 12, 40, 0.55),
    0 0 28px var(--disk-glow),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  filter: brightness(1.06);
}
#detailContent .detail-disk-link:active,
#detailFloatingDiskWrap .detail-disk-link:active,
#embeddedDetailContent .detail-disk-link:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}
#detailContent .detail-disk-link:focus-visible,
#detailFloatingDiskWrap .detail-disk-link:focus-visible,
#embeddedDetailContent .detail-disk-link:focus-visible {
  outline: 2px solid rgba(140, 200, 255, 0.95);
  outline-offset: 3px;
}

#detailContent .detail-disk-link__blob,
#detailFloatingDiskWrap .detail-disk-link__blob {
  position: absolute;
  width: 140%;
  height: 140%;
  left: -20%;
  top: -55%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(220, 235, 255, 0.22), transparent 62%);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: detailDiskBlob 7s ease-in-out infinite;
}
#detailContent .detail-disk-link__shine,
#detailFloatingDiskWrap .detail-disk-link__shine {
  position: absolute;
  inset: -40% -30%;
  width: 38%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 64%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  animation: detailDiskShine 4.2s ease-in-out infinite;
}
#detailContent .detail-disk-link__inner,
#detailFloatingDiskWrap .detail-disk-link__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
}
#detailContent .detail-disk-link__icon,
#detailFloatingDiskWrap .detail-disk-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--disk-accent0);
  transition: transform 0.22s ease, color 0.2s ease;
}
#detailContent .detail-disk-link:hover .detail-disk-link__icon,
#detailFloatingDiskWrap .detail-disk-link:hover .detail-disk-link__icon {
  transform: scale(1.06) rotate(-4deg);
  color: #fff;
}
#detailContent .detail-disk-link__svg,
#detailFloatingDiskWrap .detail-disk-link__svg {
  display: block;
}
#detailContent .detail-disk-link__label,
#detailFloatingDiskWrap .detail-disk-link__label {
  flex: 1 1 auto;
  text-align: left;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
#detailContent .detail-disk-link__arrow,
#detailFloatingDiskWrap .detail-disk-link__arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-left: 4px;
  border-right: 2px solid rgba(255, 255, 255, 0.55);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  transform: rotate(-45deg) translate(-1px, -1px);
  opacity: 0.85;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
#detailContent .detail-disk-link:hover .detail-disk-link__arrow,
#detailFloatingDiskWrap .detail-disk-link:hover .detail-disk-link__arrow {
  transform: rotate(-45deg) translate(2px, -2px);
  opacity: 1;
}

/* 品牌色：与顶部 Steam 药丸按钮气质统一，各网盘略有区分 */
#detailContent .detail-disk-link--quark,
#detailFloatingDiskWrap .detail-disk-link--quark {
  --disk-border: rgba(186, 160, 255, 0.55);
  --disk-glow: rgba(160, 120, 255, 0.45);
  --disk-bg0: rgba(72, 48, 120, 0.62);
  --disk-bg1: rgba(18, 12, 42, 0.9);
  --disk-accent0: rgba(210, 190, 255, 1);
  --disk-accent1: rgba(130, 90, 255, 0.95);
}
#detailContent .detail-disk-link--quark .detail-disk-link__blob,
#detailFloatingDiskWrap .detail-disk-link--quark .detail-disk-link__blob {
  background: radial-gradient(circle at 50% 50%, rgba(200, 170, 255, 0.35), transparent 62%);
}
#detailContent .detail-disk-link--baidu,
#detailFloatingDiskWrap .detail-disk-link--baidu {
  --disk-border: rgba(255, 170, 120, 0.45);
  --disk-glow: rgba(255, 140, 80, 0.35);
  --disk-bg0: rgba(120, 52, 32, 0.55);
  --disk-bg1: rgba(28, 14, 10, 0.88);
  --disk-accent0: rgba(255, 200, 160, 1);
  --disk-accent1: rgba(255, 120, 70, 0.9);
}
#detailContent .detail-disk-link--baidu .detail-disk-link__blob,
#detailFloatingDiskWrap .detail-disk-link--baidu .detail-disk-link__blob {
  background: radial-gradient(circle at 50% 50%, rgba(255, 190, 150, 0.28), transparent 62%);
}
#detailContent .detail-disk-link--uc,
#detailFloatingDiskWrap .detail-disk-link--uc {
  --disk-border: rgba(120, 220, 255, 0.5);
  --disk-glow: rgba(80, 200, 255, 0.4);
  --disk-bg0: rgba(24, 88, 108, 0.55);
  --disk-bg1: rgba(8, 28, 38, 0.9);
  --disk-accent0: rgba(160, 240, 255, 1);
  --disk-accent1: rgba(60, 180, 220, 0.95);
}
#detailContent .detail-disk-link--uc .detail-disk-link__blob,
#detailFloatingDiskWrap .detail-disk-link--uc .detail-disk-link__blob {
  background: radial-gradient(circle at 50% 50%, rgba(120, 230, 255, 0.3), transparent 62%);
}
#detailContent .detail-disk-link--aliyun,
#detailFloatingDiskWrap .detail-disk-link--aliyun {
  --disk-border: rgba(255, 130, 100, 0.48);
  --disk-glow: rgba(255, 100, 60, 0.32);
  --disk-bg0: rgba(120, 48, 28, 0.52);
  --disk-bg1: rgba(32, 12, 8, 0.88);
  --disk-accent0: rgba(255, 190, 160, 1);
  --disk-accent1: rgba(255, 90, 50, 0.9);
}
#detailContent .detail-disk-link--aliyun .detail-disk-link__blob,
#detailFloatingDiskWrap .detail-disk-link--aliyun .detail-disk-link__blob {
  background: radial-gradient(circle at 50% 50%, rgba(255, 160, 120, 0.26), transparent 62%);
}
#detailContent .detail-disk-link--pan123,
#detailContent .detail-disk-link--lanzou,
#detailContent .detail-disk-link--xunlei,
#detailContent .detail-disk-link--pan115,
#detailContent .detail-disk-link--pikpak,
#detailContent .detail-disk-link--weiyun,
#detailContent .detail-disk-link--tianyi,
#detailFloatingDiskWrap .detail-disk-link--pan123,
#detailFloatingDiskWrap .detail-disk-link--lanzou,
#detailFloatingDiskWrap .detail-disk-link--xunlei,
#detailFloatingDiskWrap .detail-disk-link--pan115,
#detailFloatingDiskWrap .detail-disk-link--pikpak,
#detailFloatingDiskWrap .detail-disk-link--weiyun,
#detailFloatingDiskWrap .detail-disk-link--tianyi {
  --disk-border: rgba(150, 200, 255, 0.48);
  --disk-glow: rgba(100, 170, 255, 0.38);
}
#detailContent .detail-disk-link--generic,
#detailFloatingDiskWrap .detail-disk-link--generic,
#embeddedDetailContent .detail-disk-link--generic {
  --disk-border: rgba(160, 200, 255, 0.4);
  --disk-glow: rgba(120, 180, 255, 0.32);
}


@media (prefers-reduced-motion: reduce) {
  #detailContent .detail-disk-link__shine,
  #detailContent .detail-disk-link__blob,
  #detailFloatingDiskWrap .detail-disk-link__shine,
  #detailFloatingDiskWrap .detail-disk-link__blob {
    animation: none;
  }
  #detailContent .detail-disk-link:hover,
  #detailFloatingDiskWrap .detail-disk-link:hover,
  #embeddedDetailContent .detail-disk-link:hover {
    transform: none;
  }
  #detailContent .detail-disk-link:hover .detail-disk-link__icon,
  #detailFloatingDiskWrap .detail-disk-link:hover .detail-disk-link__icon {
    transform: none;
  }
  #detailContent .detail-disk-link:hover .detail-disk-link__arrow,
  #detailFloatingDiskWrap .detail-disk-link:hover .detail-disk-link__arrow {
    transform: rotate(-45deg) translate(-1px, -1px);
  }
}
/* 兼容旧结构：未包在 .detail-stack 时仍保留段落间距 */
#detailContent .detail-desc-block {
  margin: 0 0 14px;
  line-height: 1.65;
  color: rgba(220, 232, 255, 0.92);
  font-size: 14px;
}
#detailContent .detail-unzip-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(140, 185, 255, 0.38);
  background: linear-gradient(135deg, rgba(50, 90, 180, 0.28), rgba(20, 40, 90, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* 详情顶部说明标签：立体感 + 分色区分类型 */
#detailContent .detail-info-tag {
  position: relative;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow:
    0 8px 22px rgba(0, 8, 28, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -12px 28px rgba(60, 120, 220, 0.08);
  overflow: hidden;
}
#detailContent .detail-info-tag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, rgba(140, 200, 255, 0.95), rgba(80, 120, 220, 0.75));
  box-shadow: 0 0 14px rgba(120, 180, 255, 0.45);
  pointer-events: none;
}
#detailContent .detail-info-tag-code {
  white-space: pre-wrap;
  word-break: break-word;
}
#detailContent .detail-info-tag--startup {
  border-color: rgba(120, 200, 255, 0.5);
  background: linear-gradient(155deg, rgba(42, 88, 168, 0.42), rgba(18, 36, 78, 0.55));
}
#detailContent .detail-info-tag--startup::before {
  background: linear-gradient(180deg, #7ecbff, #4f7dff);
}
#detailContent .detail-info-tag--chinese {
  border-color: rgba(200, 160, 255, 0.48);
  background: linear-gradient(155deg, rgba(88, 56, 160, 0.4), rgba(32, 22, 72, 0.52));
}
#detailContent .detail-info-tag--chinese::before {
  background: linear-gradient(180deg, #e0b0ff, #8b5cf6);
  box-shadow: 0 0 14px rgba(180, 140, 255, 0.4);
}
#detailContent .detail-info-tag--chinese .detail-unzip-label {
  color: rgba(230, 200, 255, 0.98);
}
#detailContent .detail-info-tag--unzipguide {
  border-color: rgba(120, 220, 190, 0.45);
  background: linear-gradient(155deg, rgba(36, 120, 100, 0.38), rgba(16, 52, 48, 0.52));
}
#detailContent .detail-info-tag--unzipguide::before {
  background: linear-gradient(180deg, #7af0d0, #2dd4bf);
  box-shadow: 0 0 14px rgba(80, 220, 190, 0.35);
}
#detailContent .detail-info-tag--unzipguide .detail-unzip-label {
  color: rgba(190, 255, 230, 0.95);
}
#detailContent .detail-info-tag--password {
  border-color: rgba(255, 200, 120, 0.42);
  background: linear-gradient(155deg, rgba(140, 90, 40, 0.35), rgba(50, 32, 18, 0.48));
}
#detailContent .detail-info-tag--password::before {
  background: linear-gradient(180deg, #ffd180, #ff9800);
  box-shadow: 0 0 14px rgba(255, 180, 80, 0.4);
}
#detailContent .detail-info-tag--password .detail-unzip-label {
  color: rgba(255, 224, 178, 0.98);
}
#detailContent .detail-unzip-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 213, 120, 0.95);
  flex-shrink: 0;
}
#detailContent .detail-unzip-code {
  font-size: 15px;
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  color: #f5f8ff;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  word-break: break-all;
  flex: 1 1 120px;
  min-width: 0;
}
#detailContent .detail-unzip-copy-btn {
  flex-shrink: 0;
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(150, 200, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(95, 150, 240, 0.5), rgba(40, 85, 190, 0.65)),
    rgba(12, 28, 64, 0.9);
  color: #f2f8ff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    0 4px 12px rgba(0, 14, 44, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: filter 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
#detailContent .detail-unzip-copy-btn:hover {
  filter: brightness(1.1);
  border-color: rgba(210, 235, 255, 0.85);
}
#detailContent .detail-unzip-copy-btn:active {
  transform: scale(0.98);
}
#detailContent .detail-unzip-copy-btn.is-copied {
  border-color: rgba(120, 230, 180, 0.65);
  background: linear-gradient(180deg, rgba(80, 200, 150, 0.45), rgba(30, 100, 80, 0.7));
}
#detailContent .detail-body-block {
  margin: 0 0 16px;
  line-height: 1.65;
}
dialog::backdrop {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(40, 90, 180, 0.23), transparent 55%),
    radial-gradient(ellipse 90% 60% at 15% 20%, rgba(120, 230, 255, 0.12), transparent 55%),
    rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#noticeDialog.notice-dialog-premium {
  border: none;
  background: transparent;
  padding: 0;
  width: min(560px, calc(100vw - 28px));
  max-width: 100%;
  color: var(--text);
  box-shadow: none;
}
#noticeDialog.notice-dialog-premium::backdrop {
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(40, 90, 180, 0.25), transparent 55%),
    rgba(4, 8, 18, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.notice-dialog-inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(150, 195, 255, 0.38);
  background: linear-gradient(165deg, rgba(22, 38, 78, 0.97) 0%, rgba(8, 14, 32, 0.99) 100%);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(100, 160, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.notice-dialog-inner::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #5b8cff, #5cf0ff, #c4a3ff, #5b8cff);
  background-size: 220% 100%;
  animation: noticeAccentFlow 10s linear infinite;
}
@keyframes noticeAccentFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}
.notice-dialog-scroll {
  max-height: min(58vh, 460px);
  overflow-y: auto;
  line-height: 1.75;
  padding: 22px 24px 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #e8f0ff;
  word-break: break-word;
  white-space: normal;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 184, 255, 0.9) rgba(12, 23, 48, 0.7);
}
#noticeDialogContent.notice-dialog-scroll p {
  margin: 0 0 12px;
}
#noticeDialogContent .notice-body-rich {
  line-height: 1.65;
}
#noticeDialogContent .notice-body-rich p {
  margin: 0 0 12px;
}
#noticeDialogContent .notice-body-rich a {
  color: #9ecbff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#noticeDialogContent .notice-body-rich a:hover {
  color: #d4e8ff;
}
#noticeDialogContent .notice-body-rich img,
#noticeDialogContent .notice-body-rich .notice-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(140, 180, 255, 0.38);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 10px auto;
}
#noticeDialogContent .notice-body-rich ul,
#noticeDialogContent .notice-body-rich ol {
  margin: 0 0 12px;
  padding-left: 1.35em;
}
#noticeDialogContent .notice-body-img-wrap {
  margin: 12px 0;
  text-align: center;
}
#noticeDialogContent p .notice-body-img-wrap {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}
#noticeDialogContent .notice-body-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(140, 180, 255, 0.38);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  vertical-align: middle;
}
#noticeDialogContent .notice-body-img-wrap video.notice-body-video {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(140, 180, 255, 0.38);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.35);
}
#noticeDialogContent .notice-body-embed-wrap {
  margin: 12px 0;
}
#noticeDialogContent .notice-body-embed-aspect {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(140, 180, 255, 0.38);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.5);
}
#noticeDialogContent .notice-body-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
#noticeDialogContent .notice-cloud-card {
  margin: 12px 0;
}
#noticeDialogContent .notice-cloud-card__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 170, 255, 0.36);
  background: linear-gradient(135deg, rgba(42, 72, 138, 0.48), rgba(18, 32, 68, 0.68));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  text-decoration: none;
  color: #e8f0ff;
  border-bottom: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#noticeDialogContent .notice-cloud-card__link:hover {
  border-color: rgba(170, 210, 255, 0.52);
  box-shadow: 0 10px 28px rgba(30, 80, 180, 0.32);
  color: #f2f7ff;
}
#noticeDialogContent .notice-cloud-card__badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0a1428;
  background: linear-gradient(135deg, #8ec5ff, #5b9cff);
}
#noticeDialogContent .notice-cloud-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
#noticeDialogContent .notice-cloud-card__title {
  font-size: 14px;
  font-weight: 700;
}
#noticeDialogContent .notice-cloud-card__sub {
  font-size: 11px;
  color: rgba(180, 205, 240, 0.82);
  line-height: 1.4;
}
#noticeDialogContent .notice-cloud-card__go {
  flex-shrink: 0;
  font-size: 17px;
  color: rgba(160, 200, 255, 0.85);
}
#noticeDialogContent a {
  color: #a8d8ff;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 200, 255, 0.35);
}
#noticeDialogContent a:hover {
  color: #d4ecff;
  border-bottom-color: rgba(200, 230, 255, 0.65);
}
#noticeDialogContent .notice-dialog-more {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(120, 165, 230, 0.28);
}
.notice-dialog-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(100, 145, 220, 0.18);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
}
.notice-dialog-close {
  min-width: 120px;
  border-radius: 12px !important;
  padding: 10px 22px !important;
  border: 1px solid rgba(160, 205, 255, 0.55) !important;
  background: linear-gradient(180deg, rgba(95, 140, 220, 0.45), rgba(45, 75, 150, 0.5)) !important;
  color: #f0f6ff !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 20px rgba(8, 20, 50, 0.45), inset 0 0 0 1px rgba(200, 230, 255, 0.12) !important;
}
.notice-dialog-close:hover {
  filter: brightness(1.08);
  border-color: rgba(200, 230, 255, 0.75) !important;
}

/* —— 答疑解惑独立页 faq.html（与 tutorials 同顶栏/粒子背景）—— */
.page-faq {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* 答疑页：压低粒子/网格/光斑强度，阅读更清爽 */
body.page-faq::before {
  opacity: 0.48;
}
body.page-faq #particleBg {
  opacity: 0.38;
}
body.page-faq .bg-orb {
  opacity: 0.09;
}
body.page-faq .bg-grid {
  opacity: 0.55;
}
.page-faq .faq-page-main.page-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 22px;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: visible;
}
.faq-page-toolbar {
  margin-bottom: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 38, 72, 0.68), rgba(12, 22, 48, 0.5));
  border: 1px solid rgba(130, 180, 255, 0.18);
  box-shadow:
    0 10px 32px rgba(0, 8, 32, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.faq-page-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.faq-page-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
}
.faq-page-search-combo {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
.faq-page-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.faq-page-search-wrap input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 8px 40px 8px 14px;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(120, 170, 255, 0.4);
  background: rgba(8, 14, 32, 0.72);
  color: var(--text);
  font-size: 14px;
}
/* 避免 type=search 时与自定义清空键重复；旧 IE/Edge 文本框清除 */
.faq-page-search-wrap input[type="search"]::-webkit-search-cancel-button,
.faq-page-search-wrap input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.faq-page-search-wrap input::-ms-clear {
  display: none;
}
.faq-page-search-clear {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(200, 220, 255, 0.88);
  cursor: pointer;
  font-size: 17px;
  line-height: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-page-search-clear[hidden] {
  display: none !important;
}
.faq-page-search-clear:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f2f6ff;
}
.faq-page-search-clear:focus-visible {
  outline: 2px solid rgba(130, 200, 255, 0.75);
  outline-offset: 1px;
}
.faq-page-meta {
  margin: 0;
  font-size: 13px;
  color: rgba(180, 210, 240, 0.88);
  flex: 0 0 auto;
  white-space: nowrap;
}
.faq-page-split {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 20px;
  align-items: stretch;
  min-height: min(62vh, 560px);
}
.faq-page-nav-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid rgba(130, 180, 255, 0.16);
  background: linear-gradient(165deg, rgba(16, 28, 58, 0.76), rgba(8, 14, 36, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.faq-page-mobile-back {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 11px 16px 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: none;
  border-bottom: 1px solid rgba(100, 145, 220, 0.24);
  background: linear-gradient(180deg, rgba(20, 40, 88, 0.55), rgba(8, 16, 40, 0.42));
  color: rgba(175, 210, 255, 0.96);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, background 0.2s ease;
}
.faq-page-mobile-back:hover {
  color: #f4f8ff;
  background: linear-gradient(180deg, rgba(36, 72, 140, 0.62), rgba(14, 28, 62, 0.5));
}
.faq-page-mobile-back:focus-visible {
  outline: 2px solid rgba(130, 200, 255, 0.85);
  outline-offset: -2px;
}
.faq-page-list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 184, 255, 0.9) rgba(12, 23, 48, 0.7);
}
.faq-page-list-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: rgba(190, 210, 240, 0.78);
  line-height: 1.65;
}
.faq-page-list-item {
  --faq-tag-depth: rgba(0, 4, 18, 0.42);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px;
  padding: 14px 16px 14px 14px;
  text-align: left;
  cursor: pointer;
  border: none;
  border-radius: 16px;
  color: #f0f6ff;
  isolation: isolate;
  background: linear-gradient(
    165deg,
    rgba(46, 72, 128, 0.44) 0%,
    rgba(26, 44, 92, 0.42) 38%,
    rgba(14, 26, 58, 0.62) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 14px var(--faq-tag-depth),
    0 1px 3px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(100, 150, 230, 0.22);
  transition:
    transform 0.2s cubic-bezier(0.34, 1.15, 0.64, 1),
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.faq-page-list-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%);
  z-index: 0;
}
.faq-page-list-item > * {
  position: relative;
  z-index: 1;
}
.faq-page-list-item:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    165deg,
    rgba(56, 84, 148, 0.52) 0%,
    rgba(32, 54, 112, 0.48) 38%,
    rgba(18, 32, 72, 0.68) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.11) inset,
    0 10px 22px rgba(0, 6, 28, 0.48),
    0 2px 8px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(140, 190, 255, 0.34),
    0 0 20px rgba(80, 140, 255, 0.12);
}
.faq-page-list-item.is-active {
  transform: translateY(-1px);
  background: linear-gradient(
    165deg,
    rgba(64, 102, 188, 0.56) 0%,
    rgba(38, 68, 138, 0.52) 40%,
    rgba(22, 40, 95, 0.78) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 8px 20px rgba(0, 8, 36, 0.52),
    0 0 0 2px rgba(120, 190, 255, 0.42),
    0 0 24px rgba(100, 170, 255, 0.18);
}
.faq-page-list-num {
  flex: 0 0 auto;
  min-width: 2.1rem;
  padding: 6px 8px;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: rgba(210, 228, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 8, 24, 0.6);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(70, 110, 190, 0.55) 0%, rgba(28, 48, 100, 0.75) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -2px 8px rgba(0, 8, 32, 0.4) inset,
    0 4px 10px rgba(0, 4, 20, 0.5),
    0 0 0 1px rgba(130, 175, 255, 0.35);
}
.faq-page-list-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-page-list-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.faq-page-pin-strip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff4e8;
  text-shadow: 0 1px 2px rgba(80, 30, 0, 0.45);
  background: linear-gradient(165deg, #ff9a5c 0%, #e85d28 45%, #b83818 100%);
  border: 1px solid rgba(255, 210, 160, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -2px 6px rgba(120, 30, 0, 0.35) inset,
    0 4px 12px rgba(255, 100, 40, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.35);
}
.faq-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  border: 1px solid transparent;
  text-shadow: 0 1px 2px rgba(0, 8, 32, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 -2px 8px rgba(0, 8, 40, 0.25) inset,
    0 4px 10px rgba(0, 4, 24, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.3);
}
.faq-pill--sm {
  padding: 3px 9px;
  font-size: 10px;
  letter-spacing: 0.06em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 6px rgba(0, 8, 40, 0.2) inset,
    0 3px 8px rgba(0, 4, 24, 0.4);
}
.faq-pill--pin {
  background: linear-gradient(165deg, #ffd89c 0%, #f0a050 40%, #c86820 100%);
  border-color: rgba(255, 220, 180, 0.65);
  color: #3d2208;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.faq-pill--featured {
  background: linear-gradient(165deg, #c8a8ff 0%, #8b5cf6 45%, #5b21b6 100%);
  border-color: rgba(220, 200, 255, 0.55);
  color: #faf5ff;
}
.faq-pill--essence {
  background: linear-gradient(165deg, #ffb8e8 0%, #ec4899 48%, #9d174d 100%);
  border-color: rgba(255, 190, 230, 0.5);
  color: #fff5fb;
}
.faq-pill--mustsee {
  background: linear-gradient(165deg, #ff9a9a 0%, #ef4444 45%, #991b1b 100%);
  border-color: rgba(255, 180, 180, 0.55);
  color: #fff5f5;
}
.faq-pill--hot {
  background: linear-gradient(165deg, #ffc078 0%, #f97316 42%, #c2410c 100%);
  border-color: rgba(255, 210, 160, 0.6);
  color: #fffaf4;
}
.faq-pill--rec {
  background: linear-gradient(165deg, #6ee7d8 0%, #14b8a6 45%, #0f766e 100%);
  border-color: rgba(180, 245, 230, 0.45);
  color: #042f2e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.faq-pill--news {
  background: linear-gradient(165deg, #93c5fd 0%, #3b82f6 45%, #1d4ed8 100%);
  border-color: rgba(180, 210, 255, 0.55);
  color: #f0f9ff;
}
.faq-pill--play {
  background: linear-gradient(165deg, #fde68a 0%, #eab308 45%, #a16207 100%);
  border-color: rgba(255, 235, 160, 0.55);
  color: #422006;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.faq-pill--new {
  background: linear-gradient(165deg, #86efdc 0%, #2dd4bf 45%, #0d9488 100%);
  border-color: rgba(180, 255, 240, 0.45);
  color: #042f2e;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}
.faq-pill--soft {
  background: linear-gradient(165deg, rgba(140, 175, 240, 0.55) 0%, rgba(70, 100, 180, 0.5) 100%);
  border-color: rgba(170, 200, 255, 0.45);
  color: #f0f6ff;
}
.faq-page-list-q {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 6, 24, 0.38);
}
.faq-page-list-chev {
  flex: 0 0 auto;
  align-self: center;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: rgba(200, 225, 255, 0.75);
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(60, 90, 160, 0.5) 0%, rgba(24, 40, 88, 0.65) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 -2px 6px rgba(0, 8, 32, 0.35) inset,
    0 3px 8px rgba(0, 4, 20, 0.45);
}
.faq-page-list-item:hover .faq-page-list-chev {
  color: rgba(230, 240, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -2px 6px rgba(0, 8, 32, 0.3) inset,
    0 4px 12px rgba(60, 120, 255, 0.2);
}
@media (prefers-reduced-motion: reduce) {
  .faq-page-list-item,
  .faq-page-list-item:hover,
  .faq-page-list-item.is-active {
    transform: none;
  }
}
@media (max-width: 640px) {
  .faq-page-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .faq-page-search-combo {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .faq-page-meta {
    text-align: right;
    white-space: normal;
  }
}
.faq-page-article-col {
  border-radius: 16px;
  border: 1px solid rgba(130, 180, 255, 0.16);
  background: linear-gradient(160deg, rgba(20, 36, 72, 0.82), rgba(10, 18, 42, 0.9));
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* 类选择器 display 会覆盖 [hidden]，需显式尊重 hidden（否则选题后占位仍占位） */
.faq-page-empty-hint[hidden],
.faq-page-detail[hidden] {
  display: none !important;
}
.faq-page-empty-hint {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 28px;
  text-align: center;
}
.faq-page-empty-visual {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  opacity: 0.42;
  filter: saturate(0.92);
}
.faq-page-empty-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.faq-page-empty-chip--q {
  color: rgba(230, 240, 255, 0.95);
  background: linear-gradient(155deg, rgba(90, 140, 220, 0.45), rgba(40, 72, 150, 0.5));
}
.faq-page-empty-chip--a {
  color: rgba(230, 255, 246, 0.92);
  background: linear-gradient(155deg, rgba(56, 200, 150, 0.4), rgba(24, 120, 88, 0.45));
}
.faq-page-empty-line {
  width: 48px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(140, 190, 255, 0.35),
    rgba(120, 220, 190, 0.28),
    transparent
  );
}
.faq-page-empty-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #e8f0ff;
  letter-spacing: 0.02em;
}
.faq-page-empty-desc {
  margin: 0;
  max-width: 28rem;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(188, 208, 236, 0.82);
}
.faq-page-detail {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.faq-page-answer-card {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: min(58vh, 540px);
  border-radius: 18px;
  border: 1px solid rgba(130, 175, 255, 0.28);
  background: linear-gradient(
    168deg,
    rgba(28, 48, 96, 0.88) 0%,
    rgba(14, 26, 58, 0.93) 45%,
    rgba(8, 14, 36, 0.96) 100%
  );
  box-shadow:
    0 18px 48px rgba(0, 6, 32, 0.42),
    0 0 0 1px rgba(100, 160, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.faq-page-answer-card__accent {
  height: 3px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #4f7ae8, #42b8d9, #9b8fd8, #4f7ae8);
  background-size: 240% 100%;
  animation: noticeAccentFlow 22s linear infinite;
  opacity: 0.92;
}
@media (prefers-reduced-motion: reduce) {
  .faq-page-answer-card__accent {
    animation: none;
    background: linear-gradient(90deg, #4f7ae8, #42b8d9, #9b8fd8);
    background-size: 100% 100%;
    opacity: 1;
  }
}
.faq-page-answer-head {
  padding: 22px 26px 0;
  flex-shrink: 0;
}
.faq-page-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 0;
}
.faq-page-detail-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #f8fbff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 40, 120, 0.45);
}
.faq-page-detail-title.faq-page-qa-row {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
}
.faq-page-qa-row {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
}
.faq-page-qa-label-cluster {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.02em;
}
.faq-page-qa-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.05em;
  height: 1.88em;
  padding: 0 0.5em;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  line-height: 1;
  border-radius: 9px;
  position: relative;
  top: 0.12em;
  color: #f6fbff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.38),
    0 -1px 0 rgba(0, 0, 0, 0.32),
    0 2px 10px rgba(0, 0, 0, 0.42);
  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -10px 18px rgba(0, 0, 0, 0.22) inset;
}
.faq-page-qa-tag--q {
  background: linear-gradient(158deg, #6ea4ff 0%, #3d6ef0 36%, #1a3d9e 72%, #0f2868 100%);
}
.faq-page-qa-tag--a {
  top: 0.22em;
  color: #eafff6;
  background: linear-gradient(158deg, #5ee9b5 0%, #22c38a 38%, #0a7a55 72%, #044d3a 100%);
  border-color: rgba(200, 255, 230, 0.28);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.32),
    0 -1px 0 rgba(0, 0, 0, 0.28),
    0 2px 10px rgba(0, 0, 0, 0.4);
}
.faq-page-qa-colon {
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1;
  color: rgba(175, 205, 255, 0.52);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.faq-page-qa-q-text {
  flex: 1;
  min-width: 0;
  padding-top: 0.06em;
}
.faq-page-qa-row--answer .faq-page-detail-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.14em;
}
.faq-page-answer-scroll-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.faq-page-answer-body-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 26px 56px;
  scrollbar-width: thin;
  scrollbar-color: rgba(126, 184, 255, 0.85) rgba(12, 23, 48, 0.65);
}
.faq-page-back-top {
  position: absolute;
  right: 10px;
  bottom: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(140, 195, 255, 0.48);
  background: linear-gradient(158deg, rgba(88, 128, 228, 0.95), rgba(36, 62, 148, 0.96));
  box-shadow:
    0 10px 28px rgba(0, 12, 48, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 0 0 1px rgba(0, 0, 0, 0.18) inset;
  color: #f4f8ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.faq-page-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.faq-page-back-top:hover {
  border-color: rgba(190, 228, 255, 0.65);
  box-shadow:
    0 14px 36px rgba(40, 90, 220, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}
.faq-page-back-top:focus-visible {
  outline: 2px solid rgba(130, 200, 255, 0.9);
  outline-offset: 2px;
}
.faq-page-back-top__icon {
  flex-shrink: 0;
  opacity: 0.92;
}
.faq-page-back-top__text {
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .faq-page-back-top {
    transition: none;
  }
}
.faq-page-detail-body {
  line-height: 1.78;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #e8f0ff;
  word-break: break-word;
}
.faq-page-detail-body p {
  margin: 0 0 14px;
}
.faq-page-detail-body .notice-body-rich {
  line-height: 1.78;
}
.faq-page-detail-body .notice-body-rich p {
  margin: 0 0 14px;
}
.faq-page-detail-body .notice-body-rich a {
  color: #9ecbff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-page-detail-body .notice-body-rich a:hover {
  color: #d4e8ff;
}
.faq-page-detail-body .notice-body-rich img,
.faq-page-detail-body .notice-body-rich .notice-inline-img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(140, 180, 255, 0.42);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: block;
  margin: 12px auto;
}
.faq-page-detail-body .notice-body-rich ul,
.faq-page-detail-body .notice-body-rich ol {
  margin: 0 0 14px;
  padding-left: 1.35em;
}
.faq-page-detail-body .notice-body-img-wrap {
  margin: 16px 0;
  text-align: center;
}
.faq-page-detail-body p .notice-body-img-wrap {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}
.faq-page-detail-body .notice-body-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(140, 180, 255, 0.42);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  vertical-align: middle;
}
.faq-page-detail-body .notice-body-img-wrap video.notice-body-video {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(140, 180, 255, 0.42);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  vertical-align: middle;
  background: rgba(0, 0, 0, 0.35);
}
.faq-page-detail-body .notice-body-embed-wrap {
  margin: 16px 0;
}
.faq-page-detail-body .notice-body-embed-aspect {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(140, 180, 255, 0.42);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.5);
}
.faq-page-detail-body .notice-body-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.faq-page-detail-body .notice-cloud-card {
  margin: 16px 0;
}
.faq-page-detail-body .notice-cloud-card__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(120, 170, 255, 0.38);
  background: linear-gradient(135deg, rgba(42, 72, 138, 0.5), rgba(18, 32, 68, 0.72));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  text-decoration: none;
  color: #e8f0ff;
  border-bottom: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-page-detail-body .notice-cloud-card__link:hover {
  border-color: rgba(170, 210, 255, 0.55);
  box-shadow: 0 12px 32px rgba(30, 80, 180, 0.35);
}
.faq-page-detail-body .notice-cloud-card__badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #0a1428;
  background: linear-gradient(135deg, #8ec5ff, #5b9cff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.faq-page-detail-body .notice-cloud-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.faq-page-detail-body .notice-cloud-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #f2f7ff;
}
.faq-page-detail-body .notice-cloud-card__sub {
  font-size: 12px;
  color: rgba(180, 205, 240, 0.82);
  line-height: 1.45;
}
.faq-page-detail-body .notice-cloud-card__go {
  flex-shrink: 0;
  font-size: 18px;
  color: rgba(160, 200, 255, 0.85);
}
.faq-page-detail-body a {
  color: #a8d8ff;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 200, 255, 0.35);
}
.faq-page-detail-body a:hover {
  color: #d4ecff;
  border-bottom-color: rgba(200, 230, 255, 0.65);
}
@media (max-width: 900px) {
  .faq-page-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .faq-page-nav-col {
    max-height: min(48vh, 420px);
  }
  .faq-page-split--article .faq-page-nav-col {
    display: none;
  }
  .faq-page-split--article .faq-page-article-col {
    min-height: min(70vh, 640px);
  }
  .faq-page-split--article .faq-page-mobile-back:not([hidden]) {
    display: inline-flex;
  }
  .faq-page-detail-title.faq-page-qa-row {
    font-size: 18px;
  }
  .faq-page-qa-tag {
    font-size: 12px;
    min-width: 1.9em;
    height: 1.82em;
    border-radius: 8px;
  }
  .faq-page-back-top {
    right: 8px;
    bottom: 10px;
    padding: 10px;
  }
  .faq-page-back-top__text {
    display: none;
  }
}

.dialog-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(100, 145, 220, 0.18);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.meta { color: var(--muted); }

#demandSubmitMsg.demand-msg-success {
  color: #d4ffe8;
  font-weight: 600;
  font-size: 13px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(120, 230, 180, 0.55);
  background: linear-gradient(135deg, rgba(46, 140, 96, 0.35), rgba(30, 90, 70, 0.25));
  text-align: center;
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 200;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #e8fff4;
  text-align: center;
  line-height: 1.45;
  border: 1px solid rgba(140, 235, 190, 0.65);
  background: linear-gradient(145deg, rgba(52, 160, 110, 0.92), rgba(28, 100, 78, 0.95));
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(100, 220, 160, 0.35);
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.disk-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.disk-qr-modal[hidden] {
  display: none !important;
}

/* 多网盘选择：立体弹窗 */
.disk-pick-modal {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.disk-pick-modal[hidden] {
  display: none !important;
}
.disk-pick-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(100, 160, 255, 0.22), transparent 55%),
    radial-gradient(circle at 12% 88%, rgba(180, 120, 255, 0.18), transparent 45%),
    rgba(3, 6, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.disk-pick-card {
  position: relative;
  z-index: 1;
  width: min(440px, calc(100vw - 32px));
  max-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(150, 195, 255, 0.5);
  background:
    linear-gradient(168deg, rgba(28, 48, 98, 0.97) 0%, rgba(12, 22, 52, 0.99) 45%, rgba(8, 14, 36, 1) 100%);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.65),
    0 12px 40px rgba(40, 80, 180, 0.35),
    0 0 0 1px rgba(100, 160, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -24px 60px rgba(80, 120, 220, 0.12);
  transform-style: preserve-3d;
  perspective: 1200px;
  animation: modalPop 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.disk-pick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 42%,
    transparent 58%,
    rgba(120, 180, 255, 0.08) 100%
  );
  opacity: 0.85;
}
.disk-pick-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5b8cff, #6af0ff, #c4a8ff, #5b8cff);
  background-size: 240% 100%;
  animation: noticeAccentFlow 10s linear infinite;
}
.disk-pick-close {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(175, 213, 255, 0.45);
  background: linear-gradient(180deg, rgba(95, 140, 230, 0.4), rgba(45, 78, 150, 0.55));
  color: #f0f6ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 10, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.disk-pick-close:hover {
  transform: scale(1.06);
  border-color: rgba(255, 180, 200, 0.75);
  background: linear-gradient(180deg, rgba(255, 120, 140, 0.75), rgba(200, 50, 80, 0.85));
}
.disk-pick-head {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 48px 12px;
}
.disk-pick-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(180, 210, 255, 0.75);
}
.disk-pick-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f0f7ff;
  text-shadow: 0 4px 24px rgba(80, 140, 255, 0.45);
  line-height: 1.35;
}
.disk-pick-sub {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(200, 220, 255, 0.72);
}
.disk-pick-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 18px 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.disk-pick-li {
  margin: 0 0 10px;
}
.disk-pick-li:last-child {
  margin-bottom: 0;
}
.disk-pick-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(140, 180, 240, 0.45);
  background: linear-gradient(165deg, rgba(40, 70, 140, 0.55), rgba(20, 36, 78, 0.75));
  color: #e8f2ff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  box-shadow:
    0 6px 16px rgba(0, 8, 32, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.disk-pick-option:hover {
  transform: translateY(-2px) translateZ(0);
  border-color: rgba(190, 220, 255, 0.75);
  background: linear-gradient(165deg, rgba(55, 95, 180, 0.65), rgba(28, 50, 110, 0.82));
  box-shadow:
    0 12px 28px rgba(0, 12, 48, 0.5),
    0 0 24px rgba(90, 150, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.disk-pick-option:active {
  transform: translateY(0);
}
.disk-pick-option-label {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.disk-pick-option-arrow {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  opacity: 0.75;
  color: rgba(180, 220, 255, 0.95);
}

.disk-qr-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(90, 140, 220, 0.14), transparent 48%),
    rgba(6, 10, 22, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.disk-qr-card {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 28px));
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(120, 160, 220, 0.22);
  background:
    linear-gradient(168deg, rgba(20, 32, 62, 0.94) 0%, rgba(10, 16, 34, 0.97) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: modalPop .34s cubic-bezier(.22, .61, .36, 1);
}
.disk-qr-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(100, 150, 230, 0.45), rgba(120, 200, 230, 0.35), rgba(140, 130, 220, 0.4));
  opacity: 0.85;
  pointer-events: none;
}
.disk-qr-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(230, 238, 255, 0.85);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  box-shadow: none;
}
.disk-qr-close:hover {
  transform: scale(1.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}
.disk-qr-head {
  text-align: center;
  padding: 22px 52px 10px;
}
.disk-qr-resource-meta {
  margin: 0 0 12px;
  padding: 0 6px;
  width: 100%;
  box-sizing: border-box;
}
.disk-qr-resource-line {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}
.disk-qr-resource-line-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: min(520px, 92vw);
  min-width: 0;
}
.disk-qr-cat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: min(152px, 36vw);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.disk-qr-cat-badge--pc {
  color: rgba(200, 236, 220, 0.95);
  border-color: rgba(110, 190, 160, 0.28);
  background: rgba(70, 160, 120, 0.12);
}
.disk-qr-cat-badge--mobile {
  color: rgba(210, 228, 255, 0.96);
  border-color: rgba(110, 150, 230, 0.3);
  background: rgba(80, 120, 210, 0.12);
}
.disk-qr-cat-badge--trainer {
  color: rgba(255, 220, 200, 0.96);
  border-color: rgba(230, 150, 110, 0.28);
  background: rgba(220, 120, 80, 0.1);
}
.disk-qr-resource-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(15px, 3.2vw, 19px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: rgba(245, 248, 255, 0.96);
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 10px rgba(0, 8, 28, 0.35);
}
.disk-qr-resource-name:empty {
  display: none;
}
.disk-qr-head h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(240, 246, 255, 0.98);
  text-shadow: 0 2px 16px rgba(40, 90, 180, 0.22);
}
.disk-qr-subtitle {
  margin: 8px 0 0;
  color: rgba(180, 200, 235, 0.72);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.disk-qr-body {
  padding: 6px 20px 20px;
}
.disk-qr-image-wrap {
  width: min(240px, 80vw);
  margin: 0 auto;
  padding: 11px;
  border-radius: 16px;
  border: 1px solid rgba(140, 175, 220, 0.22);
  background: linear-gradient(180deg, rgba(245, 248, 255, 0.97), rgba(255, 255, 255, 0.99));
  box-shadow:
    0 10px 28px rgba(0, 4, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
#diskQrImg {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
}
.disk-qr-quark-tip {
  margin: 12px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(120, 210, 255, 0.55);
  color: #c8f0ff;
  background: linear-gradient(135deg, rgba(60, 160, 255, 0.22), rgba(30, 90, 160, 0.14));
  box-shadow: 0 6px 18px rgba(20, 80, 140, 0.2);
}
.disk-qr-quark-tip[hidden] {
  display: none !important;
}
.disk-qr-urgency {
  margin: 14px 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 140, 150, 0.22);
  background: rgba(180, 60, 80, 0.18);
  color: rgba(255, 248, 248, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.disk-qr-urgency-main {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  font-size: clamp(13px, 2.75vw, 16px);
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
}
.disk-qr-urgency-text {
  flex: 0 1 auto;
  min-width: 0;
  text-align: center;
}
.disk-qr-urgency-time {
  flex-shrink: 0;
  white-space: nowrap;
}
#diskQrCountdown,
.disk-qr-countdown-digits {
  color: rgba(255, 230, 150, 0.95);
  text-shadow: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.disk-qr-notice {
  display: grid;
  gap: 8px;
}
.disk-qr-notice > div {
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  border: 1px solid rgba(120, 200, 150, 0.2);
  color: rgba(210, 235, 220, 0.88);
  background: rgba(60, 140, 100, 0.1);
}
.disk-qr-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}
.disk-qr-actions[hidden] {
  display: none !important;
}
.disk-qr-feedback {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.disk-qr-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  color: rgba(230, 238, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  user-select: none;
}

.disk-qr-feedback-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.disk-qr-feedback-btn:active {
  transform: translateY(0);
}

.disk-qr-feedback-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none !important;
}

.disk-qr-feedback-btn--ok {
  border-color: rgba(110, 200, 160, 0.28);
  color: rgba(200, 245, 220, 0.95);
  background: rgba(70, 160, 120, 0.12);
}

.disk-qr-feedback-btn--fail {
  border-color: rgba(220, 120, 130, 0.28);
  color: rgba(255, 210, 210, 0.92);
  background: rgba(200, 80, 100, 0.1);
}

.disk-qr-feedback-btn .disk-qr-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.disk-qr-feedback-btn .disk-qr-feedback-text {
  white-space: nowrap;
}
.disk-qr-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(20, 45, 38, 0.95);
  background: linear-gradient(180deg, rgba(170, 240, 210, 0.95) 0%, rgba(120, 210, 175, 0.92) 100%);
  border: 1px solid rgba(100, 190, 150, 0.35);
  box-shadow: 0 4px 14px rgba(40, 120, 90, 0.15);
}
.disk-qr-open-link:hover {
  filter: brightness(1.04);
  border-color: rgba(100, 190, 150, 0.5);
}
.disk-qr-footer-tips {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}
.disk-qr-footer-tips p {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(196, 212, 242, 0.82);
  text-align: center;
}
@media (max-width: 1200px) {
  /* 中等屏不再让「分类」占据过高纵向空间：改为自适应网格 */
  #categoryList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    /* 顶对齐：某一格展开子菜单时，不要整行被撑成同一高度 */
    align-items: start;
    justify-items: stretch;
  }

  #categoryList .category-item {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
  }
}

@media (max-width: 640px) {
  .row-line--steam-meta {
    display: none !important;
  }
  .disk-qr-head { padding: 20px 40px 8px; }
  .disk-qr-resource-meta { margin-bottom: 10px; }
  .disk-qr-resource-line-inner { gap: 8px; max-width: min(500px, 94vw); }
  .disk-qr-cat-badge { font-size: 12px; padding: 3px 9px; max-width: min(136px, 34vw); }
  .disk-qr-resource-name { font-size: clamp(14px, 3.5vw, 17px); }
  .disk-qr-head h3 { font-size: 28px; }
  .disk-qr-subtitle { font-size: 14px; }
  .disk-qr-body { padding: 8px 16px 18px; }
  .disk-qr-urgency-main {
    font-size: clamp(12px, 3.4vw, 15px);
  }
  .disk-qr-notice > div { font-size: 14px; }
  .disk-qr-quark-tip { font-size: 14px; }
}

/* 中等及以下屏幕：让下半区与上半区一致进入响应式布局 */
@media (max-width: 1200px) {
  html, body {
    overflow-y: auto;
  }
  body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100vw - 24px);
  }

  .page-shell {
    grid-template-columns: 1fr;
    min-width: 0;
    overflow-x: visible;
  }

  .layout {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  #categoryPanel,
  .resource-panel {
    max-height: none;
  }

  #resourceList {
    overflow: visible;
    max-height: none;
  }

  .ad-side {
    display: none;
  }

  .ad-rail-mobile {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    margin-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .ad-rail-mobile .ad-item {
    flex: 0 0 min(58vw, 280px);
    scroll-snap-align: start;
    touch-action: pan-x pan-y pinch-zoom;
  }
}

.compliance-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.compliance-modal.show { display: flex; }
.compliance-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(89, 133, 255, 0.24), transparent 44%),
              radial-gradient(circle at 82% 22%, rgba(86, 220, 255, 0.2), transparent 40%),
              rgba(3, 8, 18, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFade .35s ease;
}
.compliance-card {
  position: relative;
  width: min(920px, calc(100vw - 34px));
  border: 1px solid rgba(159, 192, 255, 0.35);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18, 28, 56, 0.97), rgba(11, 20, 41, 0.97));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58), inset 0 0 36px rgba(118, 182, 255, 0.08);
  overflow: hidden;
  animation: modalPop .38s cubic-bezier(.22, .61, .36, 1);
}
.compliance-card::before {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 55%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(174, 220, 255, 0.9), transparent);
  animation: sweep 3.8s linear infinite;
}
.compliance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(123, 165, 245, 0.25);
}
.compliance-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .4px;
}
.compliance-tag {
  font-size: 12px;
  color: #d7f1ff;
  border: 1px solid rgba(140, 190, 255, 0.6);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(102, 156, 255, 0.18);
}
.compliance-content {
  padding: 18px 22px 6px;
  max-height: min(56vh, 520px);
  overflow: auto;
  color: #dbe7ff;
  line-height: 1.95;
  font-size: 16px;
}
.compliance-content p { margin: 0 0 20px; text-indent: 2em; }
.compliance-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(123, 165, 245, 0.22);
}
.ghost-btn, .primary-btn {
  min-width: 140px;
  border-radius: 12px;
  font-size: 15px;
}
.ghost-btn {
  background: rgba(100, 122, 168, 0.24);
  border: 1px solid rgba(132, 155, 202, 0.45);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.ghost-btn:hover:not(:disabled) {
  filter: brightness(1.1);
}
.ghost-btn:active:not(:disabled) {
  filter: brightness(0.9);
}
.primary-btn {
  background: linear-gradient(90deg, #6c67ff, #9a40f2);
  border: 1px solid rgba(198, 157, 255, 0.7);
  color: #fff;
  box-shadow: 0 6px 16px rgba(152, 82, 255, 0.34);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.primary-btn:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 8px 22px rgba(152, 82, 255, 0.42);
}
.primary-btn:active:not(:disabled) {
  filter: brightness(0.88);
}

body.modal-open { overflow: hidden; }

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.975) rotateX(8deg);
    filter: blur(2px) saturate(1.05);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0) saturate(1);
  }
}
@keyframes sweep {
  from { transform: translateX(0); }
  to { transform: translateX(300%); }
}
@keyframes brandFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}
@keyframes subtitleGlow {
  0%, 100% { opacity: 0.32; transform: scaleX(0.94); }
  50% { opacity: 0.68; transform: scaleX(1); }
}
@keyframes dreamFlow {
  0% { transform: translate3d(-1.2%, -0.6%, 0) scale(1); filter: saturate(100%); }
  100% { transform: translate3d(1.2%, 1%, 0) scale(1.022); filter: saturate(102%); }
}
@keyframes orbFloatA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(16px, -10px, 0) scale(1.04); }
}
@keyframes orbFloatB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-14px, 14px, 0) scale(1.03); }
}
@keyframes orbPulse {
  0%, 100% { opacity: 0.14; transform: scale(0.98); }
  50% { opacity: 0.38; transform: scale(1.02); }
}
@keyframes brandLogoPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 12px rgba(120, 189, 255, 0.22);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 14px rgba(125, 200, 255, 0.36);
  }
}
@keyframes gridSweep {
  0% { transform: translateX(-85%); opacity: 0; }
  20% { opacity: 0.07; }
  80% { opacity: 0.07; }
  100% { transform: translateX(85%); opacity: 0; }
}

@media (max-width: 1200px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100vw - 24px);
  }

  .page-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-width: 0;
    overflow-x: visible;
  }

  .layout {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  #categoryPanel,
  .resource-panel {
    max-height: none;
  }

  #resourceList {
    overflow-y: visible;
  }

  .ad-side {
    display: none;
  }

  .ad-rail-mobile {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    margin-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .ad-rail-mobile .ad-item {
    flex: 0 0 min(58vw, 260px);
    touch-action: pan-x pan-y pinch-zoom;
  }
}

@media (max-width: 640px) {
  .page-shell { grid-template-columns: 1fr; }
  .ad-side {
    position: static;
    max-height: none;
    overflow: visible;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .layout { grid-template-columns: 1fr; }
  .resource-panel { max-height: none; }
  #resourceList { overflow: visible; }
}

@media (max-width: 640px) {
  :root {
    --ui-nav-pill-fs: 12px;
    --ui-nav-pill-py: 6px;
    --ui-nav-pill-px: 11px;
    --ui-nav-pill-radius: 999px;
  }

  html, body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .notice-expand-toggle {
    display: flex;
  }

  .page-shell {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow-x: visible;
  }
  .layout { min-width: 0; }

  .container { width: calc(100vw - 20px); }

  #categoryList {
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 8px;
  }

  #categoryList .category-item {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 11px;
  }
  .topbar-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 0 12px; }
  .topbar-inner .brand { width: 100%; }
  .brand {
    gap: 10px;
  }
  .brand h1 { font-size: 22px; }
  .brand-side p { font-size: 11px; margin-top: 0; }
  .topbar-inner .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 2px 0 8px;
    margin: 0 -2px;
  }
  .nav a,
  .nav-dropdown-trigger {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .nav-dropdown {
    flex: 0 0 auto;
  }
  .brand-logo {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 5px;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 2px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(145, 182, 235, 0.28);
    background: linear-gradient(
      165deg,
      rgba(30, 48, 88, 0.72) 0%,
      rgba(16, 32, 62, 0.82) 100%
    );
    box-shadow:
      0 10px 28px rgba(4, 12, 36, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .toolbar-primary {
    flex: none;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .toolbar-primary .search-wrap #searchInput {
    min-height: 44px;
    padding: 10px 38px 10px 12px;
    font-size: 15px;
  }
  .toolbar-primary #searchBtn {
    min-height: 44px;
    min-width: 4.5rem;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #f8fbff;
  }
  .toolbar-secondary {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: stretch;
  }
  .toolbar-secondary > :only-child {
    grid-column: 1 / -1;
  }
  .toolbar-secondary .disk-filter-wrap {
    min-width: 0;
  }
  .toolbar-secondary .disk-filter-btn {
    width: 100%;
    min-width: 0;
    padding: 10px 10px;
    font-size: 12px;
    min-height: 44px;
  }
  #searchScopeWrap .disk-filter-btn {
    min-height: 44px;
    padding: 10px 11px;
  }
  .cat-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(146, 187, 255, 0.62);
    background:
      linear-gradient(180deg, rgba(83, 129, 226, 0.44), rgba(36, 64, 134, 0.56)),
      rgba(9, 20, 44, 0.88);
    color: #eaf3ff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    box-shadow:
      0 6px 14px rgba(8, 21, 52, 0.35),
      inset 0 0 0 1px rgba(181, 218, 255, 0.1);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
  }
  .cat-toggle-btn:hover {
    filter: brightness(1.1);
    box-shadow:
      0 8px 18px rgba(8, 21, 52, 0.4),
      inset 0 0 0 1px rgba(200, 230, 255, 0.16);
  }
  .cat-toggle-btn:active {
    filter: brightness(0.9);
  }
  #categoryTagFilterMenu {
    width: min(720px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    left: auto;
    right: 0;
  }

  .notice-wrap {
    margin-top: 10px;
    gap: 10px;
  }
  .home-hot-strip {
    padding: 8px 8px 10px;
    gap: 6px;
    border-radius: 14px;
  }
  .home-hot-strip__tab {
    padding: 5px 11px;
    font-size: 11px;
  }
  #resourceList {
    margin-top: 8px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .resource-list-body {
    gap: 10px;
  }
  .hot-category-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .resource-item {
    border-radius: 12px;
  }
  .resource-item > .row-main {
    padding: 10px 12px;
  }
  .resource-item--has-cover .row-main {
    align-items: flex-start;
  }
  .row-main {
    gap: 10px;
  }
  .row-title-main .title-text {
    padding-left: 0;
    font-size: 14px;
    line-height: 1.35;
  }
  .row-title-main .title-text::before {
    display: none;
  }
  .row-line--bar {
    flex-wrap: wrap;
    align-content: flex-start;
    row-gap: 6px;
    overflow-x: visible;
    min-height: 32px;
    padding-top: 4px;
    margin-top: 2px;
  }
  .row-line--bar .row-bar-actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(100, 140, 200, 0.14);
  }
  .row-line--bar .row-bar-part.row-bar-disks {
    flex: 0 1 auto;
    min-width: 0;
  }
  .row-line--bar .row-type {
    min-height: 0;
    justify-content: flex-start;
  }
  .row-line--bar > .row-bar-part {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
  }
  .row-line--bar .row-bar-cats {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
  }

  .cat-toggle-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(220, 240, 255, 0.9);
    transform: translateY(1px);
  }

  /* 小屏：分类折叠为抽屉，避免挤占搜索框位置 */
  #categoryPanel {
    display: none;
  }
  body.cat-open #categoryPanel {
    display: block;
    position: fixed;
    left: 10px;
    right: 10px;
    top: 84px;
    max-height: min(72vh, calc(100vh - 120px));
    overflow: auto;
    z-index: 220;
    padding: 14px;
  }
  .category-backdrop {
    position: fixed;
    inset: 0;
    background:
      radial-gradient(circle at 20% 10%, rgba(89, 133, 255, 0.26), transparent 45%),
      radial-gradient(circle at 85% 18%, rgba(109, 239, 255, 0.18), transparent 45%),
      rgba(4, 8, 18, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 210;
  }
  body.cat-open .category-backdrop {
    display: block;
  }

  /* 窄屏/窗口较小时：主统计移到列表与分页下方，与「当前页统计」同处底部区域 */
  .resource-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
  }
  .resource-panel > .toolbar {
    order: 1;
  }
  .resource-panel > .cards {
    order: 2;
  }
  .resource-panel > .pager-page-row {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .resource-panel > .stats-primary {
    order: 4;
    margin-top: 10px;
  }
  .pager-page-row .stats-page {
    min-width: 0;
  }

  .resource-list-head { display: none; }
  .resource-list-head, .resource-item { grid-template-columns: 1fr; }
  .hot-category-section {
    padding: 8px 8px 10px;
  }
  .hot-category-section__title {
    font-size: 14px;
  }
  .hot-category-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hot-category-card__title {
    font-size: 13px;
    padding: 7px 8px 8px;
  }
  /* 勿与桌面 grid-auto-flow:column 叠 repeat(2)，会算出异常列宽撑宽页面 */
  .home-hot-strip__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(112px, min(38vw, 152px));
  }
  .home-hot-strip__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .row-line--title {
    flex-wrap: nowrap;
    align-items: center;
  }
  .row-line-title-left {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .row-cover-wrap {
    width: 120px;
    border-radius: 9px;
  }
  .row-cover-size-badge {
    top: 2px;
    right: 2px;
    padding: 1px 4px;
    font-size: 7px;
    border-radius: 3px;
  }
  .row-cover-cats {
    padding: 2px 4px 2px;
    gap: 3px;
  }
  .row-cover-cats .cat-pill {
    padding: 2px 7px;
    font-size: 8px;
  }
  .row-title-dates {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .row-date-chip {
    font-size: 10px;
    padding: 3px 8px 3px 6px;
  }
  .row-date-icon {
    width: 11px;
    height: 11px;
  }
  .res-badges { max-width: 100%; }
  .row-type, .row-time { padding-top: 0; }
  .type-pill { flex: 0 0 auto; }

  /* 手机 + 有封面：避免「特性标签/时间」挤压标题 */
  .resource-item--has-cover .row-line--title {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px 8px;
  }
  .resource-item--has-cover .row-line-title-left {
    flex: 1 1 100%;
    min-width: 0;
  }
  .resource-item--has-cover .title-text-wrap {
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
  }
  .resource-item--has-cover .title-text-wrap .title-text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .resource-item--has-cover .title-text-wrap .feat-strip {
    order: 2;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .resource-item--has-cover .title-text-wrap .feat-strip::-webkit-scrollbar {
    display: none;
    height: 0;
  }
  .resource-item--has-cover .feat-strip-pill {
    font-size: 9px;
    padding: 1px 7px;
  }
  .resource-item--has-cover .row-title-dates {
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
    padding-top: 1px;
  }
  .resource-item--has-cover .row-date-chip {
    font-size: 9px;
    padding: 2px 7px 2px 5px;
  }
  .resource-item--has-cover .row-date-icon {
    width: 10px;
    height: 10px;
  }

  /* 小屏广告位：左右广告合并到一个横向轨道，可左右滑动，保留横向滚动条提示 */
  .ad-side {
    display: none;
  }
  .ad-rail-mobile {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    margin-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(150, 190, 255, 0.55) rgba(20, 34, 64, 0.45);
  }

  /* 轨道 pan-x；卡片仅纵向，横滑交给父级滚动容器（避免链接触控层抢横向手势） */
  .ad-rail-mobile a.ad-item,
  .ad-rail-mobile .ad-item {
    touch-action: pan-x pan-y pinch-zoom;
  }
  .ad-rail-mobile::-webkit-scrollbar {
    height: 8px;
  }
  .ad-rail-mobile::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(160, 205, 255, 0.45), rgba(100, 150, 255, 0.35));
    border-radius: 999px;
    border: 1px solid rgba(120, 170, 255, 0.25);
  }
  .ad-rail-mobile::-webkit-scrollbar-track {
    background: rgba(14, 24, 47, 0.65);
    border-radius: 999px;
  }
  .ad-rail-mobile .ad-item {
    flex: 0 0 min(52vw, 220px);
    max-width: min(52vw, 220px);
    scroll-snap-align: start;
    border-radius: 10px;
  }
  .ad-rail-mobile .ad-item img {
    aspect-ratio: 16 / 9;
  }
  .ad-rail-mobile .ad-title {
    padding: 5px 6px 6px;
    font-size: 10px;
    line-height: 1.3;
  }
  .ad-rail-mobile .ad-badge {
    padding: 3px 7px 4px 8px;
    font-size: 8px;
    border-radius: 0 9px 0 10px;
  }

  .compliance-content { font-size: 14px; line-height: 1.75; }
  .compliance-actions { justify-content: center; }
  .ghost-btn, .primary-btn { min-width: 120px; }
}

/* --- 视频教程页 tutorials.html --- */
.page-tutorials .brand-home-link,
.page-faq .brand-home-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.page-tutorials .brand-home-link:hover,
.page-faq .brand-home-link:hover {
  color: var(--primary-2);
}
.tutorials-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tutorials-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 195, 255, 0.18);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tutorials-back-home:hover {
  background: rgba(110, 168, 255, 0.12);
  border-color: rgba(160, 195, 255, 0.35);
}
.page-tutorials {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 教程页独占整宽：覆盖全局 .page-shell 三列网格，避免搜索在左、分页在右 */
.page-tutorials .tutorials-main.page-shell {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 22px;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: visible;
}
.tutorials-main {
  padding-top: 8px;
  padding-bottom: 24px;
}
.tutorials-toolbar {
  margin-bottom: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(22, 38, 72, 0.75), rgba(12, 22, 48, 0.55));
  border: 1px solid rgba(130, 180, 255, 0.22);
  box-shadow:
    0 16px 48px rgba(0, 8, 32, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* 搜索 + 分类同一行（宽屏右侧）；空间不足时分类换到下一行；芯片区内再自动换行 */
.tutorials-search-cats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
}
.tutorials-search-cats-row .tutorials-search-combo {
  flex: 0 1 auto;
  max-width: min(560px, 100%);
  min-width: min(220px, 100%);
}
.tutorials-search-cats-row .tutorial-category-section {
  flex: 1 1 200px;
  min-width: 0;
  margin-top: 0;
}
.tutorials-search-combo {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.tutorials-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}
.tutorials-search-field input {
  width: 100%;
  box-sizing: border-box;
  height: 42px;
  padding: 8px 40px 8px 14px;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(120, 170, 255, 0.4);
  background: rgba(8, 14, 32, 0.72);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.tutorials-search-field input:focus {
  border-color: rgba(160, 200, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(100, 160, 255, 0.25);
}
.tutorials-search-clear-inside {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.tutorials-search-clear-inside:hover {
  background: rgba(255, 100, 100, 0.2);
  color: #ffb4b4;
}
.tutorials-search-btn {
  border: 1px solid rgba(120, 170, 255, 0.45);
  background: linear-gradient(180deg, rgba(90, 140, 255, 0.38), rgba(40, 80, 200, 0.25));
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.tutorials-search-btn-attached {
  margin-left: -1px;
  border-radius: 0 12px 12px 0;
  padding: 0 22px;
  height: 42px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.tutorials-search-btn:hover {
  filter: brightness(1.06);
}
.tutorial-category-section {
  position: relative;
}
.tutorial-category-mobile-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 170, 255, 0.35);
  background: rgba(10, 18, 40, 0.55);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.tutorial-category-mobile-caret {
  font-size: 10px;
  opacity: 0.75;
}
.tutorial-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}
.tutorial-cat-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(130, 180, 255, 0.28);
  background: rgba(12, 22, 48, 0.5);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.tutorial-cat-chip:hover {
  border-color: rgba(160, 200, 255, 0.45);
  background: rgba(40, 70, 140, 0.35);
}
.tutorial-cat-chip.is-active {
  border-color: rgba(120, 200, 255, 0.65);
  background: linear-gradient(180deg, rgba(80, 140, 255, 0.45), rgba(40, 80, 180, 0.35));
  box-shadow: 0 4px 16px rgba(0, 40, 120, 0.35);
}
/* 手机：固定两行（第一行搜索、第二行分类），分类始终展开 */
@media (max-width: 768px) {
  .tutorials-search-cats-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .tutorials-search-cats-row .tutorials-search-combo {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  .tutorials-search-cats-row .tutorial-category-section {
    flex: none;
    width: 100%;
  }
  .tutorial-category-mobile-toggle {
    display: none !important;
  }
  .tutorial-category-chips {
    display: flex !important;
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
    max-height: none !important;
  }
  .tutorial-cat-chip {
    white-space: nowrap;
  }
}
.tutorials-meta {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tutorials-meta[hidden] {
  display: none !important;
}
.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  /* 避免单行卡片被纵向拉满产生大块空白 */
  align-items: start;
  align-content: start;
  flex: 1 1 auto;
}
.tutorial-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--muted);
  border-radius: 14px;
  border: 1px dashed rgba(160, 195, 255, 0.2);
  background: rgba(12, 22, 44, 0.35);
}
.tutorial-card {
  border-radius: 14px;
  border: 1px solid rgba(160, 195, 255, 0.14);
  background: linear-gradient(165deg, rgba(22, 36, 64, 0.72), rgba(12, 22, 44, 0.55));
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 12px 40px rgba(0, 8, 32, 0.35);
  width: 100%;
  max-width: 100%;
}
.tutorial-card:focus-visible {
  outline: 2px solid rgba(130, 190, 255, 0.65);
  outline-offset: 2px;
}
.tutorial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 190, 255, 0.35);
  box-shadow: 0 18px 48px rgba(0, 12, 48, 0.45);
}
.tutorial-card-cover-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(8, 14, 32, 0.9);
  overflow: hidden;
}
/* 悬停封面：一道高光扫过（反光感） */
.tutorial-card-cover-wrap::after {
  content: "";
  position: absolute;
  top: -15%;
  left: 0;
  width: 55%;
  height: 130%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.06) 58%,
    transparent 100%
  );
  transform: translateX(-180%) skewX(-16deg);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.tutorial-card:hover .tutorial-card-cover-wrap::after {
  animation: tutorial-card-cover-glare 0.75s ease-out forwards;
}
@keyframes tutorial-card-cover-glare {
  0% {
    transform: translateX(-180%) skewX(-16deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateX(320%) skewX(-16deg);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tutorial-card-cover-wrap::after {
    animation: none !important;
    opacity: 0 !important;
  }
}
.tutorial-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tutorial-card-cover-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 12, 28, 0.88));
  pointer-events: none;
  z-index: 2;
}
.tutorial-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.tutorial-card-open-new {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 14, 32, 0.72);
  color: #e8f0ff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tutorial-card-open-new:hover {
  background: rgba(40, 90, 180, 0.55);
  border-color: rgba(160, 210, 255, 0.55);
}
.tutorial-card-body {
  padding: 10px 12px 12px;
}
.tutorial-card-tag {
  display: inline;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #7ee8ff;
  background: rgba(0, 200, 255, 0.12);
  border: 1px solid rgba(120, 220, 255, 0.28);
  vertical-align: baseline;
  white-space: nowrap;
}
.tutorial-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
/* 分类标签 + 标题合计最多两行，超出省略；悬停看原生 title 全文 */
.tutorial-card-title-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.45;
}
.tutorial-card-title-text {
  font-weight: 700;
}
.tutorial-card-summary {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.tutorial-card-summary-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  line-height: 1.5;
}
.tutorials-pager {
  margin-top: auto;
  padding: 20px 12px 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tutorials-pager .pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(10, 18, 40, 0.55);
  border: 1px solid rgba(120, 170, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 8, 28, 0.35);
}
.tutorials-pager .pager button {
  min-width: 100px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(160, 200, 255, 0.35);
  background: linear-gradient(180deg, rgba(80, 130, 255, 0.35), rgba(40, 70, 180, 0.25));
  color: var(--text);
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.tutorials-pager .pager button:hover:not(:disabled) {
  filter: brightness(1.08);
}
.tutorials-pager .pager button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.tutorials-pager #tutorialPageInfo {
  font-size: 13px;
  color: var(--muted);
  min-width: 160px;
  text-align: center;
}
.tutorial-player-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
/* 画中画时隐藏大窗，不挡前台操作；视频仍在 DOM，PiP 继续播放 */
.tutorial-player-modal.tutorial-player-modal--pip-collapsed {
  visibility: hidden;
  pointer-events: none;
}
.tutorial-pip-restore-btn {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 12050;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(160, 200, 255, 0.5);
  background: linear-gradient(180deg, rgba(90, 140, 255, 0.65), rgba(45, 80, 200, 0.5));
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0, 12, 48, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.tutorial-pip-restore-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.04);
}
.tutorial-pip-restore-btn[hidden] {
  display: none !important;
}
.tutorial-player-modal[hidden] {
  display: none !important;
}
.tutorial-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.72);
  backdrop-filter: blur(6px);
}
.tutorial-player-card {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  border-radius: 16px;
  border: 1px solid rgba(160, 195, 255, 0.22);
  background: linear-gradient(180deg, rgba(18, 30, 56, 0.96), rgba(10, 18, 36, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 18px 18px 20px;
  overflow: auto;
}
.tutorial-player-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.tutorial-player-close:hover {
  background: rgba(255, 80, 80, 0.25);
  border-color: rgba(255, 160, 160, 0.6);
}
.tutorial-player-head {
  padding-right: 44px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(120, 170, 255, 0.12);
  padding-bottom: 14px;
}
.tutorial-player-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.tutorial-player-open-new {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(140, 190, 255, 0.35);
  background: rgba(30, 70, 150, 0.35);
  color: #c8e4ff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tutorial-player-open-new:hover {
  background: rgba(50, 110, 210, 0.45);
  border-color: rgba(180, 220, 255, 0.55);
  color: #fff;
}
.tutorial-player-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  padding-left: 2px;
  color: #e8f0ff;
  text-shadow: 0 1px 18px rgba(100, 160, 255, 0.25);
}
.tutorial-player-title-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.tutorial-player-head-row h3 {
  flex: 1;
  min-width: 0;
}
.tutorial-player-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 4px;
}
.tutorial-player-sub[hidden] {
  display: none !important;
}
.tutorial-player-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 170, 255, 0.2);
  background: #000;
}
.tutorial-player-video {
  width: 100%;
  max-height: min(70vh, 640px);
  display: block;
  vertical-align: top;
}
.tutorial-player-fallback {
  margin: 0;
  padding: 16px;
  color: #ffb4b4;
  font-size: 13px;
  background: rgba(255, 60, 60, 0.08);
}
@media (max-width: 640px) {
  .tutorial-grid {
    grid-template-columns: 1fr;
  }
  .tutorials-search-combo {
    max-width: 100%;
  }
  .tutorials-search-btn-attached {
    padding: 0 16px;
  }
}

/* 独立播放页 tutorial-watch.html（与弹窗同款 .tutorial-player-card） */
.page-tutorial-watch .tutorial-watch-main {
  padding-top: 18px;
  padding-bottom: 48px;
}
.tutorial-watch-player-shell {
  display: flex;
  justify-content: center;
  width: 100%;
}
.tutorial-watch-embed-card.tutorial-player-card {
  width: min(960px, 100%);
}
.tutorial-watch-player-head.tutorial-player-head {
  padding-right: 0;
}
.page-tutorial-watch--pip-collapsed .tutorial-watch-embed-card {
  visibility: hidden;
  pointer-events: none;
}
.page-tutorial-watch .tutorial-player-video-wrap .tutorial-player-video {
  max-height: min(70vh, 640px);
}
.page-tutorial-watch .tutorials-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 900px) {
  #detailDialog .detail-floating-disk-wrap {
    top: 82px;
    right: 18px;
    max-width: min(190px, 44vw);
  }
  #detailDialog .detail-floating-btn--top {
    right: 18px;
    bottom: 74px;
  }
  #detailContent .detail-layer--links ul.detail-disk-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  #detailContent .detail-layer--links ul.detail-disk-list {
    grid-template-columns: 1fr;
  }
}

/* 移动端详情弹窗稳定模式：减少动画/滤镜导致的闪烁重绘 */
@media (hover: none) and (pointer: coarse) {
  #detailDialog > article::before,
  #detailDialog > article::after {
    content: none !important;
    animation: none !important;
  }
  #detailDialog > article {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  #detailTitle {
    background: none;
    color: #d9e9ff;
    text-shadow: 0 8px 24px rgba(120, 189, 255, 0.14);
  }
  #detailContent .detail-disk-link,
  #detailFloatingDiskWrap .detail-disk-link,
  #embeddedDetailContent .detail-disk-link {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* 品牌区最终强制覆盖：确保“永久免费”在右侧文案上方可见 */
body.layout-topcats .brand {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 18px !important;
}
body.layout-topcats .brand .brand-main {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
body.layout-topcats .brand .brand-main h1 {
  white-space: nowrap !important;
}
body.layout-topcats .brand .brand-main .brand-badge {
  display: none !important;
}
body.layout-topcats .brand .brand-side {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 4px !important;
  text-align: left !important;
}
body.layout-topcats .brand .brand-side > .brand-badge {
  order: 1 !important;
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.layout-topcats .brand .brand-side > p {
  order: 2 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
