/* =========================================================
   白色主题：纯白底、黑字、细线、少装饰
   只加载在首页 / 游戏详情 / 404，不影响后台和游戏播放页
   ========================================================= */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f3;
  --surface-3: #ecece9;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.2);
  --text: #111111;
  --text-soft: #333333;
  --muted: #6d6d6a;
  --muted-2: #92928d;
  --accent: #111111;
  --accent-strong: #111111;
  --accent-ink: #ffffff;
  --accent-dim: rgba(17, 17, 17, 0.06);
  --warm: #80613c;
  --danger: #b33a2b;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 8px 22px rgba(0, 0, 0, 0.05);

  --font-display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong",
    "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif;
}

html {
  background: #ffffff;
}

body {
  color: #111111;
  background: #ffffff;
}

::selection {
  color: #111111;
  background: #e8e8e4;
}

:focus-visible {
  outline-color: #111111;
}

/* ---------- 顶栏 ---------- */

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #ededeb;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand {
  color: #222222;
  font-weight: 600;
}

.brand .dot {
  background: #111111;
  box-shadow: none;
}

.top-link {
  color: #6d6d6a;
}

.top-link:hover {
  color: #111111;
}

.topbar .back-btn {
  color: #333333;
  background: #ffffff;
  border-color: #e4e4e1;
}

.topbar .back-btn:hover {
  color: #111111;
  background: #f5f5f3;
}

/* ---------- 个人信息 ---------- */

.hero {
  padding-top: 34px;
}

.hero-name,
.section-title,
.detail-title,
.detail-empty h1,
.related-head h2,
.panel-title {
  font-family: var(--font-display);
}

.hero-name {
  color: #111111;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-sub,
.hero-sub .sep {
  color: #777773;
}

.hero-bio {
  color: #3b3b39;
}

.avatar {
  background: #f5f5f3;
  border-color: #e2e2df;
  box-shadow: none;
}

.chip {
  color: #4a4a47;
  background: transparent;
  border-color: #e4e4e1;
  border-radius: 4px;
}

.chip svg {
  color: #777773;
}

/* ---------- 按钮 ---------- */

.btn {
  border-radius: 5px;
}

.btn-primary {
  color: #ffffff;
  background: #111111;
  box-shadow: none;
}

.btn-primary:hover {
  background: #2a2a28;
}

.btn-ghost {
  color: #111111;
  background: #ffffff;
  border-color: #d8d8d4;
}

.btn-ghost:hover {
  background: #f6f6f4;
  border-color: #bdbdb8;
}

.btn[disabled]:hover {
  background: #ffffff;
}

.divider {
  margin: 34px 0 26px;
  background: #e9e9e6;
}

/* ---------- 游戏列表 ---------- */

.section-head {
  padding-bottom: 12px;
  border-bottom: 1px solid #111111;
}

.section-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-count {
  color: #777773;
}

.filters {
  gap: 22px;
  margin: 16px 0 0;
  padding: 0 0 2px;
}

.filter {
  height: auto;
  padding: 0 0 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: #777773;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.filter:hover {
  color: #111111;
  border-color: transparent;
}

.filter.is-active {
  color: #111111;
  background: transparent;
  border-color: #111111;
}

.games-grid {
  gap: 24px 14px;
  margin-top: 20px;
}

.game-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  animation: none;
}

.game-card:hover {
  transform: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.game-cover {
  background: #f5f5f3;
  border: 1px solid #e4e4e1;
  border-radius: 4px;
}

.game-cover::after {
  border-color: rgba(17, 17, 17, 0.04);
}

.game-card:hover .game-cover {
  border-color: #bdbdb8;
}

.game-card:hover .game-cover img {
  transform: scale(1.02);
}

.game-card-body {
  padding: 9px 0 0;
}

.game-title {
  color: #111111;
  font-weight: 650;
}

.game-card:hover .game-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.game-desc {
  color: #777773;
}

.genre {
  color: #555551;
}

.genre::before {
  background: #111111;
}

.rating {
  color: #111111;
}

.rating.is-empty {
  color: #92928d;
}

.skeleton-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.skeleton {
  background: #f1f1ee;
  border-radius: 4px;
}

.skeleton::after {
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.72) 42%,
    transparent 64%
  );
}

.skeleton-cover {
  border-radius: 4px;
}

.empty-state {
  background: #fafaf8;
  border-color: #dcdcd8;
  border-radius: 8px;
}

.empty-state .empty-icon {
  color: #777773;
  background: #f1f1ee;
}

.empty-state h3 {
  color: #111111;
}

.empty-state p {
  color: #777773;
}

/* ---------- 联系弹窗 ---------- */

.modal {
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal-panel {
  background: #ffffff;
  border-color: #e4e4e1;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

.modal-close {
  color: #666662;
  background: #f5f5f3;
  border-color: #e4e4e1;
}

.modal-close:hover {
  color: #111111;
}

.modal-avatar {
  border-color: #dededb;
}

.modal-person h3 {
  color: #111111;
}

.modal-person p {
  color: #777773;
}

.modal-note {
  color: #3b3b39;
}

.contact-link {
  background: #fafaf8;
  border-color: #e8e8e5;
  border-radius: 6px;
}

.contact-link:hover {
  background: #f3f3f0;
  border-color: #d3d3cf;
}

.contact-link-label {
  color: #777773;
}

.contact-link-value {
  color: #222222;
}

.contact-link-value svg {
  color: #777773;
}

.contact-empty {
  color: #777773;
  border-color: #dcdcd8;
  border-radius: 6px;
}

.modal-tip {
  color: #92928d;
}

/* ---------- 游戏详情 ---------- */

.detail-main {
  max-width: 820px;
  padding-top: 24px;
}

.detail-cover {
  border-color: #e2e2df;
  border-radius: 8px;
  box-shadow: none;
}

.detail-cover::after {
  border-color: rgba(17, 17, 17, 0.05);
}

.detail-title {
  color: #111111;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.detail-lede {
  color: #666662;
}

.pill-genre {
  color: #333333;
  background: #f5f5f3;
  border-color: #e2e2df;
  border-radius: 4px;
}

.detail-stats {
  background: #ffffff;
  border-color: #e4e4e1;
  border-radius: 8px;
}

.stat + .stat::before {
  background: #ededeb;
}

.stat-value {
  color: #111111;
}

.stat-value svg,
.stat-value.is-accent {
  color: #111111;
}

.stat-label {
  color: #92928d;
}

.detail-play {
  border-radius: 5px;
}

.play-hint {
  color: #92928d;
}

.detail-panel {
  margin-top: 28px;
  padding: 24px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid #e6e6e3;
  border-radius: 0;
}

.panel-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-title::before {
  background: #111111;
  box-shadow: none;
}

.prose {
  color: #3b3b39;
}

.prose li::before {
  background: #111111;
}

.info-item {
  background: #fafaf8;
  border-color: #e8e8e5;
  border-radius: 6px;
}

.info-label {
  color: #92928d;
}

.info-value {
  color: #333333;
}

.related-head h2 {
  font-weight: 700;
}

.related-head a {
  color: #777773;
}

.sticky-play {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: #e4e4e1;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* 详情页里的全屏游戏层保持深色，但恢复深色文字变量 */
.inline-player {
  --bg: #090e0b;
  --bg-soft: #0a0f0c;
  --surface: #161f19;
  --surface-2: #1c2720;
  --surface-3: #24312a;
  --line: rgba(255, 255, 255, 0.065);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f2f4ee;
  --text-soft: #c4cec3;
  --muted: #8c998e;
  --muted-2: #6e7b70;
  --accent: #f2f4ee;
  --accent-strong: #ffffff;
  --accent-ink: #101410;
}

/* ---------- 404 ---------- */

body .detail-empty .empty-state {
  background: #ffffff;
}

/* ---------- 小屏细节 ---------- */

@media (max-width: 380px) {
  .games-grid {
    gap: 20px 12px;
  }

  .section-title {
    font-size: 21px;
  }
}

@media (min-width: 760px) {
  .games-grid {
    gap: 28px 18px;
  }
}
