:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --ink: #1d232f;
  --muted: #77808c;
  --line: #e7e9ee;
  --accent: #3367d6;
  --accent-2: #ff5c35;
  --accent-3: #13a06f;
  --warn: #f5a623;
  --shadow: 0 8px 22px rgba(31, 43, 63, 0.06);
  --radius: 6px;
  font-family:
    "Inter", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.help-center-shell.portal-layout {
  display: block;
  max-width: 1120px;
  margin: 30px auto 0;
}

.help-center-intro {
  text-align: center;
  padding: 26px 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 43, 63, 0.08);
}

.help-center-intro h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 34px;
  line-height: 1.2;
}

.help-center-intro p {
  max-width: 820px;
  margin: 0 auto;
  color: #667085;
  line-height: 1.8;
}

.help-faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.help-faq-item {
  overflow: hidden;
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 43, 63, 0.05);
}

.help-faq-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  background: #fff;
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.help-faq-title b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 61, 154, 0.1);
  color: #ff3d9a;
  font-size: 20px;
}

.help-faq-body {
  display: none;
  padding: 0 20px 20px;
  color: #4b5563;
  line-height: 1.8;
}

.help-faq-item.open .help-faq-body {
  display: block;
}

.help-rich-body,
.help-rich-editor {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 16px;
  line-height: 1.8;
}

.help-rich-body *,
.help-rich-editor * {
  font-family: inherit !important;
  font-size: 16px !important;
  line-height: 1.8 !important;
}

.help-rich-body strong {
  font-weight: 900;
  color: inherit;
}

.help-rich-editor strong {
  font-weight: 900;
  color: inherit;
}

.help-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.button.compact {
  min-height: 34px;
  padding: 0 12px;
}

.help-color-button {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--help-color);
  box-shadow: 0 0 0 1px #d8dde7;
  cursor: pointer;
}

.help-rich-editor {
  min-height: 180px;
  padding: 14px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  outline: none;
}

.help-rich-editor:focus {
  border-color: #ff3d9a;
  box-shadow: 0 0 0 3px rgba(255, 61, 154, 0.12);
}

.help-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #98a2b3;
}

.help-admin-list {
  display: grid;
  gap: 10px;
}

.help-admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e5e7ef;
  border-radius: 8px;
  background: #fff;
}

.help-admin-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.help-admin-row-main strong {
  overflow: hidden;
  color: #1f2937;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-admin-row-main span {
  color: #667085;
  font-size: 13px;
}

.help-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .help-center-shell.portal-layout {
    margin-top: 30px;
  }

  .help-center-intro {
    padding: 18px;
  }

  .help-center-intro h1 {
    font-size: 26px;
  }

  .help-faq-title {
    gap: 12px;
    padding: 0 14px;
    font-size: 15px;
  }

  .help-admin-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  min-height: 0;
  padding: 0;
  border-bottom: 1px solid #d8dce4;
  background: #fff;
  box-shadow: 0 2px 12px rgba(28, 36, 52, 0.05);
  backdrop-filter: none;
}

.top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 28px));
  min-height: 74px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 154px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: #8a93a0;
  font-size: 12px;
}

.language-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  color: #7c8490;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 0 max(14px, calc((100vw - 1180px) / 2));
  background: #1f2633;
}

.main-nav a {
  min-height: 46px;
  padding: 14px 12px;
  border-radius: 0;
  color: #eef3ff;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
  background: #315bd2;
  color: #fff;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle {
  display: none;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: var(--ink);
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 22px 0 42px;
  outline: none;
}

.portal-hero {
  padding: 34px 18px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(49, 91, 210, 0.12), transparent 38%),
    #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.portal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #1f2633;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.portal-kicker {
  margin: 0;
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 800;
}

.portal-hero h1 {
  margin: 8px 0;
  font-size: clamp(24px, 4.5vw, 38px);
  line-height: 1.2;
  letter-spacing: 0;
}

.portal-subtitle {
  margin: 0 0 18px;
  color: #6d7580;
}

.hot-searches {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #697280;
  font-size: 13px;
}

.hot-searches a {
  color: #315bd2;
}

.portal-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.portal-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.portal-action strong,
.portal-action small {
  display: block;
}

.portal-action small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.35;
}

.action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(49, 91, 210, 0.12);
  color: #315bd2;
  font-weight: 900;
}

.action-icon.hot {
  background: rgba(255, 92, 53, 0.12);
  color: var(--accent-2);
}

.action-icon.go {
  background: rgba(19, 160, 111, 0.12);
  color: var(--accent-3);
}

.action-icon.tag {
  background: rgba(245, 166, 35, 0.16);
  color: #b66f00;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: start;
}

.feed-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.section-header.compact {
  align-items: start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-header.compact h2 {
  font-size: 19px;
}

.portal-more {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.portal-sidebar {
  top: 138px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.category-list a {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f9fb;
  color: #384353;
  font-size: 13px;
}

.category-list a:hover {
  border-color: rgba(49, 91, 210, 0.35);
  color: #315bd2;
}

.all-category-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.all-category-list a {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #182031;
}

.portal-category-panel {
  max-width: 1480px;
  margin: 14px auto 0;
  padding: 0 18px 36px;
}

.portal-category-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.portal-category-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: #17202f;
}

.portal-category-tab.active {
  border-color: rgba(244, 52, 148, 0.5);
  box-shadow: 0 10px 24px rgba(244, 52, 148, 0.12);
}

.category-tab-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(244, 52, 148, 0.12);
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
}

.portal-category-tab strong,
.portal-category-tab small {
  display: block;
}

.portal-category-tab strong {
  font-size: 15px;
  line-height: 1.2;
}

.portal-category-tab small {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.admin-category-tabs {
  margin-bottom: 14px;
}

.admin-category-tabs .portal-category-tab {
  min-height: 48px;
  padding: 8px 10px;
  box-shadow: none;
}

.admin-category-tabs .category-tab-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.admin-category-tabs .portal-category-tab strong {
  font-size: 14px;
}

.sub-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.sub-category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #344052;
  font-size: 13px;
  font-weight: 700;
}

.sub-category-chip.active {
  border-color: rgba(244, 52, 148, 0.45);
  background: rgba(244, 52, 148, 0.45);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-main {
  min-height: 390px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(23, 32, 28, 0.85), rgba(23, 32, 28, 0.58)),
    url("https://images.unsplash.com/photo-1552820728-8b83bb6b773f?auto=format&fit=crop&w=1600&q=82") center/cover;
  color: #fff;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-title h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.search-box {
  display: flex;
  gap: 8px;
  max-width: 720px;
  padding: 8px;
  margin: 0 auto;
  border: 1px solid #dbe1ea;
  border-radius: var(--radius);
  background: #f5f7fb;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #315bd2;
  color: #fff;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: #315bd2;
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
}

.button.danger {
  background: var(--accent-2);
}

.quick-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

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

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat strong {
  display: block;
  font-size: 28px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.quick-links {
  display: grid;
  gap: 10px;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(35, 45, 42, 0.05);
}

.quick-link small,
.muted {
  color: var(--muted);
}

.section {
  margin-top: 28px;
}

.section-header,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-header h2,
.page-title h1,
.admin-panel h2 {
  margin: 0;
}

.section-header p,
.page-title p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.tabs,
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #33423b;
  font-size: 13px;
}

.tab.active,
.chip.active,
.chip:hover,
.tab:hover {
  border-color: rgba(31, 138, 112, 0.3);
  background: rgba(31, 138, 112, 0.1);
  color: #0f6d57;
}

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

.game-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(35, 45, 42, 0.06);
}

.game-card:hover {
  transform: translateY(-2px);
}

.game-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px;
}

.game-card-topline,
.game-metrics,
.detail-meta,
.admin-row,
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comment-panda-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: transparent;
  background-image: url("assets/panda-comment-avatar.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.game-metrics {
  margin-top: auto;
}

.game-card h3 {
  min-height: 52px;
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.45;
}

.game-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.game-summary {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(41, 84, 163, 0.1);
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.hidden {
  background: rgba(214, 70, 53, 0.1);
  color: var(--accent-2);
}

.game-date,
.metric {
  color: var(--muted);
  font-size: 13px;
}

.game-date {
  margin-right: auto;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.panel,
.admin-panel,
.detail-hero,
.content-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(35, 45, 42, 0.05);
}

.panel {
  padding: 16px;
}

.panel h3 {
  margin: 0 0 12px;
}

.rank-list,
.simple-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list a,
.simple-list a {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.rank-list li:last-child a,
.simple-list li:last-child a {
  padding-bottom: 0;
  border-bottom: 0;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 10px;
  margin: 16px 0;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
}

.input,
.select {
  height: 42px;
  padding: 0 12px;
}

.textarea {
  min-height: 110px;
  resize: vertical;
  padding: 12px;
  line-height: 1.6;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(31, 138, 112, 0.65);
  box-shadow: 0 0 0 3px rgba(31, 138, 112, 0.12);
}

.empty {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  text-align: center;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.detail-hero {
  overflow: hidden;
}

.detail-cover {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.detail-body,
.admin-panel,
.content-block {
  padding: clamp(18px, 4vw, 28px);
}

.detail-body h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.detail-meta {
  margin: 12px 0 18px;
  color: var(--muted);
}

.prose {
  color: #34443d;
  line-height: 1.85;
}

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

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
}

.link-list {
  display: grid;
  gap: 10px;
}

.external-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.notice {
  padding: 12px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(31, 138, 112, 0.1);
  color: #245244;
  line-height: 1.65;
}

.comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.comment:last-child {
  border-bottom: 0;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: static;
  align-items: center;
}

.admin-menu button {
  justify-content: center;
  min-width: 128px;
}

.admin-layout > div {
  min-width: 0;
}

.admin-layout .admin-panel {
  width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 13px;
}

.admin-list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-list-head > div:first-child {
  flex: 1;
  min-width: 0;
}

.admin-list-head h2 {
  margin-bottom: 4px;
}

.admin-search-form {
  display: flex;
  width: min(680px, 100%);
  gap: 8px;
  margin-top: 12px;
}

.admin-search-form .input {
  flex: 1;
  min-width: 0;
}

.admin-list-tabs {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.admin-toolbar {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf7f2;
  color: #14825f;
  font-size: 12px;
  font-weight: 700;
}

.admin-status.draft {
  background: #f1f3f6;
  color: #6b7280;
}

.admin-scroll-box {
  overflow: auto;
  width: min(420px, 100%);
  max-width: 420px;
  height: 92px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #1f2937;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.admin-scroll-box p {
  margin: 6px 0 0;
}

.table-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-select-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4b5563;
  font-weight: 700;
}

.directory-row {
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-check-grid label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #374151;
}

.admin-tag-grid {
  display: grid;
  grid-template-columns: repeat(4, auto auto);
  justify-content: start;
  gap: 10px 8px;
  margin: 16px 0 22px;
}

.taxonomy-manager {
  display: grid;
  gap: 18px;
}

.taxonomy-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.taxonomy-card-head,
.taxonomy-add-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.taxonomy-card-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.taxonomy-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.taxonomy-add-form {
  justify-content: flex-start;
}

.taxonomy-add-form .input {
  width: min(360px, 100%);
}

.taxonomy-table .compact-input {
  width: 180px;
  height: 34px;
  padding: 0 10px;
}

.taxonomy-table .compact-select {
  width: 150px;
  height: 34px;
}

.media-dropzone {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 76px;
  padding: 14px;
  border: 1px dashed #aab3c2;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  text-align: center;
  cursor: pointer;
}

.media-dropzone small {
  color: #7b8492;
}

.media-dropzone.drag-over,
.media-dropzone:focus {
  border-color: #315bd2;
  background: #eef4ff;
  outline: none;
}

.media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.media-preview figure {
  overflow: hidden;
  width: 118px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.media-preview .video-thumb {
  width: 180px;
}

.media-preview video {
  display: block;
  width: 100%;
  height: 102px;
  border-radius: 6px 6px 0 0;
  background: #111;
  object-fit: cover;
}

.media-preview img {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: cover;
}

.media-preview figcaption {
  padding: 5px 6px;
  color: #667085;
  font-size: 12px;
  text-align: center;
}

.mini-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.mini-button.primary {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.mini-button.featured {
  border-color: transparent;
  background: #f73d99;
  color: #fff;
}

.mini-button.disabled,
.mini-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mini-button.danger {
  border-color: transparent;
  background: var(--accent-2);
  color: #fff;
}

.ellipsis-text,
.admin-ellipsis {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ellipsis {
  max-width: 220px;
}

.admin-ellipsis.summary {
  max-width: 360px;
}

.login-card {
  max-width: 430px;
  margin: 48px auto;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 84px;
  z-index: 35;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f73d99;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(247, 61, 153, 0.26);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  display: block;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-statement {
  width: 100%;
}

@media (max-width: 1020px) {
  .hero,
  .layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .admin-menu {
    position: static;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    display: none;
    position: absolute;
    inset: 72px 16px auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .hero-main {
    min-height: 350px;
  }

  .search-box,
  .section-header,
  .page-title,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar,
  .form-grid,
  .stat-grid,
  .game-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Standard game card template */
.standard-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.standard-card-grid .game-card {
  border-color: #e4e7ee;
  box-shadow: none;
}

.standard-card-grid .game-card:hover {
  border-color: rgba(49, 91, 210, 0.35);
  box-shadow: 0 10px 20px rgba(31, 43, 63, 0.08);
}

.standard-card-grid .game-cover {
  aspect-ratio: 4 / 3;
}

.standard-card-grid .game-card-body {
  padding: 10px 10px 11px;
}

.standard-card-grid .game-card-topline {
  justify-content: space-between;
  gap: 8px;
}

.standard-card-grid .game-card h3 {
  min-height: 44px;
  margin: 7px 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

.standard-card-grid .game-summary {
  display: none;
}

.standard-card-grid .chip {
  min-height: 24px;
  padding: 3px 7px;
  background: #f6f7fa;
  font-size: 12px;
}

.standard-card-grid .category-tags {
  gap: 5px;
  min-height: 54px;
  align-content: start;
}

.standard-card-grid .game-metrics {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eef0f4;
}

.standard-card-grid .metric {
  position: relative;
  color: #8a93a0;
  font-size: 12px;
}

.standard-card-grid .metric::before {
  margin-right: 4px;
  color: #a0a8b3;
}

.standard-card-grid .metric.views::before {
  content: none;
}

.standard-card-grid .metric.comments::before {
  content: none;
}

.status-pill {
  min-height: 22px;
  padding: 3px 7px;
  background: rgba(255, 92, 53, 0.12);
  color: var(--accent-2);
}

.game-date {
  color: #9aa2ad;
}

.panel {
  border-color: #e4e7ee;
  box-shadow: none;
}

.panel h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f4;
  font-size: 17px;
}

.rank-number {
  background: #315bd2;
}

@media (max-width: 1100px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .top-strip {
    min-height: 66px;
  }

  .language-list {
    display: none;
  }

  .main-nav {
    display: none;
    position: absolute;
    inset: 66px 14px auto;
    justify-content: flex-start;
    padding: 10px;
    border-radius: var(--radius);
    background: #1f2633;
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .portal-actions,
  .standard-card-grid,
  .portal-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-header.compact {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .portal-hero {
    padding: 24px 12px;
  }

  .search-box {
    flex-direction: column;
  }

  .portal-actions,
  .standard-card-grid,
  .portal-sidebar,
  .category-list {
    grid-template-columns: 1fr;
  }

  .portal-action {
    min-height: 66px;
  }
}

/* PC screenshot match: desktop first, no mobile compromises */
@media (min-width: 1000px) {
  body {
    min-width: 1200px;
    background: #f5f6f8;
  }

  .site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 30;
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .top-strip {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 2;
    width: 1470px;
    min-height: 78px;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .brand,
  .nav-toggle {
    pointer-events: auto;
  }

  .brand {
    min-width: 170px;
    gap: 9px;
  }

  .brand-mark {
    width: 47px;
    height: 43px;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-size: 0;
    letter-spacing: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.34);
    text-shadow: none;
  }

  .brand strong {
    color: #fff34d;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 25px;
    font-style: italic;
    letter-spacing: 0;
    line-height: 0.9;
    text-shadow: 2px 2px 0 #111, 0 0 14px rgba(255, 214, 0, 0.35);
  }

  .brand strong span {
    color: #fff;
    margin-left: 2px;
  }

  .brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  }

  .main-nav {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 1470px;
    min-height: 78px;
    padding: 0 210px;
    transform: translateX(-50%);
    background: transparent;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 78px;
    padding: 0 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.75);
  }

  .main-nav a:first-child {
    color: #ff4aa2;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: transparent;
    color: #ff4aa2;
  }

  .subpage .main-nav a,
  .subpage .main-nav a:first-child,
  .subpage .main-nav a.active,
  .subpage .main-nav a:hover {
    background: transparent;
    color: #ff4aa2;
  }

  .main-nav em {
    display: inline-flex;
    align-items: center;
    height: 16px;
    margin-left: 3px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ff4a3d;
    color: #fff;
    font-size: 10px;
    font-style: normal;
  }

  .app-shell {
    width: 100%;
    padding: 0 0 40px;
  }

  .portal-hero {
    position: relative;
    height: 443px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url("assets/liujiegame-hero.png") center top / cover no-repeat;
    box-shadow: none;
  }

  .portal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.34)),
      radial-gradient(circle at 50% 55%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.32));
  }

  .portal-hero-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 133px;
    z-index: 2;
    text-align: center;
  }

  .portal-hero-inner h1 {
    margin: 0 0 14px;
    color: #ff9800;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.68);
  }

  .portal-hero .portal-subtitle {
    margin: 0;
    color: #fff;
    font-size: 18px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }

  .portal-hero .search-box {
    position: absolute;
    left: 50%;
    top: 267px;
    z-index: 2;
    width: 780px;
    height: 51px;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(4px);
  }

  .portal-hero .search-box input {
    height: 51px;
    padding: 0 70px 0 34px;
    border-radius: 999px;
    background: transparent;
    color: #31353c;
    caret-color: #222;
  }

  .portal-hero .search-box input::placeholder {
    color: #969da6;
  }

  .portal-hero .search-button {
    position: absolute;
    right: 10px;
    top: 2px;
    width: 52px;
    min-height: 47px;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    color: #555b64;
    font-size: 31px;
    line-height: 1;
  }

  .home-update-title {
    position: absolute;
    left: 50%;
    top: 337px;
    z-index: 2;
    transform: translateX(-50%);
    color: #ff3d9a;
    font-size: 15px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
    white-space: nowrap;
  }

  .portal-hero .hot-searches {
    position: absolute;
    left: 50%;
    top: 339px;
    z-index: 2;
    width: 780px;
    margin: 0;
    transform: translateX(-50%);
    opacity: 1;
    pointer-events: auto;
  }

  .portal-hero .hot-searches a {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 8px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.78);
    color: #6f7680;
    font-size: 13px;
  }

  .portal-actions {
    position: relative;
    z-index: 3;
    width: 1470px;
    height: 89px;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: -39px auto 18px;
    padding: 0 70px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 43, 63, 0.08);
  }

  .portal-action {
    min-height: 89px;
    padding: 0 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .portal-action strong {
    color: #4b5563;
    font-size: 17px;
  }

  .portal-action small {
    color: #737b86;
    font-size: 13px;
  }

  .portal-action em {
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff7b39;
    color: #fff;
    font-size: 12px;
    font-style: normal;
  }

  .action-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff0e8;
    color: #ff7b39;
    font-size: 22px;
  }

  .action-icon.hot {
    background: #f5f5f5;
    color: #ff3d6f;
  }

  .action-icon.go {
    background: #f5f5f5;
    color: #ff4a87;
  }

  .action-icon.tag {
    background: #f3f3f3;
    color: #111;
  }

  .portal-layout {
    width: 1470px;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 auto;
  }

  .help-center-shell.portal-layout {
    width: min(1120px, calc(100vw - 96px));
    margin: 30px auto 0;
  }

  .feed-panel,
  .panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .section-header.compact {
    display: block;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
  }

  .section-header.compact h2,
  .panel h3 {
    position: relative;
    margin: 0 0 18px 16px;
    padding: 0;
    border: 0;
    color: #ff3d9a;
    font-size: 14px;
    font-weight: 500;
  }

  .section-header.compact h2::before,
  .panel h3::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 1px;
    width: 5px;
    height: 18px;
    border-radius: 999px;
    background: #ff3d9a;
  }

  .search-results-panel {
    display: block;
  }

  .search-summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    min-height: 89px;
    margin: 0 0 18px;
    padding: 18px 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 43, 63, 0.08);
  }

  .search-summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #e3e7ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
  }

  .search-summary-chip strong {
    color: #ff3d9a;
    font-size: 18px;
  }

  .search-summary-chip.active {
    border-color: #ff3d9a;
    background: #ff3d9a;
    color: #fff;
  }

  .search-summary-chip.active strong {
    color: #fff;
  }

  .compact-portal-hero ~ .search-results-panel {
    margin-top: 30px;
  }

  .tabs {
    gap: 18px;
  }

  .tab {
    min-height: 27px;
    padding: 4px 10px;
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 14px;
  }

  .tab.active {
    background: #f73d99;
    color: #fff;
  }

  .standard-card-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .standard-card-grid .game-card {
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(32, 40, 55, 0.06);
  }

  .standard-card-grid .game-cover-link {
    display: block;
    height: 154px;
    overflow: hidden;
    background: #eef1f6;
    line-height: 0;
  }

  .standard-card-grid .game-cover {
    display: block;
    height: 100%;
    aspect-ratio: auto;
    object-fit: fill;
  }

  .standard-card-grid .game-card-body {
    padding: 10px 10px 11px;
  }

  .standard-card-grid .game-card-topline {
    position: absolute;
    top: 8px;
    left: 8px;
  }

  .standard-card-grid .game-card h3 {
    min-height: 43px;
    margin: 8px 0 10px;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
    text-overflow: clip;
    white-space: normal;
  }

  .standard-card-grid .game-title {
    font-weight: 800;
  }

  .standard-card-grid .category-tags {
    gap: 6px;
    min-height: 25px;
    overflow: hidden;
  }

  .standard-card-grid .chip {
    min-height: 22px;
    padding: 2px 7px;
    border: 0;
    border-radius: 2px;
    background: #f0f2f5;
    color: #717985;
    font-size: 12px;
  }

  .standard-card-grid .category-chip {
    background: #eaf4ff;
    color: #1686f7;
  }

  .standard-card-grid .game-metrics {
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 0;
    border: 0;
    white-space: nowrap;
  }

  .standard-card-grid .game-date {
    margin-right: auto;
    color: #747d89;
    font-size: 12px;
  }

  .standard-card-grid .game-date::before {
    content: "∘";
    margin-right: 4px;
    color: #ff3d9a;
    font-weight: 900;
  }

  .standard-card-grid .metric {
    color: #8c95a1;
    font-size: 12px;
  }

  .standard-card-grid .metric::before {
    content: none;
    margin: 0;
  }

  .portal-sidebar {
    display: none;
  }

  .home-pagination {
    gap: 10px;
    margin-top: 28px;
  }

  .compact-portal-hero {
    height: 168px;
  }

  .compact-portal-hero .portal-hero-inner,
  .compact-portal-hero .home-update-title {
    display: none;
  }

  .compact-portal-hero .search-box {
    top: 86px;
  }

  .compact-portal-hero + .page-title,
  .compact-portal-hero ~ .layout,
  .compact-portal-hero ~ .admin-layout,
  .detail-page-shell {
    width: min(1540px, calc(100vw - 96px));
    margin: 24px auto 0;
  }

  .compact-portal-hero ~ .portal-category-panel {
    margin-top: 30px;
  }

  .compact-portal-hero + .page-title {
    padding: 22px 26px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(32, 40, 55, 0.06);
  }

  .compact-portal-hero + .page-title h1 {
    font-size: 30px;
  }

  .compact-portal-hero ~ .content-block {
    width: 1470px;
    margin: 18px auto 0;
  }

  .compact-portal-hero ~ .admin-panel.login-card {
    margin-top: 28px;
  }

  .detail-page-card {
    padding: 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(32, 40, 55, 0.06);
  }

  .detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f5;
    color: #7d8794;
    font-size: 14px;
  }

  .detail-breadcrumb a {
    color: #f73d99;
  }

  .detail-title-block {
    padding: 24px 0 18px;
  }

  .detail-title-block h1 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 34px;
    line-height: 1.25;
  }

  .detail-game-top {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    padding: 22px;
    border-radius: 8px;
    background: #f7f8fb;
  }

  .detail-game-top .detail-cover {
    width: 100%;
    height: 260px;
    max-height: none;
    border-radius: 7px;
    object-fit: cover;
  }

  .detail-summary-panel {
    display: grid;
    gap: 16px;
  }

  .detail-page-card .content-block {
    border: 0;
    border-radius: 8px;
    background: #f9fafc;
    box-shadow: none;
  }

  .detail-page-card .content-block h2 {
    position: relative;
    margin-top: 0;
    padding-left: 14px;
    color: #1f2937;
    font-size: 20px;
  }

  .detail-page-card .content-block h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 5px;
    height: 18px;
    border-radius: 999px;
    background: #f73d99;
  }

  .download-detail {
    display: grid;
    gap: 18px;
  }

  .detail-master-card {
    display: grid;
    gap: 22px;
    padding: 26px 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(32, 40, 55, 0.06);
  }

  .download-hero-card {
    position: relative;
    overflow: hidden;
    height: 222px;
    border-radius: 7px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48)),
      var(--detail-bg) center / cover no-repeat;
  }

  .detail-stat-pill {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    gap: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(0, 86, 126, 0.74);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
  }

  .download-hero-copy {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 15px;
    color: #fff;
  }

  .download-hero-copy h1 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
  }

  .download-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  .download-breadcrumb a {
    color: #fff;
  }

  .author-card,
  .resource-card {
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
  }

  .author-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 0 22px;
    border-bottom: 1px solid #eef0f4;
  }

  .author-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff3e8;
    font-weight: 900;
  }

  .author-card strong,
  .author-card span {
    display: block;
  }

  .author-card span {
    margin-top: 4px;
    color: #8a93a0;
  }

  .resource-card {
    margin: 0;
    padding: 0 0 18px;
  }

  .detail-resource-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .detail-resource-row .resource-card {
    padding-bottom: 18px;
  }

  .resource-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  .resource-title span,
  .download-box-title {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 7px;
    border: 1px solid #ff3d7d;
    border-radius: 4px;
    color: #ff3d7d;
    font-size: 13px;
    font-weight: 700;
  }

  .resource-game-name {
    display: block;
    overflow: hidden;
    max-width: 980px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
    font-size: 24px;
    line-height: 1.25;
  }

  .resource-card p {
    max-width: 980px;
    margin: 0 0 20px;
    color: #1f2937;
  }

  .download-box {
    position: relative;
    padding: 44px 20px 16px;
    border: 1px dashed #ff3d7d;
    border-radius: 8px;
  }

  .download-box-title {
    position: absolute;
    left: -1px;
    top: -1px;
    border-style: dashed;
    border-top-left-radius: 8px;
    background: #fff;
  }

  .download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 42px;
    max-width: 760px;
  }

  .detail-resource-row .download-grid {
    gap: 18px 92px;
    max-width: 760px;
  }

  .download-entry {
    display: grid;
    grid-template-columns: 152px minmax(0, 170px);
    align-items: center;
    gap: 12px;
    width: 334px;
    min-width: 334px;
  }

  .download-note {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    max-width: 170px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 4px;
    background: #f1f2f4;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 152px;
    height: 38px;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
  }

  .download-button.blue {
    background: #1479f6;
  }

  .download-button.cyan {
    background: #2393e7;
  }

  .download-button.dark {
    background: #111820;
  }

  .download-button.disabled {
    pointer-events: none;
    cursor: not-allowed;
    background: #c9ced6;
    color: #f8fafc;
  }

  .warm-tip {
    margin: 8px 0 16px;
    padding: 28px 32px;
    border: 1px solid #ffdca0;
    border-radius: 10px;
    background: #fff7e8;
    color: #c45a00;
  }

  .detail-resource-row .warm-tip {
    display: block;
    margin: 8px 0 16px;
    min-height: auto;
  }

  .warm-tip strong {
    display: block;
    margin-bottom: 16px;
    color: #ff7100;
    font-size: 20px;
  }

  .warm-tip p {
    margin: 0;
    font-size: 16px;
  }

  .warm-tip b {
    padding: 2px 6px;
    border: 1px dashed #ff7100;
    background: #fff;
  }

  .download-section {
    padding: 0 0 18px;
    background: transparent;
  }

  .download-section h2 {
    position: relative;
    margin: 18px 0 14px;
    padding-left: 0;
    color: #1f2937;
    font-size: 20px;
    line-height: 1.4;
  }

  .download-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 34px;
    height: 2px;
    background: #ff3d9a;
  }

  .download-section p {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.9;
  }

  .preserve-lines {
    white-space: pre-wrap;
  }

  .detail-comment-module {
    padding: 26px 28px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(32, 40, 55, 0.06);
  }

  .detail-comment-module h2 {
    position: relative;
    margin: 0 0 18px;
    padding-left: 14px;
    color: #1f2937;
    font-size: 20px;
  }

  .detail-comment-module h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 5px;
    height: 19px;
    border-radius: 999px;
    background: #ff3d9a;
  }

  .detail-comment-module h2 span {
    margin-left: 6px;
    color: #8a93a0;
    font-size: 13px;
    font-weight: 500;
  }

  .comment-compose {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 8px;
    background: #f7f8fa;
  }

  .comment-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #f4e4d5;
    color: #ff6a00;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(31, 41, 55, 0.12);
  }

  .comment-panda-face {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-image: url("assets/panda-comment-avatar.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .request-cute-avatar {
    position: relative;
    background: linear-gradient(145deg, #fff7df, #ffdca8);
  }

  .request-cute-avatar::before,
  .request-cute-avatar::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1f2937;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
  }

  .request-cute-avatar::before {
    left: 13px;
  }

  .request-cute-avatar::after {
    right: 13px;
  }

  .request-cute-avatar span {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4aa3ff, #2563eb);
  }

  .request-cute-avatar span::before {
    content: "?";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
  }

  .request-cute-avatar span::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: -5px;
    height: 3px;
    border-radius: 999px;
    background: #f97316;
  }

  .comment-compose-main {
    display: grid;
    gap: 10px;
  }

  .request-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comment-compose .textarea {
    min-height: 92px;
    border-color: transparent;
    background: #fff;
  }

  .comment-compose-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .comment-compose-actions .input {
    width: 220px;
    background: #fff;
  }

  @media (max-width: 900px) {
    .request-form-grid {
      grid-template-columns: 1fr;
    }
  }

  .comment-list {
    margin-top: 18px;
  }

  .video-frame {
    position: relative;
    overflow: hidden;
    max-width: 1084px;
    background: #111;
  }

  .video-frame img {
    width: 100%;
  }

  .video-frame video {
    display: block;
    width: 100%;
    max-height: 640px;
    background: #111;
  }

  .video-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 12px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.76));
    color: #fff;
    font-weight: 700;
  }

  .video-controls span:nth-child(3) {
    margin-left: auto;
  }

  .download-screenshots {
    display: grid;
    gap: 20px;
    justify-items: center;
  }

  .download-screenshots img {
    max-width: 1084px;
    width: 100%;
  }

  .download-screenshots .small-shot {
    width: 461px;
  }

  .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    color: #555f6d;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(32, 40, 55, 0.06);
  }

  .page-number.active {
    background: #f73d99;
    color: #fff;
  }

  .jump-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #66717f;
    font-size: 13px;
  }

  .jump-box .input {
    width: 72px;
    height: 36px;
    text-align: center;
  }

  .common-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    text-align: center;
  }

  .common-nav-grid a {
    display: grid;
    gap: 10px;
    justify-items: center;
    color: #3f4854;
    font-size: 14px;
  }

  .common-nav-grid span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #ff3d73;
    font-size: 50px;
    line-height: 1;
  }

  .common-nav-grid a:nth-child(2) span {
    color: #ff6a00;
  }

  .hot-rank-panel {
    margin-top: 2px;
  }

  .rank-feature {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 7px;
    background: #111;
    color: #fff;
  }

  .rank-feature img {
    width: 100%;
    height: 156px;
    object-fit: cover;
  }

  .rank-feature::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 70px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  }

  .rank-feature strong {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 13px;
    z-index: 1;
    font-size: 13px;
    line-height: 1.35;
  }

  .top-label {
    position: absolute;
    left: 0;
    top: 12px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 0 999px 999px 0;
    background: #ff2b75;
    color: #fff;
    font-size: 18px;
    font-style: italic;
    font-weight: 800;
  }

  .compact-rank {
    margin-top: 12px;
  }

  .compact-rank a {
    grid-template-columns: auto 1fr;
    gap: 6px 8px;
  }

  .top-small {
    grid-row: span 2;
    align-self: start;
    padding: 2px 5px;
    border-radius: 3px;
    background: #ff4b7d;
    color: #fff;
    font-size: 11px;
    font-style: italic;
  }

  .site-footer {
    width: 1470px;
    margin: 40px auto 0;
    border-radius: 8px;
  }
}
