/* 客户端下载页 — Steam About 风格（布局参考，品牌独立） */

.page-install-steam {
  --sp-bg: #0e1419;
  --sp-bg-2: #1b2838;
  --sp-bg-3: #171d25;
  --sp-text: #c7d5e0;
  --sp-heading: #ffffff;
  --sp-muted: #8f98a0;
  --sp-accent: #66c0f4;
  --sp-install: #5c7e10;
  --sp-install-hi: #75b022;
  --sp-install-shadow: rgba(117, 176, 34, 0.35);
  --sp-band: rgba(23, 29, 37, 0.92);
  --sp-max: 1040px;
  /* 列表/日志/导航内容区最大宽度：大屏居中，老电脑窄屏随窗口收缩 */
  --install-content-max: 1280px;
  --install-head-border: rgba(102, 192, 244, 0.14);
  --install-head-bg: linear-gradient(
    180deg,
    rgba(22, 32, 45, 0.94) 0%,
    rgba(27, 40, 56, 0.92) 48%,
    rgba(36, 56, 76, 0.9) 100%
  );
  --install-chrome-bg: linear-gradient(
    180deg,
    rgba(42, 71, 94, 0.88) 0%,
    rgba(27, 40, 56, 0.9) 100%
  );
  background: var(--sp-bg) !important;
  color: var(--sp-text);
}

.page-install-steam .page-shell,
.page-install-steam .install-portal-stream.container.page-shell {
  min-width: 0;
  overflow-x: visible;
  overflow-y: visible;
}

.page-install-steam .bg-orb,
.page-install-steam .bg-grid {
  display: none;
}

.page-install-steam #particleBg {
  opacity: 0.35;
}

/* ── Top bar ── */
.sp-top {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #0e1419;
  pointer-events: none;
  transition:
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.sp-top--scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.sp-top a,
.sp-top button {
  pointer-events: auto;
}

.sp-top__install-client {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 0 auto;
  min-height: 36px;
  padding: 0 18px 0 14px;
  border-radius: 6px;
  border: 1px solid rgba(126, 214, 255, 0.35);
  background: linear-gradient(180deg, #4bb4ff 0%, #2a7ee8 48%, #1f6fd4 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.04em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 4px 16px rgba(42, 126, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.sp-top__install-client-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.14);
  color: #ffffff;
  flex-shrink: 0;
}

.sp-top__install-client-icon svg {
  display: block;
}

.sp-top__install-client-text {
  position: relative;
  top: 0.5px;
}

.sp-top__install-client:hover {
  filter: brightness(1.06);
  border-color: rgba(180, 230, 255, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 6px 22px rgba(42, 126, 255, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.sp-top__install-client:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.sp-top__install-client.is-active {
  border-color: rgba(180, 230, 255, 0.5);
  background: linear-gradient(180deg, #5ec0ff 0%, #3a8ef0 50%, #2a7ee8 100%);
  box-shadow:
    0 0 0 1px rgba(126, 214, 255, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.26) inset,
    0 6px 20px rgba(42, 126, 255, 0.42);
}

.sp-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sp-heading);
  font-size: 15px;
  font-weight: 600;
}

.sp-top__brand--glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 6px 14px 6px 8px;
  border-radius: 10px;
}

.sp-top__brand-glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(102, 192, 244, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.25);
}

.sp-top__brand-shine {
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -40%;
  width: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.06) 65%,
    transparent 100%
  );
  transform: skewX(-22deg) translateX(-180%);
  animation: spBrandGlassShine 3.8s ease-in-out infinite;
}

@keyframes spBrandGlassShine {
  0%,
  28% {
    transform: skewX(-22deg) translateX(-180%);
  }
  52%,
  100% {
    transform: skewX(-22deg) translateX(420%);
  }
}

.sp-top__brand img,
.sp-top__brand-text {
  position: relative;
  z-index: 2;
}

.sp-top__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.sp-top__brand-text {
  letter-spacing: 0.04em;
}

.sp-top__lead {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
  pointer-events: none;
}

.sp-top__lead a,
.sp-top__lead .sp-top__free-badge {
  pointer-events: auto;
}

.sp-top__free-badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f4ffe8;
  white-space: nowrap;
  background: linear-gradient(
    135deg,
    rgba(134, 198, 48, 0.92) 0%,
    rgba(92, 126, 16, 0.96) 48%,
    rgba(72, 102, 12, 0.98) 100%
  );
  border: 1px solid rgba(196, 255, 120, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 2px 14px rgba(117, 176, 34, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.sp-top__free-badge-glow {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(196, 255, 120, 0.35), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

.sp-top__free-badge-icon {
  flex-shrink: 0;
  color: #fff9c4;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.sp-top__free-badge-text {
  position: relative;
  top: 0.5px;
}

.page-install-steam .install-site-head .sp-top__free-badge {
  background: linear-gradient(
    135deg,
    rgba(117, 176, 34, 0.95) 0%,
    rgba(92, 126, 16, 0.98) 55%,
    rgba(62, 88, 10, 1) 100%
  );
}

.sp-top__metrics {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 10px;
  margin: 0 12px;
  min-width: 0;
  pointer-events: none;
}

.sp-top__metric {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(199, 213, 224, 0.95);
  white-space: nowrap;
  background: rgba(27, 40, 56, 0.72);
  border: 1px solid rgba(102, 192, 244, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-install-steam .install-site-head .sp-top__metric {
  background: rgba(14, 20, 25, 0.55);
  border-color: rgba(102, 192, 244, 0.32);
}

/* ── 后台顶栏导航（site-content.nav_items，与分类栏同宽对齐） ── */
.install-top-nav {
  background: linear-gradient(180deg, rgba(14, 20, 25, 0.98) 0%, rgba(27, 40, 56, 0.92) 100%);
  border-bottom: 1px solid rgba(102, 192, 244, 0.12);
}

.install-top-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  max-width: var(--install-content-max, 1280px);
  width: 100%;
  margin: 0 auto;
  padding: 8px clamp(12px, 3vw, 24px) 10px;
  box-sizing: border-box;
}

.page-install-steam .install-site-head .install-top-nav {
  width: 100%;
  background: transparent;
  border-bottom: 0;
}

.install-top-nav__link,
.install-top-nav__dropdown-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #c7d5e0;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.install-top-nav__link:hover,
.install-top-nav__dropdown-trigger:hover,
.install-top-nav__link:focus-visible,
.install-top-nav__dropdown-trigger:focus-visible {
  background: rgba(102, 192, 244, 0.14);
  color: #fff;
  outline: none;
}

.install-top-nav__dropdown {
  position: relative;
}

.install-top-nav__submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: rgba(23, 29, 37, 0.98);
  border: 1px solid rgba(102, 192, 244, 0.22);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease,
    visibility 0.14s;
  z-index: 60;
}

.install-top-nav__submenu--align-end {
  left: auto;
  right: 0;
}

.install-top-nav__dropdown.open .install-top-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.install-top-nav__sublink {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #c7d5e0;
  text-decoration: none;
}

.install-top-nav__sublink:hover,
.install-top-nav__sublink:focus-visible {
  background: rgba(102, 192, 244, 0.12);
  color: #fff;
  outline: none;
}

.install-demand-dialog {
  border: 0;
  padding: 0;
  max-width: min(480px, calc(100vw - 32px));
  border-radius: 12px;
  background: #171d25;
  color: #c7d5e0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.install-demand-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.install-demand-dialog__article {
  padding: 22px 22px 18px;
}

.install-demand-dialog__article h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #fff;
}

.install-demand-dialog__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.install-demand-dialog__form input,
.install-demand-dialog__form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(143, 152, 160, 0.35);
  background: rgba(14, 20, 25, 0.85);
  color: #c7d5e0;
  font: inherit;
}

.install-demand-dialog__msg {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 13px;
  color: #8f98a0;
}

.install-demand-dialog__msg.is-success {
  color: #a4d007;
}

.install-demand-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.install-demand-dialog__btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.install-demand-dialog__btn--ghost {
  background: transparent;
  border-color: rgba(143, 152, 160, 0.4);
  color: #c7d5e0;
}

.install-demand-dialog__btn--primary {
  background: linear-gradient(180deg, #75b022 0%, #5c7e10 100%);
  color: #fff;
}

.page-install-steam .sp-top__link {
  display: none !important;
}

/* ── Steam About 二级栏 ── */
.install-portal-chrome {
  position: relative;
  left: 0;
  right: 0;
  z-index: 49;
  background: #2a475e;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.install-portal-chrome--stuck {
  position: fixed;
  top: var(--sp-top-sticky-h, 52px);
  left: 0;
  width: 100%;
  max-width: 100%;
  right: auto;
  z-index: 49;
  box-sizing: border-box;
}

.install-portal-chrome-placeholder {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.install-portal-chrome-placeholder.is-active {
  display: block;
}

.install-portal-chrome__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--install-content-max, 1280px);
  margin: 0 auto;
  min-height: 38px;
  padding: 0 clamp(12px, 3vw, 24px);
  box-sizing: border-box;
}

.install-portal-chrome__tabs {
  flex: 1 1 auto;
  min-width: 0;
}

.install-portal-chrome__search {
  flex: 0 0 auto;
  width: min(280px, 36vw);
  min-width: 160px;
}

body.layout-topcats-chrome .install-portal-chrome .category-tabs {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  width: auto;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  padding: 0;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.layout-topcats-chrome .install-portal-chrome .category-tabs::-webkit-scrollbar {
  display: none;
}

body.layout-topcats-chrome .install-portal-chrome .category-tabs .category-tab {
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #b8bcbf;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  box-shadow: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

body.layout-topcats-chrome .install-portal-chrome .category-tabs .category-tab:hover {
  color: #ffffff;
  background: rgba(102, 192, 244, 0.14);
  filter: none;
}

body.layout-topcats-chrome .install-portal-chrome .category-tabs .category-tab.is-active {
  color: #ffffff;
  background: rgba(102, 192, 244, 0.1);
  box-shadow: none;
}

body.layout-topcats-chrome .install-portal-chrome .category-tabs .category-tab.category-tab--update-log {
  margin-left: 0;
  color: #b8bcbf;
}

body.layout-topcats-chrome .install-portal-chrome .category-tabs .category-tab.category-tab--update-log:hover {
  color: #ffffff;
  background: rgba(102, 192, 244, 0.14);
}

body.layout-topcats-chrome .install-portal-chrome .category-tab--has-menu {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body.layout-topcats-chrome .install-portal-chrome .category-tab--has-menu.is-open,
body.layout-topcats-chrome .install-portal-chrome .category-tab--has-menu[aria-expanded="true"] {
  color: #ffffff;
  background: rgba(102, 192, 244, 0.16);
}

.sp-cat-caret {
  font-size: 10px;
  line-height: 1;
  opacity: 0.82;
  transform: translateY(1px);
}

.install-portal-chrome.has-cat-open {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

/* Steam About 风：点击一级分类展开二级面板 */
.sp-cat-dropdown {
  display: none;
  width: 100%;
  background: linear-gradient(180deg, #1b2838 0%, #16202d 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sp-cat-dropdown.is-open {
  display: block;
}

.sp-cat-dropdown[hidden] {
  display: none !important;
}

.sp-cat-dropdown__inner {
  max-width: var(--install-content-max, 1280px);
  margin: 0 auto;
  padding: 14px clamp(12px, 3vw, 24px) 18px;
  box-sizing: border-box;
}

.sp-cat-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-cat-dropdown__title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.sp-cat-dropdown__all {
  flex-shrink: 0;
  color: var(--sp-accent);
  font-size: 12px;
  text-decoration: none;
}

.sp-cat-dropdown__all:hover {
  text-decoration: underline;
}

.sp-cat-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 6px 14px;
}

.sp-cat-dropdown__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sp-cat-dropdown__link {
  display: block;
  padding: 7px 10px;
  border-radius: 2px;
  color: #b8bcbf;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.sp-cat-dropdown__link--parent {
  color: #dcdedf;
  font-weight: 600;
}

.sp-cat-dropdown__link:hover {
  color: #ffffff;
  background: rgba(102, 192, 244, 0.14);
}

.sp-cat-dropdown__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 8px;
  border-left: 1px solid rgba(102, 192, 244, 0.2);
}

.sp-cat-dropdown__sublink {
  display: block;
  padding: 4px 8px;
  border-radius: 2px;
  color: #8f98a0;
  font-size: 12px;
  text-decoration: none;
}

.sp-cat-dropdown__sublink:hover {
  color: #ffffff;
  background: rgba(102, 192, 244, 0.1);
}

/* Steam 风搜索框：输入 + 右侧蓝色放大镜按钮 */
.sp-store-search {
  display: flex;
  align-items: stretch;
  height: 34px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(14, 20, 25, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.sp-store-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sp-store-search #searchInput {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  box-shadow: none;
}

.sp-store-search #searchInput::placeholder {
  color: rgba(143, 152, 160, 0.95);
}

.sp-store-search__clear {
  flex: 0 0 auto;
  align-self: center;
  width: 22px;
  height: 22px;
  margin-right: 2px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: #c7d5e0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.sp-store-search__clear:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sp-store-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #7dd4ff 0%, var(--sp-accent) 42%, #2a7aad 100%);
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.sp-store-search__btn:hover {
  filter: brightness(1.08);
}

.sp-store-search__btn:active {
  filter: brightness(0.95);
}

/* ── Page shell ── */
.sp-page {
  padding-top: 0;
  min-height: calc(100vh - 48px);
}

.page-install-steam .sp-hero {
  scroll-margin-top: calc(var(--sp-top-sticky-h, 52px) + var(--sp-chrome-sticky-h, 38px) + 12px);
}

/* 首页 / 卡片 / 日志：同一套 sticky 页头（不用 fixed，避免出滚动条时相对正文“右移”） */
.page-install-steam .install-site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  background: var(--install-head-bg);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid var(--install-head-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
}

.page-install-steam .install-site-head .sp-top {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--install-content-max, 1280px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 14px clamp(12px, 3vw, 24px);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(102, 192, 244, 0.08);
  box-sizing: border-box;
  pointer-events: none;
}

.page-install-steam .install-site-head .sp-top__install-client {
  margin-left: auto;
}

/* 红框区：分类+搜索栏背景通栏；内容仍留左右内边距，不压滚动条 */
.page-install-steam .install-site-head .install-portal-chrome {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--install-chrome-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
  box-shadow: none;
  box-sizing: border-box;
}

.page-install-steam .install-portal-chrome--stuck {
  position: relative;
  top: auto;
  left: auto;
  max-width: none;
  width: 100%;
  margin: 0;
}

body.install-stream-mode .install-portal-chrome-placeholder,
body.page-install-steam .install-portal-chrome-placeholder {
  display: none !important;
}

body.install-stream-mode .install-portal-stream.container.page-shell {
  padding-top: 8px;
}

/* ── 本页内卡片区：复用 layout-topcats + 正式首页 resource-panel / cards 结构 ── */
.page-install-steam .install-portal-stream.container.page-shell {
  display: block;
  min-width: 0;
  max-width: var(--install-content-max, 1280px);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px clamp(12px, 2vw, 24px) 48px;
  box-sizing: border-box;
  overflow-x: visible;
}

.install-portal-stream .layout--stream {
  grid-template-columns: minmax(0, 1fr) !important;
}

.install-portal-stream__panel.panel.resource-panel {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.install-portal-stream__panel > .sub-category-tabs {
  margin-bottom: 8px;
}

.install-portal-stream__panel > .category-context-bar {
  margin-bottom: 10px;
}

.install-portal-stream__panel > .cards {
  margin-top: 0;
}

body.install-stream-mode .sp-page {
  display: none;
}

body.install-stream-mode .install-portal-stream {
  display: block;
}

#installPortalStream[hidden],
#installCardPager[hidden] {
  display: none !important;
}

body:not(.install-stream-mode) #installPortalStream,
body:not(.install-stream-mode) #installCardPager {
  display: none !important;
}

body.install-stream-mode.layout-topcats-cards .install-portal-stream .resource-card-grid,
body.install-stream-mode.layout-topcats-cards .install-portal-stream .hot-category-section__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.install-portal-stream .sub-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 9px 12px 10px;
  border: 0;
  background: transparent;
}

.install-portal-stream .sub-category-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #b8bcbf;
  font-size: 14px;
  padding: 3px 6px 5px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.install-portal-stream .sub-category-tab:hover {
  color: #ffffff;
}

.install-portal-stream .sub-category-tab.is-active {
  border-bottom-color: var(--sp-accent);
  color: var(--sp-accent);
}

/* ── 卡片区 / 更新日志：与游境下载页 Steam 深色配色统一 ── */
.page-install-steam .install-portal-stream {
  --sp-surface: #1b2838;
  --sp-surface-2: #16202d;
  --sp-surface-3: rgba(23, 29, 37, 0.92);
  --sp-line: rgba(102, 192, 244, 0.16);
  --sp-line-strong: rgba(102, 192, 244, 0.28);
}

.page-install-steam .install-portal-stream .category-context-bar {
  border-bottom-color: var(--sp-line);
  background: linear-gradient(90deg, rgba(27, 40, 56, 0.72), rgba(14, 20, 25, 0.35));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-install-steam .install-portal-stream .category-context-bar__hint {
  color: rgba(199, 213, 224, 0.72);
}

.page-install-steam .install-portal-stream .category-context-bar__hint::before {
  background: linear-gradient(180deg, rgba(102, 192, 244, 0.95), rgba(42, 122, 173, 0.95));
}

.page-install-steam .install-portal-stream .category-context-bar__prefix {
  color: rgba(184, 196, 208, 0.78);
}

.page-install-steam .install-portal-stream .category-context-bar__name {
  color: var(--sp-accent);
  text-shadow: 0 0 18px rgba(102, 192, 244, 0.22);
}

.page-install-steam .install-portal-stream .category-context-bar__count {
  color: rgba(199, 213, 224, 0.95);
  background: rgba(27, 40, 56, 0.75);
  border-color: rgba(102, 192, 244, 0.28);
}

.page-install-steam .install-portal-stream .category-context-bar__chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}

.page-install-steam .install-portal-stream .install-search-chips-bar {
  padding: 0 0 10px;
}

.page-install-steam .install-portal-stream .install-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-install-steam .install-portal-stream .install-search-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(230, 240, 255, 0.88);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.page-install-steam .install-portal-stream .install-search-chip:hover {
  background: rgba(102, 192, 244, 0.14);
  border-color: rgba(140, 190, 255, 0.3);
  color: #ffffff;
}

.page-install-steam .install-portal-stream .install-search-chip.is-active {
  background: linear-gradient(90deg, rgba(56, 92, 158, 0.72), rgba(36, 58, 112, 0.78));
  border-color: rgba(150, 190, 255, 0.5);
  color: #ffffff;
}

.page-install-steam .install-portal-stream .category-sort-btn {
  border-color: rgba(102, 192, 244, 0.22);
  background: rgba(14, 20, 25, 0.55);
  color: #b8bcbf;
}

.page-install-steam .install-portal-stream .category-sort-btn:hover {
  border-color: var(--sp-line-strong);
  color: #ffffff;
  background: rgba(102, 192, 244, 0.1);
}

.page-install-steam .install-portal-stream .category-sort-btn.is-active {
  border-color: rgba(102, 192, 244, 0.55);
  background: linear-gradient(180deg, rgba(102, 192, 244, 0.22), rgba(42, 122, 173, 0.18));
  color: #ffffff;
  box-shadow: 0 0 12px rgba(102, 192, 244, 0.12);
}

.page-install-steam .install-portal-stream .hot-category-card {
  border: 1px solid rgba(102, 192, 244, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(27, 40, 56, 0.95), rgba(22, 32, 45, 0.98));
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-install-steam .install-portal-stream .hot-category-card:hover {
  border-color: rgba(102, 192, 244, 0.38);
  background: linear-gradient(180deg, rgba(32, 48, 66, 0.98), rgba(27, 40, 56, 0.98));
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(102, 192, 244, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-install-steam .install-portal-stream .hot-category-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 460 / 215;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: rgba(14, 20, 25, 0.75);
}

.page-install-steam .install-portal-stream .hot-category-card__img,
.page-install-steam .install-portal-stream .hot-category-card__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(14, 20, 25, 0.75);
  object-fit: cover;
  object-position: center;
}

.page-install-steam .install-portal-stream .hot-category-card__cat {
  position: absolute;
  top: 8px;
  left: 8px;
  right: auto;
  z-index: 3;
  max-width: calc(100% - 16px);
  pointer-events: none;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px) saturate(1.15);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  filter: saturate(1.18) brightness(1.05);
}

.page-install-steam .install-portal-stream .hot-category-card__title {
  padding: 8px 10px 10px;
  color: #c7d5e0;
  font-size: 13px;
  font-weight: 500;
}

.page-install-steam .install-portal-stream .hot-category-card:hover .hot-category-card__title {
  color: #ffffff;
}

/* 更新日志卡片：右上角「新增/更新」角标（其余与资源分类 hot-category-card 一致） */
.page-install-steam .install-portal-stream .hot-category-card--log .hot-category-card__cat {
  max-width: calc(100% - 72px);
}

.page-install-steam .install-portal-stream .hot-category-card__corner-stack {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: calc(100% - 16px);
  pointer-events: none;
}

.page-install-steam .install-portal-stream .hot-category-card__feat-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  max-width: 100%;
}

.page-install-steam .install-portal-stream .hot-category-card__media > .hot-category-card__feat-tags {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  pointer-events: none;
}

.page-install-steam .install-portal-stream .hot-category-card__corner-stack .hot-category-card__feat-tags {
  position: static;
}

.page-install-steam .install-portal-stream .hot-category-card__feat-tags .feat-strip-pill {
  font-size: 9px;
  padding: 2px 7px;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-install-steam .install-portal-stream .hot-category-card__action {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.page-install-steam .install-portal-stream .hot-category-card__corner-stack .hot-category-card__action {
  position: static;
}

.page-install-steam .install-portal-stream .hot-category-card__action--create {
  background: linear-gradient(135deg, #ff8a5c, #ff6b9d);
}

.page-install-steam .install-portal-stream .hot-category-card__action--update {
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.95), rgba(66, 135, 200, 0.92));
}

.page-install-steam .install-portal-stream .ul-main-panel .resource-list-wrap {
  width: 100%;
  min-width: 0;
}

/* 更新日志：条目列表（左封面 + 右信息四行） */
.page-install-steam .install-portal-stream .ul-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.page-install-steam .install-portal-stream .ul-log-row {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(120, 160, 220, 0.18);
  border-radius: 12px;
  background: rgba(14, 30, 60, 0.52);
  color: #eaf2ff;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.page-install-steam .install-portal-stream .ul-log-row:hover {
  border-color: rgba(170, 205, 255, 0.28);
  background: rgba(19, 39, 78, 0.58);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.page-install-steam .install-portal-stream .ul-log-row:active {
  transform: translateY(0.5px);
}

.page-install-steam .install-portal-stream .ul-log-row__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 12px 0 0 12px;
}

.page-install-steam .install-portal-stream .ul-log-row__cover {
  flex: 0 0 200px;
  width: 200px;
  height: 112px;
  min-width: 200px;
  max-width: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(18, 34, 68, 0.62);
  position: relative;
}

.page-install-steam .install-portal-stream .ul-log-row__cover.is-cover-fitted {
  background: rgba(18, 34, 68, 0.62);
}

.page-install-steam .install-portal-stream .ul-log-row__cover .hot-category-card__img,
.page-install-steam .install-portal-stream .ul-log-row__cover .hot-category-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.page-install-steam .install-portal-stream .ul-log-row__cover .hot-category-card__img {
  object-fit: fill;
  object-position: center;
}

.page-install-steam .install-portal-stream .ul-log-row__cover .hot-category-card__placeholder {
  background: linear-gradient(135deg, rgba(42, 71, 94, 0.55), rgba(27, 40, 56, 0.85));
}

.page-install-steam .install-portal-stream .ul-log-row__ribbon {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
}

.page-install-steam .install-portal-stream .ul-log-row__ribbon .cover-release-ribbon--inline {
  min-width: 88px;
  height: 20px;
  padding: 0 12px;
  font-size: 10px;
}

.page-install-steam .install-portal-stream .ul-log-row--has-ribbon .ul-log-row__body {
  padding-right: 108px;
}

.page-install-steam .install-portal-stream .ul-log-row__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding-top: 1px;
}

.page-install-steam .install-portal-stream .ul-log-row__title {
  color: #f3f7ff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

.page-install-steam .install-portal-stream .ul-log-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.page-install-steam .install-portal-stream .ul-log-row__cat {
  position: static;
  max-width: 100%;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  pointer-events: none;
}

.page-install-steam .install-portal-stream .ul-log-row__action {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-install-steam .install-portal-stream .ul-log-row__action--create {
  background: linear-gradient(135deg, #ff8a5c, #ff6b9d);
}

.page-install-steam .install-portal-stream .ul-log-row__action--update {
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.95), rgba(66, 135, 200, 0.92));
}

.page-install-steam .install-portal-stream .ul-log-row__feat-tags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
  min-width: 0;
}

.page-install-steam .install-portal-stream .ul-log-row__feat-tags .feat-strip-pill {
  font-size: 9px;
  padding: 2px 7px;
  line-height: 1.3;
}

.page-install-steam .install-portal-stream .ul-log-row__extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.page-install-steam .install-portal-stream .ul-log-row__note {
  color: #8ee8ff;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(89, 198, 255, 0.35);
  background: linear-gradient(135deg, rgba(45, 118, 184, 0.18), rgba(59, 160, 210, 0.12));
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-install-steam .install-portal-stream .ul-log-row__time {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(164, 188, 228, 0.92);
  align-self: flex-start;
}

@media (max-width: 820px) {
  .page-install-steam .install-portal-stream .ul-log-row {
    gap: 10px;
    padding: 10px 12px 10px 14px;
  }

  .page-install-steam .install-portal-stream .ul-log-row__cover {
    flex-basis: 160px;
    width: 160px;
    height: 90px;
    min-width: 160px;
    max-width: 160px;
  }

  .page-install-steam .install-portal-stream .ul-log-row__title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .page-install-steam .install-portal-stream .ul-log-row--has-ribbon .ul-log-row__body {
    padding-right: 96px;
  }

  .page-install-steam .install-portal-stream .ul-log-row__ribbon {
    top: 8px;
    right: 10px;
  }
}

/* 更新日志旧 4 列卡片网格（分类浏览仍为 5 卡；更新日志已改 ul-log-list） */
body.install-stream-mode.layout-topcats-cards
  .install-portal-stream
  .ul-main-panel
  .resource-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
}

@media (max-width: 1280px) {
  body.install-stream-mode.layout-topcats-cards
    .install-portal-stream
    .ul-main-panel
    .resource-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 14px;
  }
}

@media (max-width: 820px) {
  body.install-stream-mode.layout-topcats-cards
    .install-portal-stream
    .ul-main-panel
    .resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
}

.page-install-steam .install-portal-stream .empty-card {
  border: 1px dashed rgba(102, 192, 244, 0.22);
  background: rgba(27, 40, 56, 0.45);
  color: var(--sp-muted);
}

/* ── 更新日历（与客户端布局一致，配色贴合游境 Steam 风） ── */
.page-install-steam .install-portal-stream .update-log-inline-mount {
  width: 100%;
  min-width: 0;
}

.page-install-steam .install-portal-stream .ul-calendar-page {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.page-install-steam .install-portal-stream .ul-calendar-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px 18px;
  border: 1px solid rgba(102, 192, 244, 0.14);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(27, 40, 56, 0.96) 0%, rgba(18, 28, 40, 0.98) 100%);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: sticky;
  top: calc(var(--install-site-head-h, 96px) + 12px);
}

.page-install-steam .install-portal-stream .ul-calendar-sidebar__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.16), rgba(66, 120, 180, 0.08));
  border: 1px solid rgba(102, 192, 244, 0.18);
}

.page-install-steam .install-portal-stream .ul-calendar-sidebar__icon {
  font-size: 15px;
  line-height: 1;
}

.page-install-steam .install-portal-stream .ul-calendar-sidebar__title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.page-install-steam .install-portal-stream .ul-month-cal {
  padding: 4px 2px 0;
}

.page-install-steam .install-portal-stream .ul-month-cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.page-install-steam .install-portal-stream .ul-month-cal__label {
  font-size: 13px;
  font-weight: 650;
  color: #e8f1f8;
  letter-spacing: 0.01em;
}

.page-install-steam .install-portal-stream .ul-month-cal__nav-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(102, 192, 244, 0.22);
  border-radius: 8px;
  background: rgba(14, 20, 25, 0.55);
  color: var(--sp-accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-install-steam .install-portal-stream .ul-month-cal__nav-btn:hover:not(:disabled) {
  background: rgba(102, 192, 244, 0.14);
  border-color: rgba(102, 192, 244, 0.42);
  color: #ffffff;
}

.page-install-steam .install-portal-stream .ul-month-cal__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-install-steam .install-portal-stream .ul-month-cal__weeks,
.page-install-steam .install-portal-stream .ul-month-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.page-install-steam .install-portal-stream .ul-month-cal__weeks {
  margin-bottom: 6px;
}

.page-install-steam .install-portal-stream .ul-month-cal__week {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(143, 152, 160, 0.92);
}

.page-install-steam .install-portal-stream .ul-month-cal__cell {
  aspect-ratio: 1;
  min-height: 30px;
}

.page-install-steam .install-portal-stream .ul-month-cal__day {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #c7d5e0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.page-install-steam .install-portal-stream .ul-month-cal__day:hover:not(:disabled):not(.is-selected) {
  background: rgba(102, 192, 244, 0.1);
  border-color: rgba(102, 192, 244, 0.22);
}

.page-install-steam .install-portal-stream .ul-month-cal__day.has-mark:not(.is-selected)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(102, 192, 244, 0.75);
}

.page-install-steam .install-portal-stream .ul-month-cal__day {
  position: relative;
}

.page-install-steam .install-portal-stream .ul-month-cal__day.is-today:not(.is-selected) {
  border-color: rgba(102, 192, 244, 0.35);
  color: #ffffff;
}

.page-install-steam .install-portal-stream .ul-month-cal__day.is-selected {
  border-color: rgba(102, 192, 244, 0.55);
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.88), rgba(66, 135, 200, 0.82));
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(102, 192, 244, 0.28);
}

.page-install-steam .install-portal-stream .ul-month-cal__day.is-disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.page-install-steam .install-portal-stream .ul-day-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-install-steam .install-portal-stream .ul-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 78px;
  box-sizing: border-box;
}

.page-install-steam .install-portal-stream .ul-stat--create {
  background: linear-gradient(145deg, rgba(102, 192, 244, 0.14), rgba(42, 71, 94, 0.22));
  border-color: rgba(102, 192, 244, 0.2);
}

.page-install-steam .install-portal-stream .ul-stat--update {
  background: linear-gradient(145deg, rgba(42, 71, 94, 0.35), rgba(27, 40, 56, 0.55));
  border-color: rgba(102, 192, 244, 0.12);
}

.page-install-steam .install-portal-stream .ul-stat__badge {
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0e1419;
  background: linear-gradient(135deg, #ffd89a, #ffb86b);
}

.page-install-steam .install-portal-stream .ul-stat__label {
  font-size: 11px;
  color: rgba(199, 213, 224, 0.82);
}

.page-install-steam .install-portal-stream .ul-stat__num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.page-install-steam .install-portal-stream .ul-stat--create .ul-stat__num {
  color: #ffd89a;
}

.page-install-steam .install-portal-stream .ul-stat--update .ul-stat__num {
  color: var(--sp-accent);
}

.page-install-steam .install-portal-stream .ul-notice {
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid rgba(102, 192, 244, 0.12);
  background: rgba(14, 20, 25, 0.45);
}

.page-install-steam .install-portal-stream .ul-notice__title {
  font-size: 12px;
  font-weight: 700;
  color: #e8f1f8;
  margin-bottom: 6px;
}

.page-install-steam .install-portal-stream .ul-notice__body {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(143, 152, 160, 0.95);
}

.page-install-steam .install-portal-stream .ul-wish-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(102, 192, 244, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(42, 71, 94, 0.72), rgba(27, 40, 56, 0.92));
  color: #c7d5e0;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-install-steam .install-portal-stream .ul-wish-btn:hover {
  border-color: rgba(102, 192, 244, 0.42);
  background: linear-gradient(180deg, rgba(102, 192, 244, 0.18), rgba(42, 71, 94, 0.55));
  color: #ffffff;
}

.page-install-steam .install-portal-stream .ul-calendar-main {
  min-width: 0;
}

.page-install-steam .install-portal-stream .ul-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 2px 4px 0;
}

.page-install-steam .install-portal-stream .ul-main-head__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.page-install-steam .install-portal-stream .ul-main-head__date {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--sp-muted);
}

.page-install-steam .install-portal-stream .ul-main-head__count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 650;
  color: rgba(143, 152, 160, 0.95);
  white-space: nowrap;
}

.page-install-steam .install-portal-stream .ul-main-panel {
  border: 1px solid rgba(102, 192, 244, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(27, 40, 56, 0.72), rgba(18, 28, 40, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 16px 14px 20px;
  min-height: 280px;
}

.page-install-steam .install-portal-stream .ul-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 16px;
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.page-install-steam .install-portal-stream .ul-card-grid--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.page-install-steam .install-portal-stream .ul-card-empty {
  color: var(--sp-muted);
  font-size: 14px;
}

.page-install-steam .install-portal-stream .ul-log-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-install-steam .install-portal-stream .ul-log-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

.page-install-steam .install-portal-stream .ul-log-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 0;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(18, 34, 68, 0.62);
  contain: layout style;
}

.page-install-steam .install-portal-stream .ul-log-card__img,
.page-install-steam .install-portal-stream .ul-log-card__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.page-install-steam .install-portal-stream .ul-log-card__img {
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

.page-install-steam .install-portal-stream .ul-log-card__placeholder {
  z-index: 0;
  background: linear-gradient(135deg, rgba(42, 71, 94, 0.55), rgba(27, 40, 56, 0.85));
}

.page-install-steam .install-portal-stream .ul-log-card__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0) 58%
  );
  transform: translateX(-120%);
  animation: ul-log-card-shimmer 1.35s ease-in-out infinite;
}

@keyframes ul-log-card-shimmer {
  100% {
    transform: translateX(120%);
  }
}

.page-install-steam .install-portal-stream .ul-log-card__cat {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 72px);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-install-steam .install-portal-stream .ul-log-card__action {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.page-install-steam .install-portal-stream .ul-log-card__action--create {
  background: linear-gradient(135deg, #ff8a5c, #ff6b9d);
}

.page-install-steam .install-portal-stream .ul-log-card__action--update {
  background: linear-gradient(135deg, rgba(102, 192, 244, 0.95), rgba(66, 135, 200, 0.92));
}

.page-install-steam .install-portal-stream .ul-log-card__media .cover-release-ribbon {
  z-index: 1;
}

.page-install-steam .install-portal-stream .ul-log-card__foot {
  position: relative;
  margin-top: 0;
  z-index: 2;
  padding: 0;
  pointer-events: none;
  flex-shrink: 0;
}

.page-install-steam .install-portal-stream .ul-log-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.35em * 2);
  padding: 8px 10px 10px;
  border-radius: 0 0 10px 10px;
  background: rgba(14, 20, 25, 0.92);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}

@media (max-width: 1280px) {
  .page-install-steam .install-portal-stream .ul-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 14px;
  }
}

@media (max-width: 1100px) {
  .page-install-steam .install-portal-stream .ul-calendar-page {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 16px;
  }

  .page-install-steam .install-portal-stream .ul-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 12px;
  }
}

@media (max-width: 820px) {
  .page-install-steam .install-portal-stream .ul-calendar-page {
    grid-template-columns: 1fr;
  }

  .page-install-steam .install-portal-stream .ul-calendar-sidebar {
    position: static;
  }

  .page-install-steam .install-portal-stream .ul-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
}

@media (max-width: 560px) {
  .page-install-steam .install-portal-stream .ul-main-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.page-install-steam .install-portal-stream .pager-page-row .pager button {
  border: 1px solid rgba(102, 192, 244, 0.28);
  background: linear-gradient(180deg, rgba(42, 71, 94, 0.85), rgba(27, 40, 56, 0.95));
  color: #c7d5e0;
}

.page-install-steam .install-portal-stream .pager-page-row .pager button:hover:not(:disabled) {
  border-color: rgba(102, 192, 244, 0.5);
  background: linear-gradient(180deg, rgba(102, 192, 244, 0.22), rgba(42, 122, 173, 0.2));
  color: #ffffff;
}

.page-install-steam .install-portal-stream .pager-page-row .pager button:disabled {
  opacity: 0.4;
}

.page-install-steam .install-portal-stream .pager-page-row #installPageInfo,
.page-install-steam .install-portal-stream .stats-page .metric {
  color: var(--sp-muted);
}

@media (max-width: 1100px) {
  body.install-stream-mode.layout-topcats-cards .install-portal-stream .resource-card-grid,
  body.install-stream-mode.layout-topcats-cards .install-portal-stream .hot-category-section__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.install-stream-mode.layout-topcats-cards .install-portal-stream .resource-card-grid,
  body.install-stream-mode.layout-topcats-cards .install-portal-stream .hot-category-section__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.install-stream-mode.layout-topcats-cards .install-portal-stream .resource-card-grid,
  body.install-stream-mode.layout-topcats-cards .install-portal-stream .hot-category-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
}

@media (max-width: 620px) {
  .install-portal-stream.container.page-shell {
    min-width: 0;
  }
}

.sp-cat-dropdown__link,
.sp-cat-dropdown__sublink,
.sp-cat-dropdown__all {
  cursor: pointer;
}

.sp-loading {
  text-align: center;
  padding: 120px 24px;
  color: var(--sp-muted);
  font-size: 15px;
}

/* ── Hero（Steam About 首屏：左图右文，与 Steam 左右对调）── */
.sp-hero {
  position: relative;
  padding: 32px 0 56px;
  overflow: hidden;
  min-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 18% 50%, rgba(102, 192, 244, 0.12), transparent 58%),
    radial-gradient(ellipse 50% 55% at 85% 30%, rgba(45, 115, 255, 0.08), transparent 55%),
    linear-gradient(165deg, #1a2634 0%, #0e1419 48%, #0a0f14 100%);
  z-index: 0;
}

.sp-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='48' height='48' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(255,255,255,0.045)'/%3E%3C/svg%3E");
  opacity: 0.9;
}

.sp-hero__shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(20px, 4vw, 40px) 24px;
  width: 100%;
}

/* 左侧：设备插图（Steam 在右侧，此处对调） */
.sp-hero__visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
}

.sp-hero__dots {
  position: absolute;
  width: 140px;
  height: 100px;
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 12px 12px;
}

.sp-hero__dots--tl {
  top: 8%;
  left: 4%;
}

.sp-hero__dots--br {
  bottom: 12%;
  right: 8%;
  width: 100px;
  height: 80px;
}

.sp-hero__illus-img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}

.sp-hero__illus {
  width: min(100%, 520px);
  height: auto;
  max-height: 380px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

/* 右侧：文案与按钮 */
.sp-hero__copy {
  text-align: left;
  order: 2;
  padding: 8px 0;
}

.sp-hero__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sp-hero__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.sp-hero__brand-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--sp-heading);
  letter-spacing: 0.02em;
}

.sp-hero__tagline {
  margin: 0 0 18px;
  max-width: 420px;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: rgba(199, 213, 224, 0.95);
  font-weight: 300;
}

.sp-hero__search-tip {
  margin: 0 0 24px;
  width: 100%;
  max-width: min(100%, 460px);
  padding: 10px 14px;
  border: 1px solid rgba(102, 192, 244, 0.18);
  border-left: 3px solid rgba(102, 192, 244, 0.55);
  border-radius: 6px;
  background: rgba(16, 28, 40, 0.62);
  color: rgba(214, 231, 246, 0.92);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sp-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  margin-bottom: 28px;
}

.sp-stat__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.sp-stat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-stat__dot--blue {
  background: #66c0f4;
  box-shadow: 0 0 10px rgba(102, 192, 244, 0.8);
}

.sp-stat__dot--green {
  background: #57cb8a;
  box-shadow: 0 0 10px rgba(87, 203, 138, 0.65);
}

.sp-stat__label {
  font-size: 13px;
  color: var(--sp-muted);
  text-transform: capitalize;
}

.sp-stat__num {
  display: block;
  font-size: clamp(32px, 4.5vw, 42px);
  font-weight: 300;
  color: var(--sp-heading);
  line-height: 1;
  letter-spacing: -0.02em;
}

.sp-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 0 32px;
  border: none;
  border-radius: 3px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #d2e885;
  cursor: pointer;
  background: linear-gradient(180deg, #799905 0%, var(--sp-install-hi) 12%, #5c7e10 100%);
  box-shadow: 0 0 12px var(--sp-install-shadow);
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}

.sp-install-wrap {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 100%;
  max-width: 400px;
  margin-bottom: 4px;
}

.sp-install-wrap:hover,
.sp-install-wrap:focus-within {
  z-index: 60;
}

.sp-install--hero {
  width: 100%;
  min-height: 58px;
  padding: 0 16px 0 24px;
  justify-content: space-between;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, #00b4ff 0%, #2d73ff 55%, #1a5fd4 100%);
  box-shadow: 0 4px 24px rgba(45, 115, 255, 0.45);
}

.sp-install-wrap:hover .sp-install--hero:not(:disabled),
.sp-install-wrap:focus-within .sp-install--hero:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: 0 6px 32px rgba(45, 115, 255, 0.55);
}

/* 悬停主按钮：Steam 风备用网盘菜单（与页面深色玻璃体系一致） */
.sp-install-wrap--solo .sp-install--hero {
  justify-content: center;
  padding: 0 28px;
}

.sp-install-wrap--solo .sp-install-drop {
  display: none;
}

.sp-install-drop {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 61;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s;
  pointer-events: none;
}

.sp-install-wrap:hover .sp-install-drop,
.sp-install-wrap:focus-within .sp-install-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sp-cloud-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(27, 40, 56, 0.97) 0%, rgba(14, 20, 25, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sp-cloud-menu--empty {
  display: none;
}

.sp-cloud-link {
  --i: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 3px;
  color: var(--sp-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.sp-cloud-link__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-cloud-link__arrow {
  flex-shrink: 0;
  color: var(--sp-accent);
  font-size: 15px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sp-install-wrap:hover .sp-cloud-link,
.sp-install-wrap:focus-within .sp-cloud-link {
  animation: spCloudLinkIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.05s + var(--i) * 0.09s);
}

.sp-install-wrap:not(:hover):not(:focus-within) .sp-cloud-link {
  animation: none;
  opacity: 0;
  transform: translateY(-10px);
}

@keyframes spCloudLinkIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-cloud-link:hover {
  background: rgba(102, 192, 244, 0.1);
  color: var(--sp-heading);
}

.sp-cloud-link:hover .sp-cloud-link__arrow {
  opacity: 1;
  transform: translateX(2px);
}

.sp-cloud-link:active {
  background: rgba(102, 192, 244, 0.16);
}

button.sp-cloud-link {
  font: inherit;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
}

.sp-cloud-link--pending {
  opacity: 0.72;
  cursor: default;
}

.sp-cloud-link--pending:hover {
  background: rgba(139, 155, 180, 0.08);
  color: var(--sp-muted);
}

.sp-cloud-link--pending:hover .sp-cloud-link__arrow {
  opacity: 0.45;
  transform: none;
}

.sp-cloud-link__hint {
  flex-shrink: 0;
  font-size: 12px;
  color: #e8a84a;
  letter-spacing: 0.02em;
}

.sp-install__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}

.sp-install:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 0 20px var(--sp-install-shadow);
  transform: translateY(-1px);
}

.sp-install-wrap:hover .sp-install--hero:not(:disabled) {
  transform: translateY(-2px);
}

.sp-install:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.sp-skip {
  display: block;
  margin: 14px 0 0;
  padding: 6px 0;
  border: none;
  background: none;
  color: var(--sp-muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sp-skip:hover {
  color: var(--sp-accent);
}

.sp-hero__also {
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--sp-muted);
}

.sp-hero__also-label {
  margin-right: 4px;
}

.sp-hero__also-pill {
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(199, 213, 224, 0.85);
  font-size: 11px;
}

.sp-hero__learn {
  position: relative;
  z-index: 2;
  display: block;
  text-align: center;
  padding: 8px 16px 0;
  font-size: 13px;
  color: rgba(102, 192, 244, 0.9);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.sp-hero__learn span {
  display: inline-block;
  margin-left: 4px;
  animation: spBounce 2s ease-in-out infinite;
}

@keyframes spBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.sp-status {
  max-width: 420px;
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}

.sp-status.is-visible {
  display: block;
}

.sp-status--info {
  background: rgba(102, 192, 244, 0.12);
  color: #a8d4f5;
}

.sp-status--ok {
  background: rgba(117, 176, 34, 0.15);
  color: #b8e86a;
}

.sp-status--warn {
  background: rgba(200, 120, 40, 0.15);
  color: #f0c878;
}


/* ── 通知条 ── */
.sp-alert {
  max-width: var(--sp-max);
  margin: 0 auto 0;
  padding: 12px 20px;
  background: rgba(180, 100, 20, 0.2);
  border-bottom: 1px solid rgba(220, 150, 50, 0.25);
  font-size: 13px;
  color: #f0d090;
  text-align: center;
}

.sp-alert strong {
  color: #ffc870;
}

/* ── 分区叙事（Steam 三栏式大标题块）── */
.sp-band {
  padding: 64px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sp-band--shade {
  background: var(--sp-band);
}

.sp-band__grid {
  max-width: var(--sp-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: center;
}

.sp-band__grid.is-reverse .sp-band__copy {
  order: 2;
}

.sp-band__grid.is-reverse .sp-band__art {
  order: 1;
}

.sp-band__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sp-accent);
}

.sp-band__title {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 300;
  color: var(--sp-heading);
  line-height: 1.25;
}

.sp-band__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sp-text);
  font-weight: 300;
}

.sp-band__link {
  display: inline-block;
  font-size: 14px;
  color: var(--sp-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.sp-band__link:hover {
  border-bottom-color: var(--sp-accent);
}

.sp-band__art {
  min-height: 200px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.sp-art {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.sp-art--install {
  background:
    linear-gradient(135deg, rgba(102, 192, 244, 0.25), transparent 50%),
    linear-gradient(225deg, rgba(117, 176, 34, 0.2), transparent 45%),
    #1e2a3a;
}

.sp-art--cloud {
  background:
    linear-gradient(160deg, rgba(139, 125, 255, 0.22), transparent 55%),
    linear-gradient(20deg, rgba(102, 192, 244, 0.2), transparent 50%),
    #1a2433;
}

.sp-art--safe {
  background:
    linear-gradient(120deg, rgba(117, 176, 34, 0.22), transparent 50%),
    linear-gradient(300deg, rgba(102, 192, 244, 0.15), transparent 55%),
    #172030;
}

.sp-art__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  opacity: 0.35;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

/* ── 网盘下载区 ── */
.sp-downloads {
  padding: 56px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--sp-bg) 0%, var(--sp-bg-2) 100%);
}

.sp-downloads__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 300;
  color: var(--sp-heading);
}

.sp-downloads__sub {
  margin: 0 auto 32px;
  max-width: 480px;
  font-size: 14px;
  color: var(--sp-muted);
  line-height: 1.6;
}

.sp-download-list {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.sp-download-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.sp-download-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-download-row:hover {
  background: rgba(102, 192, 244, 0.06);
}

.sp-download-row__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.sp-download-row__body {
  flex: 1;
  min-width: 0;
}

.sp-download-row__name {
  display: block;
  font-size: 16px;
  color: var(--sp-heading);
  margin-bottom: 2px;
}

.sp-download-row__host {
  display: block;
  font-size: 12px;
  color: var(--sp-muted);
}

.sp-download-row__go {
  color: var(--sp-accent);
  font-size: 20px;
  opacity: 0.7;
}

.sp-download-row:hover .sp-download-row__go {
  opacity: 1;
}

.sp-download-empty {
  padding: 32px;
  color: var(--sp-muted);
  font-size: 14px;
}

/* ── Features 网格 ── */
.sp-features {
  padding: 56px 24px 48px;
  max-width: var(--sp-max);
  margin: 0 auto;
}

.sp-features__head {
  text-align: center;
  margin-bottom: 40px;
}

.sp-features__head h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 300;
  color: var(--sp-heading);
}

.sp-features__head p {
  margin: 0;
  font-size: 14px;
  color: var(--sp-muted);
}

.sp-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.sp-feat {
  padding: 24px 20px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, background 0.2s;
}

.sp-feat:hover {
  border-color: rgba(102, 192, 244, 0.2);
  background: rgba(27, 40, 56, 0.6);
}

.sp-feat__icon {
  font-size: 28px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.sp-feat__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--sp-heading);
}

.sp-feat__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sp-muted);
}

/* ── 底部 CTA ── */
.sp-cta {
  text-align: center;
  padding: 56px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(92, 126, 16, 0.15), transparent 60%);
}

.sp-cta__text {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--sp-muted);
}

.sp-cta .sp-install {
  min-width: 240px;
}

/* ── 错误态 ── */
.sp-error {
  text-align: center;
  padding: 80px 24px;
  max-width: 440px;
  margin: 0 auto;
}

.sp-error h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 400;
  color: var(--sp-heading);
}

.sp-error p {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--sp-muted);
}

.sp-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sp-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--sp-text);
  text-decoration: none;
  font-size: 14px;
}

.sp-btn-ghost:hover {
  border-color: var(--sp-accent);
  color: var(--sp-heading);
}

/* ── Footer ── */
.sp-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  font-size: 12px;
  color: var(--sp-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--sp-bg-3);
}

@media (max-width: 900px) {
  .sp-hero__shell {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .sp-hero__visual {
    order: 1;
    min-height: 240px;
  }

  .sp-hero__copy {
    order: 2;
    text-align: center;
  }

  .sp-hero__brand {
    justify-content: center;
  }

  .sp-hero__tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .sp-hero__stats {
    justify-content: center;
  }

  .sp-install-wrap {
    margin-left: auto;
    margin-right: auto;
  }

  .sp-skip {
    margin-left: auto;
    margin-right: auto;
  }

  .sp-status {
    margin-left: auto;
    margin-right: auto;
  }

  .sp-hero__also {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sp-band__grid,
  .sp-band__grid.is-reverse {
    grid-template-columns: 1fr;
  }

  .sp-band__grid.is-reverse .sp-band__copy,
  .sp-band__grid.is-reverse .sp-band__art {
    order: unset;
  }

  .sp-band__art {
    min-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-install {
    transition: none;
  }

  .sp-top__brand-shine {
    animation: none;
    opacity: 0;
  }

  .sp-top__free-badge-glow {
    opacity: 0.5;
  }

  .sp-install-drop {
    transition: none;
  }

  .sp-install-wrap:hover .sp-cloud-link,
  .sp-install-wrap:focus-within .sp-cloud-link {
    animation: spCloudLinkIn 0.01s ease forwards;
    animation-delay: calc(var(--i) * 0.03s);
  }
}

@media (max-width: 768px) {
  .sp-top__free-badge {
    padding: 5px 10px 5px 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
    gap: 5px;
  }

  .sp-top__free-badge-icon {
    width: 12px;
    height: 12px;
  }

  .sp-top__lead {
    gap: 8px;
  }

  .sp-top__install-client {
    min-height: 34px;
    padding: 0 12px 0 10px;
    gap: 6px;
    font-size: 12px;
  }

  .sp-top__install-client-icon {
    width: 20px;
    height: 20px;
  }

  .install-portal-chrome__inner {
    gap: 8px;
    min-height: 36px;
  }

  body.layout-topcats-chrome .install-portal-chrome .category-tabs .category-tab {
    padding: 8px 10px;
    font-size: 12px;
  }

  .install-portal-chrome__search {
    width: min(200px, 42vw);
    min-width: 120px;
  }

}

@media (max-width: 420px) {
  .sp-cloud-link {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* 搜索 / 排序冷却提示（仅测试页） */
.install-portal-hint {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 12000;
  transform: translateX(-50%) translateY(12px);
  max-width: min(92vw, 360px);
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(102, 192, 244, 0.35);
  background: rgba(27, 40, 56, 0.96);
  color: #c7d5e0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.install-portal-hint.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 点击卡片/更新日志：返回首页时的显眼提示 */
.install-web-only-banner {
  position: fixed;
  left: 50%;
  top: calc(var(--install-site-head-h, 96px) + 10px);
  z-index: 13000;
  width: min(720px, calc(100vw - 24px));
  transform: translateX(-50%) translateY(-16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.install-web-only-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.install-web-only-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 14px 14px;
  border-radius: 8px;
  border: 1px solid rgba(102, 192, 244, 0.55);
  background: linear-gradient(135deg, rgba(27, 40, 56, 0.98), rgba(14, 20, 25, 0.98));
  box-shadow:
    0 0 0 1px rgba(102, 192, 244, 0.12),
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(102, 192, 244, 0.18);
  animation: install-web-only-banner-pulse 2.4s ease-in-out infinite;
}

.install-web-only-banner__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #0e1419;
  background: linear-gradient(180deg, #9edcff, #66c0f4);
  box-shadow: 0 0 12px rgba(102, 192, 244, 0.45);
}

.install-web-only-banner__text {
  flex: 1 1 auto;
  margin: 0;
  padding-top: 3px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.install-web-only-banner__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: -2px -2px 0 0;
  border: 1px solid rgba(102, 192, 244, 0.35);
  border-radius: 6px;
  background: rgba(14, 20, 25, 0.65);
  color: #c7d5e0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.install-web-only-banner__close:hover {
  border-color: rgba(102, 192, 244, 0.6);
  background: rgba(102, 192, 244, 0.16);
  color: #ffffff;
}

@keyframes install-web-only-banner-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(102, 192, 244, 0.12),
      0 12px 36px rgba(0, 0, 0, 0.45),
      0 0 22px rgba(102, 192, 244, 0.14);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(102, 192, 244, 0.28),
      0 14px 40px rgba(0, 0, 0, 0.5),
      0 0 32px rgba(102, 192, 244, 0.32);
  }
}

@media (max-width: 520px) {
  .install-web-only-banner__text {
    font-size: 14px;
  }
}

/* ── 全 Tab 通知公告条（简洁轮播 + 悬停展开） ── */
.portal-notice-strip {
  position: relative;
  z-index: 12;
  padding: 8px 0 2px;
  width: 100%;
}

.portal-notice-strip__container {
  width: min(var(--install-content-max, 1280px), calc(100vw - 48px));
  margin: 0 auto;
}

.page-install-steam .portal-notice-strip__container {
  width: min(var(--install-content-max, 1280px), calc(100vw - 32px));
}

.portal-notice-strip__inner {
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(102, 192, 244, 0.18);
  background: rgba(27, 40, 56, 0.72);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.portal-notice-strip__inner:hover,
.portal-notice-strip__inner.is-expanded,
.portal-notice-strip__inner:focus-within {
  border-color: rgba(102, 192, 244, 0.36);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.portal-notice-strip__main {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: none;
  background: transparent;
  color: #e3edf5;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.portal-notice-strip__main--roll {
  animation: portalNoticeRoll 0.38s ease;
}

.portal-notice-strip__inner--multi .portal-notice-strip__main {
  position: relative;
}

.portal-notice-strip__inner--multi .portal-notice-strip__main::after {
  content: "";
  position: absolute;
  left: 38px;
  right: 90px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(102, 192, 244, 0.55), transparent);
  opacity: 0;
  animation: portalNoticeTicker 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes portalNoticeTicker {
  0%, 12% { opacity: 0; transform: scaleX(0.2); }
  28%, 72% { opacity: 0.85; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0.2); }
}

@keyframes portalNoticeRoll {
  0% { opacity: 0.35; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.portal-notice-strip__bell {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
  opacity: 0.92;
}

.portal-notice-strip__line {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-notice-strip__badge-wrap {
  display: inline-flex;
  flex-shrink: 0;
}

.portal-notice-strip__badge-wrap:empty {
  display: none;
}

.portal-notice-strip__title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  color: #eef4fa;
}

.portal-notice-strip__title.title-by-badge {
  font-weight: 700;
}

.portal-notice-strip__hint {
  flex-shrink: 0;
  font-size: 12px;
  color: #8f98a0;
  transition: color 0.18s ease;
}

.portal-notice-strip__main:hover .portal-notice-strip__hint,
.portal-notice-strip__inner.is-expanded .portal-notice-strip__hint {
  color: #66c0f4;
}

/* 悬停向下展开更多（约 5 行，超出滚动） */
.portal-notice-strip__more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease;
}

.portal-notice-strip__inner.is-expanded .portal-notice-strip__more,
.portal-notice-strip__inner:focus-within .portal-notice-strip__more {
  max-height: calc(44px * 5 + 4px);
  opacity: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 192, 244, 0.5) rgba(14, 24, 36, 0.5);
}

.portal-notice-strip__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 38px;
  border: none;
  border-top: 1px solid rgba(102, 192, 244, 0.1);
  background: rgba(14, 20, 28, 0.35);
  color: #d8e4ee;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.18s ease;
}

.portal-notice-strip__item:hover {
  background: rgba(102, 192, 244, 0.1);
}

.portal-notice-strip__item-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
}

body.portal-has-notices.install-stream-mode .install-portal-stream.container.page-shell,
body.portal-has-notices .sp-page {
  padding-top: 0;
}

@media (max-width: 720px) {
  .portal-notice-strip {
    padding: 6px 0 0;
  }

  .portal-notice-strip__main {
    padding: 10px 12px;
    gap: 8px;
  }

  .portal-notice-strip__hint {
    display: none;
  }

  .portal-notice-strip__title {
    font-size: 13px;
  }

  .portal-notice-strip__item {
    padding-left: 34px;
  }
}

/* ── 新官网内嵌资源详情（Steam 风，与 install-portal-stream 同色） ── */
.install-detail-mount[hidden] {
  display: none !important;
}

.install-detail-mount {
  width: 100%;
  min-width: 0;
  scroll-margin-top: calc(var(--install-site-head-h, 96px) + 8px);
}

.install-detail-shadow-host {
  display: block;
  width: 100%;
  min-width: 0;
}

.install-detail-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
  color: var(--sp-muted, #8f98a0);
  font-size: 14px;
}

.install-detail-loading__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(102, 192, 244, 0.18);
  border-top-color: var(--sp-accent, #66c0f4);
  box-shadow: 0 0 16px rgba(102, 192, 244, 0.25);
  animation: install-detail-spin 0.85s linear infinite;
}

@keyframes install-detail-spin {
  to {
    transform: rotate(360deg);
  }
}

.install-detail {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(102, 192, 244, 0.22);
  background:
    linear-gradient(165deg, rgba(36, 58, 78, 0.94) 0%, rgba(18, 28, 38, 0.97) 42%, rgba(10, 16, 22, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 4px 14px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  isolation: isolate;
}

.install-detail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(126, 214, 255, 0.45) 20%,
    rgba(126, 214, 255, 0.55) 50%,
    rgba(126, 214, 255, 0.45) 80%,
    transparent
  );
  pointer-events: none;
  z-index: 1;
}

.install-detail__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(102, 192, 244, 0.14);
  background:
    linear-gradient(180deg, rgba(52, 82, 108, 0.38) 0%, rgba(22, 34, 46, 0.22) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.install-detail__back {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(102, 192, 244, 0.32);
  background: linear-gradient(180deg, rgba(34, 52, 68, 0.95), rgba(20, 32, 44, 0.92));
  color: #d4e4f0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 3px 10px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.install-detail__back:hover {
  border-color: rgba(126, 214, 255, 0.55);
  background: linear-gradient(180deg, rgba(48, 78, 102, 0.98), rgba(28, 46, 62, 0.95));
  color: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 5px 16px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(102, 192, 244, 0.12);
  transform: translateY(-1px);
}

.install-detail__back:active {
  transform: translateY(0);
}

.install-detail__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 650;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: 0.025em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.install-detail__hero {
  display: grid !important;
  /* 左宽右窄：与 Steam 商店页一致，右侧信息栏固定宽度 */
  grid-template-columns: minmax(0, 1fr) minmax(240px, 312px) !important;
  gap: 16px;
  padding: 16px;
  align-items: start;
}

/* 详情媒体区：视频 + 缩略图一体立体画框 */
.install-detail-media {
  position: relative;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(48, 78, 108, 0.42) 0%, rgba(14, 22, 32, 0.94) 38%, rgba(8, 12, 18, 0.98) 100%);
  border: 1px solid rgba(126, 214, 255, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 -1px 0 rgba(0, 0, 0, 0.45) inset,
    0 22px 48px rgba(0, 0, 0, 0.52),
    0 8px 20px rgba(8, 24, 48, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  isolation: isolate;
}

.install-detail-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(126, 214, 255, 0.14) 0%,
    transparent 22%,
    transparent 78%,
    rgba(0, 0, 0, 0.22) 100%
  );
  z-index: 0;
}

.install-detail-media::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(16px - 1px);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  z-index: 0;
}

.install-detail-main {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(102, 192, 244, 0.12) 0%, transparent 52%),
    linear-gradient(180deg, #101822 0%, #060a10 100%);
  border: 1px solid rgba(102, 192, 244, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 36px rgba(0, 0, 0, 0.48),
    0 4px 12px rgba(31, 111, 212, 0.12);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.install-detail-media:hover .install-detail-main {
  border-color: rgba(126, 214, 255, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 18px 42px rgba(0, 0, 0, 0.52),
    0 6px 18px rgba(31, 111, 212, 0.18);
}

.install-detail-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 56px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(ellipse 85% 70% at 50% 42%, transparent 50%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 18%);
}

.install-detail-main__stage {
  aspect-ratio: 16 / 9;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(102, 192, 244, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #0e1520 0%, #060a10 100%);
}

.install-detail-main__img,
.install-detail-main__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.install-detail-main__placeholder {
  color: #6b7a88;
  font-size: 14px;
}

.install-detail-main__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 52px;
  border: 1px solid rgba(126, 214, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(28, 48, 68, 0.88) 0%, rgba(10, 16, 24, 0.92) 100%);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 6px 18px rgba(0, 0, 0, 0.45);
  transition:
    opacity 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.install-detail-main:hover .install-detail-main__nav {
  opacity: 1;
}

.install-detail-main__nav:hover {
  background: rgba(42, 71, 94, 0.92);
  border-color: rgba(126, 214, 255, 0.35);
  transform: translateY(-50%) scale(1.04);
}

.install-detail-main__nav--left {
  left: 8px;
}

.install-detail-main__nav--right {
  right: 8px;
}

.install-detail-thumbs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 10px 8px;
  border-radius: 11px;
  overflow-x: auto;
  overflow-y: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(6, 10, 16, 0.72) 100%);
  border: 1px solid rgba(102, 192, 244, 0.12);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 192, 244, 0.45) rgba(8, 14, 22, 0.5);
}

.install-detail-thumbs::-webkit-scrollbar {
  height: 6px;
}

.install-detail-thumbs::-webkit-scrollbar-track {
  margin: 0 4px;
  border-radius: 999px;
  background: rgba(8, 14, 22, 0.65);
}

.install-detail-thumbs::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(68, 130, 200, 0.55), rgba(102, 192, 244, 0.75));
  box-shadow: 0 0 8px rgba(102, 192, 244, 0.35);
}

.install-detail-thumbs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(88, 160, 230, 0.7), rgba(126, 214, 255, 0.9));
}

.install-detail-thumbs__empty {
  color: var(--sp-muted, #8f98a0);
  font-size: 12px;
}

.install-detail-thumb {
  flex: 0 0 auto;
  position: relative;
  width: 92px;
  height: 54px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(102, 192, 244, 0.14);
  background: linear-gradient(180deg, #141e2a 0%, #0a1018 100%);
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 12px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}

.install-detail-thumb::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, transparent, rgba(126, 214, 255, 0.9), transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.install-detail-thumb:hover {
  border-color: rgba(126, 214, 255, 0.42);
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 22px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(31, 111, 212, 0.15);
}

.install-detail-thumb.is-active {
  border-color: rgba(126, 214, 255, 0.72);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(102, 192, 244, 0.35),
    0 0 20px rgba(31, 111, 212, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.4);
}

.install-detail-thumb.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.install-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.install-detail-thumb__badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.install-detail-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-detail-side-cover-wrap {
  width: 100%;
}

.install-detail-side-cover {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 460 / 215;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(102, 192, 244, 0.24);
  background: #0a1018;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.install-detail-side-cover-wrap:hover .install-detail-side-cover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 36px rgba(0, 0, 0, 0.48),
    0 0 20px rgba(31, 111, 212, 0.12);
  transform: translateY(-2px);
}

.install-detail-side-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.install-detail-side-cover-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  z-index: 2;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  max-width: calc(100% - 20px);
  pointer-events: none;
}

.install-detail-side-cover-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9px;
  border: 1px solid rgba(230, 245, 255, 0.28);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
  color: rgba(245, 251, 255, 0.98);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.install-detail-side-cover-tag--dlc {
  background: rgba(74, 144, 226, 0.88);
}

.install-detail-side-cover-tag--denuvo {
  background: rgba(130, 96, 255, 0.88);
}

.install-detail-side-cover-tag--workshop {
  background: rgba(0, 170, 255, 0.86);
}

.install-detail-side-cover-tag--music {
  background: rgba(255, 120, 80, 0.86);
}

.install-detail-side-cover-tag--achievement {
  background: rgba(255, 190, 70, 0.86);
}

.install-detail-side-cover-badge {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  transform: translateX(-50%);
  max-width: calc(100% - 20px);
  padding: 5px 12px;
  border-radius: 11px;
  border: 1px solid rgba(166, 224, 255, 0.74);
  background: linear-gradient(90deg, rgba(21, 74, 132, 0.92), rgba(15, 49, 90, 0.96));
  color: rgba(244, 251, 255, 0.99);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.install-detail-side-cover-badge--single-player {
  border-color: rgba(223, 255, 180, 0.96);
  background: linear-gradient(90deg, rgba(71, 174, 101, 0.95), rgba(52, 142, 98, 0.98));
  color: rgba(246, 255, 234, 1);
}

.install-detail-alias {
  margin: 0;
  font-size: 13px;
  color: var(--sp-accent, #66c0f4);
}

.install-detail-brief {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
  color: #c2d0dc;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.install-detail-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.72), rgba(10, 16, 22, 0.82));
  border: 1px solid rgba(102, 192, 244, 0.16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 6px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.install-detail-fact {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(102, 192, 244, 0.08);
}

.install-detail-fact:last-child {
  border-bottom: none;
}

.install-detail-fact__dt {
  color: #8f98a0;
  font-weight: 500;
}

.install-detail-fact__dd {
  color: #eef4fa;
  word-break: break-word;
  font-weight: 500;
}

.install-detail-disk__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.install-detail-disk__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-detail-disk-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid rgba(126, 214, 255, 0.38);
  background: linear-gradient(180deg, rgba(88, 178, 255, 0.38) 0%, rgba(36, 118, 210, 0.52) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 14px rgba(31, 111, 212, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition:
    filter 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.install-detail-disk-link:hover:not(:disabled) {
  filter: brightness(1.06);
  border-color: rgba(160, 228, 255, 0.62);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 6px 20px rgba(31, 111, 212, 0.42),
    0 0 16px rgba(66, 160, 255, 0.18);
  transform: translateY(-1px);
}

.install-detail-disk-link:active:not(:disabled) {
  transform: translateY(0);
}

.install-detail-disk-link:disabled,
.install-detail-disk-link[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
}

.install-detail-disk__empty {
  margin: 0;
  font-size: 13px;
  color: var(--sp-muted, #8f98a0);
}

.install-detail__lower {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 312px) !important;
  gap: 16px;
  padding: 0 16px 18px;
  align-items: start;
}

/* 详情下半区：资源详情主面板 */
.install-detail-panel {
  position: relative;
  border-radius: 16px;
  padding: 14px 16px 16px;
  background:
    linear-gradient(155deg, rgba(42, 68, 96, 0.38) 0%, rgba(14, 22, 32, 0.95) 42%, rgba(8, 12, 18, 0.98) 100%);
  border: 1px solid rgba(126, 214, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 -1px 0 rgba(0, 0, 0, 0.4) inset,
    0 20px 44px rgba(0, 0, 0, 0.48),
    0 6px 16px rgba(8, 24, 48, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

.install-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(126, 214, 255, 0.1) 0%,
    transparent 20%,
    transparent 85%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 0;
}

.install-detail-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(16px - 1px);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.install-detail-panel__title,
.install-detail-req__title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  padding: 0 0 10px 14px;
  font-size: 15px;
  font-weight: 650;
  color: #f0f6fc;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(102, 192, 244, 0.14);
}

.install-detail-panel__title::before,
.install-detail-req__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: calc(0.12em + 11px);
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, #a8e4ff 0%, #4a9ee8 55%, #2d6eb0 100%);
  box-shadow:
    0 0 12px rgba(102, 192, 244, 0.55),
    0 0 4px rgba(126, 214, 255, 0.35);
}

.install-detail-prose {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.58;
  color: #c7d5e0;
  word-break: break-word;
}

.install-detail-prose__body {
  padding: 14px 16px;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(6, 10, 16, 0.65) 100%);
  border: 1px solid rgba(102, 192, 244, 0.1);
  box-shadow:
    inset 0 2px 10px rgba(0, 0, 0, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.03);
  color: #c7d5e0;
}

.install-detail-prose__plain {
  color: #c2d0dc;
  white-space: normal;
}

.install-detail-prose__sandbox {
  display: block;
  width: 100%;
  min-height: 120px;
  border: 0;
  border-radius: 9px;
  background: #0c1218;
  color-scheme: dark;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* 资源详情：含二维码的图片不展示 */
.install-detail-prose__img--qr-hidden,
.install-detail-prose img[data-qr-hidden="1"] {
  display: none !important;
}

/* 测试官网顶部提示条样式见 web/assets/test-site.css（仅 测试专用.html 引用，正式页勿引用） */

/* 二维码弹窗：禁止展示「打开网盘链接」（站点规则） */
#diskQrActionsWrap,
.disk-qr-actions,
.disk-qr-open-link {
  display: none !important;
}

/* 二维码弹窗：扫码说明（三行安心标题，与 style.css 对齐） */
.disk-qr-scan-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  text-shadow: none;
}
.disk-qr-scan-line {
  display: block;
  text-align: center;
  line-height: 1.45;
}
.disk-qr-scan-line--main {
  font-size: clamp(22px, 4.2vw, 28px);
  font-weight: 700;
  color: rgba(240, 246, 255, 0.98);
  text-shadow: 0 2px 16px rgba(40, 90, 180, 0.22);
}
.disk-qr-scan-line--sub {
  font-size: clamp(14px, 3.2vw, 17px);
  font-weight: 500;
  color: rgba(200, 220, 248, 0.9);
}
.disk-qr-scan-line--safe {
  margin-top: 2px;
  font-size: clamp(16px, 3.5vw, 19px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(110, 220, 160, 0.96);
  text-shadow: 0 0 20px rgba(80, 200, 140, 0.28);
}

.install-detail-prose img,
.install-detail-inline-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 8px 0;
  background: #0a1018;
  border: 1px solid rgba(102, 192, 244, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 10px 28px rgba(0, 0, 0, 0.42),
    0 4px 12px rgba(31, 111, 212, 0.08);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.install-detail-prose img:hover,
.install-detail-inline-image:hover {
  border-color: rgba(126, 214, 255, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 14px 32px rgba(0, 0, 0, 0.48),
    0 0 20px rgba(31, 111, 212, 0.12);
}

/* 详情内联视频：仅此一层播放器外壳（外层 .install-detail-prose__body 为正文托盘，不再叠双边框） */
.install-detail-inline-video-wrap {
  position: relative;
  width: 100%;
  margin: 8px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #060a10;
  border: 1px solid rgba(102, 192, 244, 0.18);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 28px rgba(0, 0, 0, 0.38);
}

.install-detail-prose__body .install-detail-inline-video-wrap {
  border: 1px solid rgba(102, 192, 244, 0.14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.install-detail-prose__rich img,
.install-detail-prose__rich video,
.install-detail-prose__rich .install-detail-inline-video-wrap {
  margin: 5px 0;
}

.install-detail-prose__rich p {
  margin: 0 0 0.4em;
}

.install-detail-prose__rich p:last-child {
  margin-bottom: 0;
}

.install-detail-prose__rich > * + * {
  margin-top: 0.35em;
}

.install-detail-prose__rich br + br {
  display: none;
}

.install-detail-inline-video-wrap .install-detail-inline-video,
.install-detail-prose .install-detail-inline-video-wrap video {
  width: 100%;
  max-height: min(420px, 56vw);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  margin: 0;
  border-radius: 0;
  background: #0a1018;
}

.install-detail-inline-video::-webkit-media-controls,
.install-detail-inline-video::-webkit-media-controls-enclosure {
  display: none !important;
}

.install-detail-inline-video__toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 14, 22, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition:
    background 0.18s ease,
    opacity 0.18s ease,
    visibility 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.install-detail-inline-video-wrap:hover .install-detail-inline-video__toggle,
.install-detail-inline-video-wrap:focus-within .install-detail-inline-video__toggle {
  opacity: 0.94;
  visibility: visible;
  pointer-events: auto;
}

.install-detail-inline-video__toggle:hover,
.install-detail-inline-video__toggle:focus-visible {
  background: rgba(20, 32, 44, 0.88);
  border-color: rgba(126, 214, 255, 0.4);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1.05);
}

.install-detail-inline-video__toggle span {
  display: block;
  transform: translateY(-1px);
}

.install-detail-prose a {
  color: var(--sp-accent, #66c0f4);
}

.install-detail-req {
  position: relative;
  border-radius: 16px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(155deg, rgba(38, 62, 88, 0.4) 0%, rgba(12, 20, 30, 0.96) 45%, rgba(8, 12, 18, 0.98) 100%);
  border: 1px solid rgba(126, 214, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.38) inset,
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.32);
  isolation: isolate;
}

.install-detail-req::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(126, 214, 255, 0.08) 0%, transparent 24%);
  z-index: 0;
}

.install-detail-req__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #b8c5d1;
}

.install-detail-req__zone {
  border-radius: 10px;
  border: 1px solid rgba(102, 192, 244, 0.16);
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.88) 0%, rgba(4, 8, 14, 0.92) 100%);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 4px 14px rgba(0, 0, 0, 0.28);
}

.install-detail-req__zone-title {
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: #9edcff;
  background: linear-gradient(90deg, rgba(38, 62, 82, 0.72), rgba(14, 22, 30, 0.35));
  border-bottom: 1px solid rgba(102, 192, 244, 0.12);
}

.install-detail-req__zone-body {
  padding: 2px 0;
}

.install-detail-req__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  border-bottom: 1px solid rgba(102, 192, 244, 0.07);
}

.install-detail-req__row:last-child {
  border-bottom: none;
}

.install-detail-req__row--plain {
  display: block;
  color: #c7d5e0;
}

.install-detail-req__key {
  color: #8f98a0;
  font-weight: 500;
}

.install-detail-req__val {
  color: #eef4fa;
  word-break: break-word;
}

.install-detail-req__fallback {
  margin: 0;
  line-height: 1.55;
}

.install-detail-empty {
  margin: 0;
  color: var(--sp-muted, #8f98a0);
  font-size: 13px;
}

@media (max-width: 960px) {
  .install-detail__hero {
    grid-template-columns: 1fr;
  }

  .install-detail__lower {
    grid-template-columns: 1fr;
  }

  .install-detail-main__nav {
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .install-detail__head {
    padding: 12px;
  }

  .install-detail__hero,
  .install-detail__lower {
    padding-left: 12px;
    padding-right: 12px;
  }

  .install-detail-fact {
    grid-template-columns: 76px minmax(0, 1fr);
    font-size: 12px;
  }

  .install-detail-media {
    padding: 8px;
    border-radius: 12px;
  }

  .install-detail-thumbs {
    padding: 8px 8px 6px;
    gap: 8px;
  }

  .install-detail-thumb {
    width: 76px;
    height: 46px;
    border-radius: 8px;
  }
}
