.site-shell {
  width: min(var(--page-width), calc(100% - 48px));
  margin: auto;
}
.hero {
  position: relative;
  min-height: 300px;
  padding: 60px 0 30px;
  border-bottom: 1px dashed #e9d6c1;
}
.hero-actions {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 10px 15px;
  border: 1px solid #f4d9ce;
  border-radius: 999px;
  background: #fffefd;
  color: var(--color-coral-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 15px #7a4d3112;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.login-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #7a4d311f;
}
.login-link .bi-person-circle {
  font-size: 16px;
}
#login-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.login-link.is-authed {
  border-color: #cde6d0;
  background: #f6fff7;
  color: #2f7a43;
}
.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid #f4d9ce;
  border-radius: 999px;
  background: #fffefd;
  color: var(--color-coral-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 5px 15px #7a4d3112;
  transition:
    transform 0.16s,
    box-shadow 0.16s;
}
.announcement-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px #7a4d311f;
}
button.announcement-link {
  cursor: pointer;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-kicker,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--color-coral-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.kicker-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-coral);
  box-shadow: 0 0 0 4px #f4745524;
}
.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: 23px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1.08;
}
.title-highlight {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin-left: 9px;
  padding: 0 10px 4px;
  letter-spacing: -0.08em;
}
.title-highlight:before {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 48%;
  border-radius: 5px 12px;
  background: var(--color-butter);
  content: "";
  transform: rotate(-1.4deg);
}
.hero-lead {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.75;
}
.hero-bottom {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.start-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 17px 6px 7px;
  border-radius: 999px;
  background: var(--color-coral);
  color: white;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  box-shadow:
    0 6px 0 #d95d43,
    0 10px 18px #d95d432e;
  transition:
    transform 0.14s,
    box-shadow 0.14s;
}
.start-link:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #d95d43;
}
.start-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--color-coral-dark);
  font-size: 17px;
}
.collection-count {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}
/* 「开始逛游戏」旁的小字提示 */
.comment-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b09a86;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.comment-hint .bi {
  font-size: 12px;
  color: var(--color-coral);
}
.comment-hint.is-authed {
  color: #2f7a43;
}
.comment-hint.is-authed .bi {
  color: #2f7a43;
}
.press-start {
  margin-left: auto;
  color: #b8a695;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
}
.press-start span {
  margin-left: 5px;
  color: var(--color-coral);
  font-size: 15px;
}
.sticker-layer {
  position: absolute;
  z-index: 3;
  inset: 72px 2% 24px 48%;
  pointer-events: none;
}
.hero-doll {
  position: absolute;
  z-index: 6;
  right: 2%;
  bottom: 0;
  width: 210px;
  height: 252px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.hero-doll-video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(150, 100, 60, 0.22));
  pointer-events: auto;
  cursor: pointer;
}
.hero-doll-btn {
  position: absolute;
  z-index: 2;
  right: 50%;
  bottom: 8px;
  transform: translateX(50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 2px solid #8a6a20;
  border-radius: 999px;
  background: #ffdf4d;
  color: #5c4413;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 6px 0 #c9a52a;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  animation: doll-btn-pulse 1.8s ease-in-out infinite;
}
.hero-doll-btn:hover {
  transform: translateX(50%) translateY(-2px);
}
.hero-doll-btn:active {
  transform: translateX(50%) translateY(2px);
  box-shadow: 0 3px 0 #c9a52a;
}
.hero-doll.is-playing .hero-doll-btn {
  opacity: 0;
  visibility: hidden;
}
@keyframes doll-btn-pulse {
  0%, 100% { transform: translateX(50%) scale(1); }
  50% { transform: translateX(50%) scale(1.06); }
}
.hero-sticker {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: rotate(var(--sticker-rotation, 0deg));
  transition: left 0.24s ease, top 0.24s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.hero-sticker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-sticker.is-bopping {
  animation: sticker-bop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-sticker.is-icy::after {
  position: absolute;
  inset: -18%;
  border: 2px solid #b9f5ff;
  border-radius: 50%;
  background: radial-gradient(circle, #c8f7ff70, transparent 70%);
  box-shadow: 0 0 24px #93eaff;
  content: "";
  pointer-events: none;
  animation: ice-burst 0.65s ease-out forwards;
}
@keyframes sticker-bop {
  30% { transform: rotate(-12deg) scale(1.25) translateY(-9px); }
  65% { transform: rotate(8deg) scale(.92) translateY(2px); }
}
@keyframes ice-burst {
  to { opacity: 0; transform: scale(1.8) rotate(22deg); }
}
.hero-spark {
  position: absolute;
  color: var(--color-coral);
  pointer-events: none;
}
.spark-one {
  top: 100px;
  right: 24%;
  color: #f9c34d;
  font-size: 29px;
  transform: rotate(12deg);
}
.spark-two {
  top: 155px;
  right: 8%;
  color: #a9d7a8;
  font-size: 14px;
}
.recommend-section,
.library-section {
  padding-top: 42px;
}
.section-heading,
.library-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading h2,
.library-header h2,
.community-copy h2 {
  margin: 7px 0 0;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.055em;
}
.section-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
}
.section-kicker .bi {
  font-size: 13px;
  letter-spacing: 0;
}
.section-note,
.library-hint {
  margin: 0 0 5px;
  color: var(--color-soft);
  font-size: 12px;
  font-weight: 700;
}
.library-hint span {
  color: var(--color-coral);
}
.featured-game.card {
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.12fr);
  height: 270px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #efdfcf;
  border-radius: 25px;
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.featured-game:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.featured-cover {
  position: relative;
  height: 270px;
  min-height: 0;
  overflow: hidden;
  background: var(--color-surface-warm);
}
.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-cover:after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #2e1f186b);
  content: "";
}
.featured-cover .num,
.cover .num {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
  display: grid;
  min-width: 34px;
  height: 28px;
  place-items: center;
  border: 1px solid #ffffff59;
  border-radius: 9px;
  background: #392922c2;
  color: white;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
}
.featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 22px;
}
.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 7px 11px;
  background: #fff0c6;
  color: #78561e;
  font-size: 11px;
  font-weight: 900;
}
.featured-label .bi {
  color: #d39327;
}
.featured-body h2 {
  margin: 15px 0 7px;
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1.2;
}
.featured-description {
  max-width: 40ch;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.7;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 750;
}
.featured-meta .state {
  position: static;
  color: var(--color-green);
  text-shadow: none;
}
.featured-meta .play {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
}
.featured-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--color-coral);
  color: white;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #d95d43;
  transition:
    transform 0.14s,
    box-shadow 0.14s;
}
.featured-action:hover:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 3px 0 #d95d43;
}
.featured-action:disabled {
  background: #c9b6a6;
  box-shadow: 0 4px 0 #ab9585;
  cursor: not-allowed;
}
.featured-game.offline .featured-cover img,
.card.offline .cover img {
  filter: grayscale(1);
  opacity: 0.66;
}
.recommend-skeleton {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 268px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 25px;
  background: var(--color-surface);
}
.recommend-skeleton > span,
.recommend-skeleton i,
.skeleton-cover,
.skeleton-line {
  background: linear-gradient(100deg, #f4eade 20%, #fff8ee 40%, #f4eade 60%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.recommend-skeleton > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: 38px;
}
.recommend-skeleton i {
  display: block;
  width: 72%;
  height: 13px;
  border-radius: 8px;
}
.recommend-skeleton i:first-child {
  width: 40%;
  height: 24px;
}
.recommend-skeleton i:last-child {
  width: 38%;
  height: 38px;
  margin-top: 9px;
}
@keyframes skeleton-shimmer {
  to {
    background-position-x: -200%;
  }
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 19px;
}
.search-box {
  display: flex;
  flex: 1 1 360px;
  align-items: center;
  gap: 11px;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  color: #a28d7e;
  box-shadow: 0 4px 14px #61402809;
}
.search-box:focus-within {
  border-color: #f47455a6;
  box-shadow: 0 0 0 3px #f474551a;
}
.search-box > .bi {
  color: var(--color-coral);
  font-size: 17px;
}
.search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-ink);
  font-size: 14px;
}
.search-box input::placeholder {
  color: #ad9a8c;
}
.search-box kbd {
  flex: 0 0 auto;
  padding: 4px 6px;
  border: 1px solid #eee2d6;
  border-radius: 5px;
  background: #fffaf5;
  color: #a69486;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
}
.toolbar select {
  min-height: 48px;
  max-width: 180px;
  padding: 0 14px;
  border: 1px solid var(--color-line) !important;
  border-radius: 14px !important;
  background: var(--color-surface) !important;
  color: var(--color-ink) !important;
  font-size: 13px !important;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #ecc9a8;
  box-shadow: var(--shadow-lift);
}
.cover {
  position: relative;
  aspect-ratio: 1.48;
  overflow: hidden;
  background: #f4e5d4;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .cover img {
  transform: scale(1.035);
}
.cover:after {
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, #2c1e176b);
  content: "";
  pointer-events: none;
}
.cover .num {
  top: 11px;
  left: 11px;
  min-width: 31px;
  height: 25px;
  border-radius: 8px;
  font-size: 10px;
}
.owned-game-badge {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  padding: 5px 8px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  background: #fff4d8ed;
  color: #87520b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 2px 8px #39251926;
}
.state {
  position: absolute;
  z-index: 1;
  right: 11px;
  bottom: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-shadow: 0 1px 5px #0006;
}
.offline .state {
  color: #fff4e6;
}
.card-body {
  padding: 15px 15px 16px;
}
.card h2 {
  margin: 0 0 7px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-description {
  min-height: 40px;
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.7;
}
.play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: var(--color-coral-dark);
  font-size: 12px;
  font-weight: 900;
}
/* 卡片页脚：打开游戏按钮 + 评论按钮 + 右下角人数 */
.card-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 12px;
}
.play-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--color-coral);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 2px 0 #d95d43;
  transition:
    transform 0.14s,
    box-shadow 0.14s;
}
.play-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #d95d43;
}
.comment-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid #f4d9ce;
  border-radius: 999px;
  background: #fffefd;
  color: var(--color-coral-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
  cursor: pointer;
  transition:
    transform 0.14s,
    box-shadow 0.14s,
    background 0.14s;
}
.comment-btn:hover {
  transform: translateY(-1px);
  background: #fff6f2;
  box-shadow: 0 3px 8px #7a4d311f;
}
.play-count {
  margin-left: auto;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.play-count .count-num {
  color: var(--color-coral-dark);
  font-weight: 900;
}
/* 历史 / 今日 各占一行 */
.play-count-line {
  display: block;
  white-space: nowrap;
}
.play-count-today {
  color: var(--color-soft);
}
.play-count-today .today-num {
  color: var(--color-coral);
  font-weight: 900;
}
/* 不可用：能打开但玩不了，视觉上比「不在线」更明确 */
/* 不可用：能打开但玩不了，视觉上置灰，但按钮仍可点 */
.card.unavailable .play-btn {
  background: #b8b2ac;
  box-shadow: 0 3px 0 #9d9791;
}
.card.unavailable .cover img {
  filter: grayscale(0.72) brightness(0.94);
}
.state-unavailable {
  color: #ffe0d0;
}
.card.offline .play-btn {
  background: #c9b6a6;
  box-shadow: 0 3px 0 #ab9585;
  pointer-events: none;
}
/* 轻提示 */
.app-toast {
  position: fixed;
  z-index: 60;
  bottom: 26px;
  left: 50%;
  padding: 11px 20px;
  border-radius: 999px;
  background: #3a2a20f2;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
    opacity 0.22s,
    transform 0.22s;
}
.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------- 跳转模态框（左键卡片 / 点「打开」） ---------------- */
.jump,
.detail {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.jump-backdrop,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #3b29266b;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.jump.is-open .jump-backdrop,
.detail.is-open .detail-backdrop {
  opacity: 1;
}
body.jump-open {
  overflow: hidden;
}
.jump-box,
.detail-box {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 28px 76px #30201852;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.jump.is-open .jump-box,
.detail.is-open .detail-box {
  opacity: 1;
  transform: none;
}
.jump-cover,
.detail-cover {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: #f7eee8;
}
.jump-inner,
.detail-inner {
  padding: 18px 20px 20px;
}
.jump-x,
.detail-x {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fffc;
  color: var(--color-ink);
  box-shadow: 0 3px 12px #39251926;
  transition:
    background 0.14s,
    color 0.14s;
}
.jump-x:hover,
.detail-x:hover {
  background: var(--color-coral);
  color: #fff;
}
.jump-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--color-coral-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
/* 跳转框：主标题是「即将跳转」，游戏名作副标题 */
.jump-kicker {
  display: block;
  color: var(--color-ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.jump-kicker .bi {
  display: none;
}
.jump-name {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}
.detail-name {
  margin: 7px 0 6px;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.jump-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.8;
}
#jump-author {
  color: var(--color-coral-dark);
  font-weight: 900;
}
/* 链接 / 作者一行：输入框 + 复制按钮 */
.jump-field {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}
.jump-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ead9d0;
  border-radius: 9px;
  background: #fffaf7;
  color: #5a4033;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
}
.jump-copy,
.jump-claim {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: var(--color-coral);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px #d85b4633;
  transition:
    transform 0.14s,
    background 0.14s;
}
.jump-copy:hover,
.jump-claim:hover {
  transform: translateY(-1px);
  background: var(--color-coral-dark);
}
.jump-claim {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  font-size: 13px;
}
.jump-bar {
  margin-top: 12px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffe3d7;
}
.jump-bar i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: var(--color-coral);
  animation: jump-loading 1.05s ease-in-out infinite;
}
@keyframes jump-loading {
  50% {
    width: 88%;
  }
}
.jump-tip {
  margin: 10px 0 0;
  color: var(--color-soft);
  font-size: 11px;
  font-weight: 700;
}
.jump-now {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  background: var(--color-coral);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 3px 0 #d95d43;
  transition:
    transform 0.14s,
    box-shadow 0.14s;
}
.jump-now:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #d95d43;
}

/* ---------------- 详情模态框（右键卡片） ---------------- */
.detail-desc {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.85;
}
.detail-list {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--color-line);
  border-radius: 14px;
  background: #fffaf5;
}
.detail-list > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.detail-list > div + div {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--color-line);
}
.detail-list dt {
  flex: 0 0 58px;
  color: var(--color-soft);
  font-size: 12px;
  font-weight: 800;
}
.detail-list dd {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--color-ink);
  font-size: 12px;
  font-weight: 800;
  word-break: break-all;
}
.detail-list dd.is-unknown,
#detail-author.is-unknown {
  color: var(--color-soft);
  font-weight: 700;
}
.detail-list a {
  color: var(--color-coral-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-play {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 15px;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  background: var(--color-coral);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 3px 0 #d95d43;
  transition:
    transform 0.14s,
    box-shadow 0.14s;
}
.detail-play:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #d95d43;
}

/* ---------------- 评论模态框 ---------------- */
.comments {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.comments-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #3b29226b;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.comments.is-open .comments-backdrop {
  opacity: 1;
}
.comments-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  max-height: min(86vh, 720px);
  border: 1px solid var(--color-line);
  border-radius: 26px;
  background: var(--color-surface);
  box-shadow: 0 28px 78px #30201845;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.comments.is-open .comments-box {
  opacity: 1;
  transform: none;
}
body.comments-open {
  overflow: hidden;
}

/* 头部 */
.comments-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--color-line);
  background: linear-gradient(180deg, #fffaf4, var(--color-surface));
}
.comments-headline {
  flex: 1;
  min-width: 0;
}
/* 头部右侧：排序 + 关闭 */
.comments-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}
.comments-sort {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: #fff;
  color: var(--color-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.comments-sort:hover {
  border-color: #ffc7ae;
}
/* 「加载更多」 */
.comments-more {
  display: block;
  width: 100%;
  margin: 12px 0 6px;
  padding: 10px;
  border: 1px dashed var(--color-line);
  border-radius: 12px;
  background: #fffaf5;
  color: var(--color-coral-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.14s,
    border-color 0.14s;
}
.comments-more:hover:not(:disabled) {
  border-color: #ffc7ae;
  background: #fff3ec;
}
.comments-more:disabled {
  color: var(--color-soft);
  cursor: not-allowed;
}
.comments-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--color-coral-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.comments-head h2 {
  margin: 6px 0 4px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.comments-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}
#comments-game {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-ink);
}
.comments-dot {
  color: var(--color-soft);
}
.comments-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: #fff;
  color: var(--color-muted);
  transition:
    transform 0.14s,
    background 0.14s,
    color 0.14s;
}
.comments-close:hover {
  transform: rotate(90deg);
  background: var(--color-coral);
  color: #fff;
}

/* 列表 */
.comments-scroll {
  flex: 1;
  min-height: 140px;
  overflow-y: auto;
  padding: 16px 24px 4px;
  overscroll-behavior: contain;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.comment-item {
  padding: 14px 0;
  border-bottom: 1px dashed #f2e3d5;
  animation: comment-in 0.26s ease both;
}
.comment-item:last-child {
  border-bottom: 0;
}
@keyframes comment-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffd9c7, #ffeccd);
  color: var(--color-coral-dark);
  font-size: 15px;
  font-weight: 900;
}
.comment-who {
  min-width: 0;
}
.comment-name {
  display: block;
  font-size: 14px;
  font-weight: 900;
}
.comment-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--color-soft);
  font-size: 11px;
  font-weight: 700;
}
.comment-meta .bi-geo-alt-fill {
  font-size: 10px;
  color: var(--color-coral);
}
.comment-sep {
  color: var(--color-soft);
}
.comment-text {
  margin: 9px 0 0 46px;
  color: #4a352c;
  font-size: 14px;
  line-height: 1.75;
  word-break: break-word;
  white-space: pre-wrap;
}
.comment-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.comment-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 0.14s,
    background 0.14s,
    color 0.14s;
}
.comment-like:hover {
  background: #fff3ec;
  color: var(--color-coral-dark);
}
.comment-like.is-liked {
  border-color: #ffd9c7;
  background: #fff0e8;
  color: var(--color-coral-dark);
}
.comment-like.is-liked .bi {
  animation: like-pop 0.3s ease;
}
@keyframes like-pop {
  40% {
    transform: scale(1.35);
  }
}

/* 空状态 */
.comments-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 42px 20px;
  color: var(--color-soft);
  text-align: center;
}
.comments-empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: #fff4ea;
  color: var(--color-coral);
  font-size: 24px;
}
.comments-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

/* 输入区 */
.comments-form {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--color-line);
  background: #fffaf5;
}
.comments-composer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.comments-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffe2d3, #fff0da);
  color: var(--color-coral-dark);
  font-size: 16px;
}
.comments-input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  max-height: 132px;
  padding: 11px 14px;
  border: 1px solid var(--color-line);
  border-radius: 15px;
  background: #fff;
  color: var(--color-ink);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
  transition:
    border-color 0.14s,
    box-shadow 0.14s;
}
.comments-input:focus {
  border-color: #ffc7ae;
  outline: none;
  box-shadow: 0 0 0 3px #ffd0bb4d;
}
.comments-input:disabled {
  background: #f6efe9;
  color: var(--color-soft);
  cursor: not-allowed;
}
.comments-form-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  padding-left: 46px;
}
.comments-login-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-coral-dark);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comments-login-tip:hover {
  color: var(--color-coral);
}
.comments-counter {
  margin-left: auto;
  color: var(--color-soft);
  font-size: 11px;
  font-weight: 700;
}
.comments-form-foot .comments-login-tip:not([hidden]) + .comments-counter {
  margin-left: 0;
}
.comments-submit {
  padding: 9px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--color-coral);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 3px 0 #d95d43;
  transition:
    transform 0.14s,
    box-shadow 0.14s,
    background 0.14s;
}
.comments-submit:hover:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #d95d43;
}
.comments-submit:disabled {
  background: #e4d5c9;
  box-shadow: 0 3px 0 #d2c0b2;
  cursor: not-allowed;
}

/* ---------------- 登录确认弹层 ---------------- */
.login-prompt {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-prompt-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #3b29266b;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.16s ease;
}
.login-prompt.is-open .login-prompt-backdrop {
  opacity: 1;
}
.login-prompt-box {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  padding: 26px 24px 22px;
  border-radius: 22px;
  background: var(--color-surface);
  box-shadow: 0 26px 70px #30201852;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition:
    opacity 0.18s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.login-prompt.is-open .login-prompt-box {
  opacity: 1;
  transform: none;
}
.login-prompt-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffe2d3, #fff0da);
  color: var(--color-coral-dark);
  font-size: 24px;
}
.login-prompt-box h2 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.login-prompt-box p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.8;
}
.login-prompt-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}
.login-prompt-cancel,
.login-prompt-ok {
  flex: 1;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.14s,
    background 0.14s;
}
.login-prompt-cancel {
  background: #f6efe9;
  color: var(--color-muted);
}
.login-prompt-cancel:hover {
  background: #efe4db;
}
.login-prompt-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-coral);
  color: #fff;
  box-shadow: 0 3px 0 #d95d43;
}
.login-prompt-ok:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #d95d43;
}
.skeleton-card {
  min-width: 0;
  overflow: hidden;
  padding-bottom: 15px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}
.skeleton-cover {
  aspect-ratio: 1.48;
}
.skeleton-line {
  height: 12px;
  margin: 14px 14px 0;
  border-radius: 8px;
}
.skeleton-line.short {
  width: 56%;
  margin-top: 9px;
}
.empty-state,
.load-error {
  margin: 18px 0 0;
  padding: 22px;
  border: 1px dashed #e8d6c4;
  border-radius: 16px;
  background: #fffefdba;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}
.load-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.load-error .bi {
  color: var(--color-coral);
  font-size: 18px;
}
.text-button {
  padding: 4px 7px;
  border: 0;
  background: transparent;
  color: var(--color-coral-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.community-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 17px;
  margin: 48px 0 0;
}
.community-card,
.official-card {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.community-card {
  justify-content: space-between;
  gap: 20px;
  padding: 24px 25px 24px 29px;
  background: linear-gradient(115deg, #fff5d9, #fffefd 77%);
}
.community-card:after {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-butter) 0 10px,
    transparent 10px 17px
  );
  content: "";
  opacity: 0.75;
}
.community-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.community-copy h2 {
  margin-top: 11px;
  font-size: 25px;
}
.community-copy > p:not(.section-kicker) {
  max-width: 34ch;
  margin: 9px 0 16px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.75;
}
.group-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--color-coral);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 #d95d43;
  transition: transform 0.14s;
}
.group-link:hover {
  transform: translateY(2px);
}
.group-number {
  display: block;
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 11px;
}
.group-number strong {
  margin-left: 5px;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.qr-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #f0e6da;
  border-radius: 16px;
  background: white;
  text-decoration: none;
  box-shadow: 0 5px 17px #61402814;
}
.qr-link img {
  width: 140px;
  height: 140px;
  image-rendering: pixelated;
}
.qr-link span {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 800;
}
/* 微信群 + QQ 群 两个二维码并排 */
.qr-pair {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
}
/* 微信群那个是 button（点开看大图），复位成与 .qr-link 一致的观感 */
button.qr-link {
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.qr-link-wechat {
  transition:
    transform 0.14s,
    box-shadow 0.14s;
}
.qr-link-wechat:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px #6140281f;
}
/* 群二维码 + 站长联系方式 竖排 */
.community-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
}
.admin-contact {
  padding: 12px 13px;
  border: 1px solid #f0e6da;
  border-radius: 16px;
  background: #fffefd;
  box-shadow: 0 5px 17px #61402814;
}
.admin-contact-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 9px;
  color: var(--color-coral-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.admin-links {
  display: grid;
  gap: 7px;
}
.admin-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #fff8f3;
  color: var(--color-ink);
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.14s,
    box-shadow 0.14s,
    background 0.14s;
}
.admin-link:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 5px 13px #7a4d3120;
}
.admin-link > .bi {
  flex: 0 0 auto;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
}
.admin-douyin > .bi {
  background: linear-gradient(135deg, #2b2b2b, #4d4d4d);
}
.admin-xhs > .bi {
  background: linear-gradient(135deg, #ff2442, #ff5a72);
}
.admin-link-text {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.admin-link-name {
  font-size: 12px;
  font-weight: 900;
}
.admin-link-id {
  overflow: hidden;
  color: var(--color-soft);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-contact-tip {
  margin: 8px 0 0;
  color: var(--color-soft);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}
/* 二维码查看弹层 */
.qr-viewer {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qr-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #2b1d16cc;
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.qr-viewer-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(340px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: #fffefd;
  box-shadow: 0 22px 55px #2b1d1652;
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 0.18s,
    opacity 0.18s;
}
.qr-viewer.is-open .qr-viewer-box {
  transform: scale(1);
  opacity: 1;
}
.qr-viewer-x {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f5ece2;
  color: var(--color-muted);
  cursor: pointer;
}
.qr-viewer-box h2 {
  margin: 0 0 13px;
  font-size: 16px;
}
.qr-viewer-img {
  width: 100%;
  max-width: 250px;
  border-radius: 14px;
  background: #f7f2ec;
}
.qr-viewer-tip {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.official-card {
  flex-wrap: wrap;
  align-content: center;
  column-gap: 13px;
  row-gap: 9px;
  padding: 24px;
  background: #fffefd;
}
.official-mark {
  display: grid;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 13px;
  background: #eaf5e8;
  color: #4b8a5a;
  font-size: 20px;
}
.official-copy {
  min-width: 0;
}
.official-label {
  margin: 0 0 3px;
  color: var(--color-soft);
  font-size: 10px;
  font-weight: 800;
}
.official-domain {
  margin: 0;
  color: var(--color-ink);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.04em;
}
.official-warning {
  margin: 2px 0 0;
  color: var(--color-coral-dark);
  font-size: 11px;
  font-weight: 850;
}
.copy-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 43px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #eedbc9;
  border-radius: 11px;
  background: #fff7ec;
  color: var(--color-coral-dark);
  font-size: 12px;
  font-weight: 900;
  transition:
    background 0.15s,
    transform 0.15s;
}
.copy-button:hover {
  transform: translateY(-1px);
  background: #fff0d6;
}
.copy-friend-button {
  border-color: #db5b3f;
  background: var(--color-coral);
  color: white;
  box-shadow: 0 3px 0 #d95d43;
}
.copy-friend-button:hover {
  background: var(--color-coral-dark);
}
.copy-status {
  width: 100%;
  min-height: 1em;
  margin: 0;
  color: var(--color-green);
  font-size: 11px;
  text-align: center;
}
.friend-share-preview {
  width: 100%;
  margin: 0;
  padding: 9px;
  border-radius: 9px;
  background: #fff7ec;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 26px 0 34px;
  color: var(--color-soft);
  font-size: 10px;
}
.site-footer p {
  margin: 0;
  text-align: center;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
}
.footer-contact a {
  color: var(--color-muted);
  font-weight: 700;
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--color-coral-dark);
  text-decoration: underline;
}
.site-footer > span {
  color: #b49e8c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.site-footer > span .bi {
  color: var(--color-coral);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-weight: 800;
  text-decoration: none;
}
.welcome {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}
.welcome-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #3b292285;
  backdrop-filter: blur(3px);
}
.welcome-box {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: 23px;
  background: var(--color-surface);
  box-shadow: 0 25px 70px #3020183d;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
}
.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: white;
  color: var(--color-muted);
}
.welcome-box h2 {
  margin: 12px 0 8px;
  font-size: 27px;
  letter-spacing: -0.04em;
}
.welcome-box > p:not(.section-kicker) {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.9;
}
.notice-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--color-coral-dark);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.notice-group-number {
  margin: 12px 0 0 !important;
  color: var(--color-muted);
}
.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.notice-copy-button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.notice-copy-status {
  min-height: 1.4em;
  margin: 5px 0 0 !important;
  color: var(--color-coral-dark) !important;
  font-size: 12px !important;
}
.notice-service {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-bg-soft, #fff8f2);
}
.notice-service h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.5;
}
.notice-service p {
  margin: 7px 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
}
.notice-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--color-coral-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.notice-service-link:hover,
.notice-service-link:focus-visible {
  filter: brightness(1.08);
}
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .community-section {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  }
  .qr-link img {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 720px) {
  .site-shell {
    width: calc(100% - 28px);
  }
  .hero {
    min-height: 260px;
    padding-top: 68px;
  }
  .sticker-layer {
    inset: 90px 0 18px 42%;
  }
  .hero-doll {
    width: 119px;
    height: 147px;
    right: 1%;
  }
  .hero-doll-btn {
    font-size: 12px;
    padding: 7px 14px;
    bottom: 4px;
  }
  .hero h1 {
    font-size: clamp(40px, 10vw, 58px);
  }
  .hero-lead {
    max-width: 31ch;
    font-size: 14px;
  }
  .spark-one {
    top: 110px;
    right: 7%;
    font-size: 22px;
  }
  .spark-two,
  .press-start {
    display: none;
  }
  .hero-bottom {
    gap: 12px;
    margin-top: 21px;
    flex-wrap: wrap;
  }
  .collection-count {
    font-size: 11px;
  }
  /* 小屏：顶部右侧 3 个按钮同行，压缩内边距 */
  .hero-actions {
    top: 18px;
    gap: 6px;
  }
  .login-link,
  .announcement-link {
    padding: 8px 10px;
    font-size: 12px;
  }
  .login-link {
    max-width: 92px;
  }
  .recommend-section,
  .library-section {
    padding-top: 32px;
  }
  .section-heading,
  .library-header {
    margin-bottom: 14px;
  }
  .section-note {
    display: none;
  }
  .library-hint {
    max-width: 115px;
    font-size: 10px;
    line-height: 1.6;
    text-align: right;
  }
  .featured-game.card,
  .recommend-skeleton {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    height: 210px;
    min-height: 0;
    border-radius: 19px;
  }
  .featured-cover {
    height: 210px;
    min-height: 0;
  }
  .featured-body {
    padding: 16px;
  }
  .featured-label {
    gap: 5px;
    padding: 6px 7px;
    font-size: 9px;
  }
  .featured-body h2 {
    margin-top: 10px;
    font-size: 21px;
  }
  .featured-description {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .featured-meta {
    gap: 7px;
    margin-top: 9px;
    font-size: 10px;
  }
  .featured-action {
    gap: 6px;
    margin-top: 13px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .recommend-skeleton > div {
    gap: 10px;
    padding: 15px;
  }
  .toolbar {
    flex-wrap: wrap;
    margin: 14px 0;
  }
  .search-box {
    flex-basis: 100%;
    height: 45px;
  }
  .toolbar select {
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    min-height: 43px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .card,
  .skeleton-card {
    border-radius: 16px;
  }
  .cover .num {
    top: 8px;
    left: 8px;
    min-width: 28px;
    height: 23px;
  }
  .state {
    right: 8px;
    bottom: 8px;
    font-size: 9px;
  }
  .card-body {
    padding: 11px 10px 12px;
  }
  .card h2 {
    margin-bottom: 5px;
    font-size: 14px;
  }
  .card-description {
    min-height: 35px;
    font-size: 10px;
    line-height: 1.55;
  }
  .play {
    gap: 5px;
    margin-top: 8px;
    font-size: 10px;
  }
  /* 小屏卡片页脚：按钮一行，人数掉到下一行右对齐，避免撑宽卡片 */
  .card-foot {
    gap: 5px 6px;
    margin-top: 9px;
  }
  .play-btn,
  .comment-btn {
    padding: 4px 9px;
    font-size: 11px;
  }
  .play-count {
    flex-basis: 100%;
    margin-left: 0;
    text-align: right;
    font-size: 10px;
  }
  .skeleton-line {
    margin-right: 10px;
    margin-left: 10px;
  }
  .community-section {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 34px;
  }
  .community-card {
    gap: 12px;
    padding: 20px 20px 20px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .community-copy h2 {
    font-size: 22px;
  }
  .community-copy > p:not(.section-kicker) {
    font-size: 11px;
  }
  /* 小屏：两个二维码并排占一行，站长联系方式另起一行（避免三个元素挤一行） */
  .community-side {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .qr-pair {
    justify-content: center;
  }
  .qr-pair .qr-link {
    flex: 1 1 0;
    min-width: 0;
    max-width: 150px;
  }
  .admin-contact {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 11px;
  }
  .admin-link {
    padding: 6px 8px;
  }
  .admin-link > .bi {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .admin-link-name {
    font-size: 11px;
  }
  .admin-link-id {
    font-size: 9px;
  }
  .qr-link {
    padding: 7px;
    border-radius: 12px;
  }
  .qr-link img {
    width: 95px;
    height: 95px;
  }
  .qr-link span {
    font-size: 9px;
  }
  .official-card {
    display: grid;
    grid-template-columns: 43px 1fr;
    padding: 17px;
  }
  .copy-actions,
  .copy-status,
  .friend-share-preview {
    grid-column: 1/-1;
  }
  .copy-button {
    margin-top: 0;
  }
  .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 25px;
  }
  .site-footer p {
    order: 1;
    width: 100%;
  }
  /* 小屏评论模态框：贴近底部的抽屉形态 */
  .comments {
    padding: 0;
    align-items: flex-end;
  }
  .comments-box {
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .comments.is-open .comments-box {
    transform: none;
  }
  .comments-head {
    padding: 18px 18px 13px;
  }
  .comments-head h2 {
    font-size: 21px;
  }
  .comments-scroll {
    padding: 12px 18px 2px;
  }
  .comment-text {
    margin-left: 0;
    font-size: 13px;
  }
  .comments-form {
    padding: 12px 18px 16px;
  }
  .comments-form-foot {
    padding-left: 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .comments-counter {
    order: 2;
  }
  .comments-submit {
    order: 3;
    padding: 8px 18px;
  }
  .comments-login-tip {
    order: 1;
    width: 100%;
    margin-right: 0;
  }
  .comments-login-tip[hidden] + .comments-counter {
    margin-left: auto;
  }
}
@media (max-width: 380px) {
  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .featured-game.card,
  .recommend-skeleton {
    grid-template-columns: 1fr;
    height: auto;
  }
  .featured-cover {
    height: auto;
    min-height: 0;
    aspect-ratio: 1.8;
  }
  .featured-body {
    padding: 15px;
  }
  .community-card {
    align-items: flex-start;
  }
  .qr-link img {
    width: 80px;
    height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-cover,
  .skeleton-line,
  .recommend-skeleton > span,
  .recommend-skeleton i {
    animation: none;
  }
}

.seo-info {
  margin-top: 42px;
  padding: 25px 28px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-surface);
}
.seo-info h2 { margin: 8px 0; font-size: 22px; }
.seo-info h3 { margin: 20px 0 8px; font-size: 15px; }
.seo-intro, .seo-faq p, .seo-fallback { color: var(--color-muted); font-size: 13px; line-height: 1.8; }
.seo-faq details { padding: 10px 0; border-top: 1px solid var(--color-line); }
.seo-faq summary { color: var(--color-ink); font-weight: 800; cursor: pointer; }
.seo-faq p { margin: 8px 0 0; }
.seo-fallback { padding: 20px; }
.seo-fallback li { margin: 5px 0; }
@media (max-width: 720px) { .seo-info { margin-top: 32px; padding: 20px; } }
