:root {
  --bg: #08090d;
  --panel: #12141c;
  --panel-2: #181b25;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eee7d7;
  --muted: #a8a091;
  --hot: #d33a55;
  --gold: #d6536a;
  --cyan: #d94861;
  --green: #64d982;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); overflow-x: hidden; }
body {
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 0%, rgba(211,58,85, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(217, 72, 97, 0.12), transparent 24rem),
    linear-gradient(180deg, #0d1018 0%, #08090d 42%, #0b0d12 100%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input { font: inherit; }
img, video, canvas, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, p, a, span, td, th, button, input, .s-name, .s-info, .file-info {
  overflow-wrap: anywhere;
}

.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.top-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.84);
  color: var(--muted);
  font-size: 12px;
}
.top-bar .container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar a { color: var(--gold); margin-left: 12px; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 20, 0.94);
  border-bottom: 1px solid rgba(214,83,106, 0.28);
  backdrop-filter: blur(12px);
}
.header .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo-area { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.logo-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214,83,106, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(211,58,85, 0.95), rgba(214,83,106, 0.88));
  color: #130803;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 0 26px rgba(211,58,85, 0.22);
}
.site-name .site-title { color: #fff3d0; display: block; font-size: 21px; letter-spacing: 1px; }
.site-name .index-title { color: #fff3d0; display: block; font-size: 21px; letter-spacing: 1px; }
.site-name span { color: var(--muted); display: block; font-size: 12px; }
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  border-radius: 6px;
  color: #d7cfbf;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(211,58,85, 0.18);
  color: #fff;
  box-shadow: 0 0 12px rgba(211,58,85, 0.15);
}
.search-box { display: flex; min-width: 230px; }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: #0a0c11;
  color: var(--text);
  outline: 0;
  padding: 9px 11px;
}
.search-box input:focus { border-color: rgba(217, 72, 97, 0.55); }
.search-box button,
.btn,
.dl-btn,
.big-btn {
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #160905;
  cursor: pointer;
  font-weight: 800;
  padding: 9px 14px;
  white-space: nowrap;
  min-height: 40px;
}
.search-box button { border-radius: 0 6px 6px 0; }
.btn:hover,
.dl-btn:hover,
.big-btn:hover,
.search-box button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.hero-section {
  border-bottom: 1px solid var(--line);
  padding: 50px 0 38px;
}
.hero-section .container { text-align: center; }
.hero-section h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 1px;
  line-height: 1.2;
}
.subtitle,
.page-subtitle {
  color: var(--muted);
  margin-top: 10px;
}
.hero-stats,
.stats-bar,
.info-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.hero-stat,
.stat-item,
.info-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.78);
  padding: 16px;
  box-shadow: var(--shadow);
}
.stats-bar { grid-template-columns: repeat(3, 1fr); }
.num {
  color: var(--gold);
  font-size: 26px;
  font-weight: 900;
}
.label { color: var(--muted); font-size: 12px; }

.container-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5px 0 36px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}
.home-grid > * {
  min-width: 0;
}
.page-title {
  color: #f5e1e5;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
}
.section-title {
  color: #f5e1e5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  margin: 22px 0 12px;
}
.section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 5px;
  background: linear-gradient(var(--hot), var(--gold));
}
.card,
.table-wrapper,
.filter-section,
.download-hero,
.tutorial-section,
.faq-section,
.notice-bar,
.guide {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.86);
  box-shadow: var(--shadow);
}
.card { padding: 15px; margin-bottom: 12px; }
.sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}
.sidebar .card {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding: 14px;
  border-color: rgba(220, 90, 112, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(14, 17, 25, 0.92);
}
.sidebar .card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--hot), var(--gold), var(--cyan));
  opacity: 0.82;
}
.sidebar .section-title {
  min-height: 28px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8e7ea;
  font-size: 16px;
  line-height: 1.25;
}
.sidebar .section-title::before {
  width: 4px;
  height: 16px;
  border-radius: 4px;
}
.section-title-between {
  justify-content: space-between;
}
.section-title-between > span {
  min-width: 0;
}
.section-title-more {
  margin-left: auto;
  color: #9aa4b4;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.section-title-more:hover {
  color: #c5ccd8;
}
.breadcrumbs {
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 95%;
}
.breadcrumbs a {
  color: #c9c9c9;
}
.breadcrumbs a:hover {
  color: var(--app-orange, #c83c55);
}
.breadcrumbs .page-title {
  display: inline;
  color: #888;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}
@keyframes marquee { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

.server-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 27, 37, 0.94), rgba(15, 17, 24, 0.94));
  display: grid;
  grid-template-columns: minmax(110px, 0.85fr) minmax(160px, 1.7fr) minmax(68px, 0.48fr) minmax(74px, 0.7fr) minmax(82px, 0.62fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  padding: 12px;
}
.server-row > * { min-width: 0; }
.server-row > div:nth-child(4) {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.server-row:hover { border-color: rgba(211,58,85, 0.52); }
.s-name,
.s-name-link { color: #f6e3e7; font-weight: 900; }
.s-info { color: var(--muted); font-size: 13px; }
.s-time { color: var(--cyan); font-weight: 800; }
.s-tag,
.badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
}
.tag-hot,
.badge-hot { background: rgba(211,58,85, 0.18); color: #ff9b85; }
.tag-new,
.badge-rise { background: rgba(217, 72, 97, 0.14); color: #8fe8ff; }
.tag-rec,
.badge-gold { background: rgba(214,83,106, 0.16); color: #e9788b; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.server-row .btn { min-width: 0; padding-left: 10px; padding-right: 10px; }

.filter-bar,
.filter-row,
.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-bar { margin-bottom: 10px; }
.filter-bar button,
.filter-btn,
.rank-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #10131a;
  color: #d8cfbc;
  cursor: pointer;
  min-height: 40px;
  padding: 8px 13px;
}
.filter-bar button.active,
.filter-btn.active,
.rank-tab.active {
  border-color: rgba(211,58,85, 0.64);
  background: rgba(211,58,85, 0.16);
  color: #fff;
}
.filter-section { display: grid; gap: 12px; margin: 20px 0; padding: 15px; }
.filter-label { color: var(--gold); font-weight: 800; min-width: 76px; }

.sidebar .hot-list li {
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  display: grid;
  grid-template-columns: 30px minmax(0, 0.78fr) minmax(124px, 1.12fr);
  gap: 8px;
  align-items: center;
  padding: 8px 0;
}
.sidebar .hot-list li:last-child {
  border-bottom: 0;
}
.sidebar .hot-list li > span:nth-child(2) {
  min-width: 0;
  color: #f6ead0;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar .hot-list li > span:nth-child(3) {
  min-width: 0;
  border-radius: 0;
  background: transparent;
  color: #dc5a70;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  line-height: 24px;
  padding: 0;
}
.side-rank-main,
.side-rank-feature {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.side-rank-feature {
  display: flex;
  gap: 4px;
  justify-content: flex-start;
  justify-self: stretch;
  max-width: 100%;
}
.side-rank-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(220, 90, 112, 0.14);
  color: #dc5a70;
  font-style: normal;
  line-height: 22px;
  padding: 0 7px;
}
.home-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.home-game-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 126px;
  padding: 9px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.028));
  text-align: center;
}
.home-game-card:hover {
  border-color: rgba(200, 60, 85, 0.58);
  background: linear-gradient(180deg, rgba(200, 60, 85, 0.15), rgba(255, 255, 255, 0.04));
  transform: translateY(-1px);
}
.home-game-card img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}
.home-game-card span {
  width: 100%;
  color: #f6e3e7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-game-card .cq-stars {
  font-size: 12px;
}
.side-link-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}
.side-link-item:last-child {
  border-bottom: 0;
}
.side-link-item a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 18px;
  border-radius: 6px;
  color: #dce7f4;
  font-size: 13px;
  font-weight: 800;
}
.side-link-name,
.side-link-feature {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-link-name {
  flex: 1 1 auto;
}
.side-link-feature {
  flex: 0 1 128px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}
.side-link-item a::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}
.side-link-item a:hover {
  background: rgba(200, 60, 85, 0.12);
  color: #f8e7ea;
}
.side-comment-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  color: #b7c2d5;
  font-size: 13px;
  line-height: 1.55;
}
.side-comment-item:last-child {
  margin-bottom: 0;
}
.side-comment-item span {
  flex-shrink: 0;
  color: #8f9ab0;
  font-size: 12px;
  white-space: nowrap;
}

.sidebar-subscribe-card p {
  margin: -2px 0 10px;
  color: #b7c2d5;
  font-size: 13px;
  line-height: 1.55;
}

.sidebar-subscribe-form {
  display: grid;
  gap: 8px;
}

.sidebar-subscribe-form input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a0c11;
  color: var(--text);
  outline: 0;
  padding: 9px 11px;
}

.sidebar-subscribe-form input:focus {
  border-color: rgba(217, 72, 97, 0.55);
}

.sidebar-subscribe-form button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--hot), var(--gold));
  color: #160905;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 12px;
}
.rank-num,
.rank-position {
  border-radius: 6px;
  display: grid;
  font-weight: 900;
  height: 28px;
  place-items: center;
}
.rank-num { width: 28px; }
.rank-position {
  white-space: nowrap;
  width: 58px;
}
.rank-1,
.pos-1 { background: #d6536a; color: #170c03; }
.rank-2,
.pos-2 { background: #c9d3df; color: #11151b; }
.rank-3,
.pos-3 { background: #c07a3b; color: #fff; }
.rank-other,
.pos-other { background: #272b36; color: #d7cfbf; }

.table-wrapper {
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; min-width: 900px; width: 100%; }
th,
td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; }
th { background: #171b25; color: #e9788b; font-size: 13px; }
tbody tr:hover { background: rgba(211,58,85, 0.08); }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}
.pagination button,
.pagination span,
.pagination a {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #10131a;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
}
.pagination .current,
.pagination button.active { background: var(--hot); color: #fff; border-color: var(--hot); }

.rank-tabs { margin: 20px 0; }
.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.about-feature-grid {
  margin-top: 16px;
}
.server-score {
  color: var(--gold);
  font-weight: 800;
}
.news-meta {
  color: var(--muted);
  font-size: 12px;
}
.site-tested-card {
  border: 1px solid rgba(200, 60, 85, 0.42);
  background: rgba(16, 18, 22, 0.94);
  margin-bottom: 20px;
  padding: 22px;
}
.site-tested-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.site-tested-card h3 {
  min-width: 0;
  color: var(--theme07-lime);
  font-size: 23px;
  line-height: 1.25;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-tested-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.site-tested-tags span {
  border-radius: 999px;
  background: rgba(220, 90, 112, 0.13);
  color: #dc5a70;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
}
.site-tested-card p {
  color: #c8cbd2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 8px;
}
.site-tested-meta {
  color: #d7dae0;
  font-size: 14px;
  font-weight: 800;
}
.site-tested-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 128px;
  min-height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(220,82,106, 0.95), rgba(181,67,90, 0.72));
  color: #120601;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  padding: 8px 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-card { border: 1px solid var(--line); border-radius: 8px; background: rgba(18, 20, 28, 0.86); overflow: hidden; }
.rank-card-header { background: #171b25; color: #e9788b; font-weight: 900; padding: 12px 14px; }
.rank-item {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 62px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}
.rank-item .name { color: #f6e3e7; font-weight: 900; }
.rank-item .meta,
.rank-item small { color: var(--muted); font-size: 12px; }
.trend-up { color: var(--green); }
.trend-down { color: #ff8f7c; }
.trend-stable { color: var(--cyan); }

.notice-bar { color: #ffe0a2; margin: 18px 0; padding: 13px 15px; }
.download-hero { display: grid; gap: 10px; margin-bottom: 18px; padding: 24px; }
.big-btn { width: fit-content; font-size: 16px; padding: 12px 20px; }
.file-info { color: var(--muted); font-size: 13px; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.dl-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.86);
  display: grid;
  gap: 9px;
  padding: 16px;
}
.dl-icon { color: var(--cyan); font-size: 28px; }
.dl-desc,
.dl-meta,
.faq-answer,
.step-card p,
.guide { color: var(--muted); }
.dl-meta { font-size: 12px; }
.tutorial-section,
.faq-section,
.guide { margin-top: 20px; padding: 18px; }
.certificate {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
}
.certificate p {
  flex: 0 1 calc(50% - 9px);
  margin-top: 0;
  text-align: center;
}
.certificate img {
  display: block;
  width: 100%;
  height: 580px;
  object-fit: contain;
}
.certificate i {
  display: inline-block;
  margin-top: 5px;
  font-size: 12px;
}
.qq {
  color: #f60;
  text-decoration: underline;
}
.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10131a;
  padding: 14px;
}
.step-num { color: var(--hot); font-size: 24px; font-weight: 900; }
.faq-item { border-top: 1px solid var(--line); padding: 13px 0; }
.faq-question { color: #f6e3e7; font-weight: 900; }

.friend-links {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 9, 13, 0.82);
  padding: 22px 0 20px;
}
.friend-links .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.friend-links-head {
  color: #f5e1e5;
  font-size: 15px;
  font-weight: 900;
  line-height: 32px;
  white-space: nowrap;
}
.menu-friend-container {
  min-width: 0;
}
.friend-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.friend-nav .menu-item {
  min-width: 0;
}
.friend-nav a {
  display: block;
  max-width: 160px;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid rgba(214,83,106, 0.2);
  border-radius: 6px;
  background: rgba(18, 20, 28, 0.76);
  color: #cfc6b6;
  font-size: 12px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.friend-nav a:hover {
  border-color: rgba(214,83,106, 0.58);
  background: rgba(211,58,85, 0.14);
  color: #f5e1e5;
  transform: translateY(-1px);
}

.footer {
  border-top: 1px solid rgba(214,83,106, 0.28);
  background: #08090d;
  color: #766f63;
  padding: 28px 0;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-links a { color: var(--gold); font-size: 13px; }

/* 面包屑固定在header下方 */
.breadcrumb-fixed {
  position: sticky;
  top: 76px;
  z-index: 49;
  background: rgba(12, 14, 20, 0.96);
  backdrop-filter: blur(8px);
}
.breadcrumb-fixed .breadcrumbs {
  border: none;
  background: transparent;
  font-size: 12px;
  padding: 10px 0;
}

@media (max-width: 980px) {
  .header .container { align-items: stretch; flex-direction: column; padding: 12px 0; }
  .search-box { width: 100%; }
  .home-grid { grid-template-columns: 1fr; }
  .hero-stats,
  .stats-bar,
  .info-panel,
  .tutorial-steps { grid-template-columns: repeat(2, 1fr); }
  .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container,
  .container-main { width: calc(100% - 16px); max-width: 100%; }
  .top-bar { display: none; }
  .header { position: sticky; top: 0; z-index: 100; }
  .header .container { gap: 8px; padding: 10px 0; }
  .logo-area { min-width: 0; width: 100%; }
  .nav-links {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
  .nav-links a {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    min-width: 0;
    padding: 9px 4px;
    text-align: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(211,58,85, 0.16);
    color: #fff;
  }
  .search-box { display: none; }
  .hero-stats,
  .stats-bar,
  .info-panel,
  .tutorial-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat,
  .stat-item,
  .info-item { padding: 12px 8px; }
  .sidebar {
    gap: 10px;
  }
  .sidebar .card {
    padding: 12px;
  }
  .home-game-grid {
    gap: 8px;
  }
  .home-game-card {
    min-height: 58px;
    padding: 8px 5px;
  }
  .home-game-card img {
    display: none;
  }
  .server-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 8px;
    padding: 10px;
  }
  .server-row .s-info {
    grid-column: 1 / -1;
    line-height: 1.45;
  }
  .server-row .s-time {
    grid-column: 1;
  }
  .server-row > div:nth-child(4) {
    align-self: center;
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-end;
    min-width: 0;
    text-align: right;
  }
  .server-row > div:nth-child(4) .s-tag {
    margin-bottom: 3px;
    max-width: 100%;
    white-space: normal;
  }
  .server-row .btn,
  .server-row > span[style] {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
  .rank-item { grid-template-columns: 48px 1fr; }
  .rank-position {
    width: 48px;
  }
  .rank-card-header { padding: 10px 8px; }
  .rank-item {
    gap: 8px;
    padding: 10px 8px;
  }
  .rank-item .trend-up,
  .rank-item .trend-down,
  .rank-item .trend-stable,
  .rank-item .score { grid-column: 2; }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-card,
  .step-card { padding: 12px; }
  .dl-card h4 { font-size: 14px; line-height: 1.35; }
  .dl-icon { font-size: 22px; }
  .big-btn { width: 100%; }
  .table-wrapper { max-width: 100%; }
  table { min-width: 720px; }
  .friend-links {
    padding: 18px 0;
  }
  .friend-links .container {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .friend-links-head {
    line-height: 1.4;
  }
  .friend-nav {
    gap: 7px;
  }
  .friend-nav a {
    max-width: 138px;
    min-height: 30px;
    padding: 4px 9px;
  }
}

@media (max-width: 420px) {
  body { line-height: 1.55; }
  .container,
  .container-main { width: calc(100% - 12px); max-width: 100%; }
  .header .container { gap: 12px; }
  .logo-area { gap: 8px; }
  .logo-icon { width: 40px; height: 40px; font-size: 17px; }
  .site-name .site-title { font-size: 17px; }
  .site-name span { font-size: 11px; }
  .nav-links { gap: 3px; }
  .nav-links a {
    font-size: 11px;
    padding: 7px 2px;
  }
  .filter-bar button,
  .filter-btn,
  .rank-tab,
  .pagination button,
  .pagination a,
  .pagination span { padding: 8px 10px; }
  .hero-section { padding: 34px 0 26px; }
  .hero-stat,
  .stat-item,
  .info-item,
  .card,
  .download-hero,
  .tutorial-section,
  .faq-section,
  .guide { padding: 12px; }
  .certificate {
    flex-wrap: wrap;
    gap: 12px;
  }
  .certificate p {
    flex-basis: 100%;
  }
  .certificate img {
    height: auto;
  }
  .num { font-size: 22px; }
  .section-title { font-size: 17px; }
  .site-tested-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .site-tested-card h3 {
    max-width: 100%;
  }
  .site-tested-btn {
    max-width: 100%;
  }
  .search-box input { padding: 9px; }
  .download-grid,
  .tutorial-steps { gap: 8px; }
  .dl-card,
  .step-card { padding: 10px; }
  .dl-desc,
  .dl-meta,
  .step-card p { font-size: 12px; line-height: 1.45; }
  table { min-width: 680px; }
}

.cq-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.cq-chip {
  border: 1px solid #343947;
  background: #10131b;
  color: #d9dfef;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
}
.cq-chip.active {
  background: #c72f4d;
  border-color: #c72f4d;
  color: #fff;
}
.cq-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.cq-game-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  color: inherit;
  text-decoration: none;
}
.cq-game-card img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
}
.cq-game-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #fff;
}
.cq-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: #aeb7c8;
  font-size: 13px;
}
.cq-game-desc {
  margin: 0 0 10px;
  color: #c6ccda;
  line-height: 1.6;
  font-size: 14px;
}
.cq-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffbc60;
  font-size: 13px;
}
.cq-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 32px;
  border-radius: 6px;
  background: #c72f4d;
  color: #fff;
  font-weight: 700;
}
.cq-side-item,
.detail-side-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.cq-side-item:last-child,
.detail-side-item:last-child {
  border-bottom: 0;
}
.cq-side-rank,
.detail-side-rank {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #262b38;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cq-side-item strong,
.detail-side-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cq-side-item span,
.detail-side-item span {
  color: #aeb7c8;
  font-size: 12px;
}
.cq-tag-cloud,
.detail-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cq-tag-cloud li,
.detail-tag-cloud li {
  min-width: 0;
}
.cq-tag-cloud a,
.detail-tag-cloud a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: #d9dfef;
  text-decoration: none;
  font-size: 13px;
}
/* screenshot slider – PC: multi-image row; mobile: single-image slider */
.screenshot-slider {
  position: relative;
  padding: 0 46px;
}
.ss-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}
.ss-track {
  --ss-gap: 14px;
  display: flex;
  gap: var(--ss-gap);
  flex-wrap: nowrap;
  transition: transform .35s ease;
}
.ss-track img {
  width: calc((100% - (var(--ss-gap) * 2)) / 3);
  min-width: 0;
  height: auto;
  flex-shrink: 0;
  border-radius: 8px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #25171c;
}
.ss-arrow {
  display: grid;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  place-items: center;
  transition: background .2s, transform .2s;
}
.ss-arrow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ss-arrow:hover {
  background: rgba(0, 0, 0, .72);
  transform: translateY(-50%) scale(1.06);
}
.ss-prev { left: 10px; }
.ss-next { right: 10px; }
.ss-dots { display: none; }
.game-detail-hero {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(211,58,85, .11), rgba(217, 72, 97, .06)),
    rgba(255, 255, 255, .04);
  margin-bottom: 16px;
}
.game-detail-hero img {
  width: 148px;
  height: 148px;
  border-radius: 10px;
  object-fit: cover;
  background: #25171c;
}
.game-detail-hero h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 26px;
  line-height: 1.25;
}
.game-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #aeb7c8;
  font-size: 13px;
}
.game-detail-meta span {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
}
.game-detail-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.game-detail-kpis span {
  border: 1px solid rgba(214,83,106, .24);
  border-radius: 999px;
  background: rgba(214,83,106, .09);
  color: #ffe0a2;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}
.game-detail-kpis a {
  color: inherit;
}
.download-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr));
  gap: 10px;
  max-width: 460px;
}
.download-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 118px;
  border-radius: 7px;
  background: #c72f4d;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.download-actions a:nth-child(2) {
  background: #238b57;
}
.download-actions a:nth-child(3) {
  background: #2f65d9;
}
.detail-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  margin-bottom: 16px;
}
.detail-panel h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
}
.detail-panel p {
  color: #c6ccda;
  line-height: 1.85;
  margin: 0 0 10px;
}
.game-template-detail {
  display: grid;
  gap: 8px;
}
.game-template-detail p {
  margin: 0;
}
.game-template-detail i {
  color: #f8e9ec;
  font-style: normal;
}
.game-template-detail span {
  display: inline-block;
  width: 18px;
}
.game-template-detail b {
  display: inline-flex;
  margin: 0 6px 6px 0;
  font-weight: 800;
}
.game-template-detail b a {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.065);
  color: #d9dfef;
  padding: 3px 8px;
}
.game-template-detail .warm-tip {
  color: #c83c55;
  font-weight: 900;
}
.game-template-detail p > a {
  color: #dc5a70;
}
.game-content {
  color: #c6ccda;
  font-size: 14px;
  line-height: 1.9;
}
.game-content p {
  margin-bottom: 10px;
}
.screenshot-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.screenshot-track img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
}
.related-game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
}
.related-game {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  padding: 10px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.related-game:nth-child(n+11) {
  display: none;
}
.related-game img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}
.related-game div {
  width: 100%;
  min-width: 0;
  color: #f5e1e5;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .cq-game-grid {
    grid-template-columns: 1fr;
  }
  .cq-game-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .cq-game-card img {
    width: 82px;
    height: 82px;
  }
  .game-detail-hero {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .game-detail-hero img {
    width: 96px;
    height: 96px;
  }
  .game-detail-hero h2 {
    font-size: 21px;
  }
  .download-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
  .screenshot-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cq-toolbar {
    gap: 8px;
  }
  .cq-chip {
    padding: 7px 10px;
    font-size: 13px;
  }
  .cq-game-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .cq-game-card img {
    width: 72px;
    height: 72px;
  }
  .cq-game-card h3 {
    font-size: 16px;
  }
  .cq-game-meta,
  .cq-game-desc {
    font-size: 12px;
  }
  .game-detail-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
    padding: 20px 14px;
  }
  .game-detail-hero img {
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }
  .game-detail-hero h2 {
    font-size: 18px;
    margin: 0 0 6px;
  }
  .game-detail-meta {
    justify-content: center;
  }
  .game-detail-meta span {
    font-size: 12px;
    padding: 4px 8px;
  }
  .download-actions {
    grid-template-columns: 1fr;
  }
  .download-actions a {
    width: 100%;
    min-width: 0;
  }
  .detail-panel {
    padding: 14px;
  }
  .detail-panel h3 {
    font-size: 18px;
  }
  .related-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .related-game:nth-child(n+7) {
    display: none;
  }
  .related-game {
    padding: 8px 4px;
  }
  .related-game img {
    width: 52px;
    height: 52px;
  }
  .related-game div {
    font-size: 12px;
  }
  /* screenshot slider – mobile: single-image slider */
  .screenshot-slider {
    padding: 0;
  }
  .ss-track {
    --ss-gap: 0px;
    flex-wrap: nowrap;
    transition: transform 0.35s ease;
  }
  .ss-track img {
    width: 100%;
    flex-shrink: 0;
  }
  .ss-arrow {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.55);
  }
  .ss-arrow:hover { background: rgba(211,58,85,0.7); }
  .ss-prev { left: 6px; }
  .ss-next { right: 6px; }
  .ss-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
  }
  .ss-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
  }
.ss-dots span.active { background: var(--hot); }
}

/* theme07 mobile-game download theme */
:root {
  --app-bg: #070a12;
  --app-panel: rgba(16, 20, 32, 0.92);
  --app-card: rgba(255, 255, 255, 0.055);
  --app-card-strong: rgba(255, 255, 255, 0.085);
  --app-line: rgba(255, 255, 255, 0.11);
  --app-orange: #c83c55;
  --app-yellow: #dc5a70;
  --app-mint: #b9485b;
  --app-blue: #39a7ff;
}

body {
  background:
    linear-gradient(180deg, rgba(200, 60, 85, 0.10), transparent 360px),
    linear-gradient(135deg, rgba(185, 72, 91, 0.08), transparent 34rem),
    linear-gradient(180deg, #080b13 0%, #070a12 46%, #090d16 100%);
}

.top-bar {
  background: #070a12;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header {
  background: rgba(9, 13, 22, 0.94);
  border-bottom: 1px solid rgba(200, 60, 85, 0.26);
}

.logo-area {
  min-width: 260px;
}

.site-name .site-title {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0;
}



.nav-links {
  gap: 8px;
}

.nav-links a {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(200, 60, 85, 0.55);
  background: linear-gradient(135deg, rgba(200, 60, 85, 0.30), rgba(220, 90, 112, 0.13));
}

.search-box input {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
}

.search-box button,
.btn,
.dl-btn,
.big-btn,
.cq-download-btn {
  background: linear-gradient(135deg, #c83c55, #dc5a70);
  color: #1b0c05;
  box-shadow: 0 10px 22px rgba(200, 60, 85, 0.18);
}

.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.96) 0%, rgba(7, 10, 18, 0.72) 48%, rgba(7, 10, 18, 0.92) 100%);
}

.hero-section .container {
  text-align: left;
}

.hero-section h2 {
  max-width: 780px;
  color: #f8e7ea;
}

.subtitle,
.page-subtitle {
  max-width: 760px;
  color: #b7c2d5;
}

.hero-stats,
.stats-bar,
.info-panel {
  align-items: stretch;
}

.hero-stat,
.stat-item,
.info-item,
.card,
.table-wrapper,
.filter-section,
.download-hero,
.tutorial-section,
.faq-section,
.notice-bar,
.guide,
.detail-panel,
.game-detail-hero {
  border-color: var(--app-line);
  background: linear-gradient(180deg, var(--app-card-strong), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.hero-stat,
.stat-item,
.info-item {
  position: relative;
  overflow: hidden;
}

.hero-stat::after,
.stat-item::after,
.info-item::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--app-orange), var(--app-mint));
  opacity: 0.72;
}

.num {
  color: var(--app-yellow);
}

.section-title {
  margin-top: 26px;
  letter-spacing: 0;
}

.section-title::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(200, 60, 85, 0.14);
  background: var(--app-orange);
}

.server-row {
  border-color: rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.server-row:hover,
.cq-game-card:hover,
.dl-card:hover,
.related-game:hover {
  border-color: rgba(200, 60, 85, 0.52);
  transform: translateY(-2px);
}

.server-row,
.cq-game-card,
.dl-card,
.related-game,
.rank-card {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.s-name,
.s-name-link,
.cq-game-card h3,
.rank-item .name {
  color: #f8e9ec;
}

.s-tag,
.badge,
.cq-game-meta span,
.game-detail-meta span,
.game-detail-kpis span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.065);
}

.filter-bar button,
.filter-btn,
.rank-tab,
.cq-chip {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.055);
}

.filter-bar button.active,
.filter-btn.active,
.rank-tab.active,
.cq-chip.active {
  border-color: rgba(200, 60, 85, 0.62);
  background: rgba(200, 60, 85, 0.20);
}

.cq-game-grid {
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.cq-game-card {
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 150px;
  border-color: rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.cq-game-card img {
  width: 108px;
  height: 108px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.cq-game-meta {
  gap: 6px;
}

.cq-download-row {
  margin-top: 8px;
}

.download-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(200, 60, 85, 0.18), rgba(185, 72, 91, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.download-hero h3,
.download-hero p {
  max-width: 760px;
}

.download-hero .big-btn {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 190px;
}

.download-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.dl-card {
  border-color: rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.dl-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(57, 167, 255, 0.13);
}

.rank-card {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
}

.rank-card-header {
  background: linear-gradient(90deg, rgba(200, 60, 85, 0.22), rgba(185, 72, 91, 0.08));
  color: #fff5d5;
}

.rank-item {
  grid-template-columns: 70px minmax(0, 1fr) auto auto;
}

.rank-position,
.rank-num,
.cq-side-rank,
.detail-side-rank {
  border-radius: 8px;
}

.game-detail-hero {
  grid-template-columns: 168px minmax(0, 1fr);
  padding: 22px;
}

.game-detail-hero > img {
  width: 168px;
  height: 168px;
  border-radius: 8px;
}

.download-actions a {
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.download-actions a:nth-child(1) {
  background: linear-gradient(135deg, #b9485b, #8fffd0);
  color: #062016;
}

.download-actions a:nth-child(2) {
  background: linear-gradient(135deg, #39a7ff, #9ad4ff);
  color: #061727;
}

.download-actions a:nth-child(3) {
  background: linear-gradient(135deg, #c83c55, #dc5a70);
  color: #1b0c05;
}

.related-game {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
}

@media (max-width: 980px) {
  .hero-section {
    background:
      linear-gradient(180deg, rgba(7, 10, 18, 0.84), rgba(7, 10, 18, 0.98));
  }

  .download-hero {
    grid-template-columns: 1fr;
  }

  .download-hero .big-btn {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .site-name .site-title::before {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 13px;
  }

  .hero-section .container {
    text-align: left;
  }

  .hero-section h2 {
    max-width: 280px;
    font-size: 26px;
  }

  .cq-game-grid {
    grid-template-columns: 1fr;
  }

  .cq-game-card {
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 0;
  }

  .cq-game-card img {
    width: 86px;
    height: 86px;
    border-radius: 12px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .game-detail-hero {
    grid-template-columns: 1fr;
  }
}

/* cq download list: compact game index */
body[data-page="cq-download"] .home-grid {
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 16px;
}

body[data-page="cq-download"] main {
  min-width: 0;
}

.cq-hot-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.cq-hot-row a {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: #fff7df;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.cq-hot-row img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
}

.cq-hot-row span,
.cq-game-card h3 {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-filter-panel {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.cq-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: #b7c2d5;
  font-size: 13px;
  line-height: 1.5;
}

.cq-filter-row:first-child {
  border-top: 0;
}

.cq-filter-row strong {
  color: #dc5a70;
  font-weight: 900;
}

.cq-filter-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border-radius: 4px;
  color: #d9dfef;
}

.cq-filter-row a:hover,
.cq-filter-row a.active,
.cq-filter-row a.current {
  background: rgba(200, 60, 85, 0.22);
  color: #fff;
}

.cq-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.cq-list-head .section-title {
  margin: 0;
}

.cq-list-head > span {
  flex-shrink: 0;
  color: #9ca7bb;
  font-size: 13px;
}

.cq-list-head b {
  color: #c83c55;
  font-size: 18px;
}

body[data-page="cq-download"] .cq-game-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

body[data-page="cq-download"] .cq-game-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  gap: 7px;
  min-height: 178px;
  padding: 11px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  color: #fff;
  text-align: center;
}

body[data-page="cq-download"] .cq-game-card:hover {
  border-color: rgba(200, 60, 85, 0.56);
  background: linear-gradient(180deg, rgba(200, 60, 85, 0.12), rgba(255, 255, 255, 0.045));
}

body[data-page="cq-download"] .cq-game-card img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
  box-shadow: none;
}

body[data-page="cq-download"] .cq-game-card h3 {
  margin: 0;
  color: #f8e9ec;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.cq-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  margin: 0;
  color: #dc5a70;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

body[data-page="cq-download"] .cq-download-btn {
  min-width: 68px;
  height: 30px;
  border-radius: 4px;
  background: #c83c55;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 30px;
  box-shadow: none;
}

body[data-page="cq-download"] .cq-game-card .cq-game-meta,
body[data-page="cq-download"] .cq-game-card .cq-game-desc,
body[data-page="cq-download"] .cq-game-card .cq-download-row {
  display: none;
}

body[data-page="cq-download"] .page_list {
  margin: 18px 0 0;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="cq-download"] .page_list ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
}

body[data-page="cq-download"] .page_list .pageinfo,
body[data-page="cq-download"] .page_list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

body[data-page="cq-download"] .page_list .pageinfo {
  color: #b7c2d5;
  margin-right: 4px;
}

body[data-page="cq-download"] .page_list .pageinfo strong {
  color: #dc5a70;
  padding: 0 3px;
}

body[data-page="cq-download"] .page_list a {
  min-width: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.055);
  color: #d9dfef;
  font-weight: 800;
}

body[data-page="cq-download"] .page_list a:hover,
body[data-page="cq-download"] .page_list .curpage,
body[data-page="cq-download"] .page_list .current {
  border-color: rgba(200, 60, 85, 0.62);
  background: #c83c55;
  color: #fff;
}

@media (max-width: 980px) {
  body[data-page="cq-download"] .home-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="cq-download"] .sidebar {
    display: none;
  }

  body[data-page="cq-download"] .cq-game-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cq-hot-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 8px;
  }

  .cq-hot-row a:nth-child(n+7) {
    display: none;
  }

  .cq-hot-row img {
    width: 56px;
    height: 56px;
  }

  .cq-filter-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cq-filter-row {
    min-width: 520px;
  }

  .cq-filter-row {
    gap: 6px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .cq-list-head {
    align-items: flex-end;
  }

  .cq-list-head > span {
    font-size: 12px;
  }

  body[data-page="cq-download"] .cq-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="cq-download"] .cq-game-card {
    min-height: 142px;
    gap: 6px;
    padding: 8px 5px 9px;
    border-radius: 6px;
  }

  body[data-page="cq-download"] .cq-game-card img {
    width: 58px;
    height: 58px;
    border-radius: 7px;
  }

  body[data-page="cq-download"] .cq-game-card h3 {
    font-size: 12px;
  }

  .cq-stars {
    min-height: 13px;
    font-size: 11px;
    letter-spacing: 0;
  }

  body[data-page="cq-download"] .cq-download-btn {
    min-width: 54px;
    height: 26px;
    font-size: 12px;
    line-height: 26px;
  }

  body[data-page="cq-download"] .page_list {
    margin-top: 14px;
    padding: 10px 6px;
  }

  body[data-page="cq-download"] .page_list ul {
    gap: 5px;
  }

  body[data-page="cq-download"] .page_list .pageinfo {
    width: 100%;
    margin: 0 0 2px;
  }

  body[data-page="cq-download"] .page_list a {
    min-width: 30px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* cq rank list */
.cq-rank-page {
  max-width: 1180px;
}

.cq-rank-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.cq-rank-head .section-title {
  margin: 0 0 6px;
}

.cq-rank-head p {
  margin: 0;
  color: #b7c2d5;
  font-size: 14px;
  line-height: 1.6;
}

.cq-rank-total {
  flex-shrink: 0;
  min-width: 112px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(200, 60, 85, 0.14);
  color: #ffd9b8;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.cq-rank-total b {
  color: #c83c55;
  font-size: 22px;
}

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

.rank-category {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.rank-category ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.rank-category li {
  flex: 0 0 auto;
}

.rank-category a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9dfef;
  white-space: nowrap;
}

.rank-category p {
  margin: 0;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.rank-category .f-18 {
  font-size: 18px;
}

.rank-category a:hover,
.rank-category li.current a,
.rank-category p.current {
  border-color: rgba(200, 60, 85, 0.62);
  background: rgba(200, 60, 85, 0.22);
  color: #fff;
}

.cq-rank-row {
  display: grid;
  grid-template-columns: 54px 86px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.cq-rank-row:hover {
  border-color: rgba(200, 60, 85, 0.52);
  background: linear-gradient(180deg, rgba(200, 60, 85, 0.12), rgba(255, 255, 255, 0.04));
  transform: translateY(-1px);
}

.cq-rank-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #262b38;
  color: #d9dfef;
  font-size: 18px;
  font-weight: 900;
}

.cq-rank-num.rank-1 {
  background: #c83c55;
  color: #fff;
}

.cq-rank-num.rank-2 {
  background: #dc5a70;
  color: #1b0c05;
}

.cq-rank-num.rank-3 {
  background: #b9485b;
  color: #062016;
}

.cq-rank-cover img {
  display: block;
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
}

.cq-rank-info {
  min-width: 0;
}

.cq-rank-name {
  display: block;
  color: #f8e9ec;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cq-rank-info p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 8px;
  color: #b7c2d5;
  font-size: 13px;
  line-height: 1.55;
}

.cq-rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #9ca7bb;
  font-size: 12px;
}

.cq-rank-meta .cq-stars {
  justify-content: flex-start;
}

.cq-rank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 78px;
  border-radius: 4px;
  background: #c83c55;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

body[data-page="cq-rank"] .page_list {
  margin-top: 16px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="cq-rank"] .page_list ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
}

body[data-page="cq-rank"] .page_list a,
body[data-page="cq-rank"] .page_list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9dfef;
  font-size: 13px;
  font-weight: 800;
}

body[data-page="cq-rank"] .page_list a:hover,
body[data-page="cq-rank"] .page_list .curpage,
body[data-page="cq-rank"] .page_list .current {
  border-color: rgba(200, 60, 85, 0.62);
  background: #c83c55;
  color: #fff;
}

@media (max-width: 760px) {
  .cq-rank-page {
    width: calc(100% - 16px);
  }

  .cq-rank-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 13px 12px;
  }

  .cq-rank-total {
    width: 100%;
    text-align: left;
  }

  .rank-category {
    overflow-x: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .rank-category ul {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .rank-category a {
    min-height: 28px;
  }

  .rank-category p {
    padding: 4px 9px;
    font-size: 12px;
  }

  .rank-category .f-18 {
    font-size: 15px;
  }

  .cq-rank-row {
    grid-template-columns: 36px 64px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .cq-rank-num {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 15px;
  }

  .cq-rank-cover img {
    width: 64px;
    height: 64px;
    border-radius: 7px;
  }

  .cq-rank-name {
    font-size: 14px;
  }

  .cq-rank-info p {
    -webkit-line-clamp: 1;
    margin: 4px 0 6px;
    font-size: 12px;
  }

  .cq-rank-meta {
    gap: 6px;
  }

  .cq-rank-btn {
    grid-column: 2 / -1;
    width: 100%;
    height: 30px;
  }
}

/* tag search page */
.tag-search-page {
  max-width: none;
}

.tag-search-head,
.tag-detail-hero,
.tag-related-games {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.tag-search-head .section-title,
.tag-detail-hero .section-title {
  margin: 0 0 8px;
}

.tag-search-head p,
.tag-detail-hero p {
  margin: 0;
  color: #b7c2d5;
  font-size: 14px;
  line-height: 1.7;
}

.tag-search-head b {
  color: #c83c55;
}

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

.tag-result-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.tag-result-thumb img {
  display: block;
  width: 112px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
}

.tag-result-copy {
  min-width: 0;
}

.tag-result-title {
  display: block;
  color: #f8e9ec;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-result-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 10px;
  color: #b7c2d5;
  font-size: 13px;
  line-height: 1.6;
}

.tag-result-tags,
.tag-cloud-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-result-tags a,
.tag-cloud-line a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.065);
  color: #d9dfef;
  font-size: 12px;
}

.tag-result-tags a:hover,
.tag-cloud-line a:hover {
  background: rgba(200, 60, 85, 0.20);
  color: #fff;
}

.tag-detail-hero {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.tag-detail-hero > img {
  width: 130px;
  height: 130px;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
}

.tag-detail-hero .tag-cloud-line {
  margin-top: 12px;
}

.tag-related-games .cq-list-head {
  margin-bottom: 12px;
}

.tag-related-games .cq-list-head > a {
  color: #dc5a70;
  font-size: 13px;
  font-weight: 800;
}

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

.tag-game-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #f8e9ec;
  text-align: center;
}

.tag-game-card img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
  background: #25171c;
}

.tag-game-card span {
  width: 100%;
  overflow: hidden;
  color: #f8e9ec;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="tag-search"] .page_list {
  margin-top: 16px;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

body[data-page="tag-search"] .page_list ul,
body[data-page="tag-search"] .page_list .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
}

body[data-page="tag-search"] .page_list a,
body[data-page="tag-search"] .page_list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9dfef;
  font-size: 13px;
  font-weight: 800;
}

body[data-page="tag-search"] .page_list a:hover,
body[data-page="tag-search"] .page_list .curpage,
body[data-page="tag-search"] .page_list .current {
  border-color: rgba(200, 60, 85, 0.62);
  background: #c83c55;
  color: #fff;
}

@media (max-width: 760px) {
  .tag-search-page {
    width: calc(100% - 16px);
  }

  .tag-search-head,
  .tag-detail-hero,
  .tag-related-games {
    padding: 12px;
  }

  .tag-result-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .tag-result-thumb img {
    width: 84px;
    height: 70px;
  }

  .tag-result-title {
    font-size: 14px;
  }

  .tag-result-copy p {
    -webkit-line-clamp: 2;
    margin: 4px 0 7px;
    font-size: 12px;
  }

  .tag-detail-hero {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .tag-detail-hero > img {
    width: 82px;
    height: 82px;
  }

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

  .tag-game-card {
    padding: 8px 4px;
  }

  .tag-game-card img {
    width: 56px;
    height: 56px;
  }

  .tag-game-card span {
    font-size: 12px;
  }
}

/* theme07 independent art direction */
:root {
  --bg: #06070b;
  --panel: #10131d;
  --panel-2: #151923;
  --line: rgba(205, 255, 252, 0.12);
  --text: #edf4f7;
  --muted: #91a2ad;
  --hot: #cb694b;
  --gold: #dc526a;
  --cyan: #b5435a;
  --green: #87b396;
  --violet: #a39079;
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
  --theme07-lime: #dc526a;
  --theme07-cyan: #b5435a;
  --theme07-pink: #cb694b;
  --theme07-violet: #a39079;
  --theme07-ink: #06070b;
  --theme07-panel: rgba(13, 17, 27, 0.84);
  --theme07-panel-strong: rgba(20, 25, 38, 0.92);
}

html {
  background: var(--theme07-ink);
}

body {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(181,67,90, 0.13) 0, transparent 280px),
    linear-gradient(135deg, rgba(220,82,106, 0.08), transparent 34rem),
    linear-gradient(225deg, rgba(203, 105, 75, 0.08), transparent 36rem),
    #06070b;
}

.top-bar {
  border-bottom: 1px solid rgba(181,67,90, 0.14);
  background: rgba(4, 6, 10, 0.92);
  color: #8fa3ad;
}

.top-bar .container {
  min-height: 30px;
}

.top-bar a,
.footer-links a {
  color: var(--theme07-lime);
}

.header {
  border-bottom: 1px solid rgba(181,67,90, 0.22);
  background: rgba(6, 8, 14, 0.86);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.header .container {
  min-height: 82px;
}

.logo-area {
  min-width: 278px;
}

.site-name .site-title,
.site-name .index-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f7fbff;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-name .site-title::before,
.site-name .index-title::before {
  content: "传";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(220,82,106, 0.72);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(220,82,106, 0.96), rgba(181,67,90, 0.72));
  color: #05070a;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 7px 7px 0 rgba(203, 105, 75, 0.26);
}

.site-name span {
  margin-top: 5px;
  color: #91a2ad;
  letter-spacing: 0;
}

.nav-links {
  position: relative;
  gap: 40px;
}

.nav-links a {
  position: relative;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #c7d4db;
  font-weight: 900;
  padding: 10px 30px;
  box-shadow: none;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: rgba(220,82,106, 0.72);
  background: linear-gradient(135deg, rgba(220,82,106, 0.95), rgba(181,67,90, 0.72));
  color: #05070a;
  box-shadow: 5px 5px 0 rgba(203, 105, 75, 0.20);
}

.search-box {
  min-width: 252px;
  border: 1px solid rgba(181,67,90, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  padding: 3px;
}

.search-box input {
  border: 0;
  border-radius: 999px 0 0 999px;
  background: transparent;
  color: #f4fbff;
}

.search-box input:focus {
  border-color: transparent;
}

.search-box button,
.btn,
.dl-btn,
.big-btn,
.cq-download-btn,
.cq-rank-btn {
  border-radius: 6px;
  background: linear-gradient(135deg, var(--theme07-lime), var(--theme07-cyan));
  color: #071013;
  box-shadow: 0 12px 26px rgba(181,67,90, 0.16);
}

.search-box button {
  border-radius: 999px;
}

.hero-section {
  padding: 46px 0 34px;
  border-bottom: 1px solid rgba(181,67,90, 0.13);
  background:
    linear-gradient(120deg, rgba(220,82,106, 0.12), transparent 34%),
    linear-gradient(245deg, rgba(181,67,90, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(13, 17, 27, 0.65), rgba(6, 7, 11, 0.78));
}

.hero-section .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 26px;
  align-items: end;
  text-align: left;
}

.hero-section .container::after {
  content: "";
  display: block;
  min-height: 220px;
  border: 1px solid rgba(220,82,106, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(203, 105, 75, 0.18), rgba(181,67,90, 0.10)),
    rgba(255, 255, 255, 0.035);
  clip-path: polygon(0 12%, 88% 0, 100% 100%, 8% 88%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045), 16px 16px 0 rgba(155, 124, 255, 0.12);
}

.hero-section h2 {
  max-width: 760px;
  color: #fbfeff;
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: 0;
}

.subtitle,
.page-subtitle {
  color: #a8b8c2;
}

.hero-stats,
.stats-bar,
.info-panel {
  grid-column: 1 / -1;
  gap: 10px;
}

.hero-stat,
.stat-item,
.info-item {
  border-color: rgba(205, 255, 252, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(8, 11, 18, 0.86);
  box-shadow: none;
}

.hero-stat::after,
.stat-item::after,
.info-item::after {
  left: 14px;
  right: auto;
  width: 38px;
  background: linear-gradient(90deg, var(--theme07-pink), var(--theme07-lime));
}

.num {
  color: var(--theme07-lime);
}

.section-title {
  color: #f5fbff;
  font-size: 18px;
  letter-spacing: 0;
}

.section-title::before {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(220,82,106, 0.75);
  border-radius: 5px;
  background: transparent;
  box-shadow: inset 5px 0 0 var(--theme07-pink), inset -5px 0 0 var(--theme07-cyan);
  transform: rotate(8deg);
}

.card,
.table-wrapper,
.filter-section,
.download-hero,
.tutorial-section,
.faq-section,
.notice-bar,
.guide,
.detail-panel,
.game-detail-hero,
.tag-search-head,
.tag-detail-hero,
.tag-related-games,
.cq-rank-head,
.rank-category,
.cq-filter-panel,
.cq-hot-row,
body[data-page="cq-download"] .page_list,
body[data-page="cq-rank"] .page_list,
body[data-page="tag-search"] .page_list {
  border-color: rgba(205, 255, 252, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028)),
    rgba(8, 11, 18, 0.82);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.sidebar {
  gap: 12px;
}

.sidebar .card {
  border-color: rgba(205, 255, 252, 0.12);
  background:
    linear-gradient(145deg, rgba(181,67,90, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(8, 11, 18, 0.9);
}

.sidebar .card::before {
  height: 1px;
  background: linear-gradient(90deg, var(--theme07-lime), var(--theme07-cyan), var(--theme07-pink));
}

.sidebar .section-title {
  color: #f4fbff;
  border-bottom-color: rgba(205, 255, 252, 0.10);
}

.server-row {
  border-color: rgba(205, 255, 252, 0.11);
  background:
    linear-gradient(90deg, rgba(220,82,106, 0.075), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.025));
}

.server-row:hover,
.cq-game-card:hover,
.dl-card:hover,
.related-game:hover,
.tag-game-card:hover,
.tag-result-item:hover,
.cq-rank-row:hover,
.home-game-card:hover {
  border-color: rgba(181,67,90, 0.46);
  background:
    linear-gradient(135deg, rgba(181,67,90, 0.12), rgba(220,82,106, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.s-name,
.s-name-link,
.cq-game-card h3,
.rank-item .name,
.cq-rank-name,
.tag-result-title,
.tag-game-card span,
.related-game div,
.home-game-card span {
  color: #fbfeff;
}

.s-time,
.dl-icon,
.trend-stable {
  color: var(--theme07-cyan);
}

.server-score,
.cq-stars {
  color: var(--theme07-lime);
}

.tag-hot,
.badge-hot {
  background: rgba(203, 105, 75, 0.15);
  color: #ff9bbe;
}

.tag-new,
.badge-rise {
  background: rgba(181,67,90, 0.13);
  color: #9cf8ff;
}

.tag-rec,
.badge-gold {
  background: rgba(220,82,106, 0.14);
  color: #ecff92;
}

.filter-bar button,
.filter-btn,
.rank-tab,
.cq-chip,
.cq-filter-row a,
.rank-category a,
body[data-page="cq-download"] .page_list a,
body[data-page="cq-rank"] .page_list a,
body[data-page="cq-rank"] .page_list span,
body[data-page="tag-search"] .page_list a,
body[data-page="tag-search"] .page_list span {
  border-color: rgba(205, 255, 252, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d9e5ea;
}

.filter-bar button.active,
.filter-btn.active,
.rank-tab.active,
.cq-chip.active,
.cq-filter-row a:hover,
.cq-filter-row a.active,
.cq-filter-row a.current,
.rank-category a:hover,
.rank-category li.current a,
.rank-category p.current,
body[data-page="cq-download"] .page_list a:hover,
body[data-page="cq-download"] .page_list .curpage,
body[data-page="cq-download"] .page_list .current,
body[data-page="cq-rank"] .page_list a:hover,
body[data-page="cq-rank"] .page_list .curpage,
body[data-page="cq-rank"] .page_list .current,
body[data-page="tag-search"] .page_list a:hover,
body[data-page="tag-search"] .page_list .curpage,
body[data-page="tag-search"] .page_list .current {
  border-color: rgba(220,82,106, 0.62);
  background: rgba(220,82,106, 0.16);
  color: #fbfeff;
}

.home-game-card,
.cq-game-card,
.dl-card,
.related-game,
.tag-game-card,
.tag-result-item,
.cq-rank-row,
.rank-card {
  border-color: rgba(205, 255, 252, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.064), rgba(255, 255, 255, 0.024)),
    rgba(9, 12, 19, 0.82);
}

.home-game-card img,
.cq-game-card img,
.cq-hot-row img,
.cq-rank-cover img,
.tag-game-card img,
.tag-result-thumb img,
.related-game img,
.game-detail-hero img {
  border: 1px solid rgba(205, 255, 252, 0.13);
  box-shadow: 8px 8px 0 rgba(181,67,90, 0.06);
}

.side-link-item a::before {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--theme07-lime);
  transform: translateY(-50%) rotate(8deg);
}

.side-link-item a:hover {
  background: rgba(220,82,106, 0.10);
  color: #fff;
}

.side-comment-item {
  border-color: rgba(205, 255, 252, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.side-comment-item span {
  color: var(--theme07-cyan);
}

.rank-1,
.pos-1,
.cq-rank-num.rank-1 {
  background: var(--theme07-lime);
  color: #061013;
}

.rank-2,
.pos-2,
.cq-rank-num.rank-2 {
  background: var(--theme07-cyan);
  color: #061013;
}

.rank-3,
.pos-3,
.cq-rank-num.rank-3 {
  background: var(--theme07-pink);
  color: #fff;
}

.rank-other,
.pos-other,
.cq-rank-num {
  background: rgba(255, 255, 255, 0.08);
  color: #d9e5ea;
}

.rank-card-header {
  background:
    linear-gradient(90deg, rgba(220,82,106, 0.18), rgba(181,67,90, 0.08));
  color: #f6fbff;
}

.download-actions a:nth-child(1),
.download-actions a:nth-child(2),
.download-actions a:nth-child(3) {
  color: #061013;
}

.download-actions a:nth-child(1) {
  background: linear-gradient(135deg, var(--theme07-lime), #f5ffad);
}

.download-actions a:nth-child(2) {
  background: linear-gradient(135deg, var(--theme07-cyan), #b8fbff);
}

.download-actions a:nth-child(3) {
  background: linear-gradient(135deg, var(--theme07-pink), #ffc1d7);
}

.breadcrumbs a:hover,
.tag-search-head b,
.cq-list-head b {
  color: var(--theme07-lime);
}

.search-highlight {
  color: var(--theme07-lime);
  font-weight: 900;
}

body[data-page="tag-search"] .tag-search-page {
  padding-top: 18px;
}

body[data-page="tag-search"] .tag-search-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
}

body[data-page="tag-search"] .tag-search-head::after,
body[data-page="tag-search"] .tag-detail-hero::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 92px;
  height: 38px;
  border: 1px solid rgba(220,82,106, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(220,82,106, 0.15) 1px, transparent 1px) 0 0 / 10px 10px,
    rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

body[data-page="tag-search"] .tag-search-head > span,
.tag-detail-mark {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border: 1px solid rgba(220,82,106, 0.28);
  border-radius: 999px;
  background: rgba(220,82,106, 0.08);
  color: var(--theme07-lime);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 8px 12px;
}

body[data-page="tag-search"] .tag-result-list {
  gap: 12px;
}

body[data-page="tag-search"] .tag-result-item {
  grid-template-columns: 118px minmax(0, 1fr) 82px;
  align-items: center;
  min-height: 122px;
}

body[data-page="tag-search"] .tag-result-title {
  margin-bottom: 4px;
}

.tag-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.tag-result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid rgba(205, 255, 252, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #9fb0b9;
  font-size: 12px;
  padding: 2px 8px;
}

.tag-result-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-width: 72px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--theme07-lime), var(--theme07-cyan));
  color: #061013;
  font-size: 13px;
  font-weight: 950;
}

body[data-page="tag-search"] .tag-detail-hero {
  position: relative;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  overflow: hidden;
}

body[data-page="tag-search"] .tag-detail-hero > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

body[data-page="tag-search"] .tag-detail-hero > img {
  position: relative;
  z-index: 1;
}

body[data-page="tag-search"] .tag-cloud-line a,
body[data-page="tag-search"] .tag-result-tags a {
  border: 1px solid rgba(205, 255, 252, 0.10);
}

.footer {
  border-top-color: rgba(181,67,90, 0.18);
  background: #05070a;
  color: #6f8089;
}

@media (max-width: 980px) {
  .hero-section .container {
    grid-template-columns: 1fr;
  }

  .hero-section .container::after {
    min-height: 120px;
    clip-path: polygon(0 18%, 96% 0, 100% 100%, 4% 84%);
  }

  .nav-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
      linear-gradient(180deg, rgba(181,67,90, 0.12), transparent 220px),
      #06070b;
  }

  .site-name .site-title,
  .site-name .index-title {
    font-size: 17px;
  }

  .site-name .site-title::before,
  .site-name .index-title::before {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    font-size: 12px;
    box-shadow: 5px 5px 0 rgba(203, 105, 75, 0.24);
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  .nav-links a {
    padding: 8px 4px;
    text-align: center;
  }

  .hero-section {
    padding: 28px 0 24px;
  }

  .hero-section .container::after {
    display: none;
  }

  .hero-section h2 {
    max-width: none;
    font-size: 25px;
  }

  .section-title::before {
    width: 15px;
    height: 15px;
  }

  .home-game-card img {
    box-shadow: none;
  }

  body[data-page="tag-search"] .tag-search-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body[data-page="tag-search"] .tag-search-head::after,
  body[data-page="tag-search"] .tag-detail-hero::after {
    display: none;
  }

  body[data-page="tag-search"] .tag-search-head > span,
  .tag-detail-mark {
    padding: 6px 10px;
    font-size: 11px;
  }

  body[data-page="tag-search"] .tag-result-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
  }

  body[data-page="tag-search"] .tag-result-thumb img {
    width: 74px;
    height: 74px;
  }

  .tag-result-meta {
    gap: 4px;
  }

  .tag-result-meta span {
    min-height: 20px;
    font-size: 11px;
    padding: 1px 7px;
  }

  .tag-result-action {
    grid-column: 2;
    justify-self: stretch;
    height: 30px;
  }

  body[data-page="tag-search"] .tag-detail-hero {
    display: block;
    padding: 12px;
  }

  body[data-page="tag-search"] .tag-detail-hero > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 178px;
    margin: 0 0 12px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
  }

  body[data-page="tag-search"] .tag-detail-hero .section-title {
    margin: 0 0 8px;
    color: var(--theme07-lime);
    font-size: 18px;
    line-height: 1.25;
  }

  body[data-page="tag-search"] .tag-detail-hero p {
    display: -webkit-box;
    max-height: none;
    margin: 0;
    color: #aebdc6;
    font-size: 13px;
    line-height: 1.65;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  body[data-page="tag-search"] .tag-cloud-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
  }

  body[data-page="tag-search"] .tag-cloud-line a {
    min-height: 30px;
    border-radius: 4px;
    padding: 5px 10px;
    background: rgba(220,82,106, 0.13);
    color: #f3ffaf;
    font-size: 12px;
    font-weight: 900;
  }

  .tag-detail-mark {
    display: none;
  }

  body[data-page="tag-search"] .tag-related-games {
    padding: 12px;
  }

  body[data-page="tag-search"] .tag-related-games .cq-list-head {
    margin-bottom: 10px;
  }

  body[data-page="tag-search"] .tag-game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page="tag-search"] .tag-game-card {
    min-height: 96px;
    border: 0;
    background: transparent;
    padding: 0;
    gap: 6px;
  }

  body[data-page="tag-search"] .tag-game-card img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    box-shadow: none;
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  body[data-page="tag-search"] .tag-game-card span {
    display: -webkit-box;
    height: 34px;
    color: #f7fbff;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
/* Site directory */
.sitebook-list-page,.sitebook-detail-page{padding-top:24px}
.sitebook-list-head,.sitebook-hero,.sitebook-rank-panel,.sitebook-query-panel,.sitebook-related-panel{border:1px solid var(--line);border-radius:8px;background:rgba(18,20,28,.88);box-shadow:var(--shadow)}
.sitebook-list-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:18px;padding:20px}
.sitebook-label{display:inline-flex;align-items:center;min-height:26px;padding:3px 10px;border:1px solid rgba(214,83,106,.38);border-radius:4px;background:rgba(214,83,106,.1);color:var(--gold);font-size:12px;font-weight:800}
.sitebook-list-head h2,.sitebook-summary h2{margin-top:8px;color:#f5e1e5;font-size:24px;line-height:1.3}.sitebook-list-head p,.sitebook-summary-text{margin-top:8px;color:var(--muted);font-size:14px}.sitebook-list-count{flex:0 0 auto;color:var(--cyan);font-size:14px;font-weight:800}
.sitebook-list-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.sitebook-list-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:rgba(18,20,28,.86);box-shadow:0 12px 30px rgba(0,0,0,.22);transition:border-color .2s,transform .2s,box-shadow .2s}.sitebook-list-card:hover{border-color:rgba(214,83,106,.48);box-shadow:0 16px 36px rgba(0,0,0,.32);transform:translateY(-2px)}
.sitebook-list-card>img{display:block;width:100%;aspect-ratio:16/9;border-bottom:1px solid var(--line);background:#0a0c11;object-fit:cover}.sitebook-list-card-body{padding:14px}.sitebook-list-card h2{overflow:hidden;color:#f5e1e5;font-size:17px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.sitebook-list-card p{display:-webkit-box;min-height:44px;margin-top:7px;overflow:hidden;color:var(--muted);font-size:13px;line-height:1.7;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.sitebook-list-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);color:#8e99aa;font-size:12px}.sitebook-list-empty{padding:54px 20px;border:1px solid var(--line);border-radius:8px;background:rgba(18,20,28,.76);color:var(--muted);text-align:center}
.sitebook-list-page .page_list{margin-top:20px}.sitebook-list-page .page_list ul{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.sitebook-list-page .page_list a,.sitebook-list-page .page_list span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:34px;padding:0 11px;border:1px solid var(--line);border-radius:4px;background:rgba(255,255,255,.05);color:#d9d2c4;font-size:13px}.sitebook-list-page .page_list a:hover,.sitebook-list-page .page_list .curpage,.sitebook-list-page .page_list .current{border-color:rgba(214,83,106,.58);background:linear-gradient(135deg,var(--hot),var(--gold));color:#160905;font-weight:800}
.sitebook-main{display:grid;gap:18px}.sitebook-hero{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:stretch;padding:20px}.sitebook-preview{display:block;width:300px;height:300px;overflow:hidden;border:1px solid rgba(214,83,106,.22);border-radius:8px;background:#0a0c11}.sitebook-preview img{display:block;width:100%;height:100%;object-fit:cover}.sitebook-summary{min-width:0;padding:2px 0}
.sitebook-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.sitebook-meta-grid>div{min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:rgba(255,255,255,.035)}.sitebook-meta-grid dt{color:#8e99aa;font-size:12px}.sitebook-meta-grid dd{margin-top:3px;overflow-wrap:anywhere;color:#fff0cd;font-size:14px;font-weight:800}
.sitebook-rank-panel,.sitebook-query-panel,.sitebook-related-panel{padding:18px}.sitebook-rank-panel h3,.sitebook-query-panel h3,.sitebook-related-panel h3{margin-bottom:14px;color:#f5e1e5;font-size:19px}.sitebook-rank-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.sitebook-rank-item{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:rgba(255,255,255,.035);color:#d7cfbf;font-size:13px}.sitebook-rank-item img{flex:0 0 auto;max-width:96px;max-height:30px;object-fit:contain}.sitebook-query-labels{display:flex;flex-wrap:wrap;gap:10px}.sitebook-query-labels a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 14px;border:1px solid rgba(214,83,106,.38);border-radius:4px;background:rgba(214,83,106,.08);color:#fff0cd;font-size:13px;font-weight:800;transition:border-color .2s,background .2s,color .2s,transform .2s}.sitebook-query-labels a:hover,.sitebook-query-labels a:focus-visible{border-color:var(--gold);background:var(--gold);color:#160905;transform:translateY(-1px)}
.sitebook-related-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.sitebook-related-item{display:grid;min-width:0;padding:8px;border:1px solid var(--line);border-radius:6px;background:rgba(255,255,255,.035);transition:border-color .2s,background .2s,transform .2s}.sitebook-related-item:hover{border-color:rgba(214,83,106,.48);background:rgba(214,83,106,.07);transform:translateY(-1px)}.sitebook-related-item img{display:block;width:100%;aspect-ratio:16/10;border-radius:4px;background:#0a0c11;object-fit:cover}.sitebook-related-item strong,.sitebook-related-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sitebook-related-item strong{margin-top:8px;color:#f5e1e5;font-size:13px}.sitebook-related-item span{color:#8e99aa;font-size:11px}
@media(max-width:980px){.sitebook-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sitebook-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.sitebook-list-page,.sitebook-detail-page{padding-top:14px}.sitebook-list-head{align-items:flex-start;padding:14px}.sitebook-hero{grid-template-columns:minmax(0,1fr);gap:16px;padding:14px}.sitebook-preview{width:min(300px,100%);height:auto;aspect-ratio:1;justify-self:center}.sitebook-meta-grid,.sitebook-rank-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sitebook-rank-panel,.sitebook-query-panel,.sitebook-related-panel{padding:14px}}@media(max-width:520px){.sitebook-list-head{display:block}.sitebook-list-count{display:block;margin-top:10px}.sitebook-list-grid{grid-template-columns:minmax(0,1fr)}.sitebook-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.sitebook-meta-grid,.sitebook-rank-grid{grid-template-columns:minmax(0,1fr)}.sitebook-preview{width:100%}}


/* Keep the six primary navigation items on one mobile row. */
@media (max-width: 640px) {
  .header .nav-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
    width: 100%;
  }

  .header .nav-links a {
    min-width: 0;
    padding: 8px 2px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .header .nav-links .nav-auth-link {
    display: none;
  }
}

@media (max-width: 420px) {
  .header .nav-links a {
    font-size: 11px;
  }
}

/* article model pages */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.article-layout > * {
  min-width: 0;
}

.article-list-stream {
  display: grid;
  gap: 12px;
}

.article-featured,
.article-list-item {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.88);
  overflow: hidden;
}

.article-featured {
  grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
  min-height: 224px;
  border-color: rgba(214,83,106, 0.28);
}

.article-featured-thumb,
.article-list-thumb {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #25171c;
}

.article-featured-thumb img,
.article-list-thumb img,
.article-side-feature img,
.article-download-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-featured-thumb img {
  min-height: 224px;
}

.article-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px;
}

.article-kicker,
.article-flag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #c83c55;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.article-featured h2,
.article-list-copy h2 {
  line-height: 1.4;
}

.article-featured h2 {
  margin-top: 10px;
  color: #f5e1e5;
  font-size: 24px;
}

.article-featured h2 a:hover,
.article-list-copy h2 a:hover,
.article-side-top:hover span,
.article-download-card:hover span {
  color: var(--gold);
}

.article-featured p,
.article-list-copy p {
  display: -webkit-box;
  overflow: hidden;
  color: #b7c2d5;
  -webkit-box-orient: vertical;
}

.article-featured p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.75;
  -webkit-line-clamp: 3;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: #8f98a9;
  font-size: 12px;
}

.article-list-item {
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 138px;
}

.article-list-thumb {
  aspect-ratio: 19 / 13;
}

.article-list-copy {
  align-self: center;
  min-width: 0;
  padding: 16px 18px;
}

.article-list-copy h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #f5e1e5;
  font-size: 18px;
}

.article-list-copy h2 a {
  min-width: 0;
}

.article-list-copy p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
}

.article-flag {
  flex: 0 0 auto;
  min-height: 20px;
  padding: 1px 6px;
  font-size: 11px;
}

.article-empty,
.article-side-empty,
.article-search-empty {
  padding: 26px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #9da6b7;
  text-align: center;
}

.article-side-card {
  padding: 14px;
}

.article-side-card .section-title {
  margin: 0 0 12px;
  font-size: 17px;
}

.article-side-feature {
  display: grid;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.article-side-feature img {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #25171c;
}

.article-side-feature strong,
.article-side-feature span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.article-side-feature strong {
  color: #f5e1e5;
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.article-side-feature span {
  color: #9da6b7;
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
}

.article-side-top {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.article-side-top:last-child {
  border-bottom: 0;
}

.article-side-top em {
  color: #ff9f43;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.article-side-top span {
  overflow: hidden;
  color: #dce2ed;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.article-download-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.article-download-card img {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #25171c;
}

.article-download-card span {
  display: -webkit-box;
  min-height: 34px;
  overflow: hidden;
  color: #dce2ed;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.article-tag-cloud a,
.article-related-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.article-tag-cloud a:nth-child(7n+1) { background: #b33a3a; }
.article-tag-cloud a:nth-child(7n+2) { background: #a96315; }
.article-tag-cloud a:nth-child(7n+3) { background: #7b7e1c; }
.article-tag-cloud a:nth-child(7n+4) { background: #237a4b; }
.article-tag-cloud a:nth-child(7n+5) { background: #236b8e; }
.article-tag-cloud a:nth-child(7n+6) { background: #5552a1; }
.article-tag-cloud a:nth-child(7n) { background: #8d3e82; }

.article-tag-cloud a:hover,
.article-related-tags a:hover {
  border-color: rgba(255, 255, 255, 0.42);
  filter: brightness(1.12);
}

body[data-page="article-list"] .article-page-list,
body[data-page="article-detail"] .article-page-list {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.82);
}

body[data-page="article-list"] .article-page-list ul,
body[data-page="article-detail"] .article-page-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

body[data-page="article-list"] .article-page-list a,
body[data-page="article-list"] .article-page-list span,
body[data-page="article-detail"] .article-page-list a,
body[data-page="article-detail"] .article-page-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9dfef;
  font-size: 13px;
  font-weight: 800;
}

body[data-page="article-list"] .article-page-list a:hover,
body[data-page="article-list"] .article-page-list .curpage,
body[data-page="article-list"] .article-page-list .current,
body[data-page="article-detail"] .article-page-list a:hover,
body[data-page="article-detail"] .article-page-list .curpage,
body[data-page="article-detail"] .article-page-list .current {
  border-color: #c83c55;
  background: #c83c55;
  color: #fff;
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .article-featured {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-featured-thumb {
    aspect-ratio: 16 / 9;
  }

  .article-featured-thumb img {
    min-height: 0;
  }

  .article-featured-copy {
    padding: 17px;
  }

  .article-featured h2 {
    font-size: 20px;
  }

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

  .article-sidebar .article-side-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .article-list-item {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 104px;
  }

  .article-list-copy {
    padding: 10px 12px;
  }

  .article-list-copy h2 {
    align-items: flex-start;
    font-size: 14px;
  }

  .article-list-copy p {
    -webkit-line-clamp: 1;
    margin-top: 4px;
    font-size: 12px;
  }

  .article-list-copy .article-meta {
    margin-top: 5px;
  }

  .article-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-sidebar .article-side-card:last-child {
    grid-column: auto;
  }
}

.article-detail-panel,
.article-related-panel,
.article-comment-panel {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.88);
}

.article-detail-panel {
  padding: 24px;
}

.article-detail-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.article-detail-head h1 {
  color: #f5e1e5;
  font-size: 30px;
  line-height: 1.4;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 18px;
  margin-top: 12px;
  color: #8f98a9;
  font-size: 12px;
}

.article-detail-summary {
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.045);
  color: #bbc4d4;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}

.article-content {
  min-width: 0;
  padding: 24px 0;
  color: #ddd8cc;
  font-size: 16px;
  line-height: 1.95;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content > :last-child {
  margin-bottom: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 0 0 18px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #f5e1e5;
  line-height: 1.45;
}

.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 17px; }

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content a {
  color: #68dcff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content img,
.article-content video,
.article-content iframe {
  display: block;
  max-width: 100%;
  margin: 18px auto;
  border-radius: 6px;
}

.article-content iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  min-width: 90px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.article-content blockquote {
  padding: 12px 16px;
  border-left: 3px solid #d94861;
  background: rgba(217, 72, 97, 0.07);
  color: #c8d3e1;
}

.article-content pre {
  max-width: 100%;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #090b10;
  color: #dce2ed;
}

.article-related-tags {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.article-related-tags strong {
  padding-top: 3px;
  color: #f5e1e5;
  font-size: 14px;
}

.article-related-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.article-related-tags a {
  background: rgba(200, 60, 85, 0.14);
  color: #ffdca8;
}

.article-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.article-prev-next p {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #d5dce8;
  font-size: 13px;
}

.article-prev-next p span {
  display: block;
  margin-bottom: 3px;
  color: #ff9f43;
  font-size: 11px;
  font-weight: 900;
}

.article-prev-next a:hover {
  color: var(--gold);
}

.article-related-panel,
.article-comment-panel {
  padding: 18px;
}

.article-related-panel .section-title,
.article-comment-panel .section-title {
  margin: 0 0 13px;
  font-size: 18px;
}

.article-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
}

.article-related-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-related-list strong {
  overflow: hidden;
  color: #dce2ed;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-related-list span {
  color: #7f899a;
  font-size: 11px;
}

.article-comment-form {
  display: grid;
  gap: 13px;
}

.article-comment-form label {
  display: grid;
  gap: 6px;
  color: #c7cfdd;
  font-size: 13px;
  font-weight: 800;
}

.article-comment-form input,
.article-comment-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  outline: 0;
  background: #0b0d12;
  color: #f1eadb;
  font: inherit;
}

.article-comment-form input {
  min-height: 40px;
  padding: 8px 10px;
}

.article-comment-form textarea {
  min-height: 118px;
  padding: 10px;
  resize: vertical;
}

.article-comment-form input:focus,
.article-comment-form textarea:focus {
  border-color: rgba(217, 72, 97, 0.58);
}

.article-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-comment-actions span {
  color: #8f98a9;
  font-size: 12px;
}

.article-comment-actions span.is-error { color: #ff866f; }
.article-comment-actions span.is-success { color: #64d982; }

.article-comment-actions button {
  min-width: 104px;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: #c83c55;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.article-comment-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.article-comment-empty {
  padding: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  color: #8f98a9;
  font-size: 13px;
  text-align: center;
}

.article-comment-item {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.article-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-comment-head strong {
  color: #dc5a70;
  font-size: 13px;
}

.article-comment-head time {
  color: #7f899a;
  font-size: 11px;
}

.article-comment-item p {
  margin-top: 7px;
  color: #cbd2de;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .article-detail-panel {
    padding: 17px;
  }

  .article-detail-head h1 {
    font-size: 24px;
  }

  .article-content {
    font-size: 15px;
  }

  .article-content iframe {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .article-related-tags,
  .article-prev-next,
  .article-related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-comment-actions,
  .article-comment-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-comment-actions button {
    width: 100%;
  }
}

/* grouped search and Tag results */
.tag-search-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tag-detail-hero {
  position: relative;
}

.tag-detail-mark {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid rgba(200, 60, 85, 0.34);
  border-radius: 4px;
  background: rgba(200, 60, 85, 0.12);
  color: #ffb26f;
  font-size: 11px;
  font-weight: 900;
}

.search-result-section {
  margin-bottom: 14px;
}

.search-result-section .cq-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-result-section .cq-list-head .section-title {
  margin: 0;
}

.tag-related-articles {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: rgba(18, 20, 28, 0.74);
}

.tag-related-articles .tag-result-list {
  margin-top: 12px;
}

.tag-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 5px;
  color: #838d9e;
  font-size: 11px;
}

.tag-detail-hero .tag-detail-mark {
  position: absolute;
  top: 12px;
  right: 12px;
}

@media (max-width: 760px) {
  .tag-search-head {
    align-items: flex-start;
  }

  .tag-related-articles {
    padding: 12px;
  }

  .search-result-section .cq-list-head {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .tag-search-head .tag-detail-mark,
  .tag-detail-hero .tag-detail-mark {
    display: none;
  }

  .search-result-section .cq-list-head > a {
    font-size: 11px;
  }
}


/* Light theme adaptation used by 820cc. */
body.article-theme-light .article-featured,
body.article-theme-light .article-list-item,
body.article-theme-light .article-detail-panel,
body.article-theme-light .article-related-panel,
body.article-theme-light .article-comment-panel,
body.article-theme-light .article-page-list,
body.article-theme-light .article-side-card,
body.article-theme-light .tag-related-articles {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
body.article-theme-light .article-featured h2,
body.article-theme-light .article-list-copy h2,
body.article-theme-light .article-side-feature strong,
body.article-theme-light .article-detail-head h1,
body.article-theme-light .article-content h2,
body.article-theme-light .article-content h3,
body.article-theme-light .article-content h4,
body.article-theme-light .article-related-tags strong,
body.article-theme-light .article-side-card .section-title,
body.article-theme-light .article-related-panel .section-title,
body.article-theme-light .article-comment-panel .section-title,
body.article-theme-light .article-download-card span,
body.article-theme-light .article-side-top span,
body.article-theme-light .article-related-list strong {
  color: var(--text);
}
body.article-theme-light .article-featured p,
body.article-theme-light .article-list-copy p,
body.article-theme-light .article-side-feature span,
body.article-theme-light .article-detail-summary,
body.article-theme-light .article-content,
body.article-theme-light .article-comment-item p,
body.article-theme-light .tag-result-copy p {
  color: var(--muted);
}
body.article-theme-light .article-comment-form input,
body.article-theme-light .article-comment-form textarea,
body.article-theme-light .article-content pre {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}
body.article-theme-light .article-side-top,
body.article-theme-light .article-detail-head,
body.article-theme-light .article-related-tags,
body.article-theme-light .article-prev-next {
  border-color: var(--line);
}
/* home guide module */
.home-guide-section { margin-top: 20px; }
.home-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-guide-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-width: 0; min-height: 88px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); transition: border-color .2s, transform .2s; }
.home-guide-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.home-guide-thumb { display: block; min-width: 0; overflow: hidden; background: #25171c; }
.home-guide-thumb img { display: block; width: 100%; height: 100%; min-height: 88px; object-fit: cover; }
.home-guide-copy { display: flex; min-width: 0; padding: 12px; flex-direction: column; justify-content: space-between; gap: 8px; }
.home-guide-copy strong { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 15px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-guide-copy time { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
  .home-guide-grid { grid-template-columns: minmax(0, 1fr); }
  .home-guide-card { grid-template-columns: 112px minmax(0, 1fr); }
}

/* tag search related downloads: show 18 of 20 */
body[data-page="tag-search"] .tag-related-games .tag-game-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 122px;
  gap: 10px;
  max-height: 386px;
  overflow: hidden;
}
body[data-page="tag-search"] .tag-related-games .tag-game-card {
  height: 122px;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  body[data-page="tag-search"] .tag-related-games .tag-game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 100px;
    max-height: 650px;
  }
  body[data-page="tag-search"] .tag-related-games .tag-game-card { height: 100px; }
}
