@charset "UTF-8";
@font-face {
  font-family: "Outfit";
  src: url("../project-images/outfit-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --shadow: 0 8px 24px rgba(95, 85, 132, 0.12);
  --container: 1200px;
  --gutter: 20px;
  --section: 40px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: #faf8fe;
  color: var(--color-site-deep);
  font-family: "Outfit", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.main-shell {
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

.container-box {
  padding-block: 20px 40px;
}

.article-page,
.articles-page {
  background: var(--color-page-sky);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 共享 HeaderLTemplate 风格的公共头部，在构建时注入每个 MPA 页面。 */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 64px;
  background: #fff;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.09);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: #1d1e35;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand > span {
  color: #1d1e35;
}

.brand > span > span {
  color: var(--color-accent-mint);
}

.header-search {
  position: relative;
  display: flex;
  width: 240px;
  height: 40px;
  flex: 0 0 240px;
  align-items: center;
  overflow: hidden;
  border-radius: 36px;
  background: #faf8fe;
  color: #999;
  font-size: 14px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-label {
  margin-left: 12px;
}

.header-search-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 10px;
  color: var(--color-accent-mint);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.header-search:hover {
  background: #f2f5f9;
}

.header-search:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(255, 51, 100, 0.42);
  outline-offset: 3px;
}

.site-footer {
  margin-top: auto;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
  color: rgba(0, 0, 0, 0.58);
  font-size: 13px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner a {
  color: rgba(0, 0, 0, 0.9);
}

.footer-inner a:hover {
  color: var(--color-accent-mint);
}

.dialog {
  width: min(560px, 100vw - 32px);
  border: 0;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 20px 60px rgba(29, 30, 53, 0.28);
}

.dialog::backdrop {
  background: rgba(18, 16, 35, 0.42);
}

.dialog-body {
  position: relative;
  padding: 32px;
}

.dialog-body h2 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 850;
}

.dialog-body p {
  color: #667085;
  margin-top: 10px;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.search-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ecdce5;
  border-radius: 12px;
  padding: 12px 14px;
  color: #333;
  background: #fff;
  outline: none;
}

.search-form input {
  min-height: 48px;
  border-radius: 26px;
}

.search-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent-mint);
  box-shadow: 0 0 0 3px rgba(255, 51, 100, 0.12);
}

[aria-invalid=true] {
  border-color: #d92d20 !important;
}

.button,
.load-more,
.gradient-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 800;
}

.button:hover,
.load-more:hover,
.gradient-button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.button-outline {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 14px;
  color: var(--color-accent-mint);
  background: transparent;
  font-weight: 800;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.message-stack {
  position: fixed;
  z-index: 1000;
  top: 16px;
  left: 50%;
  width: min(440px, 100vw - 32px);
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e0e5ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(29, 30, 53, 0.14);
  color: #3c475b;
  font-size: 14px;
}

.message > :first-child {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9effa;
  color: #4068a7;
  font-weight: 800;
}

.message.success > :first-child {
  background: #e6f7ee;
  color: #17834d;
}

.message.warning > :first-child {
  background: #fff4dd;
  color: #af6a00;
}

.message.error > :first-child {
  background: #fde8e7;
  color: #c83227;
}

.message .count {
  margin-left: auto;
}

/* 可复用的源码视图模块。 */
.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 4px solid var(--color-border-soft);
}

.article-header h1,
.article-header h2,
.general-title {
  color: var(--color-site-deep);
  font-size: 32px;
  line-height: 1.22;
  font-weight: 900;
}

.article-header-dark {
  border-color: rgba(255, 255, 255, 0.24);
}

.article-header-dark h2 {
  color: #fff;
}

.meta,
.date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.line-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.line-title::before,
.line-title::after {
  height: 3px;
  content: "";
  background: var(--color-border-soft);
}

.line-title h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.panel,
.source-panel {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h1,
.section-heading h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 850;
  color: #333;
}

/* 首页视图（IndexView.vue）。 */
.home-page {
  padding-bottom: 0;
  background: var(--color-page-sky);
}

.top-pattern {
  padding: 40px 0;
  background: url("../project-images/ar-1.png") center 100px/auto 500px no-repeat;
}

.latest-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
  min-height: 420px;
}

.latest-swiper-wrap {
  width: calc(50% - 12px);
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(95, 85, 132, 0.16);
}

.latest-swiper {
  height: 100%;
}

.latest-swiper .swiper-slide {
  height: auto;
}

.latest-feature {
  position: relative;
  display: block;
  min-height: 420px;
  height: 100%;
  overflow: hidden;
  color: #fff;
}

.latest-feature::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.18) 32%, rgba(7, 12, 28, 0.88) 100%);
}

.latest-feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.latest-feature:hover > img {
  transform: scale(1.045);
}

.latest-tags {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 10px;
}

.latest-tags img,
.image-tag {
  width: auto;
  height: 26px;
}

.latest-feature-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0 40px 68px;
}

.latest-feature-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  max-width: 88%;
  color: #fff;
  font-size: 34px;
  line-height: 1.22;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.latest-feature-copy p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.latest-feature-copy .learn-more {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 26px;
  padding: 0 24px;
  border-radius: 28px;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 850;
}

.latest-swiper .swiper-pagination {
  right: 40px !important;
  bottom: 28px !important;
  left: auto !important;
  width: auto !important;
}

.latest-swiper .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.55);
  opacity: 1;
}

.latest-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

.latest-table {
  display: flex;
  width: calc(50% - 12px);
  flex-wrap: wrap;
  gap: 24px;
}

.latest-table li {
  width: calc(50% - 12px);
  min-width: 0;
}

.latest-table a {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.latest-table a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(95, 85, 132, 0.18);
}

.latest-table figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin: 0;
}

.latest-table figure > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-table .image-tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.latest-table dl {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.latest-table dt {
  display: -webkit-box;
  overflow: hidden;
  color: #10182f;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.latest-table dd {
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.home-surface {
  width: calc(100% - 80px);
  margin: 0 auto;
  border-radius: 28px;
}

.hidden-gems {
  padding: 52px 0 58px;
  background: #fff;
}

.hidden-gems .container,
.trending-games .container,
.news-section .container {
  width: 100%;
}

.hidden-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.story-link {
  display: block;
  min-width: 0;
}

.story-link figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/8;
  margin: 0 0 12px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(95, 85, 132, 0.14);
}

.story-link figure > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.story-link:hover figure > img:first-child {
  transform: scale(1.04);
}

.story-link .image-tag {
  position: absolute;
  top: 10px;
  left: 10px;
}

.story-link h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-site-deep);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.story-link:hover h3,
.article-card:hover h3 {
  color: var(--color-accent-mint);
}

.story-link p {
  margin-top: 8px;
}

.trending-games {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  padding: 44px 0 48px;
  background: url("../project-images/ar-2.png") center bottom/100% auto no-repeat, var(--gradient-accent);
}

.trending-actions {
  display: flex;
  gap: 10px;
}

.trending-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: #5c6375;
  font-size: 20px;
}

.trending-actions button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.trending-track {
  padding-top: 40px;
}

.trending-list {
  display: flex;
  gap: 24px;
  padding: 0 2px 10px;
}

.trending-swiper {
  overflow: hidden;
}

.trending-swiper .swiper-wrapper {
  align-items: stretch;
}

.trending-swiper .swiper-slide {
  display: flex;
  min-width: 0;
  height: auto;
}

.trending-card {
  position: relative;
  display: flex;
  width: calc((100% - 120px) / 6);
  min-width: 160px;
  min-height: 168px;
  flex: 0 0 calc((100% - 120px) / 6);
  flex-direction: column;
  align-items: center;
  padding: 66px 18px 18px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 20px rgba(60, 35, 86, 0.14);
  scroll-snap-align: start;
  transition: transform 0.2s;
}

.trending-card:hover {
  transform: translateY(-4px);
}

.trending-card > img {
  position: absolute;
  top: -36px;
  left: 50%;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(60, 35, 86, 0.2);
  transform: translateX(-50%);
}

.trending-card dl {
  width: 100%;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(29, 30, 53, 0.1);
}

.trending-card dt {
  overflow: hidden;
  color: var(--color-site-deep);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-card dd,
.trending-card p {
  color: var(--muted);
  font-size: 12px;
}

.trending-card .score {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.trending-swiper .trending-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  flex: 1 1 auto;
  scroll-snap-align: none;
}

.star {
  color: #ffbb32;
  letter-spacing: 1px;
}

.news-section {
  margin-top: 40px;
  padding: 52px 0 58px;
  background: #fff;
}

.gaming-news {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}

.news-lead figure {
  overflow: hidden;
  aspect-ratio: 16/8;
  margin: 0 0 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.news-lead figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.news-lead:hover figure img {
  transform: scale(1.04);
}

.news-lead h3 {
  color: var(--color-site-deep);
  font-size: 26px;
  line-height: 1.35;
  font-weight: 900;
}

.news-lead:hover h3,
.news-side a:hover h3 {
  color: var(--color-accent-mint);
}

.news-lead p {
  margin-top: 10px;
}

.news-side {
  display: grid;
  gap: 20px;
}

.news-side a {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.news-side figure {
  overflow: hidden;
  aspect-ratio: 16/8;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(95, 85, 132, 0.12);
}

.news-side figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.news-side a:hover figure img {
  transform: scale(1.04);
}

.news-side h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-site-deep);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 900;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-side p {
  margin-top: 8px;
}

.all-reviews {
  margin-top: 40px;
  padding-bottom: 56px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.article-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(95, 85, 132, 0.18);
}

.article-card figure {
  overflow: hidden;
  aspect-ratio: 16/8;
  margin: 0;
}

.article-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.article-card:hover figure img {
  transform: scale(1.04);
}

.article-card dl,
.article-card .card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.article-card dt,
.article-card h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-site-deep);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card dd,
.article-card .meta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.explore-articles {
  display: flex;
  width: max-content;
  min-width: 180px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 34px auto 0;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.home-cta {
  overflow: hidden;
  margin-bottom: 52px;
  background: url("../project-images/ar-3.png") center/cover no-repeat, var(--gradient-accent);
}

.home-cta-inner {
  display: flex;
  min-height: 260px;
  max-width: 1160px;
  align-items: center;
  justify-content: center;
  gap: 72px;
  margin: 0 auto;
  padding: 38px 40px;
}

.home-cta-media {
  flex: 0 1 46%;
}

.home-cta-media img {
  width: auto;
  height: 200px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
}

.home-cta-copy {
  flex: 0 1 480px;
  color: #fff;
}

.home-cta-copy h2 {
  color: #fff25c;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 900;
}

.home-cta-copy p {
  margin-top: 18px;
  font-size: 30px;
  line-height: 1.32;
  font-weight: 800;
}

.home-cta-copy a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 28px;
  border-radius: 14px;
  background: #fff;
  color: var(--color-site-deep);
  font-size: 16px;
  font-weight: 850;
}

/* HomeView.vue、ExtensionView.vue 及兼容后端的列表页面。 */
.game-library {
  padding-top: 20px;
}

.game-intro {
  margin-bottom: 24px;
}

.game-intro h1 {
  color: #333;
  font-size: 22px;
  font-weight: 850;
}

.game-intro p {
  color: #878e93;
}

.category-rail {
  overflow: hidden;
  margin-bottom: 20px;
}

.category-rail ul {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.category-rail ul::-webkit-scrollbar {
  display: none;
}

.category-rail a {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  padding: 8px 24px;
  border: 1px solid #ffcbd8;
  border-radius: 24px;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.category-rail a.active,
.category-rail a:hover {
  border-color: transparent;
  background: var(--gradient-accent);
  color: #fff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px 16px;
}

.catalog-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.catalog-card figure {
  position: relative;
  aspect-ratio: 1/1;
  margin: 0;
  overflow: hidden;
}

.catalog-card figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.68));
  opacity: 0;
  transition: opacity 0.2s;
}

.catalog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.catalog-card .catalog-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 12px 10px;
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.2s;
}

.catalog-card:hover figure::after {
  opacity: 1;
}

.catalog-card:hover img {
  transform: scale(1.04);
}

.catalog-card:hover .catalog-copy {
  transform: translateY(0);
}

.catalog-card h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.catalog-card p {
  margin-top: 3px;
  color: #e8e8e8;
  font-size: 12px;
}

.catalog-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalog-list .catalog-card .catalog-copy {
  position: static;
  color: var(--color-site-deep);
  transform: none;
}

.catalog-list .catalog-card figure::after {
  display: none;
}

.catalog-list .catalog-card p {
  color: var(--muted);
}

.catalog-list .catalog-card:hover .catalog-copy h3 {
  color: var(--color-accent-mint);
}

.load-more {
  display: flex;
  width: min(300px, 100%);
  margin: 28px auto 0;
  border: 0;
  border-radius: 30px;
}

.load-more[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.all-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.all-categories a {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.all-categories strong {
  font-size: 18px;
}

.all-categories span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.ad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 24px 0;
}

.ad-box > div {
  width: 100%;
  height: 250px;
  background: aliceblue;
}

.ad-box > span {
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
}

/* TopView.vue：此处有意保留独立的青色拼贴布局。 */
.top-page {
  min-height: 100vh;
  padding: 80px 16px 16px;
  background: #83ffe7;
}

.top-mosaic {
  display: grid;
  width: 100%;
  max-width: 1772px;
  grid-template-columns: repeat(17, minmax(0, 1fr));
  grid-auto-flow: row dense;
  gap: 16px;
  margin: 0 auto;
}

.top-mosaic li {
  aspect-ratio: 1;
}

.top-mosaic li:nth-child(1) {
  grid-column: 2/5;
  grid-row: 1/4;
}

.top-mosaic li:nth-child(2) {
  grid-column: 5/7;
  grid-row: 2/4;
}

.top-mosaic li:nth-child(3) {
  grid-column: 8/10;
  grid-row: 1/3;
}

.top-mosaic li:nth-child(4) {
  grid-column: 12/15;
  grid-row: 1/4;
}

.top-mosaic li:nth-child(5) {
  grid-column: 3/5;
  grid-row: 4/6;
}

.top-mosaic li:nth-child(6) {
  grid-column: 6/8;
  grid-row: 4/6;
}

.top-mosaic li:nth-child(7) {
  grid-column: 9/12;
  grid-row: 5/8;
}

.top-mosaic li:nth-child(8) {
  grid-column: 1/3;
  grid-row: 6/8;
}

.top-mosaic li:nth-child(9) {
  grid-column: 6/8;
  grid-row: 6/8;
}

.top-mosaic li:nth-child(10) {
  grid-column: 13/15;
  grid-row: 6/8;
}

.top-mosaic a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 7px 10px rgba(93, 107, 132, 0.3);
}

.top-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-mosaic a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  opacity: 0;
  transition: opacity 0.2s;
}

.top-mosaic span {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 8px;
  left: 12px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  transform: translateY(130%);
  transition: transform 0.2s;
}

.top-mosaic a:hover::after {
  opacity: 1;
}

.top-mosaic a:hover span {
  transform: translateY(0);
}

/* ArticlesView.vue 与 ArticleDetailView.vue。 */
.articles-page {
  min-height: calc(100vh - 64px);
  padding-top: 36px;
}

.articles-page .article-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.article-detail {
  padding-top: 32px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.article-title {
  margin-bottom: 10px;
  color: var(--color-site-deep);
  font-size: 30px;
  line-height: 1.28;
  font-weight: 900;
}

.article-date {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.article-content {
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  color: #394156;
  font-size: 15px;
  line-height: 1.7;
}

.article-content h2 {
  margin: 26px 0 12px;
  color: var(--color-site-deep);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.article-content h3 {
  margin: 22px 0 10px;
  color: var(--color-site-deep);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 800;
}

.article-content p + p {
  margin-top: 12px;
}

.article-content img {
  width: 100%;
  height: auto;
  margin: 22px 0;
  border-radius: 8px;
}

.hot-games-panel {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  position: sticky;
  top: 84px;
}

.aside-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--color-site-deep);
  font-size: 16px;
  font-weight: 900;
}

.aside-title span {
  color: #ff5151;
}

.compact-games {
  display: grid;
  gap: 10px;
}

.compact-games a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.compact-games img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.compact-games b {
  display: block;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-games small {
  color: var(--muted);
}

.related-section {
  margin-top: 44px;
}

/* DetailView.vue 与 DownView.vue。 */
.detail-page {
  padding-top: 20px;
}

.detail-main {
  min-width: 0;
}

.detail-box {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-summary {
  padding: 28px;
  border-radius: 14px;
}

.detail-summary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-game {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 24px;
}

.detail-game > img {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  border-radius: 16px;
  object-fit: cover;
}

.detail-game h1 {
  color: #252631;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 900;
}

.detail-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #999;
  font-size: 18px;
  font-weight: 700;
}

.get-button {
  display: inline-flex;
  min-width: 118px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: #fff;
  font-weight: 700;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #667085;
  font-size: 14px;
}

.platform-row strong {
  color: var(--color-site-deep);
}

.detail-box h2 {
  margin-bottom: 12px;
  color: var(--color-accent-mint);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 800;
}

.detail-copy {
  color: #666;
  font-size: 16px;
  line-height: 1.58;
}

.detail-copy p + p {
  margin-top: 10px;
}

.expandable {
  position: relative;
  max-height: 164px;
  overflow: hidden;
}

.expandable::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42px;
  content: "";
  background: linear-gradient(transparent, #fff);
}

.expandable.is-open {
  max-height: none;
}

.expandable.is-open::after {
  display: none;
}

.read-more {
  margin-top: 10px;
  padding: 0;
  background: transparent;
  color: var(--color-accent-mint);
  font-size: 14px;
  font-weight: 800;
}

.explore-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.explore-review-list a {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.explore-review-list figure {
  overflow: hidden;
  aspect-ratio: 16/8.4;
  margin: 0;
  border-radius: 10px;
}

.explore-review-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore-review-list h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-site-deep);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.explore-review-list p {
  margin-top: 8px;
}

.trusted-download {
  background: #fff;
}

.trusted-download h2 {
  font-size: 20px;
}

.verified {
  margin-bottom: 20px;
}

.verified dt {
  color: #16b193;
  font-size: 14px;
  font-weight: 700;
}

.verified dd {
  margin-top: 2px;
  color: #999;
  font-size: 12px;
}

.screenshot-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.screenshot-strip a {
  display: block;
  flex: 0 0 220px;
  overflow: hidden;
  border-radius: 10px;
  background: #f5f7fc;
  scroll-snap-align: start;
}

.screenshot-strip img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.detail-aside .hot-reviews {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.aside-articles {
  display: grid;
  gap: 18px;
}

.aside-articles a {
  display: block;
}

.aside-articles figure {
  overflow: hidden;
  aspect-ratio: 16/8.2;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(95, 85, 132, 0.1);
}

.aside-articles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aside-articles h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--color-site-deep);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.aside-articles p {
  margin-top: 8px;
}

.you-may-like {
  margin-top: 24px;
}

.download-stores {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.store {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #f0dfe7;
  border-radius: 14px;
  background: #fff;
  color: var(--color-site-deep);
  font-weight: 800;
  text-align: left;
}

.store:hover:not([disabled]) {
  border-color: var(--color-accent-mint);
  color: var(--color-accent-mint);
}

.store[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

/* 搜索、法律、联系与错误页面的源码视图。 */
.search-box {
  padding-bottom: 24px;
}

.search-page .search-box {
  padding-bottom: 46px;
}

.search-recommendations {
  margin-top: 24px;
}

.search-may-like-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.search-may-like-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #e9e3ea;
  box-shadow: 0 5px 14px rgba(60, 35, 86, 0.1);
}

.search-may-like-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.search-may-like-card span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 20px 9px 8px;
  background: linear-gradient(transparent, rgba(22, 16, 31, 0.88));
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-may-like-card:hover img {
  transform: scale(1.06);
}

.search-may-like-card:focus-visible {
  outline: 2px solid var(--color-accent-mint);
  outline-offset: 3px;
}

/* 桌面端列表卡片扫光效果：对应 gameHomed 的 LazyImg hoverType=2 处理。 */
.search-results-page .search-result-block {
  margin-top: 0;
}

.search-results-page .search-empty {
  margin-top: 54px;
  border-top: 1px solid var(--color-border-soft);
}

.search-input-row {
  position: relative;
  height: 56px;
  overflow: hidden;
  border-radius: 40px;
  background: #fff;
}

.search-input-row input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 96px 0 18px;
  color: #333;
}

.search-input-row button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 80px;
  height: 48px;
  border-radius: 24px;
  background: var(--color-accent-mint);
  color: #fff;
  font-size: 20px;
}

.search-input-row svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 24px;
}

.search-suggestions a {
  padding: 6px 12px;
  border: 1px solid #ffcbd8;
  border-radius: 24px;
  background: #fff;
  color: #666;
  font-size: 14px;
}

.search-suggestions a:hover {
  border-color: var(--color-accent-mint);
  background: #fdedf3;
  color: var(--color-accent-mint);
}

.search-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 40px 20px 70px;
  text-align: center;
}

.search-empty img {
  width: min(320px, 60%);
}

.search-empty h2 {
  margin-top: 20px;
  font-size: 22px;
}

.search-empty p {
  max-width: 520px;
  margin-top: 8px;
  color: #8d99ad;
}

.search-result-block {
  margin-top: 50px;
}

#search-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.about-page {
  display: flex;
  min-height: calc(100vh - 124px);
  flex-direction: column;
}

.about-page > h1 {
  margin-bottom: 8px;
  color: #333;
  font-size: 21px;
  font-weight: 900;
}

.about-card {
  flex: 1;
  padding: 18px;
  margin-top: 20px;
  border-radius: 10px;
  background: #fff;
}

.about-card h2 {
  margin-top: 18px;
  color: rgba(0, 0, 0, 0.8);
  font-size: 16px;
}

.about-card p {
  margin-top: 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  max-width: 600px;
  gap: 22px;
  margin-top: 20px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form .button {
  width: 120px;
}

.error-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 104px 20px 40px;
  text-align: center;
}

.error-page img {
  width: min(360px, 80vw);
  height: auto;
}

.error-page h1 {
  margin-top: 40px;
  color: #333;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.error-page p {
  margin: 12px 0 24px;
  color: #666;
  font-size: 14px;
}

.error-page .load-more {
  margin: 0;
}

@media (max-width: 1127px) {
  .two-column {
    grid-template-columns: 1fr;
  }
  .hot-games-panel {
    position: static;
  }
  .detail-aside .aside-articles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }
}
@media (max-width: 1000px) {
  .article-grid,
  .articles-page .article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catalog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .all-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .latest-layout {
    flex-direction: column;
    min-height: 0;
  }
  .latest-swiper-wrap,
  .latest-table {
    width: 100%;
  }
  .latest-swiper-wrap {
    aspect-ratio: 16/10;
  }
  .latest-feature {
    min-height: 0;
  }
  .gaming-news {
    grid-template-columns: 1fr;
  }
  .home-cta-inner {
    gap: 24px;
    padding: 30px 24px;
  }
  .home-cta-media img {
    height: 150px;
  }
  .home-cta-copy h2 {
    font-size: 30px;
  }
  .home-cta-copy p {
    font-size: 24px;
  }
  .top-mosaic {
    grid-template-columns: repeat(11, minmax(0, 1fr));
  }
  .top-mosaic li:nth-child(4) {
    grid-column: 10/12;
    grid-row: 3/5;
  }
}
@media (max-width: 800px) {
  :root {
    --gutter: 16px;
    --section: 24px;
  }
  .home-surface {
    width: calc(100% - 32px);
    border-radius: 20px;
  }
  .hidden-gems,
  .news-section {
    padding: 28px 0 32px;
  }
  .hidden-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .trending-games {
    margin-top: 24px;
    padding: 24px 0 32px;
  }
  .trending-card {
    width: calc((100% - 32px) / 3);
    min-width: 0;
    flex-basis: calc((100% - 32px) / 3);
  }
  .news-section,
  .all-reviews {
    margin-top: 24px;
  }
  .article-header {
    padding-bottom: 16px;
    margin-bottom: 18px;
  }
}
@media (max-width: 767px) {
  .site-header,
  .header-inner {
    height: 56px;
  }
  .main-shell {
    min-height: calc(100vh - 56px);
    padding-top: 56px;
  }
  .top-page {
    padding-top: 72px;
  }
  .error-page {
    padding-top: 96px;
  }
  .footer-inner {
    min-height: 96px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .article-header h1,
  .article-header h2,
  .general-title {
    font-size: 26px;
  }
  .article-page {
    padding-top: 20px;
  }
  .article-content {
    padding: 20px;
    font-size: 14px;
  }
  .article-title {
    font-size: 24px;
  }
  .detail-box {
    padding: 12px;
    margin-bottom: 10px;
  }
  .detail-summary {
    padding: 12px;
  }
  .detail-summary-link {
    gap: 16px;
  }
  .detail-game {
    gap: 14px;
  }
  .detail-game > img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
    border-radius: 14px;
  }
  .detail-game h1 {
    font-size: 20px;
  }
  .detail-score {
    margin-top: 8px;
    font-size: 14px;
  }
  .get-button {
    min-width: 92px;
    min-height: 36px;
    padding: 0 18px;
    font-size: 15px;
  }
}
@media (max-width: 580px) {
  .header-search {
    width: 40px;
    flex-basis: 40px;
    border-radius: 50%;
  }
  .header-search-label {
    display: none;
  }
}
@media (max-width: 700px) {
  .game-intro {
    margin-bottom: 12px;
  }
  .game-intro p {
    display: none;
  }
  .category-rail {
    margin-bottom: 12px;
  }
  .category-rail a {
    min-height: 66px;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 10px 24px;
    border-radius: 16px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .catalog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-may-like-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 560px) {
  .latest-layout {
    gap: 16px;
  }
  .latest-swiper-wrap {
    aspect-ratio: 4/3;
    border-radius: 14px;
  }
  .latest-feature-copy {
    padding: 0 18px 42px;
  }
  .latest-feature-copy h3 {
    max-width: 100%;
    font-size: 26px;
    -webkit-line-clamp: 2;
  }
  .latest-feature-copy .learn-more {
    display: none;
  }
  .latest-swiper .swiper-pagination {
    right: auto !important;
    bottom: 18px !important;
    left: 50% !important;
    transform: translateX(-50%);
  }
  .latest-table {
    gap: 16px;
  }
  .latest-table li {
    width: 100%;
  }
  .news-lead h3 {
    font-size: 21px;
  }
  .news-side a {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
  }
  .news-side h3 {
    font-size: 15px;
  }
  .search-may-like-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .search-may-like-card span {
    padding: 17px 7px 6px;
    font-size: 11px;
  }
  .home-cta-inner {
    flex-direction: column;
    padding: 28px 20px;
    text-align: center;
  }
  .home-cta-copy {
    flex-basis: auto;
  }
  .home-cta-copy h2 {
    font-size: 26px;
  }
  .home-cta-copy p {
    font-size: 20px;
  }
  .home-cta-copy a {
    margin-top: 20px;
  }
  .article-grid,
  .articles-page .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .article-card dl,
  .article-card .card-copy {
    padding: 14px;
  }
  .article-card dt,
  .article-card h3 {
    font-size: 14px;
  }
  .explore-review-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .explore-review-list a {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .detail-aside .aside-articles {
    grid-template-columns: 1fr;
  }
  .search-input-row {
    height: 44px;
  }
  .search-input-row button {
    top: 2px;
    right: 2px;
    width: 60px;
    height: 40px;
  }
  .search-input-row input {
    padding-right: 72px;
  }
  .all-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .hidden-grid {
    grid-template-columns: 1fr;
  }
  .trending-card {
    width: calc((100% - 12px) / 2);
    flex-basis: calc((100% - 12px) / 2);
  }
  .top-mosaic {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .top-mosaic li:nth-child(1) {
    grid-column: 1/4;
  }
  .top-mosaic li:nth-child(2) {
    grid-column: 4/6;
  }
  .top-mosaic li:nth-child(3) {
    grid-column: 3/5;
    grid-row: 4/6;
  }
  .top-mosaic li:nth-child(4) {
    grid-column: 2/4;
    grid-row: 6/8;
  }
  .top-mosaic li:nth-child(5) {
    grid-column: 4/6;
    grid-row: 7/9;
  }
}
@media (max-width: 460px) {
  .article-grid,
  .articles-page .article-grid,
  .catalog-list {
    grid-template-columns: 1fr;
  }
  .line-title {
    grid-template-columns: 1fr;
  }
  .line-title::before,
  .line-title::after {
    display: none;
  }
  .line-title h1 {
    font-size: 26px;
    text-align: center;
  }
  .explore-review-list a {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .get-button {
    min-width: 76px;
    padding: 0 14px;
  }
  .all-categories {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .top-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .top-mosaic li:nth-child(1) {
    grid-column: 1/3;
    grid-row: 1/3;
  }
  .top-mosaic li:nth-child(2) {
    grid-column: 2/4;
    grid-row: 3/5;
  }
  .top-mosaic li:nth-child(3) {
    grid-column: 1/3;
    grid-row: 5/7;
  }
  .top-mosaic li:nth-child(4) {
    grid-column: 2/4;
    grid-row: 7/9;
  }
  .top-mosaic li:nth-child(5) {
    grid-column: 1/3;
    grid-row: 9/11;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* 404 页标题使用与站内模块标题一致的较轻字重。 */
.error-page h1 {
  font-weight: 600;
}

/* Review Library：为固定 Header 预留空间，并与首页模块标题保持一致。 */
/* 使用组合选择器覆盖后置的通用 .main-shell 顶部间距。 */
.main-shell.articles-page {
  min-height: calc(100vh - 64px);
  padding: 96px 0 72px;
}

.articles-page .article-library-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
}

.articles-page .article-library-heading::before {
  display: none;
}

.articles-page .article-library-heading::after {
  flex: 1;
  height: 4px;
  background: rgba(9, 86, 109, 0.2);
}

.articles-page .article-library-heading h1 {
  color: var(--color-site-deep);
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

/* 文章列表沿用首页卡片：16:9 封面、16px 标题与 12px 日期。 */
.articles-page .article-card figure {
  aspect-ratio: 16/9;
}

.articles-page .article-card dt {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-line-clamp: 2;
}

.articles-page .article-card dd {
  margin-top: 8px;
  padding-top: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

/* 文章详情：避开固定 Header，并统一标题、正文、侧栏与相关推荐的节奏。 */
.main-shell.article-page.article-detail {
  min-height: calc(100vh - 64px);
  padding: 96px 0 72px;
}

.article-detail .two-column {
  gap: 32px;
}

.article-detail .article-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 700;
}

.article-detail .article-date {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.article-detail .article-content {
  padding: 32px;
  font-size: 16px;
  line-height: 1.7;
}

.article-detail .article-content h2 {
  margin: 32px 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.article-detail .article-content h3 {
  margin: 24px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.article-detail .article-content p + p {
  margin-top: 16px;
}

.article-detail .article-content img {
  margin: 24px 0;
}

.article-detail .related-section {
  margin-top: 64px;
}

.article-detail .related-section .article-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  margin-bottom: 20px;
  border: 0;
}

.article-detail .related-section .article-header::after {
  content: "";
  flex: 1;
  height: 4px;
  background: rgba(9, 86, 109, 0.2);
}

.article-detail .related-section .article-header h2 {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
}

.article-detail .article-card figure {
  aspect-ratio: 16/9;
}

.article-detail .article-card dt {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-line-clamp: 2;
}

.article-detail .article-card dd {
  margin-top: 8px;
  padding-top: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

/* 文章详情整列侧栏吸顶，内部模块保持自然顺序。 */
.article-detail .hot-games-panel {
  position: static;
}

.article-detail .two-column > aside {
  position: sticky;
  top: 84px;
  align-self: start;
}

.article-detail .compact-games {
  gap: 12px;
}

.article-detail .compact-games a {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.article-detail .compact-games img {
  width: 56px;
  height: 56px;
}

.article-detail .compact-game-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.article-detail .compact-games b {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-detail .compact-game-category {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-detail .compact-game-rating {
  color: #999;
  font-size: 12px;
  line-height: 1.2;
}

.article-detail .compact-game-rating span {
  color: #ff8f32;
}

@media (max-width: 1127px) {
  .article-detail .two-column > aside {
    position: static;
    top: auto;
    align-self: auto;
  }
  .article-detail .compact-games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .article-detail .compact-games a {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }
  .article-detail .compact-games img {
    width: 56px;
    height: 56px;
  }
}
@media (max-width: 720px) {
  .article-detail .compact-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-detail .compact-games a:last-child {
    display: none;
  }
}
@media (max-width: 460px) {
  .article-detail .compact-games {
    grid-template-columns: 1fr;
  }
  .article-detail .compact-games a {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }
  .article-detail .compact-games img {
    width: 72px;
    height: 72px;
  }
  .article-detail .compact-games a:last-child {
    display: grid;
  }
}
@media (max-width: 580px) {
  .main-shell.articles-page {
    padding: 80px 0 48px;
  }
  .articles-page .article-library-heading {
    gap: 10px;
    margin-bottom: 16px;
  }
  .articles-page .article-card dt {
    font-size: 14px;
  }
  .main-shell.article-page.article-detail {
    padding: 80px 0 48px;
  }
  .article-detail .two-column {
    gap: 24px;
  }
  .article-detail .article-content {
    padding: 20px;
    font-size: 14px;
  }
  .article-detail .related-section {
    margin-top: 40px;
  }
  .article-detail .related-section .article-header {
    gap: 10px;
    margin-bottom: 16px;
  }
  .article-detail .article-card dt {
    font-size: 14px;
  }
}
/* 游戏分类页：分类切换与每个分类独立 SSR 首屏数据。 */
.main-shell.games-page {
  min-height: calc(100vh - 64px);
  padding: 96px 0 72px;
}

.games-page .game-library {
  padding-top: 0;
}

.games-page .game-intro {
  margin-bottom: 24px;
}

.games-page .game-intro h1 {
  color: var(--color-site-deep);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.games-page .game-intro p {
  margin-top: 8px;
  color: var(--color-text-muted);
  font-size: 16px;
}

.games-category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.games-category-tabs::-webkit-scrollbar {
  display: none;
}

.games-category-tab {
  min-width: max-content;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(9, 86, 109, 0.2);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-site-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.games-category-tab.is-active {
  border-color: transparent;
  background: var(--color-site-deep);
  color: #fff;
  box-shadow: inset 0 -3px 0 #46dab7, 0 6px 16px rgba(4, 33, 55, 0.18);
}

.games-category-tab:focus-visible {
  outline: 3px solid rgba(70, 218, 183, 0.55);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .games-category-tab:not(.is-active):hover {
    border-color: rgba(15, 158, 124, 0.58);
    background: rgba(70, 218, 183, 0.1);
  }
  .games-category-tab.is-active:hover {
    box-shadow: inset 0 -3px 0 #46dab7, 0 8px 20px rgba(4, 33, 55, 0.24);
  }
}
.games-category-panel[hidden] {
  display: none;
}

.games-page .catalog-list.games-category-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 16px;
}

.games-category-grid .catalog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

/* Client-side category filtering and 18-item pagination must override card layout display rules. */
.games-category-grid .catalog-card[hidden] {
  display: none !important;
}

.games-category-grid .catalog-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}

.games-category-grid .catalog-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.games-category-grid .rating {
  min-height: 12px;
  margin-top: auto;
}

.games-load-more {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 32px;
}

.games-load-more[hidden] {
  display: none;
}

.games-load-more [data-load-status] {
  min-height: 18px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.games-load-more-button {
  width: min(300px, 100%);
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f9e7c 0%, #46dab7 100%);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 158, 124, 0.22);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.games-load-more-button:focus-visible {
  outline: 3px solid rgba(70, 218, 183, 0.55);
  outline-offset: 3px;
}

.games-load-more-button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.68;
}

@media (hover: hover) and (pointer: fine) {
  .games-load-more-button:not(:disabled):hover {
    box-shadow: 0 12px 24px rgba(15, 158, 124, 0.32);
    transform: translateY(-2px);
  }
  .games-load-more-button:not(:disabled):active {
    box-shadow: 0 5px 12px rgba(15, 158, 124, 0.22);
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .games-category-tab,
  .games-load-more-button {
    transition: none;
  }
  .games-category-tab:hover,
  .games-load-more-button:hover {
    transform: none;
  }
}
/* 首页重构：仅作用于 .home-body，内页继续沿用既有结构与组件。 */
.home-body {
  background: #071d33;
}

.home-body .home-header {
  height: 80px;
  background: linear-gradient(180deg, rgba(7, 29, 51, 0.92), transparent);
}

.home-body .header-inner {
  height: 80px;
}

.home-body .home-header .brand img {
  width: 180px;
}

.home-body .header-search {
  width: min(312px, 42vw);
  height: 40px;
  flex-basis: min(312px, 42vw);
  border-color: rgba(53, 240, 206, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.home-reimagined {
  overflow: hidden;
  background: #edf5ff;
}

.home-kicker {
  margin: 0 0 12px;
  color: #14c8ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.discovery-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 148px 0 92px;
  background: linear-gradient(100deg, rgba(7, 29, 51, 0.98) 0%, rgba(7, 29, 51, 0.87) 48%, rgba(7, 29, 51, 0.55) 100%), url("../project-images/home-night-forest.webp") center/cover no-repeat;
}

.discovery-hero::before,
.discovery-hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.discovery-hero::before {
  right: -9vw;
  bottom: -15vw;
  width: min(52vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 240, 206, 0.22), transparent 67%);
}

.discovery-hero::after {
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(transparent, #071d33);
}

.discovery-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.discovery-hero__copy {
  position: relative;
  z-index: 1;
}

.discovery-hero h1,
.home-v2-heading h2,
.home-v2-reading h2,
.home-v2-cta h2 {
  margin: 0;
  color: #fff;
  letter-spacing: -0.055em;
}

.discovery-hero h1 {
  max-width: 8ch;
  font-size: clamp(48px, 6.4vw, 86px);
  font-weight: 720;
  line-height: 0.95;
}

.discovery-hero__lead {
  max-width: 45ch;
  margin: 28px 0 0;
  color: rgba(237, 245, 255, 0.74);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.55;
}

.discovery-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.home-primary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: #071d33;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(53, 240, 206, 0.24);
}

.home-text-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1fceb5;
  font-size: 15px;
  font-weight: 750;
}

.home-text-action span {
  font-size: 20px;
  line-height: 1;
}

.discovery-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  margin: 52px 0 0;
}

.discovery-hero__stats div {
  min-width: 90px;
}

.discovery-hero__stats dt {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.discovery-hero__stats dd {
  margin: 4px 0 0;
  color: rgba(237, 245, 255, 0.55);
  font-size: 12px;
}

.hero-feature {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(144, 235, 255, 0.3);
  border-radius: 26px;
  aspect-ratio: 1.08/1;
  background: #0c2f4e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.hero-feature > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 34%, rgba(7, 29, 51, 0.88));
}

.hero-feature__glow {
  position: absolute;
  z-index: 1;
  top: 8%;
  right: 8%;
  width: 28%;
  aspect-ratio: 1;
  border: 1px solid rgba(53, 240, 206, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(53, 240, 206, 0.44);
}

.hero-feature__content {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 30px;
  left: 32px;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.hero-feature__meta {
  color: #35f0ce;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero-feature__content strong {
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.hero-feature__arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #35f0ce;
  color: #071d33;
  font-size: 24px;
}

.home-v2-section {
  padding: clamp(64px, 8vw, 112px) 0;
}

.home-v2-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.home-v2-heading h2,
.home-v2-reading h2,
.home-v2-cta h2 {
  color: #182d42;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 720;
  line-height: 0.98;
}

.home-v2-heading .home-kicker,
.home-v2-reading .home-kicker,
.home-v2-cta .home-kicker {
  margin-bottom: 10px;
}

.rail-controls {
  display: flex;
  gap: 8px;
}

.rail-controls button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #b9d1e4;
  border-radius: 50%;
  background: #fff;
  color: #071d33;
  font-size: 20px;
}

.v2-games-swiper {
  overflow: visible;
  padding-bottom: 28px;
}

.v2-game-tile {
  display: grid;
  gap: 12px;
  color: #182d42;
}

.v2-game-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(7, 29, 51, 0.12);
}

.v2-game-tile__meta {
  color: #6a7e91;
  font-size: 12px;
  font-weight: 650;
}

.v2-game-tile strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.v2-games-pagination {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  width: 100%;
  text-align: left;
}

.v2-games-pagination .swiper-pagination-bullet {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: #9bb6c9;
  opacity: 1;
}

.v2-games-pagination .swiper-pagination-bullet-active {
  background: #18cdb0;
}

.home-v2-moods {
  background: #dceeff;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mood-card {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: 20px;
  background: #0c2f4e;
}

.mood-card--wide {
  grid-column: span 2;
}

.mood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mood-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(7, 29, 51, 0.94));
}

.mood-card > span {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.74);
}

.mood-card small {
  color: #35f0ce;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.mood-card strong {
  color: #fff;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.05;
}

.mood-card em {
  font-size: 14px;
  font-style: normal;
}

.home-v2-reading {
  background: #071d33;
}

.home-v2-reading__layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(40px, 7vw, 110px);
}

.home-v2-reading h2 {
  color: #fff;
}

.home-v2-reading__intro > p:not(.home-kicker) {
  margin: 24px 0 30px;
  color: rgba(237, 245, 255, 0.68);
  font-size: 17px;
  line-height: 1.65;
}

.reading-list {
  display: grid;
  gap: 18px;
}

.reading-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(237, 245, 255, 0.16);
}

.reading-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
}

.reading-card span {
  display: grid;
  gap: 10px;
}

.reading-card time {
  color: #35f0ce;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.reading-card strong {
  color: #fff;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.15;
}

.home-v2-library {
  background: #f8fbff;
}

.fresh-games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.fresh-game {
  display: grid;
  overflow: hidden;
  border: 1px solid #d7e6f3;
  border-radius: 16px;
  background: #fff;
  color: #182d42;
  box-shadow: 0 7px 16px rgba(7, 29, 51, 0.06);
}

.fresh-game img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.fresh-game span {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.fresh-game strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fresh-game em {
  color: #6a7e91;
  font-size: 12px;
  font-style: normal;
}

.home-v2-cta {
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
  background: linear-gradient(rgba(7, 29, 51, 0.84), rgba(7, 29, 51, 0.98)), url("../project-images/home-night-forest.webp") center/cover no-repeat;
}

.home-v2-cta h2 {
  max-width: 16ch;
  margin: 0 auto;
  color: #fff;
}

.home-v2-cta .home-primary-action {
  margin-top: 32px;
}

@media (hover: hover) and (pointer: fine) {
  .home-primary-action,
  .home-text-action,
  .rail-controls button,
  .hero-feature,
  .mood-card img,
  .v2-game-tile img,
  .fresh-game,
  .reading-card img {
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background-color 0.22s ease;
  }
  .home-primary-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(53, 240, 206, 0.32);
  }
  .home-text-action:hover {
    color: #35f0ce;
  }
  .rail-controls button:hover {
    transform: translateY(-2px);
    border-color: #35f0ce;
    background: #071d33;
    color: #35f0ce;
  }
  .hero-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
  }
  .mood-card:hover img {
    transform: scale(1.06);
  }
  .v2-game-tile:hover img {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 20px 34px rgba(7, 29, 51, 0.2);
  }
  .fresh-game:hover {
    transform: translateY(-4px);
    border-color: rgba(53, 240, 206, 0.72);
    box-shadow: 0 16px 28px rgba(7, 29, 51, 0.15);
  }
  .reading-card:hover img {
    transform: scale(1.04);
    filter: saturate(1.12);
  }
}
@media (max-width: 900px) {
  .discovery-hero__grid,
  .home-v2-reading__layout {
    grid-template-columns: 1fr;
  }
  .discovery-hero__grid {
    gap: 46px;
  }
  .hero-feature {
    max-width: 690px;
  }
  .fresh-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .home-body .home-header,
  .home-body .header-inner {
    height: 64px;
  }
  .home-body .home-header .brand img {
    width: 158px;
  }
  .discovery-hero {
    padding: 112px 0 66px;
  }
  .discovery-hero h1 {
    max-width: 11ch;
    font-size: clamp(43px, 12vw, 68px);
  }
  .home-v2-heading {
    align-items: start;
    margin-bottom: 26px;
  }
  .home-v2-heading .home-text-action {
    display: none;
  }
  .mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mood-card {
    min-height: 220px;
  }
  .mood-card--wide {
    grid-column: span 2;
  }
}
@media (max-width: 520px) {
  .home-body .header-search {
    width: 42px;
    flex-basis: 42px;
  }
  .home-body .header-search-label {
    display: none;
  }
  .discovery-hero {
    padding-top: 106px;
  }
  .discovery-hero__lead {
    margin-top: 20px;
    font-size: 16px;
  }
  .discovery-hero__actions {
    gap: 18px;
    margin-top: 28px;
  }
  .discovery-hero__stats {
    gap: 16px;
    margin-top: 38px;
  }
  .hero-feature {
    border-radius: 19px;
    aspect-ratio: 1/1.05;
  }
  .hero-feature__content {
    right: 20px;
    bottom: 20px;
    left: 20px;
    font-size: 13px;
  }
  .hero-feature__arrow {
    width: 38px;
    height: 38px;
  }
  .home-v2-section {
    padding: 60px 0;
  }
  .home-v2-heading h2,
  .home-v2-reading h2,
  .home-v2-cta h2 {
    font-size: 34px;
  }
  .rail-controls button {
    width: 40px;
    height: 40px;
  }
  .mood-grid {
    gap: 12px;
  }
  .mood-card {
    min-height: 180px;
    border-radius: 15px;
  }
  .mood-card > span {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
  .mood-card strong {
    font-size: 20px;
  }
  .mood-card em {
    display: none;
  }
  .reading-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }
  .reading-card strong {
    font-size: 16px;
  }
  .fresh-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .fresh-game span {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-reimagined *,
  .home-reimagined *::before,
  .home-reimagined *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 900px) {
  .games-page .catalog-list.games-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .main-shell.games-page {
    padding: 80px 0 48px;
  }
  .games-page .catalog-list.games-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .games-category-tabs {
    margin-bottom: 16px;
  }
}
@media (max-width: 460px) {
  .games-page .catalog-list.games-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .games-category-grid .catalog-copy {
    gap: 2px;
    padding: 8px;
  }
  .games-category-grid .catalog-copy h3 {
    font-size: 14px;
  }
}
/* 联系页表单字段说明。 */
.contact-form label {
  margin-bottom: -14px;
  color: var(--color-site-deep);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.contact-form p {
  margin: -2px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* Footer 内容页统一采用更易阅读的法律与说明文字层级。 */
.about-page > h1 {
  color: var(--color-site-deep);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
}

.about-card {
  max-width: 920px;
  padding: clamp(24px, 4vw, 40px);
}

.about-card h2 {
  color: var(--color-site-deep);
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.3;
}

.about-card p {
  color: #42556a;
  font-size: 16px;
  line-height: 1.75;
}

.about-card a {
  color: #0f9e7c;
  font-weight: 700;
}

:root {
  --page-gutter: clamp(16px, 3vw, 34px);
  --section-gap: clamp(32px, 5vw, 64px);
  --content-max: calc(1200px + var(--page-gutter) * 2);
}

body {
  background: var(--color-page-sky);
  color: var(--color-text-primary);
}

.container {
  max-width: var(--content-max);
  padding-inline: var(--page-gutter);
}

.site-header,
.home-header {
  z-index: 100;
  width: 100%;
  height: 64px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  background: var(--color-site-deep);
  box-shadow: none;
}

.home-header {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgba(4, 33, 55, 0.82), transparent);
}

.header-inner {
  height: 64px;
  gap: 20px;
}

.brand {
  gap: 0;
  color: #fff;
  font-size: 20px;
}

.brand > span,
.brand > span > span {
  color: #fff;
}

.brand img {
  width: 164px;
  height: 30px;
  object-fit: contain;
}

.home-header .brand img {
  width: 193px;
  height: auto;
}

.header-search {
  width: min(270px, 36vw);
  height: 34px;
  flex-basis: min(270px, 36vw);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
}

.header-search:hover {
  background: rgba(255, 255, 255, 0.16);
}

.header-search-icon {
  width: 34px;
  height: 34px;
  color: var(--color-accent-mint);
}

.main-shell {
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

.home-page {
  padding-top: 0;
  overflow: hidden;
}

.home-hero {
  position: relative;
  min-height: 0;
  padding: 88px 0 30px;
  background: linear-gradient(180deg, rgba(4, 33, 55, 0.1), rgba(4, 33, 55, 0.9)), url("../project-images/home-night-forest.webp") center bottom/cover no-repeat;
}

.home-hero::after {
  display: none;
}

.home-hero .container {
  position: relative;
  z-index: 1;
}

.home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-section-heading h1,
.home-section-heading h2 {
  color: var(--color-site-deep);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.home-hero .home-section-heading h1 {
  color: #fff;
  font-weight: 600;
}

.home-section-heading::after {
  height: 4px;
  flex: 1;
  content: "";
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.home-hero .home-section-heading {
  color: #fff;
}

.latest-carousel {
  position: relative;
  padding: 0;
}

.latest-swiper {
  overflow: visible;
  padding: 8px 0 18px;
}

.latest-swiper .swiper-wrapper {
  align-items: center;
}

.latest-swiper .swiper-slide {
  width: 600px;
  transition: transform 0.35s ease;
}

.latest-card {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #082b43;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.latest-card > img:not([data-badge-image]) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.25s ease;
}

.swiper-slide-active .latest-card::after {
  background: transparent;
}

.latest-swiper .swiper-slide:not(.swiper-slide-active) {
  transform: scale(0.95);
}

.latest-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 122px;
  align-content: center;
  gap: 6px;
  padding: 18px 76px 18px 22px;
  background: rgba(6, 19, 29, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.swiper-slide-active .latest-copy {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.latest-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  max-width: 32ch;
  font-size: clamp(17px, 1.65vw, 28px);
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.latest-copy p,
.review-card time,
.game-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.latest-copy .round-arrow {
  position: absolute;
  right: 20px;
  bottom: 50%;
  transform: translateY(50%);
}

.carousel-control {
  display: inline-grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  line-height: 1;
}

.carousel-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control.prev {
  left: calc((100vw - 100%) / -2 + 40px);
}

.carousel-control.next {
  right: calc((100vw - 100%) / -2 + 40px);
}

.carousel-control svg,
.round-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.round-arrow {
  display: inline-grid;
  width: 49px;
  height: 49px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-accent-mint);
}

.latest-pagination {
  position: relative;
  z-index: 4;
  display: flex;
  width: 100% !important;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.latest-pagination .swiper-pagination-bullet {
  width: 24px;
  height: 4px;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.latest-pagination .swiper-pagination-bullet-active {
  background: #46dab7;
}

.home-content {
  position: relative;
  padding: 0;
}

.editorial-showcase {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 48px 0 56px;
  background: url("../project-images/content-mountain-mist.webp") center/cover no-repeat;
}

.editorial-showcase .container,
.discover-strip .container {
  position: relative;
  z-index: 1;
}

.home-section {
  margin-bottom: var(--section-gap);
}

.editorial-showcase .home-section {
  margin: 0;
}

.editorial-showcase .home-section + .home-section {
  margin-top: 44px;
}

.editorial-showcase .home-section-heading {
  margin-bottom: 20px;
}

.editorial-showcase .home-section-heading::after {
  background: rgba(9, 86, 109, 0.2);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.review-card figure,
.feature-card figure,
.game-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.review-card figure {
  aspect-ratio: 16/9;
}

.review-card figure > img:not([data-badge-image]),
.feature-card figure > img:not([data-badge-image]),
.game-card figure > img:not([data-badge-image]) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 编辑图片标签：New、Hot 与 Top 分别使用对应图片；同一卡片可组合显示。 */
.card-badges {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 10px;
}

.review-card-content {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 12px;
}

.review-card time,
.game-card p {
  color: var(--color-text-muted);
}

.review-card h3,
.feature-card h3,
.game-card h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-primary);
  font-size: 14px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.editorial-showcase .review-card h3,
.editorial-showcase .feature-card h3 {
  display: -webkit-box;
  overflow: hidden;
  max-height: 2.7em;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.beyond-grid .review-card h3,
.feature-mini-grid .review-card h3 {
  min-height: 2.7em;
}

.editorial-showcase time {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.beyond-grid .review-card time {
  color: var(--color-text-muted);
  line-height: 1;
}

.beyond-grid .review-card-content {
  align-content: start;
  min-height: 0;
  gap: 8px;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-site-deep);
  box-shadow: var(--shadow-soft);
}

.feature-card figure {
  height: 100%;
}

.feature-card::after {
  display: none;
}

.feature-card-content {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: 100%;
  box-sizing: border-box;
  gap: 6px;
  padding: 16px 20px;
  background: rgba(6, 19, 29, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
}

.feature-card h3 {
  color: #fff;
  font-size: clamp(20px, 2.2vw, 28px);
}

.feature-card time {
  color: rgba(255, 255, 255, 0.68);
}

.feature-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-mini-grid .review-card-content {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 0;
  padding: 12px;
  background: rgba(6, 19, 29, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.feature-mini-grid > .review-card {
  position: relative;
  width: 100%;
  height: 100%;
}

.feature-mini-grid .review-card figure {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.feature-mini-grid .review-card h3 {
  color: #fff;
}

.feature-mini-grid .review-card time {
  color: rgba(255, 255, 255, 0.72);
}

@media (hover: hover) and (pointer: fine) {
  .feature-mini-grid .review-card:hover .review-card-content,
  .feature-mini-grid .review-card:focus-visible .review-card-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.discover-strip {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: 40px 0;
  background: #042137;
}

.discover-foliage {
  position: absolute;
  z-index: 0;
  bottom: 0;
  width: 230px;
  height: auto;
  pointer-events: none;
}

.discover-foliage-left {
  left: 0;
}

.discover-foliage-right {
  right: 0;
}

.discover-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 3fr;
  align-items: center;
  gap: 30px;
  min-height: 180px;
}

.discover-copy h2 {
  color: #fff;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.05;
}

.discover-copy p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.discover-games {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.discover-games a {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  gap: 6px;
  color: #fff;
}

.discover-game-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}

.discover-game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-game-title {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.discover-rating {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.2;
}

.discover-rating span {
  color: #f4a041;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.reviews-grid .review-card-content {
  align-content: start;
  min-height: 0;
  gap: 8px;
}

.reviews-grid .review-card h3 {
  display: -webkit-box;
  overflow: hidden;
  max-height: 2.7em;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.review-library-section,
.browse-games-section {
  margin-top: 64px;
  margin-bottom: 64px;
}

.review-library-section .home-section-heading,
.browse-games-section .home-section-heading {
  margin-bottom: 20px;
}

.review-library-section .home-section-heading::after,
.browse-games-section .home-section-heading::after {
  background: rgba(9, 86, 109, 0.2);
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.mint-button {
  width: min(300px, 100%);
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f9e7c 0%, #46dab7 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(39, 200, 179, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .mint-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(39, 200, 179, 0.4);
    filter: brightness(1.06);
  }
  .mint-button:active {
    transform: translateY(-1px);
  }
}
.mint-button:focus-visible {
  outline: 2px solid var(--color-site-deep);
  outline-offset: 3px;
}

.more-games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  display: grid;
  min-width: 0;
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.game-card figure {
  aspect-ratio: 1;
}

.game-card-content {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.game-card h3 {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card p {
  font-size: 14px;
}

.game-card .rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.star-rating__stars {
  display: inline-flex;
  gap: 1px;
  color: rgba(255, 143, 50, 0.3);
}

.star-rating__star {
  display: block;
  font-size: 12px;
  line-height: 1;
}

.star-rating__star.is-filled {
  color: #ff8f32;
}

.star-rating__star.is-half {
  background: linear-gradient(90deg, #ff8f32 50%, rgba(255, 143, 50, 0.3) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.star-rating__value {
  color: #999;
  font-size: 12px;
  line-height: 1;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin-top: 0;
  padding: 40px 0;
  background: var(--color-site-deep);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 0;
  color: #fff;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  flex: none;
}

.footer-inner .footer-brand img {
  display: block;
  width: auto;
  height: 40px;
}

.footer-inner .footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 24px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-accent-mint);
}

.footer-copyright {
  margin: 24px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* 搜索入口页：沿用首页深林蓝、山景浅蓝和薄荷绿视觉体系。 */
.search-entry-main {
  overflow: hidden;
  background: linear-gradient(rgba(232, 242, 255, 0.9), rgba(232, 242, 255, 0.98)), url("../project-images/content-mountain-mist.webp") center top/cover no-repeat;
}

.search-page.container-box {
  padding-block: 56px 72px;
}

.search-page .search-box {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.search-page .search-input-row {
  max-width: 780px;
  height: 60px;
  margin: 0 auto;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 6px 14px rgba(4, 33, 55, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-page .search-input-row:focus-within {
  border-color: #46dab7;
  box-shadow: 0 6px 14px rgba(4, 33, 55, 0.1), 0 0 0 4px rgba(70, 218, 183, 0.14);
}

.search-page .search-input-row input {
  padding: 0 156px 0 24px;
  color: var(--color-site-deep);
  font-size: 16px;
}

.search-page .search-input-row input::placeholder {
  color: #8a98a5;
}

.search-page .search-input-row button {
  top: 4px;
  right: 4px;
  display: inline-flex;
  width: 136px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0f9e7c 0%, #46dab7 100%);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-page .search-input-row button:hover,
.search-page .search-input-row button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(39, 200, 179, 0.3);
}

.search-page .search-suggestions {
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.search-page .search-suggestions > span {
  color: var(--color-text-muted);
  font-size: 14px;
}

.search-page .search-suggestions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(9, 86, 109, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-site-deep);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.search-page .search-suggestions a:hover,
.search-page .search-suggestions a:focus-visible {
  border-color: #46dab7;
  background: #46dab7;
  color: var(--color-site-deep);
}

.search-page .search-recommendations {
  margin-top: 56px;
}

.search-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.search-section-heading h2 {
  margin: 0;
  color: var(--color-site-deep);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.search-section-heading > span {
  height: 4px;
  flex: 1;
  background: rgba(9, 86, 109, 0.2);
}

.search-page .search-may-like-grid {
  gap: 14px;
}

.search-page .search-may-like-card {
  border: 1px solid rgba(4, 33, 55, 0.08);
  border-radius: 10px;
  background: var(--color-site-deep);
  box-shadow: 0 8px 20px rgba(4, 33, 55, 0.12);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.search-page .search-may-like-card span {
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(4, 33, 55, 0.94));
  font-size: 12px;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .search-page .search-may-like-card:hover,
  .search-page .search-may-like-card:focus-visible {
    border-color: #46dab7;
    box-shadow: 0 12px 26px rgba(4, 33, 55, 0.2);
    transform: translateY(-4px);
  }
  .search-page .search-may-like-card:hover img,
  .search-page .search-may-like-card:focus-visible img {
    transform: scale(1.08);
  }
}
/* 搜索结果页：文章与游戏分别拥有独立 SSR 结果和空状态。 */
.search-results-main {
  overflow: hidden;
  background: linear-gradient(rgba(232, 242, 255, 0.9), rgba(232, 242, 255, 0.98)), url("../project-images/content-mountain-mist.webp") center top/cover no-repeat;
}

.search-results-page.container-box {
  padding-block: 44px 72px;
}

.search-results-hero {
  display: block;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(9, 86, 109, 0.16);
}

.search-results-page .search-results-form {
  width: 100%;
  height: 56px;
  margin: 0;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 5px 12px rgba(4, 33, 55, 0.08);
}

.search-results-page .search-results-form:focus-within {
  border-color: #46dab7;
  box-shadow: 0 5px 12px rgba(4, 33, 55, 0.08), 0 0 0 4px rgba(70, 218, 183, 0.12);
}

.search-results-page .search-results-form input {
  padding: 0 142px 0 22px;
  color: var(--color-site-deep);
  font-size: 16px;
}

.search-results-page .search-results-form button {
  top: 3px;
  right: 3px;
  display: inline-flex;
  width: 124px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #0f9e7c 0%, #46dab7 100%);
  font-size: 16px;
  font-weight: 700;
}

.search-result-tabs {
  display: inline-flex;
  gap: 6px;
  margin-top: 32px;
  padding: 5px;
  border: 1px solid rgba(9, 86, 109, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 20px rgba(4, 33, 55, 0.08);
}

.search-result-tabs button {
  min-width: 132px;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.search-result-tabs button[aria-selected=true] {
  background: linear-gradient(180deg, #0f9e7c 0%, #46dab7 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 158, 124, 0.2);
}

.search-result-tabs button:focus-visible {
  outline: 2px solid #0f9e7c;
  outline-offset: 2px;
}

.search-result-section {
  margin-top: 28px;
}

.search-type-empty {
  position: relative;
  display: flex;
  min-height: 320px;
  aspect-ratio: 16/5;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 28px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--color-site-deep);
  box-shadow: 0 12px 28px rgba(4, 33, 55, 0.16);
}

.search-type-empty figure,
.search-type-empty figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.search-type-empty figure {
  margin: 0;
}

.search-type-empty figure img {
  object-fit: cover;
  object-position: center 62%;
}

.search-type-empty::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 33, 55, 0.9), rgba(4, 33, 55, 0.02) 72%);
  content: "";
  pointer-events: none;
}

.search-type-empty-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.search-type-empty h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
}

.search-type-empty p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.search-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.search-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.search-article-card figure {
  overflow: hidden;
  aspect-ratio: 16/9;
  margin: 0;
}

.search-article-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.search-article-copy {
  display: grid;
  align-content: start;
  flex: 1;
  gap: 8px;
  padding: 12px;
}

.search-article-copy time {
  color: var(--color-text-muted);
  font-size: 12px;
}

.search-article-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  max-height: 2.7em;
  margin: 0;
  color: var(--color-site-deep);
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.search-games-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

/* Search filtering, independent pagination and empty states are controlled by searchRes.html. */
.search-result-section[hidden],
.search-type-empty[hidden],
.search-load-more[hidden],
.search-game-card[hidden],
.search-article-card[hidden] {
  display: none !important;
}

.search-game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(4, 33, 55, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(4, 33, 55, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.search-game-card figure {
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
}

.search-game-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-game-card-copy {
  display: flex;
  min-height: 98px;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
}

.search-game-card-copy h3 {
  overflow: hidden;
  margin: 0;
  color: var(--color-site-deep);
  font-size: 16px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-game-card-copy p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.3;
}

.search-game-card-copy .star-rating {
  margin-top: auto;
}

.search-load-more {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
}

.search-load-more [data-load-status] {
  min-height: 18px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 12px;
}

.search-results-recommendations {
  margin-top: 64px;
}

.search-results-page .search-may-like-card {
  border: 1px solid rgba(4, 33, 55, 0.08);
  background: var(--color-site-deep);
  box-shadow: 0 8px 20px rgba(4, 33, 55, 0.12);
}

.search-results-page .search-may-like-card span {
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(4, 33, 55, 0.94));
  font-size: 12px;
  font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
  .search-article-card:hover figure img,
  .search-article-card:focus-visible figure img {
    transform: scale(1.06);
  }
  .search-game-card:hover,
  .search-game-card:focus-visible {
    box-shadow: 0 14px 28px rgba(4, 33, 55, 0.18);
    transform: translateY(-4px);
  }
  .search-results-page .search-may-like-card:hover,
  .search-results-page .search-may-like-card:focus-visible {
    border-color: #46dab7;
    box-shadow: 0 12px 26px rgba(4, 33, 55, 0.2);
    transform: translateY(-4px);
  }
  .search-results-page .search-may-like-card:hover img,
  .search-results-page .search-may-like-card:focus-visible img {
    transform: scale(1.08);
  }
}
@media (max-width: 900px) {
  .search-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .search-page .search-may-like-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .search-results-page .search-may-like-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .search-results-page.container-box {
    padding-block: 28px 48px;
  }
  .search-results-hero {
    padding-bottom: 28px;
  }
  .search-results-page .search-results-form {
    height: 52px;
  }
  .search-results-page .search-results-form input {
    padding: 0 64px 0 16px;
    font-size: 14px;
  }
  .search-results-page .search-results-form button {
    top: 2px;
    right: 2px;
    width: 46px;
    height: 44px;
  }
  .search-results-page .search-results-form button span {
    display: none;
  }
  .search-result-section {
    margin-top: 24px;
  }
  .search-result-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 24px;
  }
  .search-result-tabs button {
    min-width: 0;
    padding-inline: 12px;
    font-size: 14px;
  }
  .search-type-empty {
    min-height: 0;
    aspect-ratio: 4/3;
    margin-bottom: 18px;
    padding: 20px;
  }
  .search-type-empty p {
    font-size: 12px;
  }
  .search-articles-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .search-game-card-copy {
    min-height: 86px;
    gap: 2px;
    padding: 8px;
  }
  .search-game-card-copy h3 {
    font-size: 14px;
  }
  .search-game-card-copy p {
    font-size: 12px;
  }
  .search-page.container-box {
    padding-block: 28px 44px;
  }
  .search-page .search-input-row {
    height: 52px;
  }
  .search-page .search-input-row input {
    padding: 0 66px 0 16px;
    font-size: 14px;
  }
  .search-page .search-input-row button {
    top: 2px;
    right: 2px;
    width: 46px;
    height: 44px;
  }
  .search-page .search-input-row button span {
    display: none;
  }
  .search-page .search-suggestions {
    gap: 8px;
    margin-top: 18px;
  }
  .search-page .search-suggestions > span {
    width: 100%;
    text-align: center;
  }
  .search-page .search-suggestions a {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 12px;
  }
  .search-page .search-recommendations {
    margin-top: 40px;
  }
  .search-section-heading {
    gap: 12px;
    margin-bottom: 16px;
  }
  .search-section-heading h2 {
    font-size: 24px;
  }
  .search-page .search-may-like-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .search-results-recommendations {
    margin-top: 40px;
  }
  .search-results-page .search-may-like-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 675.98px) {
  .footer-top {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links a {
    height: 24px;
    min-height: 24px;
  }
}
@media (max-width: 900px) {
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .more-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 899.98px) {
  .feature-layout {
    grid-template-columns: 1fr;
  }
  .feature-mini-grid {
    grid-template-rows: none;
  }
  .feature-mini-grid > .review-card {
    height: auto;
    aspect-ratio: 16/9;
  }
  .discover-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .discover-games {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .home-hero {
    min-height: 0;
    padding: 70px 0 16px;
    background-position: center bottom;
  }
  .latest-swiper {
    padding-block: 8px;
  }
  .latest-carousel {
    padding-bottom: 0;
  }
  .latest-swiper .swiper-slide {
    width: min(600px, 100%);
  }
  .latest-swiper .swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.95);
  }
  .latest-copy {
    min-height: 0;
    padding: 10px 16px;
  }
  .latest-copy .round-arrow {
    display: none;
  }
  .editorial-showcase {
    padding: 32px 0 40px;
  }
  .editorial-showcase .home-section + .home-section {
    margin-top: 32px;
  }
  .editorial-showcase .home-section-heading {
    margin-bottom: 10px;
  }
  .feature-card {
    min-height: 270px;
  }
  .feature-card-content {
    padding: 14px 16px;
  }
  .feature-mini-grid .review-card-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .review-library-section,
  .browse-games-section {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .review-library-section .home-section-heading,
  .browse-games-section .home-section-heading {
    margin-bottom: 10px;
  }
  .section-action {
    margin-top: 24px;
  }
}
@media (max-width: 580px) {
  .game-card-content {
    gap: 2px;
  }
  .discover-strip {
    padding: 20px 0;
  }
  .site-header,
  .home-header,
  .header-inner {
    height: 56px;
  }
  .header-search {
    width: 40px;
    flex-basis: 40px;
  }
  .home-header .brand img {
    width: 148px;
  }
  .main-shell {
    padding-top: 56px;
  }
  .home-page {
    padding-top: 0;
  }
  .home-hero {
    padding: 64px 0 16px;
  }
  .latest-carousel {
    padding-inline: 0;
  }
  .carousel-control {
    display: none;
  }
  .latest-copy {
    min-height: 0;
    padding: 8px 16px;
  }
  .latest-copy h3 {
    font-size: 17px;
  }
  .latest-card {
    aspect-ratio: 4/3;
  }
  .feature-mini-grid .review-card-content {
    padding: 8px 10px;
  }
  .review-grid,
  .feature-mini-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .review-card-content {
    min-height: 106px;
    padding: 10px;
  }
  .review-card h3,
  .game-card h3 {
    font-size: 14px;
  }
  .editorial-showcase .review-card h3 {
    font-size: 14px;
  }
  .more-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .site-footer {
    padding: 40px 0;
  }
  .footer-inner .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    width: min(320px, 100%);
    margin-inline: auto;
  }
  .footer-links a {
    justify-content: center;
  }
}
@media (max-width: 1279.98px) {
  .discover-foliage {
    width: 120px;
  }
}
@media (max-width: 499.98px) {
  .feature-mini-grid {
    grid-template-columns: 1fr;
  }
}
@media (hover: hover) and (pointer: fine) {
  .swiper-slide-active .latest-card {
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
  }
  .swiper-slide-active .latest-card:is(:hover, :focus-visible) {
    border-color: #46dab7;
    box-shadow: 0 16px 36px rgba(70, 218, 183, 0.28), 0 0 0 1px rgba(70, 218, 183, 0.32);
  }
  .beyond-grid .review-card figure > img:not([data-badge-image]) {
    transition: transform 0.24s ease, filter 0.24s ease;
  }
  .beyond-grid .review-card:is(:hover, :focus-visible) figure > img:not([data-badge-image]) {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.06);
  }
  .feature-card figure > img:not([data-badge-image]),
  .feature-mini-grid .review-card figure > img:not([data-badge-image]) {
    transition: filter 0.24s ease;
  }
  .feature-card:is(:hover, :focus-visible) figure > img:not([data-badge-image]),
  .feature-mini-grid .review-card:is(:hover, :focus-visible) figure > img:not([data-badge-image]) {
    filter: brightness(0.82) saturate(1.08);
  }
  .discover-game-media {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
  }
  .discover-games a:is(:hover, :focus-visible) .discover-game-media {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow: 0 0 0 2px rgba(70, 218, 183, 0.72);
  }
  .review-library-section .review-card figure > img:not([data-badge-image]) {
    transition: transform 0.25s ease;
  }
  .review-library-section .review-card:is(:hover, :focus-visible) figure > img:not([data-badge-image]) {
    transform: scale(1.06);
  }
  .browse-games-section .game-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease;
  }
  .browse-games-section .game-card:is(:hover, :focus-visible) {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(4, 33, 55, 0.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  .latest-card,
  .review-card,
  .game-card,
  .mint-button,
  .header-search {
    transition: none;
  }
  .review-card figure > img:not([data-badge-image]),
  .game-card figure > img:not([data-badge-image]),
  .feature-card figure > img:not([data-badge-image]),
  .latest-card,
  .discover-game-media,
  .discover-game-media img {
    transition: none;
  }
  .beyond-grid .review-card:is(:hover, :focus-visible) figure > img:not([data-badge-image]),
  .review-library-section .review-card:is(:hover, :focus-visible) figure > img:not([data-badge-image]),
  .browse-games-section .game-card:is(:hover, :focus-visible),
  .discover-games a:is(:hover, :focus-visible) .discover-game-media {
    transform: none;
  }
}
/* 游戏详情：固定 Header 下保持稳定的首屏留白，并统一主栏、侧栏与推荐区的纵向节奏。 */
.main-shell.detail-page {
  min-height: calc(100vh - 64px);
  padding: 80px 0 56px;
}

.detail-page .two-column {
  gap: 24px;
}

.detail-page .detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

/* 详情摘要：标题保持清晰层级，避免超大粗体挤压下载入口。 */
.detail-page .detail-game h1 {
  max-width: 26ch;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.detail-page .detail-summary-link,
.detail-page .detail-game,
.detail-page .detail-game > div,
.detail-page .detail-aside,
.detail-page .you-may-like,
.detail-page .you-may-like .catalog-grid {
  min-width: 0;
}

.detail-page .detail-box,
.detail-page .detail-aside,
.detail-page .you-may-like {
  max-width: 100%;
}

.detail-page .screenshot-strip {
  max-width: 100%;
}

/* 详情与下载页内容模块标题保持清晰加粗层级。 */
.detail-page h2,
.detail-page .aside-title {
  color: #042137;
  font-weight: 700;
}

/* 详情正文默认展示更多内容；Read more 保持为纯文字操作。 */
.detail-page .detail-copy.expandable {
  max-height: 300px;
}

.detail-page .detail-copy.expandable.is-open {
  max-height: none;
}

/* 详情截图：原生横向滚动先可用，Fancybox 与左右按钮只作为渐进增强。 */
.detail-page .screenshot-module {
  overflow: hidden;
}

.detail-page .screenshot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-page .screenshot-heading h2 {
  margin: 0;
}

.detail-page .screenshot-carousel {
  height: 270px;
  overflow: hidden;
}

.detail-page .screenshot-carousel:not(.swiper-initialized) {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.detail-page .screenshot-carousel:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 20px;
}

.detail-page .screenshot-carousel:not(.swiper-initialized) .screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.detail-page .screenshot-item {
  width: auto;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f7fc;
  scroll-snap-align: start;
}

.detail-page .screenshot-item img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

.detail-page .screenshot-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
}

.detail-page .screenshot-control {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(4, 33, 55, 0.18);
  border-radius: 50%;
  background: #fff;
  color: #042137;
}

.detail-page .screenshot-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.detail-page .screenshot-control:not(:disabled):hover,
.detail-page .screenshot-control:not(:disabled):focus-visible {
  border-color: #27c8b3;
  background: #27c8b3;
  color: #fff;
}

.detail-page .screenshot-control:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

@media (max-width: 767px) {
  .detail-page .screenshot-carousel:not(.swiper-initialized) .swiper-wrapper {
    gap: 16px;
  }
  .detail-page .screenshot-carousel:not(.swiper-initialized) .screenshot-item {
    flex-basis: auto;
    height: 270px;
  }
}
@media (max-width: 520px) {
  .detail-page .screenshot-carousel:not(.swiper-initialized) .screenshot-item {
    flex-basis: auto;
  }
}
.detail-page [data-read-more] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 0;
  margin: 10px 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #042137 !important;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

/* 游戏基础信息：与参考稿一致的两列信息卡，SSR 可按字段单独增减。 */
.detail-page .game-info-panel {
  padding: 16px;
}

.game-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-info-item {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f7f7f7;
}

.game-info-item dt {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-site-deep);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.game-info-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #46dab7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.game-info-item dd {
  min-width: 0;
  margin: 0;
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: right;
}

/* 游戏基础信息下方的相关推荐：保持白底单行，Swiper 只增强横向滑动。 */
.detail-page .similar-games {
  overflow: hidden;
  background: #fff;
}

.detail-page .similar-games h2 {
  margin: 0 0 16px;
}

.detail-page .similar-games-swiper {
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-page .similar-games-swiper::-webkit-scrollbar {
  display: none;
}

.detail-page .similar-games-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 16px;
}

.detail-page .similar-games-swiper.swiper-initialized {
  overflow: hidden;
}

.detail-page .similar-games-swiper .swiper-slide {
  width: calc((100% - 80px) / 6);
  min-width: 0;
}

.detail-page .similar-game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #042137;
}

.detail-page .similar-game-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.detail-page .similar-game-card > span {
  display: block;
  overflow: hidden;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-page .similar-game-card small {
  display: inline-flex;
  align-items: center;
  min-height: 12px;
  margin-top: auto;
  color: #999;
  font-size: 12px;
  line-height: 1;
}

.detail-page .similar-game-card small span {
  margin-right: 3px;
  color: #ff8f32;
  font-size: 12px;
}

/* 中小屏保持固定卡片宽度，避免一行卡片被拉宽后破坏横向轮播节奏。 */
@media (max-width: 920px) {
  .detail-page .similar-games-swiper .swiper-slide {
    width: 90px;
    flex: 0 0 90px;
  }
}
@media (max-width: 580px) {
  .detail-page .similar-games h2 {
    margin-bottom: 12px;
  }
  .detail-page .similar-games-swiper:not(.swiper-initialized) .swiper-wrapper {
    gap: 12px;
  }
  .detail-page .similar-games-swiper .swiper-slide {
    width: 90px;
    flex-basis: 90px;
  }
  .detail-page .similar-game-card {
    gap: 4px;
  }
  .detail-page .similar-game-card > span {
    font-size: 12px;
  }
}
/* data-rating 由 SSR 提供，星级由 common.js 的 renderStarRatings() 统一渲染。 */
.detail-page .detail-score.star-rating {
  gap: 10px;
  margin-top: 10px;
}

.detail-page .detail-score .star-rating__stars {
  gap: 2px;
}

.detail-page .detail-score .star-rating__star {
  font-size: 14px;
}

.detail-page .detail-score .star-rating__value {
  font-size: 14px;
  font-weight: 700;
}

.detail-page .detail-box {
  margin-bottom: 0;
}

.detail-page .detail-aside {
  display: grid;
  align-content: start;
  gap: 16px;
}

.detail-page .you-may-like {
  margin-top: 40px;
}

/* 游戏详情与下载页整列侧栏吸顶，内部广告和文章列表不单独吸附。 */
@media (min-width: 1128px) {
  .detail-page .two-column > .detail-aside {
    position: sticky;
    top: 84px;
    align-self: start;
  }
}
@media (max-width: 1127px) {
  .main-shell.detail-page {
    padding-top: 76px;
  }
  .detail-page .two-column {
    gap: 20px;
  }
  .detail-page .detail-aside {
    position: static;
    top: auto;
    align-self: auto;
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .main-shell.detail-page {
    padding: 72px 0 40px;
  }
  .detail-page .two-column {
    gap: 20px;
  }
  .detail-page .detail-main {
    gap: 14px;
  }
  .detail-page .detail-box {
    padding: 16px;
  }
  /* 详情页下载可信模块：手机端保持 44px 下载触控高度，其余信息收紧。 */
  .detail-page .trusted-download {
    padding: 14px 16px;
  }
  .detail-page .trusted-download .verified {
    margin-top: 12px;
  }
  .detail-page .trusted-download .verified dt {
    gap: 6px;
    font-size: 14px;
  }
  .detail-page .trusted-download .verified svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .detail-page .trusted-download .verified dd {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
  }
  .detail-page .trusted-download .load-more {
    min-height: 44px;
    margin-top: 12px;
    font-size: 14px;
  }
  .detail-page .detail-summary {
    padding: 16px;
  }
  .detail-page .detail-summary-link {
    gap: 12px;
  }
  .detail-page .detail-game {
    gap: 12px;
  }
  .detail-page .detail-game > img {
    width: 76px;
    height: 76px;
    flex-basis: 76px;
  }
  .detail-page .detail-game h1 {
    font-size: 16px;
    line-height: 1.2;
  }
  .detail-page .detail-aside {
    gap: 14px;
  }
  .detail-page .detail-aside .hot-reviews {
    padding: 16px;
  }
  .detail-page .game-info-panel {
    padding: 12px;
  }
  .game-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .game-info-item {
    min-height: 44px;
    gap: 8px;
    padding: 8px 10px;
  }
  .game-info-item dt {
    gap: 8px;
    font-size: 14px;
  }
  .game-info-item svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .game-info-item dd {
    font-size: 12px;
  }
  .detail-page .screenshot-strip {
    gap: 12px;
  }
  .detail-page .screenshot-strip a {
    flex-basis: min(78vw, 280px);
  }
  .detail-page .you-may-like {
    margin-top: 32px;
  }
}
@media (max-width: 420px) {
  .detail-page .trusted-download {
    padding: 12px;
  }
  .detail-page .trusted-download .verified {
    margin-top: 10px;
  }
  .detail-page .trusted-download .load-more {
    margin-top: 10px;
  }
}
@media (max-width: 520px) {
  .main-shell.detail-page {
    padding: 68px 0 36px;
  }
  .detail-page .detail-summary-link {
    align-items: flex-start;
  }
  .detail-page .detail-game > img {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 12px;
  }
  .detail-page .detail-game h1 {
    font-size: 16px;
  }
  .detail-page .detail-score.star-rating {
    gap: 6px;
    margin-top: 8px;
  }
  .detail-page .get-button {
    min-width: 76px;
    min-height: 44px;
    padding: 0 14px;
  }
  .detail-page .platform-row {
    gap: 10px 16px;
  }
  .detail-page .you-may-like .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .detail-page .you-may-like .catalog-card figure::after {
    display: none;
  }
  .detail-page .you-may-like .catalog-card .catalog-copy {
    position: static;
    padding: 8px;
    background: #fff;
    color: var(--color-site-deep);
    transform: none;
  }
  .detail-page .you-may-like .catalog-card p {
    color: var(--muted);
  }
}
/* Games 页副标题在移动端保留，避免分类入口失去引导说明。 */
@media (max-width: 700px) {
  .games-page .game-intro p {
    display: block;
    max-width: 42ch;
    font-size: 14px;
    line-height: 1.5;
  }
}
/* 详情页侧栏文章列表对齐首页卡片的标题与元信息层级。 */
.detail-page .aside-articles h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.detail-page .aside-articles .meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

/* Hot Reviews 是侧栏主标题，较详情模块标题略大且略重。 */
.detail-page .hot-reviews .aside-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .detail-page .detail-aside .aside-articles {
    grid-template-columns: 1fr;
  }
  .detail-page .aside-articles h3 {
    font-size: 14px;
  }
  .detail-page .hot-reviews .aside-title {
    font-size: 16px;
  }
}
/* 游戏详情页底部推荐：沿用文章详情的标题线与节奏，内容改为游戏卡。 */
.detail-page .related-games {
  margin-top: 64px;
}

.detail-page .related-games .article-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.detail-page .related-games .article-header::after {
  flex: 1;
  height: 4px;
  content: "";
  background: rgba(9, 86, 109, 0.2);
}

.detail-page .related-games .article-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.detail-page .detail-related-games-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.detail-page .detail-related-games-grid .catalog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.detail-page .detail-related-games-grid .catalog-card figure::after {
  display: none;
}

.detail-page .detail-related-games-grid .catalog-copy {
  position: static;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  color: var(--color-site-deep);
  transform: none;
}

.detail-page .detail-related-games-grid .catalog-card h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-site-deep);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.detail-page .detail-related-games-grid .catalog-card p {
  margin: auto 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

/* 下载可信模块：与下载页链接保持一致，仅优化详情页的视觉层级。 */
.detail-page .trusted-download h2 {
  color: #042137;
  font-size: 19px;
  font-weight: 700;
}

.detail-page .trusted-download .verified {
  margin: 20px 0 0;
}

.detail-page .trusted-download .verified dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #16b193;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.detail-page .trusted-download .verified svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  overflow: visible;
  fill: currentColor;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.detail-page .trusted-download .verified svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.detail-page .trusted-download .verified svg path:last-child {
  fill: none;
  stroke: #fff;
}

.detail-page .trusted-download .verified dd {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.detail-page .trusted-download .load-more {
  width: 100%;
  min-height: 50px;
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 500;
}

.detail-page .trusted-download .load-more svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

/* 与首页 Browse Games 一致：桌面端提升整张游戏卡，不额外缩放封面。 */
@media (hover: hover) and (pointer: fine) {
  .detail-page .detail-related-games-grid .catalog-card:hover,
  .detail-page .detail-related-games-grid .catalog-card:focus-visible {
    box-shadow: 0 14px 28px rgba(4, 33, 55, 0.18);
    transform: translateY(-4px);
  }
  .detail-page .detail-related-games-grid .catalog-card:hover img,
  .detail-page .detail-related-games-grid .catalog-card:focus-visible img {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .detail-page .detail-related-games-grid .catalog-card {
    transition: none;
  }
  .detail-page .detail-related-games-grid .catalog-card:hover,
  .detail-page .detail-related-games-grid .catalog-card:focus-visible {
    transform: none;
  }
}
@media (max-width: 1127px) {
  .detail-page .detail-related-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .detail-page .related-games {
    margin-top: 32px;
  }
  .detail-page .related-games .article-header {
    gap: 10px;
    margin-bottom: 16px;
  }
  .detail-page .detail-related-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .detail-page .trusted-download .verified dt {
    font-size: 14px;
  }
  .detail-page .trusted-download .verified dd {
    margin-left: 0;
  }
}
@media (max-width: 420px) {
  .detail-page .detail-related-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* 下载页：商店链接保持为两项独立控件，空链接由 SSR 输出 disabled。 */
.down-page .download-stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.down-page .store {
  display: inline-flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(4, 33, 55, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--color-site-deep);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.down-page .store svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.down-page .store:not(:disabled):hover,
.down-page .store:not(:disabled):focus-visible {
  border-color: #27c8b3;
  background: #27c8b3;
  color: #fff;
  transform: translateY(-2px);
}

.down-page .store:disabled,
.down-page .store[aria-disabled=true] {
  cursor: not-allowed;
  opacity: 0.46;
}

/* 落地页：仅展示一次 SSR 游戏墙，前两张卡片跨两列两行。 */
.extension-page {
  min-height: calc(100vh - 64px);
  padding: 88px 0 64px;
}

.extension-game-wall {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-flow: row;
  gap: 12px;
}

.extension-game-wall .extension-game-card {
  min-width: 0;
  aspect-ratio: 1;
}

.extension-game-wall .extension-game-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* 两张焦点卡按当前列数固定起点，SSR 输出顺序保持不变。 */
.extension-game-wall .extension-game-card--featured:nth-child(1) {
  grid-column: 2/span 2;
  grid-row: 1/span 2;
}

.extension-game-wall .extension-game-card--featured:nth-child(2) {
  grid-column: 6/span 2;
  grid-row: 3/span 2;
}

.extension-game-wall .search-may-like-card {
  border: 1px solid rgba(4, 33, 55, 0.08);
  border-radius: 12px;
  background: var(--color-site-deep);
  box-shadow: 0 8px 20px rgba(4, 33, 55, 0.12);
}

.extension-game-wall .search-may-like-card span {
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(4, 33, 55, 0.94));
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .extension-game-wall .search-may-like-card:hover,
  .extension-game-wall .search-may-like-card:focus-visible {
    border-color: #46dab7;
    box-shadow: 0 12px 26px rgba(4, 33, 55, 0.2);
    transform: translateY(-4px);
  }
  .extension-game-wall .search-may-like-card:hover img,
  .extension-game-wall .search-may-like-card:focus-visible img {
    transform: scale(1.08);
  }
  /* 落地页游戏名仅在桌面精确指针悬停或键盘聚焦时显示；触控端始终隐藏。 */
  .extension-game-wall .search-may-like-card:hover span,
  .extension-game-wall .search-may-like-card:focus-visible span {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 1180px) {
  .extension-game-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .extension-game-wall .extension-game-card--featured:nth-child(2) {
    grid-column-start: 5;
  }
}
@media (max-width: 980px) {
  .extension-game-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .extension-game-wall .extension-game-card--featured:nth-child(2) {
    grid-column-start: 4;
  }
}
@media (max-width: 760px) {
  .extension-game-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .extension-game-wall .extension-game-card--featured:nth-child(1) {
    grid-column-start: 1;
  }
  .extension-game-wall .extension-game-card--featured:nth-child(2) {
    grid-column-start: 3;
    grid-row-start: 2;
  }
}
@media (max-width: 520px) {
  .extension-page {
    padding: 76px 0 44px;
  }
  .extension-game-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .extension-game-wall .extension-game-card--featured:nth-child(2) {
    grid-column-start: 2;
    grid-row-start: 3;
  }
  .extension-game-wall .search-may-like-card span {
    padding: 17px 7px 6px;
    font-size: 11px;
  }
}
@media (max-width: 580px) {
  .down-page .download-stores {
    grid-template-columns: 1fr;
  }
  .down-page .store {
    min-height: 48px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .down-page .store {
    transition: none;
  }
  .down-page .store:not(:disabled):hover,
  .down-page .store:not(:disabled):focus-visible {
    transform: none;
  }
}
/* 独立首页：暖白、靛蓝与珊瑚橙的游戏编辑杂志风。 */
.magazine-body {
  background: var(--color-page-sky);
}

.magazine-body .home-header {
  height: 76px;
  background: #30204f;
  border-bottom: 1px solid rgba(255, 248, 241, 0.14);
}

.magazine-body .header-inner {
  height: 76px;
}

.magazine-body .home-header .brand img {
  width: 174px;
  height: auto;
  filter: saturate(0.85) hue-rotate(10deg);
}

.magazine-body .header-search {
  width: min(300px, 42vw);
  height: 40px;
  flex-basis: min(300px, 42vw);
  border-color: rgba(255, 248, 241, 0.18);
  background: rgba(255, 248, 241, 0.12);
  color: rgba(255, 255, 255, 0.78);
}

.magazine-body .header-search:hover,
.magazine-body .header-search:focus-visible {
  border-color: #713ff3;
  background: rgba(255, 248, 241, 0.2);
}

.magazine-body .header-search-icon {
  color: #713ff3;
}

.magazine-home {
  overflow: hidden;
  background: #faf8ff;
}

.magazine-home figure {
  margin: 0;
}

.magazine-home figure > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-label {
  margin: 0 0 12px;
  color: #7135bf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.mag-hero {
  padding: 112px 0 64px;
  background: radial-gradient(circle at 83% 22%, rgba(160, 98, 226, 0.36), transparent 26%), linear-gradient(115deg, #faf8ff 0%, #f0e7fa 100%);
}

.mag-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.mag-hero h1,
.mag-heading h2,
.mag-cta h2 {
  margin: 0;
  color: #30204f;
  letter-spacing: -0.06em;
}

.mag-hero h1 {
  max-width: 8ch;
  font-size: clamp(44px, 5.8vw, 72px);
  font-weight: 650;
  line-height: 0.98;
}

.mag-hero__copy > p:not(.mag-label) {
  max-width: 43ch;
  margin: 26px 0 0;
  color: #6f5c65;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
}

.mag-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.mag-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 999px;
  background: #713ff3;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(160, 98, 226, 0.22);
}

.mag-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #30204f;
  font-size: 15px;
  font-weight: 750;
}

.mag-link span {
  color: #7135bf;
  font-size: 19px;
  line-height: 1;
}

.mag-hero-feature {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  padding: 14px 14px 0;
  border: 1px solid #e6c9bf;
  background: #30204f;
  box-shadow: 18px 18px 0 #ffd4c6;
}

.mag-hero-feature__media {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #493449;
}

.mag-hero-feature__body {
  display: grid;
  gap: 7px;
  padding: 22px 22px 24px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.mag-hero-feature__body small,
.mag-pick small,
.mag-collection small {
  color: #ffb09f;
  font-size: 10px;
  font-weight: 800;
}

.mag-hero-feature__body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mag-section {
  padding: clamp(68px, 8.5vw, 118px) 0;
}

.mag-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.mag-heading h2,
.mag-cta h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 650;
  line-height: 1.08;
}

.mag-heading h2 {
  max-width: none;
  font-size: clamp(24px, 2.6vw, 34px);
  white-space: nowrap;
}

.mag-cta h2 {
  max-width: 13ch;
}

.mag-rail-controls {
  display: flex;
  gap: 9px;
}

.mag-rail-controls button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #d9c0b7;
  border-radius: 999px;
  background: transparent;
  color: #30204f;
  font-size: 13px;
  font-weight: 750;
}

.mag-picks {
  background: #ffffff;
}

.mag-picks-swiper {
  overflow: visible;
  padding-bottom: 30px;
}

.mag-pick a {
  display: grid;
  gap: 14px;
  color: #30204f;
}

.mag-pick figure {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 2px;
  background: #e7d0c7;
}

.mag-pick span {
  display: grid;
  gap: 7px;
}

.mag-pick small {
  color: #7135bf;
}

.mag-pick strong {
  display: -webkit-box;
  overflow: hidden;
  color: #30204f;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mag-pick em {
  color: #8b777f;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

.mag-picks-pagination {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  width: 100%;
  text-align: left;
}

.mag-picks-pagination .swiper-pagination-bullet {
  width: 22px;
  height: 4px;
  border-radius: 0;
  background: #d8c1b8;
  opacity: 1;
}

.mag-picks-pagination .swiper-pagination-bullet-active {
  background: #713ff3;
}

.mag-collections {
  background: #f5e8e1;
}

.mag-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mag-collection {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  background: #493449;
}

.mag-collection--large {
  grid-column: auto;
}

.mag-collection figure {
  position: absolute;
  inset: 0;
}

.mag-collection::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(53, 38, 58, 0.04) 20%, rgba(53, 38, 58, 0.92));
}

.mag-collection > span {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.74);
}

.mag-collection strong {
  color: #fff;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 650;
  line-height: 1.15;
}

.mag-collection em {
  font-size: 14px;
  font-style: normal;
}

.mag-journal {
  background: #30204f;
}

.mag-journal .mag-heading h2,
.mag-journal .mag-link {
  color: #faf8ff;
}

.mag-journal .mag-link span,
.mag-journal .mag-label {
  color: #ff9a82;
}

.mag-journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.mag-article {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 248, 241, 0.18);
}

.mag-article--lead {
  grid-row: span 2;
  grid-template-columns: 1fr;
  align-content: start;
  padding: 0;
  border: 0;
}

/* 右栏文章填满各自行，避免主文章旁出现大块无内容留白。 */
.mag-article:not(.mag-article--lead) {
  grid-template-columns: 1fr;
  align-content: start;
  gap: 14px;
  padding-bottom: 18px;
}

.mag-article:not(.mag-article--lead) figure {
  width: 100%;
}

.mag-article:not(.mag-article--lead) strong {
  font-size: clamp(17px, 1.5vw, 20px);
}

/* 主文章下的两张游戏卡填补阅读区节奏；封面固定为 1:1。 */
.mag-journal-picks {
  grid-column: 1;
  grid-row: 3;
  padding-top: 4px;
}

.mag-journal-picks > p {
  margin: 0 0 12px;
  color: #ff9a82;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.mag-journal-picks > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mag-journal-game {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #fff;
}

.mag-journal-game figure {
  overflow: hidden;
  aspect-ratio: 1;
  background: #493449;
}

.mag-journal-game span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mag-journal-game small {
  color: #ff9a82;
  font-size: 9px;
  font-weight: 800;
}

.mag-journal-game strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mag-article figure {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #493449;
}

.mag-article--lead figure {
  aspect-ratio: 16/9;
}

.mag-article span {
  display: grid;
  gap: 10px;
}

.mag-article--lead span {
  padding: 18px 0 0;
}

.mag-article time {
  color: #ff9a82;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.mag-article strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: clamp(16px, 1.45vw, 20px);
  font-weight: 650;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mag-article--lead strong {
  font-size: clamp(23px, 2.5vw, 32px);
}

.mag-article em {
  color: rgba(255, 248, 241, 0.68);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.mag-shelf {
  background: #faf8ff;
}

.mag-shelf-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}

.mag-shelf-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #ead8d0;
  border-radius: 2px;
  background: #ffffff;
  color: #30204f;
}

.mag-shelf-card figure {
  aspect-ratio: 1;
  background: #e7d0c7;
}

.mag-shelf-card span {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
}

.mag-shelf-card strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mag-shelf-card em {
  color: #8b777f;
  font-size: 12px;
  font-style: normal;
}

.mag-cta {
  padding: clamp(76px, 11vw, 144px) 0;
  background: #ffb19d;
  text-align: center;
}

.mag-cta h2 {
  max-width: 13ch;
  margin: 0 auto;
}

/* 文章与游戏的交错编辑区：文章使用 16:9，游戏封面固定为 1:1。 */
.mag-play-read {
  background: #ffffff;
}

.mag-play-read-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.mag-bridge-article {
  display: grid;
  gap: 18px;
  color: #30204f;
}

.mag-bridge-article figure {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #493449;
}

.mag-bridge-article > span {
  display: grid;
  gap: 8px;
  max-width: 62ch;
}

.mag-bridge-article time {
  color: #7135bf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.mag-bridge-article strong {
  display: -webkit-box;
  overflow: hidden;
  color: #30204f;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 650;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mag-bridge-article em {
  color: #7c6b72;
  font-size: 15px;
  font-style: normal;
  line-height: 1.5;
}

.mag-bridge-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mag-bridge-game {
  display: grid;
  gap: 11px;
  min-width: 0;
  color: #30204f;
}

.mag-bridge-game figure {
  overflow: hidden;
  aspect-ratio: 1;
  background: #e7d0c7;
}

.mag-bridge-game span {
  display: grid;
  gap: 5px;
}

.mag-bridge-game small {
  color: #7135bf;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.mag-bridge-game strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mag-cta .mag-button {
  margin-top: 32px;
  background: #30204f;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .mag-button,
  .mag-link,
  .mag-rail-controls button,
  .mag-hero-feature,
  .mag-pick figure > img,
  .mag-collection figure > img,
  .mag-article figure > img,
  .mag-journal-game figure > img,
  .mag-bridge-article figure > img,
  .mag-bridge-game figure > img,
  .mag-shelf-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background-color 0.22s ease;
  }
  .mag-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 17px 30px rgba(160, 98, 226, 0.3);
  }
  .mag-link:hover {
    color: #7135bf;
  }
  .mag-rail-controls button:hover {
    border-color: #713ff3;
    background: #713ff3;
    color: #fff;
  }
  .mag-hero-feature:hover {
    transform: translate(-3px, -5px);
    box-shadow: 23px 23px 0 #ffc6b4;
  }
  .mag-pick:hover figure > img {
    transform: scale(1.06);
  }
  .mag-collection:hover figure > img {
    transform: scale(1.06);
  }
  .mag-article:hover figure > img {
    transform: scale(1.04);
  }
  .mag-journal-game:hover figure > img {
    transform: scale(1.05);
  }
  .mag-bridge-article:hover figure > img,
  .mag-bridge-game:hover figure > img {
    transform: scale(1.04);
  }
  .mag-shelf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 24px rgba(53, 38, 58, 0.14);
  }
}
@media (max-width: 900px) {
  .mag-hero {
    padding: 92px 0 52px;
  }
  .mag-hero__layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .mag-hero-feature {
    max-width: 580px;
  }
  .mag-play-read-grid {
    grid-template-columns: 1fr;
  }
  .mag-bridge-game-grid {
    max-width: 620px;
  }
  .mag-shelf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .magazine-body .home-header,
  .magazine-body .header-inner {
    height: 64px;
  }
  .magazine-body .home-header .brand img {
    width: 154px;
  }
  .mag-hero {
    padding: 76px 0 40px;
  }
  .mag-hero__layout {
    gap: 28px;
  }
  .mag-hero h1 {
    max-width: 10ch;
    font-size: clamp(44px, 12vw, 66px);
  }
  .mag-heading {
    align-items: start;
    margin-bottom: 25px;
  }
  .mag-heading h2 {
    white-space: normal;
  }
  .mag-collections .mag-heading > .mag-link,
  .mag-journal .mag-heading > .mag-link,
  .mag-shelf .mag-heading > .mag-link {
    display: none;
  }
  .mag-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mag-collection--large {
    grid-column: auto;
  }
  .mag-play-read-grid {
    grid-template-columns: 1fr;
  }
  .mag-bridge-game-grid {
    max-width: 520px;
  }
  .mag-shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .mag-hero {
    padding: 72px 0 32px;
  }
  .mag-hero__layout {
    gap: 24px;
  }
  .magazine-body .header-search {
    width: 42px;
    flex-basis: 42px;
  }
  .magazine-body .header-search-label {
    display: none;
  }
  .mag-hero__copy > p:not(.mag-label) {
    margin-top: 20px;
    font-size: 16px;
  }
  .mag-hero__actions {
    gap: 18px;
    margin-top: 26px;
  }
  .mag-hero-feature {
    padding: 10px 10px 0;
    box-shadow: 10px 10px 0 #ffd4c6;
  }
  .mag-hero-feature__body {
    padding: 17px 16px 18px;
  }
  .mag-heading h2,
  .mag-cta h2 {
    font-size: clamp(24px, 8vw, 30px);
  }
  .mag-rail-controls {
    gap: 6px;
  }
  .mag-rail-controls button {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }
  .mag-collection {
    min-height: 0;
  }
  .mag-collection > span {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }
  .mag-collection strong {
    font-size: 20px;
  }
  .mag-collection em {
    display: none;
  }
  .mag-journal-game {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
  }
  .mag-journal-game strong {
    font-size: 14px;
  }
  .mag-bridge-article strong {
    font-size: 22px;
  }
  .mag-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .mag-shelf-card span {
    padding: 10px;
  }
  .mag-bridge-game-grid {
    gap: 12px;
  }
  .mag-bridge-game {
    gap: 8px;
  }
  .mag-bridge-game strong {
    font-size: 14px;
  }
}
/* 首页列表：显式区域结构，避免自动 Grid 排版在不同宽度下产生空白或拉伸。 */
.magazine-home .mag-play-read-grid,
.magazine-home .mag-collection-grid,
.magazine-home .mag-journal-layout,
.magazine-home .mag-journal-primary,
.magazine-home .mag-journal-list,
.magazine-home .mag-journal-picks > div,
.magazine-home .mag-shelf-grid {
  min-width: 0;
}

.magazine-home .mag-play-read-grid {
  align-items: start;
}

.magazine-home .mag-bridge-game-grid {
  align-items: stretch;
}

.magazine-home .mag-bridge-game,
.magazine-home .mag-shelf-card,
.magazine-home .mag-collection,
.magazine-home .mag-journal-game,
.magazine-home .mag-article {
  min-width: 0;
}

.magazine-home .mag-journal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: clamp(28px, 3.25vw, 48px);
}

.magazine-home .mag-journal-primary,
.magazine-home .mag-journal-list {
  display: grid;
  align-content: start;
}

.magazine-home .mag-journal-primary {
  gap: 28px;
}

.magazine-home .mag-journal-list {
  gap: 20px;
}

.magazine-home .mag-journal-layout .mag-article--lead {
  display: grid;
  grid-row: auto;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  border: 0;
}

.magazine-home .mag-journal-layout .mag-article--lead figure {
  aspect-ratio: 16/9;
}

.magazine-home .mag-journal-layout .mag-article--lead span {
  gap: 10px;
  padding-top: 18px;
}

.magazine-home .mag-journal-layout .mag-article--lead strong {
  font-size: clamp(24px, 2.4vw, 32px);
}

.magazine-home .mag-journal-list .mag-article {
  display: grid;
  grid-template-columns: minmax(154px, 0.78fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(255, 248, 241, 0.18);
}

.magazine-home .mag-journal-list .mag-article figure {
  width: 100%;
  aspect-ratio: 16/9;
}

.magazine-home .mag-journal-list .mag-article span {
  gap: 8px;
}

.magazine-home .mag-journal-list .mag-article strong {
  font-size: 18px;
  line-height: 1.28;
}

.magazine-home .mag-journal-picks {
  grid-column: auto;
  grid-row: auto;
  padding-top: 0;
}

.magazine-home .mag-journal-picks > div {
  gap: 16px;
}

.magazine-home .mag-journal-game {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
}

.magazine-home .mag-journal-game figure {
  width: 84px;
  aspect-ratio: 1;
}

.magazine-home .mag-journal-game strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.magazine-home .mag-collection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.magazine-home .mag-collection,
.magazine-home .mag-shelf-card figure,
.magazine-home .mag-bridge-game figure {
  aspect-ratio: 1;
}

.magazine-home .mag-collection img,
.magazine-home .mag-shelf-card figure img,
.magazine-home .mag-bridge-game figure img,
.magazine-home .mag-journal-game figure img,
.magazine-home .mag-journal-layout .mag-article figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-home .mag-shelf-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.magazine-home .mag-shelf-card figure {
  min-height: 0;
}

.magazine-home .mag-shelf-card strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .magazine-home .mag-journal-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 28px;
  }
  .magazine-home .mag-shelf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .magazine-home .mag-journal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .magazine-home .mag-journal-primary {
    gap: 24px;
  }
  .magazine-home .mag-journal-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .magazine-home .mag-journal-list .mag-article {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    padding-bottom: 16px;
  }
  .magazine-home .mag-journal-list .mag-article strong {
    font-size: 16px;
  }
  .magazine-home .mag-shelf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .magazine-home .mag-journal-layout {
    gap: 28px;
  }
  .magazine-home .mag-journal-layout .mag-article--lead span {
    padding-top: 14px;
  }
  .magazine-home .mag-journal-layout .mag-article--lead strong {
    font-size: 24px;
  }
  .magazine-home .mag-journal-picks > div,
  .magazine-home .mag-journal-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .magazine-home .mag-journal-game {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 9px;
  }
  .magazine-home .mag-journal-game figure {
    width: 100%;
  }
  .magazine-home .mag-journal-game span {
    gap: 4px;
  }
  .magazine-home .mag-journal-game strong {
    font-size: 14px;
  }
  .magazine-home .mag-journal-list .mag-article {
    gap: 10px;
  }
  .magazine-home .mag-journal-list .mag-article strong {
    font-size: 15px;
  }
  .magazine-home .mag-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .magazine-home .mag-shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .magazine-home *,
  .magazine-home *::before,
  .magazine-home *::after {
    transition: none !important;
  }
}
.mag-hero-feature__body small {
  letter-spacing: 0.13em;
}

/* 首页 Hero 之后的内容采用独立结构；不影响共用 Header、Footer 与既有 Hero。 */
.home-rebuilt {
  overflow: clip;
}

/* 副站首页统一使用提亮后的暖色主题令牌，覆盖早期杂志样式中的固定颜色。 */
.magazine-body .home-header,
.mag-hero-feature {
  background: var(--color-chrome-plum-deep);
}

.magazine-home,
.home-stories,
.home-library {
  background: var(--color-page-sky);
}

.home-queue {
  background: var(--color-surface);
}

.mag-hero {
  background: radial-gradient(circle at 83% 22%, rgba(160, 98, 226, 0.42), transparent 26%), linear-gradient(115deg, var(--color-page-sky) 0%, var(--color-surface-muted) 100%);
}

.mag-hero h1,
.mag-link,
.home-section-heading h2,
.home-story,
.home-game-card,
.home-mood-card,
.home-library-card {
  color: var(--color-text-primary);
}

.mag-label,
.home-section-heading p,
.home-game-card small,
.home-game-card em {
  color: var(--color-accent-mint);
}

.mag-button,
.home-rail-controls button:hover,
.home-rail-controls button:focus-visible,
.home-closing a {
  background: var(--color-accent-mint);
}

.mag-hero-feature {
  border-color: var(--color-border-soft);
  box-shadow: 18px 18px 0 #e6ddf1;
}

.mag-hero-feature__media {
  background: var(--color-chrome-plum);
}

.home-rebuilt .home-section {
  margin: 0;
  padding: clamp(32px, 3vw, 48px) 0;
}

.home-rebuilt .home-section::before,
.home-rebuilt .home-section::after,
.home-rebuilt .home-section-heading::before,
.home-rebuilt .home-section-heading::after {
  display: none;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(18px, 2vw, 24px);
}

.home-section-heading p,
.home-closing p {
  margin: 0;
  color: #7135bf;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.home-section-heading h2,
.home-closing h2 {
  margin: 0;
  color: #30204f;
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.home-section-heading > a,
.home-closing a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #7135bf;
  font-size: 15px;
  font-weight: 750;
}

.home-section-heading > a {
  margin-left: auto;
}

.home-section-heading > div:first-child {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.home-section-heading > a span,
.home-closing a span {
  font-size: 22px;
  line-height: 1;
  transition: transform 220ms ease;
}

.home-section-heading > a:hover span,
.home-section-heading > a:focus-visible span,
.home-closing a:hover span,
.home-closing a:focus-visible span {
  transform: translateX(4px);
}

.home-stories {
  background: #faf8ff;
}

.home-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  align-items: start;
  gap: 32px;
}

.home-story,
.home-story-list,
.home-story span,
.home-game-card,
.home-game-card span,
.home-mood-card,
.home-mood-card span,
.home-library-card,
.home-library-card span {
  min-width: 0;
}

.home-story {
  display: grid;
  grid-template-columns: minmax(150px, 0.68fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6ddf1;
  color: #30204f;
}

.home-story figure,
.home-game-card figure,
.home-mood-card figure,
.home-library-card figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #e6ddf1;
}

.home-story figure {
  aspect-ratio: 16/9;
}

.home-story-list .home-story figure {
  aspect-ratio: 16/9;
}

.home-story img,
.home-game-card img,
.home-mood-card img,
.home-library-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.home-story span,
.home-game-card span,
.home-mood-card span,
.home-library-card span {
  display: grid;
  gap: 8px;
}

.home-story time,
.home-game-card small {
  color: #7135bf;
  font-size: 10px;
  font-weight: 800;
}

.home-story strong,
.home-game-card strong,
.home-mood-card strong,
.home-library-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #30204f;
  font-weight: 650;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-story strong {
  font-size: 19px;
}

.home-story em,
.home-mood-card em,
.home-library-card em,
.home-game-card em {
  color: #655b76;
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.home-story--lead {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 0;
  padding: 0;
  border: 0;
}

.home-story--lead span {
  gap: 10px;
  padding-top: 20px;
}

.home-story--lead strong {
  font-size: clamp(24px, 2.55vw, 32px);
}

.home-story-list {
  display: grid;
  align-content: start;
  gap: 20px;
}

.home-story:focus-visible img {
  transform: scale(1.04);
}

.home-moods {
  background: #f0e7fa;
}

.home-mood-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.home-mood-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  color: #30204f;
}

.home-mood-card figure,
.home-game-card figure,
.home-library-card figure {
  aspect-ratio: 1;
}

.home-queue .home-game-card figure {
  border-radius: 10px;
}

.home-mood-card strong {
  font-size: 20px;
}

.home-mood-card:focus-visible img {
  transform: scale(1.05) rotate(-1deg);
}

.home-queue {
  overflow-x: hidden;
  background: #ffffff;
}

.home-queue .home-section-heading {
  width: 100%;
  align-items: flex-end;
}

.home-queue .home-section-heading::after {
  display: none;
}

.home-queue .home-rail-controls {
  position: static;
  flex: 0 0 auto;
  margin-left: auto;
  transform: none;
}

.home-queue-rail {
  position: relative;
  padding-inline: 0;
}

.home-queue-arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% - 26px);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(53, 38, 58, 0.9);
  color: #faf8ff;
  cursor: pointer;
  transform: translateY(-50%);
}

.home-queue-arrow--prev {
  left: 0;
}

.home-queue-arrow--next {
  right: 0;
}

.home-queue-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.home-queue-arrow:hover,
.home-queue-arrow:focus-visible {
  background: #713ff3;
}

.home-rail-controls {
  display: flex;
  margin-left: auto;
  gap: 10px;
}

.home-rail-controls button {
  display: grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #e6ddf1;
  border-radius: 50%;
  background: transparent;
  color: #30204f;
  cursor: pointer;
  font: inherit;
}

.home-rail-controls button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.home-rail-controls button:hover,
.home-rail-controls button:focus-visible {
  border-color: #713ff3;
  background: #713ff3;
  color: #fff;
}

.home-game-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  color: #30204f;
}

.home-game-card strong {
  font-size: 16px;
}

.home-queue .home-game-card span {
  display: flex;
  min-height: 58px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-queue .mag-picks-swiper .swiper-wrapper {
  align-items: stretch;
}

.home-queue .mag-picks-swiper .swiper-slide {
  height: auto;
}

.home-queue .home-game-card {
  height: 100%;
}

.home-queue .home-game-card strong {
  -webkit-line-clamp: 2;
}

.home-game-card em {
  color: #7135bf;
  font-size: 13px;
}

.home-queue .home-game-card em {
  margin-top: auto;
}

.home-game-card:focus-visible img {
  transform: scale(1.06);
}

.home-library {
  background: #faf8ff;
}

.home-library-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 26px 18px;
}

.home-library-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  color: #30204f;
}

.home-library-card strong {
  font-size: 16px;
}

.home-library-card em {
  color: #655b76;
  font-size: 13px;
}

.home-game-card em,
.home-library-card em b {
  color: #ff8f32;
  font-weight: 650;
}

.home-library-card:focus-visible img {
  transform: scale(1.05);
}

.home-closing {
  padding: clamp(40px, 4vw, 56px) 0;
  background: var(--color-surface);
  text-align: center;
}

.home-closing .container {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.home-closing p {
  color: var(--color-accent-mint);
}

.home-closing h2 {
  color: var(--color-text-primary);
}

.home-closing h2 {
  max-width: 18ch;
  margin: 0;
}

.home-closing a {
  justify-content: center;
  width: fit-content;
  min-width: 164px;
  margin: 0 auto;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--color-accent-mint);
  color: #fff;
}

.home-closing a:hover,
.home-closing a:focus-visible {
  background: var(--color-accent-mint-strong);
}

@media (max-width: 900px) {
  .home-story-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    gap: 28px;
  }
  .home-mood-grid,
  .home-library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .home-rebuilt .home-section {
    padding: 24px 0;
  }
  .home-section-heading {
    align-items: start;
  }
  .home-section-heading h2 {
    font-size: 26px;
  }
  .home-queue .home-section-heading {
    align-items: flex-end;
    padding-bottom: 16px;
  }
  .home-queue .home-section-heading h2 {
    font-size: 24px;
  }
  .home-section-heading > a {
    display: none;
  }
  .home-story-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home-story-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .home-story-list .home-story {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    padding-bottom: 14px;
  }
  .home-story-list .home-story strong {
    font-size: 16px;
  }
  .home-mood-grid,
  .home-library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .home-rebuilt .home-section {
    padding: 20px 0;
  }
  .home-section-heading {
    padding-bottom: 14px;
  }
  .home-section-heading h2,
  .home-closing h2 {
    font-size: 24px;
  }
  .home-queue .home-section-heading h2 {
    font-size: 22px;
  }
  .home-story--lead span {
    padding-top: 15px;
  }
  .home-story--lead strong {
    font-size: 25px;
  }
  .home-mood-grid,
  .home-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-story-list .home-story strong,
  .home-mood-card strong,
  .home-library-card strong {
    font-size: 15px;
  }
  .home-story-list .home-story span,
  .home-mood-card span,
  .home-library-card span {
    gap: 5px;
  }
  .home-mood-card em,
  .home-library-card em {
    font-size: 12px;
  }
  .home-rail-controls {
    display: flex;
    gap: 6px;
  }
  .home-queue-rail {
    padding-inline: 0;
  }
  .home-queue-arrow {
    display: none;
  }
  .home-closing {
    padding: 28px 0;
  }
  .home-closing .container {
    gap: 16px;
  }
}
/* 移动端搜索入口只有图标，移除绝对定位以保证视觉与触控区域真正居中。 */
@media (max-width: 520px) {
  .magazine-body .header-search {
    display: flex;
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }
  .magazine-body .header-search-icon {
    position: static;
    width: 16px;
    height: 16px;
    padding: 0;
    transform: none;
  }
}
.magazine-body .header-search-icon {
  top: 50%;
  display: block;
  box-sizing: border-box;
  transform: translateY(-50%);
}

.home-queue .mag-picks-swiper {
  overflow-x: hidden;
}

@media (max-width: 520px) {
  .magazine-body .header-search-icon {
    position: static;
    transform: none;
  }
}
@media (max-width: 580px) {
  .magazine-body .header-search {
    display: flex;
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }
  .magazine-body .header-search-label {
    display: none;
  }
  .magazine-body .header-search-icon {
    position: static;
    width: 16px;
    height: 16px;
    padding: 0;
    transform: none;
  }
}
/* 仅在具备精细指针的桌面环境启用各栏目差异化 Hover，触控设备不保留悬停状态。 */
@media (hover: hover) and (pointer: fine) {
  .home-story,
  .home-mood-card,
  .home-queue .home-game-card figure,
  .home-library-card,
  .home-closing a {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  }
  .home-story:hover img {
    filter: saturate(1.08) brightness(1.03);
    transform: scale(1.04);
  }
  .home-story--lead:hover strong {
    color: var(--color-accent-mint);
  }
  .home-story-list .home-story:hover {
    border-color: var(--color-accent-mint);
  }
  .home-mood-card:hover {
    transform: translateY(-4px);
  }
  .home-mood-card:hover img {
    transform: scale(1.06) rotate(-1deg);
  }
  .home-queue .home-game-card:hover figure {
    box-shadow: 0 9px 18px rgba(160, 98, 226, 0.24);
  }
  .home-queue .home-game-card:hover img {
    transform: scale(1.1);
  }
  .home-queue .home-game-card:hover strong {
    color: var(--color-accent-mint);
  }
  .home-library-card:hover {
    transform: translateY(-4px);
  }
  .home-library-card:hover figure {
    box-shadow: 0 12px 22px rgba(67, 49, 76, 0.14);
  }
  .home-library-card:hover img {
    transform: scale(1.05);
  }
  .home-closing a:hover {
    box-shadow: 0 12px 22px rgba(160, 98, 226, 0.26);
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-rebuilt *,
  .home-rebuilt *::before,
  .home-rebuilt *::after {
    transition: none !important;
  }
}
/* Article-first hero: SSR cards progressively enhanced by the existing Swiper. */
.home-article-hero {
  padding: 112px 0 40px;
}

.hero-articles-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.home-article-hero h1 {
  max-width: none;
  font-size: 32px;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.hero-articles-swiper {
  overflow: hidden;
  padding: 3px 3px 16px;
}

.hero-articles-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 24px;
  overflow-x: auto;
}

.hero-articles-swiper:not(.swiper-initialized) .hero-article {
  flex: 0 0 calc((100% - 48px) / 3);
}

.hero-article {
  height: auto;
  box-sizing: border-box;
}

.hero-article-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 20px;
  color: var(--color-text-primary);
}

.hero-article figure {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hero-article figure img {
  transition: transform 250ms ease;
}

.hero-article-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.hero-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 12px;
}

.hero-article-meta > span {
  color: var(--color-accent-mint-strong);
  font-weight: 650;
}

.hero-article h2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-articles-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.is-enhanced .hero-articles-controls {
  display: flex;
}

.hero-articles-pagination {
  display: flex;
  gap: 8px;
}

.hero-articles-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0;
  background: var(--color-accent-mint);
}

.hero-articles-pagination .swiper-pagination-bullet-active {
  width: 28px;
  border-radius: 10px;
}

.hero-articles-pagination button {
  cursor: pointer;
}

.hero-articles-arrows {
  display: flex;
  gap: 10px;
}

.hero-articles-arrows button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-soft);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-site-deep);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.hero-articles-arrows button:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .hero-article-link:hover img {
    transform: scale(1.025);
  }
  .hero-articles-arrows button:not(:disabled):hover {
    background: var(--color-accent-mint);
    color: #fff;
  }
}
@media (max-width: 1023px) {
  .hero-articles-swiper:not(.swiper-initialized) .hero-article {
    flex-basis: calc((100% - 24px) / 2);
  }
}
@media (max-width: 720px) {
  .home-article-hero {
    padding: 88px 0 28px;
  }
  .hero-articles-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }
}
@media (max-width: 519px) {
  .hero-articles-swiper:not(.swiper-initialized) .hero-article {
    flex-basis: 88%;
  }
  .hero-article-copy {
    padding: 12px 14px 14px;
  }
}
/* Shared homepage module title scale. */
.home-rebuilt .home-section-heading h2,
.home-rebuilt .home-closing h2,
.home-rebuilt .home-article-hero h1 {
  font-size: 32px;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .home-rebuilt .home-section-heading h2,
  .home-rebuilt .home-closing h2,
  .home-rebuilt .home-article-hero h1 {
    font-size: 28px;
  }
}
@media (max-width: 520px) {
  .home-rebuilt .home-section-heading h2,
  .home-rebuilt .home-closing h2,
  .home-rebuilt .home-article-hero h1 {
    font-size: 24px;
  }
  .hero-article h2 {
    font-size: 18px;
  }
}
/* Compact, aligned homepage game cards. */
.home-mood-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
}

.home-mood-card figure {
  flex: 0 0 auto;
  border-radius: 8px;
}

.home-mood-card > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.home-mood-card strong {
  width: 100%;
  font-size: 16px;
  text-align: center;
  -webkit-line-clamp: 2;
}

.home-mood-card em {
  margin-top: auto;
  padding-top: 8px;
}

.home-mood-card em,
.home-queue .home-game-card em,
.home-library-card em {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
}

.home-mood-card em b,
.home-queue .home-game-card em b,
.home-library-card em b {
  color: #ff8f32;
  font-weight: 650;
}

.home-queue .home-game-card {
  gap: 8px;
  text-align: center;
}

.home-queue .home-game-card > span {
  gap: 4px;
  min-height: 0;
}

.home-queue .home-game-card small {
  line-height: 1.3;
}

.home-queue .home-game-card strong {
  width: 100%;
  min-height: 2.44em;
}

.home-queue .home-game-card em {
  margin-top: auto;
  padding-top: 4px;
}

.home-library-grid {
  row-gap: 24px;
}

.home-library-card {
  gap: 8px;
  text-align: center;
  align-content: start;
}

.home-library-card > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.home-library-card strong {
  width: 100%;
  min-height: 2.44em;
}

.home-library-card em {
  margin-top: 6px;
}

@media (min-width: 721px) {
  .home-story-layout {
    column-gap: 32px;
  }
}
@media (max-width: 520px) {
  .home-mood-card {
    padding: 8px;
    gap: 8px;
  }
  .home-library-grid {
    row-gap: 20px;
  }
}
/* Compact horizontal game library. */
.home-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.home-library-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  align-content: center;
  text-align: left;
}

.home-library-card figure {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.home-library-card > span:not(.library-arrow) {
  align-items: flex-start;
  gap: 8px;
}

.home-library-card strong {
  min-height: 0;
  font-size: 16px;
  line-height: 1.25;
}

.home-library-card em.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.home-library-card .star-rating__stars {
  display: inline-flex;
  gap: 2px;
}

.home-library-card .star-rating__star {
  display: inline-block;
  font-size: 12px;
}

.home-library-card .star-rating__value {
  display: inline;
  color: var(--color-text-muted);
  font-size: 12px;
}

.home-library-card > .library-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border-soft);
  background: #fff;
  color: var(--color-site-deep);
  box-shadow: 0 3px 8px rgba(72, 42, 110, 0.06);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.library-arrow svg {
  display: block;
  width: 16px;
  height: 16px;
}

.home-library-card:hover > .library-arrow,
.home-library-card:focus-visible > .library-arrow {
  background: var(--color-accent-mint);
  border-color: var(--color-accent-mint);
  color: #fff;
}

@media (max-width: 1023px) {
  .home-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
}
@media (max-width: 600px) {
  .home-library-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.home-story time {
  letter-spacing: 0.13em;
}

/* 副本站点统一主题：浅薰衣草、白色卡片与紫红渐变。 */
:root {
  --ad-label-color: #999;
  --ad-flex-direction: column;
  --ad-label-display: block;
  --ad-label-align: center;
  --color-ad-placeholder: #eee6f7;
  --muted: #655b76;
  --color-chrome-plum: #655b76;
  --color-chrome-plum-deep: #30204f;
  --color-site-deep: #30204f;
  --color-site-deep-soft: #655b76;
  --color-page-sky: #faf8ff;
  --color-surface: #ffffff;
  --color-surface-muted: #f0e7fa;
  --color-text-primary: #30204f;
  --color-text-muted: #655b76;
  --color-border-soft: #e6ddf1;
  --color-accent-mint: #713ff3;
  --color-accent-mint-strong: #6630d9;
  --gradient-accent: linear-gradient(110deg, #713ff3 0%, #c822a5 100%);
  --shadow-soft: 0 12px 28px rgba(37, 42, 85, 0.12);
}

body {
  background: var(--color-page-sky);
  color: var(--color-text-primary);
}

.site-header,
.site-footer {
  background: var(--color-chrome-plum);
}

.site-header {
  border-bottom: 1px solid rgba(255, 248, 241, 0.14);
  box-shadow: 0 8px 20px rgba(72, 42, 110, 0.14);
}

.site-footer {
  background: var(--color-chrome-plum-deep);
}

/* 不再使用旧站的森林底纹或装饰图。 */
.site-footer::before,
.site-footer::after,
.footer-decoration {
  display: none !important;
  content: none !important;
  background: none !important;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: #713ff3;
}

.site-header .header-search {
  border-color: rgba(255, 248, 241, 0.18);
  background: rgba(255, 248, 241, 0.12);
}

.site-header .header-search:hover,
.site-header .header-search:focus-visible {
  border-color: #713ff3;
  background: rgba(255, 248, 241, 0.2);
}

/* 搜索页不再沿用旧站的浅蓝山景图层。 */
.search-entry-main,
.search-results-main {
  background: linear-gradient(180deg, #faf8ff 0%, #f0e7fa 100%);
}

.main-shell,
.about-page,
.games-page,
.articles-page,
.article-page,
.detail-page,
.extension-page,
.error-page {
  background: var(--color-page-sky);
}

.search-results-hero,
.line-title,
.article-list-heading,
.detail-section-heading {
  border-color: rgba(37, 42, 85, 0.16);
}

.search-page .search-input-row,
.search-results-page .search-results-form,
.search-result-tabs,
.search-page .search-suggestions a,
.games-category-tab,
.games-load-more,
.catalog-card,
.article-card,
.search-page .search-may-like-card,
.search-results-page .search-may-like-card,
.extension-game-wall .search-may-like-card {
  border-color: rgba(37, 42, 85, 0.14);
  box-shadow: 0 10px 24px rgba(37, 42, 85, 0.1);
}

.search-page .search-input-row:focus-within,
.search-results-page .search-results-form:focus-within {
  border-color: var(--color-accent-mint);
  box-shadow: 0 10px 24px rgba(37, 42, 85, 0.1), 0 0 0 4px rgba(160, 98, 226, 0.16);
}

.search-page .search-input-row button,
.search-results-page .search-results-form button,
.search-result-tabs button[aria-selected=true],
.games-load-more-button,
.view-more-button,
.mint-button {
  background: var(--gradient-accent);
  box-shadow: 0 10px 20px rgba(113, 63, 243, 0.22);
}

.games-load-more,
.games-load-more-button,
.games-load-more-button:not(:disabled):hover,
.games-load-more-button:not(:disabled):active {
  border: 0;
  box-shadow: none;
}

.games-category-tabs .games-category-tab.is-active,
.games-category-tabs .games-category-tab.is-active:hover {
  box-shadow: inset 0 -3px 0 var(--color-accent-mint);
}

.games-category-tabs .games-category-tab {
  box-shadow: none;
}

.search-page .search-suggestions a:hover,
.search-page .search-suggestions a:focus-visible,
.games-category-tab.is-active {
  border-color: var(--color-accent-mint);
  background: #f0e7fa;
  color: var(--color-site-deep);
}

.games-category-tab.is-active {
  box-shadow: inset 0 -3px 0 var(--color-accent-mint), 0 6px 16px rgba(37, 42, 85, 0.14);
}

.games-category-tab:focus-visible,
.search-result-tabs button:focus-visible {
  outline-color: var(--color-accent-mint);
}

.search-page .search-may-like-card,
.search-results-page .search-may-like-card,
.extension-game-wall .search-may-like-card,
.catalog-card,
.article-card,
.about-card,
.detail-box,
.contact-form,
.compact-games,
.hot-games-panel,
.article-content {
  background: var(--color-surface);
}

.about-card,
.detail-box,
.contact-form,
.compact-games,
.hot-games-panel,
.article-content {
  border-color: rgba(72, 42, 110, 0.12);
  box-shadow: 0 10px 24px rgba(72, 42, 110, 0.1);
}

.about-card:has(form[data-contact-form]),
form[data-contact-form],
form[data-contact-form] button[type=submit] {
  box-shadow: none;
}

.article-detail aside .hot-games-panel,
.article-detail aside .compact-games {
  box-shadow: none;
}

.about-card a,
.article-content a,
.detail-page .verified,
.down-page .verified,
.read-more,
.detail-page [data-read-more],
.down-page [data-read-more] {
  color: var(--color-accent-mint);
}

.button,
.get-button,
.store:not(:disabled),
.contact-form button[type=submit] {
  background: var(--gradient-accent);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(113, 63, 243, 0.22);
}

.button-outline,
.store:disabled {
  border-color: var(--color-border-soft);
  color: var(--color-text-muted);
}

.search-page .search-may-like-card span,
.search-results-page .search-may-like-card span,
.extension-game-wall .search-may-like-card span {
  background: linear-gradient(transparent, rgba(37, 42, 85, 0.94));
}

.detail-page .game-info-item svg,
.down-page .game-info-item svg,
.article-detail .article-meta svg {
  color: var(--color-accent-mint);
  stroke: currentcolor;
}

.detail-page .section-title,
.down-page .section-title,
.article-detail .section-title,
.detail-page [data-read-more],
.down-page [data-read-more] {
  color: var(--color-site-deep);
}

.detail-page .section-title::after,
.down-page .section-title::after,
.article-detail .section-title::after,
.line-title::after {
  background: rgba(37, 42, 85, 0.16);
}

.detail-page h2,
.detail-page .aside-title,
.detail-page .trusted-download h2,
.article-detail .article-title,
.article-detail .aside-title {
  color: var(--color-text-primary);
}

.detail-page .screenshot-item,
.game-info-item,
.detail-page .similar-games {
  background: #f5f0fc;
}

.detail-page .screenshot-control,
.down-page .store {
  border-color: rgba(72, 42, 110, 0.18);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.detail-page .screenshot-control:not(:disabled):hover,
.detail-page .screenshot-control:not(:disabled):focus-visible,
.down-page .store:not(:disabled):hover,
.down-page .store:not(:disabled):focus-visible {
  border-color: var(--color-accent-mint);
  background: var(--color-accent-mint);
  color: #fff;
}

.detail-page .game-info-item svg {
  stroke: var(--color-accent-mint);
}

.detail-page .trusted-download .verified dt {
  color: var(--color-accent-mint);
}

@media (hover: hover) and (pointer: fine) {
  .detail-page .detail-related-games-grid .catalog-card:hover,
  .detail-page .detail-related-games-grid .catalog-card:focus-visible {
    box-shadow: 0 14px 28px rgba(72, 42, 110, 0.18);
  }
}
@media (hover: hover) and (pointer: fine) {
  .search-page .search-may-like-card:hover,
  .search-page .search-may-like-card:focus-visible,
  .search-results-page .search-may-like-card:hover,
  .search-results-page .search-may-like-card:focus-visible,
  .extension-game-wall .search-may-like-card:hover,
  .extension-game-wall .search-may-like-card:focus-visible {
    border-color: rgba(160, 98, 226, 0.45);
    box-shadow: 0 14px 28px rgba(37, 42, 85, 0.18);
  }
}
/* Shared visual surfaces. Layout and DOM contracts remain owned by page styles. */
.site-header,
.magazine-body .home-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border-soft);
  box-shadow: 0 4px 24px rgba(72, 42, 110, 0.05);
}

.site-header .brand,
.home-header .brand,
.site-footer .brand {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.magazine-body .home-header .brand img {
  filter: none;
}

.site-header .header-search,
.magazine-body .header-search {
  color: var(--color-text-muted);
  background: #f5f0fc;
  border-color: var(--color-border-soft);
  border-radius: 999px;
}

.site-header .header-search:hover,
.magazine-body .header-search:hover {
  background: #f0e7fa;
  border-color: #713ff3;
}

.header-search-icon {
  color: #713ff3;
}

.site-footer {
  background: #fff;
  color: #30204f;
}

.site-footer .footer-links a,
.site-footer .footer-copyright {
  color: #655b76;
}

.mag-hero {
  background: radial-gradient(ellipse at 78% 22%, #e6c7f3 0, transparent 55%), linear-gradient(120deg, #f9f3ff, #eee7fc);
}

.home-moods {
  background: #f0e7fa;
}

.home-closing {
  background: linear-gradient(120deg, #eee4fb, #f8eafa);
}

.mag-hero h1 {
  color: #30204f;
  line-height: 1.06;
}

.mag-hero__copy > p:not(.mag-label) {
  color: #655b76;
}

.mag-hero-feature {
  background: #fff;
  color: #30204f;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(72, 42, 110, 0.13);
}

.mag-hero-feature__body,
.mag-hero-feature__body strong {
  color: #30204f;
}

.mag-hero-feature__body small {
  color: #7135bf;
}

.home-queue .home-game-card figure {
  border-radius: 10px;
}

.mag-button,
.home-closing a,
.button,
.get-button,
.mint-button,
.view-more-button,
.games-load-more-button,
form[data-contact-form] button[type=submit] {
  background: var(--gradient-accent);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(113, 63, 243, 0.16);
}

.mag-link,
.home-section-heading > a {
  color: #7135bf;
}

.catalog-card,
.article-card,
.search-game-card,
.search-article-card,
.about-card,
.article-content,
.detail-box,
.hot-games-panel {
  background: #fff;
  border-radius: 18px;
  border-color: #e6ddf1;
  box-shadow: 0 6px 22px rgba(72, 42, 110, 0.055);
}

.home-story--featured figure,
.home-game-card figure,
.home-library-card figure {
  border-radius: 18px;
}

.games-category-tab,
.search-result-tabs {
  border-radius: 999px;
}

.games-category-tabs .games-category-tab.is-active,
.games-category-tabs .games-category-tab.is-active:hover,
.search-result-tabs button[aria-selected=true] {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: none;
}

input,
textarea {
  accent-color: #713ff3;
}

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid #713ff3;
  outline-offset: 4px;
}

button:disabled {
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
/* User-supplied transparent branch wordmark. */
.site-header .brand img,
.magazine-body .home-header .brand img {
  width: auto;
  height: 48px;
  max-width: 65vw;
  object-fit: contain;
  object-position: center;
}

.site-footer .footer-brand img {
  width: 220px;
  height: 40px;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 520px) {
  .site-header .brand img,
  .magazine-body .home-header .brand img {
    height: 40px;
  }
}
/* Site-wide list typography, media and spacing contract. */
body :is(.home-story,
.hero-article,
.article-card,
.search-article-card,
.review-card) figure {
  aspect-ratio: 16/9;
}

body :is(.home-story,
.hero-article,
.article-card,
.search-article-card,
.review-card) figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body :is(.home-mood-card, .home-game-card, .home-library-card) strong,
body :is(.catalog-card, .game-card, .search-game-card) h3,
body .similar-game-card > span,
body .compact-games b,
body .search-may-like-card > span {
  font-size: 16px !important;
  font-weight: 500 !important;
}

body :is(.home-mood-card,
.home-game-card,
.home-library-card,
.catalog-card,
.game-card,
.search-game-card,
.similar-game-card,
.search-may-like-card) {
  gap: 4px;
}

body :is(.home-mood-card, .home-game-card, .home-library-card) > span:not(.library-arrow),
body :is(.catalog-copy,
.search-game-card-copy,
.compact-game-copy,
.hero-article-copy) {
  gap: 4px;
}

body :is(.home-mood-card, .home-game-card, .home-library-card) em {
  margin-top: 4px;
  padding-top: 0;
}

body .home-library-card > span:not(.library-arrow) {
  gap: 4px;
}

body .home-library-card em.star-rating {
  gap: 4px;
  margin: 0;
}

body .hero-article h2 {
  margin-top: 4px;
}

body :is(.home-story, .article-card) > span {
  gap: 4px;
}

body .home-story--lead > span {
  padding-top: 16px;
}

body :is(.home-mood-card,
.home-game-card,
.home-library-card,
.catalog-card,
.game-card,
.search-game-card) figure,
body :is(.home-mood-card,
.home-game-card,
.home-library-card,
.catalog-card,
.game-card,
.search-game-card) figure img,
body .home-queue .home-game-card figure,
body .similar-game-card > img,
body .compact-games img,
body .search-may-like-card,
body .search-may-like-card > img {
  border-radius: 16px;
}

body :is(.home-mood-grid,
.home-library-grid,
.home-story-list,
.games-category-grid,
.search-games-grid,
.search-articles-grid,
.articles-grid,
.article-grid,
.review-grid,
.reviews-grid,
.detail-related-games-grid,
.extension-game-wall,
.compact-games) {
  gap: 24px;
}

body .hero-articles-swiper:not(.swiper-initialized) .swiper-wrapper {
  gap: 24px;
}

body :is(.star-rating__stars, .rating, .compact-game-rating) {
  gap: 4px;
}

body :is(.star-rating__star,
.star-rating__value,
.home-mood-card em,
.home-library-card em,
.rating,
.compact-game-rating,
.similar-game-card small) {
  font-size: 12px !important;
}

body .star-rating__star {
  display: inline-block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  overflow: hidden;
  text-indent: -999px;
  background: #d8d1df;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.3.9-4.55%204.43%201.07%206.27L12%2017.34l-5.62%202.96%201.07-6.27L2.9%209.6l6.3-.9Z%22%20fill%3D%22black%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.3.9-4.55%204.43%201.07%206.27L12%2017.34l-5.62%202.96%201.07-6.27L2.9%209.6l6.3-.9Z%22%20fill%3D%22black%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

body .star-rating__star.is-filled {
  background: #ff8f32;
}

body .star-rating__star.is-half {
  background: linear-gradient(90deg, #ff8f32 50%, #d8d1df 50%);
}

body :is(.home-mood-card em b,
.similar-game-card small > span,
.compact-game-rating > span) {
  display: inline-block;
  width: 12px;
  height: 12px;
  overflow: hidden;
  vertical-align: -1px;
  font-size: 0;
  background: #ff8f32;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.3.9-4.55%204.43%201.07%206.27L12%2017.34l-5.62%202.96%201.07-6.27L2.9%209.6l6.3-.9Z%22%20fill%3D%22black%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.3.9-4.55%204.43%201.07%206.27L12%2017.34l-5.62%202.96%201.07-6.27L2.9%209.6l6.3-.9Z%22%20fill%3D%22black%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

body .aside-articles figure {
  aspect-ratio: 16/9;
}

body .aside-articles figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body .aside-articles {
  display: grid;
  gap: 24px;
}

body .aside-articles li {
  margin: 0;
}

body .aside-articles a,
body .compact-games a,
body .search-article-copy {
  gap: 4px;
}

body .article-card dd {
  margin-top: 4px;
  padding-top: 0;
}

body .catalog-copy > *,
body .search-game-card-copy > * {
  margin-top: 0;
  margin-bottom: 0;
}

body .catalog-card > figure,
body .search-game-card > figure {
  margin-bottom: 0;
}

body .home-mood-card {
  border-radius: 24px;
}

body .home-library-card {
  column-gap: 12px;
}

body .home-story-list .home-story figure {
  aspect-ratio: 16/9;
}

.home-rebuilt .home-section-heading > div:first-child {
  gap: 4px;
}

.home-rebuilt .home-closing .container {
  row-gap: 4px;
}

.home-rebuilt .home-closing a {
  margin-top: 16px;
}

/* Vertical game-card rhythm and aligned single-star scores. */
body :is(.home-mood-card,
.home-game-card,
.catalog-card,
.game-card,
.search-game-card,
.similar-game-card) {
  row-gap: 12px;
}

body .home-queue .home-game-card {
  display: flex;
  flex-direction: column;
}

body .home-queue .home-game-card figure {
  flex: 0 0 auto;
}

body .home-queue .home-game-card > span {
  flex: 1;
}

body .home-queue .home-game-card strong {
  min-height: 0;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}

body .home-queue .home-game-card em {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  color: var(--color-text-muted);
}

body .home-queue .home-game-card em b {
  display: inline-block;
  width: 12px;
  height: 12px;
  overflow: hidden;
  vertical-align: -1px;
  font-size: 0;
  background: #ff8f32;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.3.9-4.55%204.43%201.07%206.27L12%2017.34l-5.62%202.96%201.07-6.27L2.9%209.6l6.3-.9Z%22%20fill%3D%22black%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m12%203%202.8%205.7%206.3.9-4.55%204.43%201.07%206.27L12%2017.34l-5.62%202.96%201.07-6.27L2.9%209.6l6.3-.9Z%22%20fill%3D%22black%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;
}

.home-closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-closing .container {
  position: relative;
  z-index: 1;
}

.home-closing::before,
.home-closing::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.home-closing::before {
  width: 320px;
  height: 320px;
  left: -90px;
  top: -125px;
  border: 1px solid rgba(113, 63, 243, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(113, 63, 243, 0.035), 0 0 0 60px rgba(113, 63, 243, 0.03), 0 0 0 90px rgba(113, 63, 243, 0.025);
}

.home-closing::after {
  width: 260px;
  height: 260px;
  right: -45px;
  bottom: -160px;
  border: 1px solid rgba(113, 63, 243, 0.16);
  border-radius: 24px;
  transform: rotate(35deg);
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(113, 63, 243, 0.08) 39px 40px), repeating-linear-gradient(0deg, transparent 0 39px, rgba(113, 63, 243, 0.08) 39px 40px);
}

@media (max-width: 520px) {
  .home-closing::before {
    left: -230px;
  }
  .home-closing::after {
    right: -190px;
  }
}
body .home-queue .home-game-card {
  row-gap: 12px;
}

body .home-mood-card em {
  margin-top: 4px;
  padding-top: 4px;
}

body .home-mood-card em.star-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

body .home-mood-card .star-rating__stars {
  display: inline-flex;
  gap: 2px;
}

body .home-mood-card .star-rating__value {
  display: inline;
}

/* Game list spacing and a twelve-card mood collection. */
body :is(.home-mood-grid,
.home-library-grid,
.games-category-grid,
.search-games-grid,
.detail-related-games-grid,
.extension-game-wall,
.compact-games) {
  gap: 16px;
}

body .home-mood-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  body .home-mood-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  body .home-mood-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body .home-mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Shared compact search CTA and natural-flow pick ratings. */
body .home-queue .home-game-card em {
  margin-top: 4px;
  padding-top: 0;
}

body .site-header .header-search,
body.magazine-body .home-header .header-search {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 132px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

body .site-header .header-search-label,
body.magazine-body .home-header .header-search-label {
  display: inline;
  margin: 0;
}

body .site-header .header-search-icon,
body.magazine-body .home-header .header-search-icon {
  position: static;
  transform: none;
  display: block;
  order: -1;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #fff;
  stroke-width: 1.8;
}

body .site-header .header-search:hover,
body.magazine-body .home-header .header-search:hover {
  background: var(--gradient-accent);
  filter: brightness(1.06);
}

@media (max-width: 520px) {
  body .site-header .header-search,
  body.magazine-body .home-header .header-search {
    width: 104px;
    height: 40px;
    padding: 0 12px;
    gap: 6px;
    font-size: 14px;
  }
  body .site-header .brand img,
  body.magazine-body .home-header .brand img {
    max-width: calc(100vw - 160px);
  }
}
body .site-header .header-search-label,
body.magazine-body .home-header .header-search-label {
  line-height: 1;
}

body .search-page .search-input-row,
body .search-results-page .search-results-form {
  border: 0;
  box-shadow: 0 6px 18px rgba(72, 42, 110, 0.07);
}

body .search-page .search-input-row button,
body .search-results-page .search-results-form button {
  border: 0;
  box-shadow: none;
}

body .search-page .search-input-row:focus-within,
body .search-results-page .search-results-form:focus-within {
  outline: 2px solid var(--color-accent-mint);
  outline-offset: 3px;
}

.hero-article-meta > span {
  font-size: 14px;
}

body :is(.home-game-card small,
.hero-article-meta > span,
.compact-game-category,
.games-category-tab,
.search-game-card-copy > p) {
  text-transform: capitalize;
}

body .hero-articles-swiper:not(.swiper-initialized) .swiper-wrapper {
  gap: 16px;
}

.hero-articles-swiper:not(.swiper-initialized) .hero-article {
  flex-basis: calc((100% - 32px) / 3);
}

@media (max-width: 1023px) {
  .hero-articles-swiper:not(.swiper-initialized) .hero-article {
    flex-basis: calc((100% - 16px) / 2);
  }
}
@media (max-width: 519px) {
  .hero-articles-swiper:not(.swiper-initialized) .hero-article {
    flex-basis: 88%;
  }
}
/* Unified game and article category label typography. */
body :is(.home-game-card small,
.hero-article-meta > span,
.compact-game-category,
.games-category-tab,
.search-game-card-copy > p,
.game-card > p,
.game-card .category,
.category-rail a,
.search-suggestions a) {
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* Consistent editorial list title weight. */
body :is(.home-story strong,
.hero-article h2,
.article-card dt,
.search-article-copy h3,
.aside-articles h3,
.review-card h3,
.feature-card h3) {
  font-weight: 500 !important;
}

body .home-mood-card {
  padding-bottom: 20px;
}

/* Shared editorial date treatment, including dynamically appended cards. */
body :is(.home-story time,
.hero-article-meta time,
.article-card dd,
.search-article-copy time,
.article-date,
.aside-articles .meta,
.review-card time,
.feature-card time) {
  color: #7135bf;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-rebuilt .home-library {
  background: linear-gradient(to bottom, #e8d8f7 0%, #f3eafb 45%, #fff 100%);
}

/* Contained, atmospheric closing card. */
.home-rebuilt .home-closing {
  width: calc(100% - 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 28px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 65% 125%, rgba(124, 34, 244, 0.8), transparent 65%), radial-gradient(ellipse at 25% 120%, rgba(198, 34, 165, 0.36), transparent 55%), linear-gradient(120deg, #21103e, #21094e 60%, #2f0e69);
  color: #fff;
}

.home-rebuilt .home-closing .container {
  width: 100%;
  max-width: 680px;
  padding: 0;
}

.home-rebuilt .home-closing h2 {
  max-width: 22ch;
  color: #fff;
  font-weight: 500;
}

.home-rebuilt .home-closing .closing-description {
  max-width: 48ch;
  margin: 12px auto 4px;
  color: #c8badf;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
}

.home-rebuilt .home-closing a {
  min-width: 156px;
  gap: 14px;
  margin-top: 20px;
  padding: 8px 9px 8px 22px;
  font-weight: 500;
}

.home-rebuilt .home-closing a span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #713ff3;
  font-size: 18px;
}

.home-rebuilt .home-closing::before {
  width: 860px;
  height: 460px;
  top: 24px;
  left: calc(50% - 250px);
  border: 2px solid rgba(170, 113, 255, 0.25);
  border-radius: 50%;
  transform: rotate(-16deg);
  box-shadow: 0 -4px 18px rgba(157, 80, 255, 0.13), inset 0 12px 18px rgba(160, 80, 255, 0.06);
}

.home-rebuilt .home-closing::after {
  width: 360px;
  height: 180px;
  right: auto;
  left: -120px;
  bottom: -80px;
  border: 1px solid rgba(190, 145, 255, 0.25);
  border-radius: 50%;
  transform: rotate(25deg);
  background: radial-gradient(ellipse, rgba(153, 60, 255, 0.18), transparent 70%);
  box-shadow: 0 0 40px rgba(131, 57, 225, 0.15);
}

@media (max-width: 600px) {
  .home-rebuilt .home-closing {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 30px 20px;
    border-radius: 24px;
  }
  .home-rebuilt .home-closing .closing-description {
    font-size: 14px;
  }
}
.magazine-home.home-rebuilt {
  background: #fff;
}

.ad_box {
  display: flex;
  align-items: stretch;
  flex-direction: var(--ad-flex-direction);
  gap: 6px;
  text-align: center;
  margin-bottom: 12px;
}
.ad_box > p {
  display: var(--ad-label-display);
  font-size: 12px;
  text-align: var(--ad-label-align);
  color: var(--ad-label-color);
}

.ad_box > .ad-placeholder {
  width: 100%;
  height: 250px;
  background: aliceblue;
}

.ad_box:has(> :not(.ad-placeholder):not(p)) > .ad-placeholder {
  display: none;
}

.hero-articles-arrows button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--color-border-soft);
  color: var(--color-site-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.hero-articles-arrows button svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-articles-arrows button:not(:disabled):hover,
.hero-articles-arrows button:focus-visible {
  background: var(--color-accent-mint);
  border-color: var(--color-accent-mint);
  color: #fff;
}

.hero-article-meta {
  justify-content: flex-start;
}
