/* 客户端下载页 — 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 {
  pointer-events: auto;
}

.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;
}

.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: flex-start;
  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 .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-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__img,
.page-install-steam .install-portal-stream .hot-category-card__placeholder {
  background: rgba(14, 20, 25, 0.75);
  aspect-ratio: 460 / 215;
  object-fit: contain;
}

.page-install-steam .install-portal-stream .hot-category-card__media {
  position: relative;
  display: block;
  min-width: 0;
}

.page-install-steam .install-portal-stream .hot-category-card__cat {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  max-width: calc(100% - 12px);
  pointer-events: none;
  font-size: 10px;
  padding: 2px 8px 2px 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;
}

.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: cover;
  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: -28px;
  z-index: 2;
  padding: 0 4px 2px;
  pointer-events: none;
  flex-shrink: 0;
}

.page-install-steam .install-portal-stream .ul-log-card__title {
  display: block;
  padding: 8px 10px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(14, 20, 25, 0) 0%, rgba(14, 20, 25, 0.82) 38%, rgba(14, 20, 25, 0.94) 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@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-card-grid {
    grid-template-columns: 1fr;
  }

  .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) {
  .install-portal-stream .resource-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .install-portal-stream .resource-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .install-portal-stream.container.page-shell {
    min-width: 0;
  }
  .install-portal-stream .resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.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-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-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) {
  .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;
  }
}
