:root {
  color-scheme: dark;
  --bg: #09090b;
  --text: #f8f7f8;
  --secondary: #aaa6ad;
  --section-accent: #f44991;
  --rose: #de1265;
  --rose-hover: #bd1056;
  --rule: #2e2b30;
  --gutter: clamp(18px, 4vw, 70px);
  --header-height: clamp(60px, 4.6vw, 76px);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: #242225; }
::-webkit-scrollbar-thumb {
  border: 3px solid #242225;
  border-radius: 999px;
  background: #969397;
}
::-webkit-scrollbar-thumb:hover { background: #b4b1b5; }
@supports not selector(::-webkit-scrollbar) {
  :root { scrollbar-width: thin; scrollbar-color: #969397 #242225; }
}
body { margin: 0; }
button, input { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; background: transparent; padding: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #ff87bc; outline-offset: 4px; }
.icon { display: block; flex: none; filter: brightness(0) invert(1); }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 7px; left: 10px; padding: 10px 18px; background: var(--bg); border: 2px solid var(--rose); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.topbar { position: sticky; top: 0; z-index: 10; background: #0c0b0e; border-bottom: 1px solid #262327; }
.topbar-inner { position: relative; display: flex; align-items: center; max-width: 1800px; min-height: var(--header-height); margin-inline: auto; padding-inline: clamp(22px, 6.15vw, 108px) clamp(20px, 4.55vw, 82px); }
.brand-home { display: flex; flex: none; }
.brand-home img { display: block; width: clamp(125px, 11.6vw, 184px); height: auto; }
.nav { display: flex; align-items: stretch; align-self: stretch; gap: clamp(10px, 1.4vw, 26px); margin-left: clamp(17px, 2vw, 48px); }
.nav a, .nav button { position: relative; display: flex; align-items: center; white-space: nowrap; font-weight: 600; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.4; }
.nav a.is-active, .nav a:hover, .nav button:hover { color: var(--section-accent); }
.nav a.is-active::after { content: ""; position: absolute; inset-inline: 0; bottom: 8px; width: 1.2em; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px clamp(12px, 1.8vw, 30px); margin-left: auto; padding-left: 22px; }
.search { display: flex; align-items: center; width: clamp(140px, 15.4vw, 245px); min-width: min-content; height: clamp(36px, 2.9vw, 46px); padding: 0 10px 0 16px; border-radius: 30px; background: #222124; }
.search:focus-within { box-shadow: 0 0 0 2px #bf467a; }
.search input { width: 0; min-width: 4.25em; flex: 1; padding-inline: 0; border: 0; background: transparent; outline: none; font-size: clamp(14px, 1.21vw, 18px); }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: #a3a0a6; }
.search button { display: grid; place-content: center; flex: none; width: 32px; height: 100%; }
.search .icon { width: 18px; height: 18px; }
.pill, .account, .quiet { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 100px; min-height: 40px; padding: 8px 22px; font-weight: 700; }
.account, .pill { color: white; background: var(--rose); }
.account:hover, .pill:hover { background: var(--rose-hover); }
.account { min-width: clamp(90px, 8.2vw, 130px); padding: 5px 12px; min-height: clamp(36px, 2.9vw, 46px); font-size: clamp(14px, 1.45vw, 21px); white-space: nowrap; }
.mobile-menu { display: none; }
.hero { position: relative; isolation: isolate; min-height: clamp(375px, 33.1vw, 575px); background: #070708; scroll-margin-top: var(--header-height); }
.hero-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-inner { max-width: 1800px; margin: 0 auto; padding: clamp(15px, 1.45vw, 25px) clamp(22px, 6.14vw, 108px) 24px; }
.hero-brand { display: block; width: clamp(202px, 19.4vw, 320px); height: auto; }
.hero h1 { margin: .12em 0 .15em; font-size: clamp(40px, 3.8vw, 62px); line-height: 1.13; letter-spacing: .005em; font-weight: 900; }
.platform-line { color: #c6c2c7; font-size: clamp(18px, 1.65vw, 28px); line-height: 1.45; margin: 0; }
.download-actions { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.1vw, 21px); margin-top: clamp(23px, 2.42vw, 42px); }
.download { position: relative; min-height: clamp(45px, 4.03vw, 67px); min-width: clamp(142px, 13.8vw, 235px); padding: 7px 17px; gap: .45em; font-size: clamp(17px, 1.57vw, 26px); line-height: 1.1; }
.download .icon { height: 1.12em; width: 1.12em; }
.recommended { position: absolute; top: -.8em; right: 0; border-radius: 20px; padding: 3px 10px; font-size: .66em; font-style: normal; line-height: 1.2; color: #c81057; background: #fff7fa; }
.catalog, .search-view, .footer { max-width: 1800px; margin: 0 auto; padding-inline: var(--gutter); }
.catalog { padding-top: clamp(10px, .76vw, 15px); }
.catalog, .shelf, .search-view { scroll-margin-top: calc(var(--header-height) + 16px); }
.shelf + .shelf { margin-top: clamp(42px, 4.5vw, 76px); }
.shelf-head, .search-head { display: flex; align-items: center; gap: clamp(18px, 2.15vw, 36px); margin: 0 0 clamp(15px, 1.25vw, 22px); }
.shelf-head { flex-wrap: wrap; row-gap: 6px; }
.shelf-head h2, .search-head h1 { flex: none; margin: 0; font-size: clamp(24px, 2.18vw, 34px); font-weight: 750; letter-spacing: -.025em; line-height: 1.24; }
.shelf-head h2 { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.shelf-symbol, .listing-symbol {
  color: var(--section-accent);
  border: 1px solid color-mix(in srgb, currentColor 40%, var(--bg));
  background-color: color-mix(in srgb, currentColor 13%, var(--bg));
}
.shelf-symbol {
  flex: none;
  width: clamp(32px, 2.8vw, 40px);
  height: auto;
  aspect-ratio: 1;
  padding: 7px;
  border-radius: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shelf-more { margin-inline-start: auto; }
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid #3a3a3c;
  border-radius: 999px;
  background: #242426;
  color: #f5f5f6;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.more-link::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.more-link:hover, .more-link:focus-visible { border-color: #656567; background: #323234; color: #fff; }
.shelf-note { color: var(--secondary); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px clamp(12px, 1.12vw, 20px); align-items: start; }
.card { min-width: 0; }
.card-button { display: block; width: 100%; text-align: left; border-radius: 10px; }
.poster { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: clamp(7px, .7vw, 12px); background: #1c191d; }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 180ms ease; }
.card-title {
  display: block;
  margin: 8px 1px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #f2eff2;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.45;
  font-weight: 600;
}
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 5px 1px 0; padding: 0; }
.card-tags li { border-radius: 4px; color: #c7c0c5; background: #211e22; font-size: 12px; line-height: 1.45; white-space: nowrap; }
.card-tags a { display: block; padding: 2px 6px; border-radius: inherit; }
.card-tags a:hover, .card-tags a:focus-visible { color: #ffadd0; background: #37212b; }
.card-button:hover .card-title { color: #ff90bd; }
@media (hover: hover) { .card-button:hover img { transform: scale(1.03); } }
.search-view { min-height: 55vh; padding-block: 38px 72px; }
.tag-crumb { display: flex; gap: 9px; align-items: baseline; }
.tag-crumb { padding-block: clamp(14px, 1.6vw, 22px); font-size: 13px; line-height: 1.5; color: #aaa2a9; }
.tag-crumb > a { flex: none; }
.tag-crumb [aria-current] { min-width: 0; overflow-wrap: anywhere; color: #e0dce0; }
.tag-crumb a:hover, .tag-crumb a:focus-visible { color: #ff90bd; }
.search-head { justify-content: space-between; }
.search-head h1 { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.search-head .listing-symbol, .search-head #tagCount { display: none; }
.search-head .result-actions { margin: 0; flex: none; }
.search-view .grid { row-gap: 28px; }
.empty { padding-block: 38px; color: var(--secondary); }
.footer { margin-top: clamp(64px, 7.2vw, 127px); background: #0b0a0d; }
.footer-main { display: grid; grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr)); column-gap: 4%; align-items: start; border-top: 1px solid var(--rule); padding: clamp(42px, 4.35vw, 74px) clamp(0px, 2.4vw, 42px) clamp(34px, 3.1vw, 58px); }
.footer-brand a { display: inline-block; }
.footer-brand img { width: clamp(208px, 21.3vw, 370px); height: auto; max-width: 100%; display: block; }
.footer-brand p { margin: 9px 0 0; color: var(--secondary); font-size: clamp(15px, 1.28vw, 22px); }
.footer-column { display: flex; align-items: flex-start; flex-direction: column; gap: clamp(8px, .85vw, 15px); }
.footer-column h2 { margin: 0 0 7px; font-size: clamp(19px, 1.92vw, 32px); line-height: 1.25; }
.footer-column h2::after { content: ""; display: block; width: 2.05em; height: 4px; margin-top: .54em; background: var(--rose); border-radius: 3px; }
.footer-column a, .footer-column button { color: #b3afb5; font-size: clamp(15px, 1.28vw, 22px); line-height: 1.45; }
.footer a:hover, .footer button:hover { color: #ff88ba; }
.quiet, .dialog-close { background: #29242a; color: #f5f0f4; }
.quiet:hover, .dialog-close:hover { background: #44363e; }
body.dialog-open { overflow: hidden; }
#siteDialog { width: min(540px, calc(100% - 32px)); max-height: min(85dvh, 780px); margin: auto; padding: 30px; border: 1px solid #46363e; border-radius: 18px; color: var(--text); background: #181519; box-shadow: 0 18px 80px #000a; }
#siteDialog::backdrop { background: rgb(0 0 0 / 75%); }
.dialog-close { position: absolute; right: 15px; top: 15px; display: grid; place-content: center; width: 35px; height: 35px; border-radius: 50%; }
.dialog-close .icon { width: 16px; height: 16px; }
.dialog-title { margin: 0 35px 18px 0; font-size: 26px; line-height: 1.35; }
#dialogBody p { color: #cec9ce; line-height: 1.65; }
.dialog-details { display: grid; grid-template-columns: minmax(85px, 32%) 1fr; gap: 20px; }
.dialog-poster { display: block; width: 100%; height: auto; border-radius: 8px; }
.dialog-copy h3 { margin: 12px 0 4px; font-size: 17px; }
.dialog-copy p { margin: 0; }
#dialogBody .eyebrow, #dialogBody .dialog-note { color: #ada1aa; font-size: 13px; }
.dialog-copy .dialog-note { margin-top: 15px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qr-image { display: block; width: min(206px, 75%); margin: 12px auto 20px; image-rendering: pixelated; border-radius: 5px; }
@media (min-width: 821px) {
  .footer-main { grid-template-columns: 1.62fr repeat(3, minmax(0, 1fr)); column-gap: 4%; padding-inline: 0; }
  .footer-brand img { width: clamp(208px, 24.5vw, 416px); }
}
@media (max-width: 1080px) {
  .topbar-inner { padding-inline: var(--gutter); }
  .nav { margin-left: clamp(14px, 1.8vw, 20px); gap: clamp(9px, 1.35vw, 15px); }
  .header-tools { padding-left: 14px; gap: 10px; }
  .search { width: 137px; }
}
@media (max-width: 900px) {
  .search-view .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .topbar-inner { gap: 12px; }
  .mobile-menu { display: grid; place-items: center; height: 40px; width: 38px; order: 3; flex: none; }
  .nav { display: none; position: absolute; top: 100%; right: var(--gutter); min-width: 155px; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; padding: 8px; margin: 0; background: #19161b; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 10px 28px #0009; }
  .nav.is-open { display: grid; gap: 0; }
  .nav a, .nav button { width: 100%; padding: 11px 14px; border-radius: 5px; }
  .nav a.is-active { background: #2c1923; }
  .nav a.is-active::after { display: none; }
  .header-tools { padding-left: 0; }
}
@media (max-width: 820px) {
  .hero-inner { padding-left: var(--gutter); }
  .download { min-width: 122px; }
  .shelf .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf + .shelf { margin-top: 50px; }
  .footer-main { grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); column-gap: 3%; padding-inline: 0; }
  .footer-brand img { width: 100%; }
}
@media (max-width: 580px) {
  :root { --header-height: 57px; --gutter: 16px; }
  .topbar-inner { gap: 5px; padding: 6px 5px 6px 12px; }
  .brand-home img { width: clamp(87px, 25vw, 119px); }
  .header-tools { min-width: 0; flex: 1; gap: 5px 7px; }
  .search { width: min(27vw, 136px); padding: 0 3px 0 9px; min-height: 32px; height: auto; }
  .search button { width: 26px; min-height: 32px; }
  .search .icon { width: 15px; height: 15px; }
  .search input { font-size: 12px; }
  .account { min-width: 0; min-height: 32px; padding-inline: 10px; font-size: 12px; }
  .mobile-menu { width: 33px; }
  .hero { min-height: 0; }
  .hero-art { height: 77%; object-fit: cover; object-position: 66% center; opacity: .8; }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#080809 15%,transparent 50%),linear-gradient(90deg,#0808099e,transparent 72%); pointer-events: none; }
  .hero-inner { padding: 17px var(--gutter) 25px; }
  .hero-brand { width: clamp(132px, 34vw, 182px); }
  .hero h1 { margin: 7px 0 8px; font-size: clamp(29px, 6.85vw, 40px); line-height: 1.18; }
  .platform-line { font-size: 15px; }
  .download-actions { gap: 9px 10px; margin-top: 24px; }
  .download { flex: 1 0 calc(50% - 5px); min-height: 40px; min-width: max-content; padding: 7px; font-size: 15px; }
  .recommended { font-size: 10px; padding: 2px 7px; }
  .catalog { padding-top: 15px; }
  .shelf-head { gap: 12px; margin-bottom: 10px; }
  .shelf-head h2, .search-head h1 { font-size: 22px; }
  .grid, .search-view .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 11px; }
  .card-title { margin: 6px 1px 0; font-size: 13px; }
  .card-tags li { font-size: 11px; }
  .card-tags a { padding-inline: 4px; }
  .shelf + .shelf { margin-top: 38px; }
  .search-view { padding-block: 22px 40px; }
  .search-head { gap: 10px; }
  .search-head .quiet { font-size: 12px; min-height: 30px; padding: 5px 12px; }
  .footer { margin-top: 46px; }
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; padding-block: 27px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { width: 143px; }
  .footer-brand p { margin: 3px 0 0; font-size: 12px; }
  .footer-column { gap: 7px; }
  .footer-column h2 { font-size: 16px; }
  .footer-column h2::after { height: 3px; }
  .footer-column a, .footer-column button { font-size: 13px; }
  #siteDialog { padding: 23px 18px; }
  .dialog-details { gap: 12px; }
}
@media (max-width: 430px) {
  .shelf-head:has(.shelf-note) { gap: 5px 8px; }
  .shelf-head .shelf-note { order: 1; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
