:root {
  color-scheme: dark;
  --bg: #07080d;
  --panel: #11131f;
  --panel-2: #171a29;
  --line: rgba(122, 240, 255, .18);
  --text: #f4f7ff;
  --muted: #a9b2c7;
  --cyan: #31e8ff;
  --purple: #a855f7;
  --pink: #ff4fd8;
  --green: #78ff9a;
  --shadow: 0 22px 60px rgba(0, 0, 0, .42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1280px;
  background:
    radial-gradient(circle at 18% 0, rgba(49, 232, 255, .18), transparent 32%),
    radial-gradient(circle at 78% 6%, rgba(168, 85, 247, .2), transparent 30%),
    linear-gradient(180deg, #090a12 0%, var(--bg) 42%, #05060a 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.7;
}

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

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

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

.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(122, 240, 255, .14);
  background: rgba(7, 8, 13, .88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: 1280px;
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 232, 255, .65);
  background: linear-gradient(135deg, rgba(49, 232, 255, .16), rgba(168, 85, 247, .28));
  box-shadow: 0 0 24px rgba(49, 232, 255, .22), inset 0 0 18px rgba(255, 255, 255, .06);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  border-radius: 8px;
}

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

.brand-copy strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.main-nav > a,
.nav-more {
  border: 0;
  font: inherit;
  padding: 10px 11px;
  border-radius: 6px;
  background: transparent;
  color: #c9d1e6;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-more:hover,
.nav-dropdown:focus-within .nav-more {
  background: rgba(49, 232, 255, .11);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(49, 232, 255, .22);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 20;
  min-width: 132px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid rgba(122, 240, 255, .24);
  border-radius: 8px;
  background: rgba(10, 13, 23, .98);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  left: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 5px;
  color: #c9d1e6;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(49, 232, 255, .11);
  color: #fff;
}

.search {
  width: 230px;
  height: 38px;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(122, 240, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.subnav-inner {
  margin: 0 0 18px;
  padding: 14px 18px;
  display: flex;
  align-items: stretch;
  gap: 14px;
  border: 1px solid rgba(122, 240, 255, .16);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(49, 232, 255, .08), rgba(168, 85, 247, .07));
}

.subnav-title {
  width: 118px;
  min-height: 50px;
  padding: 8px 12px;
  border-left: 3px solid var(--pink);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 79, 216, .12), rgba(49, 232, 255, .08));
}

.subnav-title span,
.subnav-title strong {
  display: block;
}

.subnav-title span {
  color: #929db5;
  font-size: 12px;
}

.subnav-title strong {
  margin-top: 1px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.subnav-tags {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.subnav-tags a {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(49, 232, 255, .18);
  border-radius: 6px;
  background: rgba(49, 232, 255, .06);
  color: #b9c4d8;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.subnav-tags a:hover {
  border-color: rgba(49, 232, 255, .45);
  color: #fff;
}

.subnav-tags a.active {
  border-color: var(--cyan);
  background: rgba(49, 232, 255, .16);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(49, 232, 255, .12), 0 0 14px rgba(49, 232, 255, .12);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
  color: #fff;
}

.search input::placeholder {
  color: #7f8ba4;
}

.search button {
  width: 58px;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #060812;
  font-weight: 800;
  cursor: pointer;
}

.page {
  width: 1280px;
  margin: 0 auto;
  padding: 20px 0 42px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #8f99b2;
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 880px) 360px;
  gap: 40px;
  margin-top: 22px;
  align-items: start;
}

.resource,
.side-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 19, 31, .94), rgba(10, 12, 20, .98));
  box-shadow: var(--shadow);
}

.resource {
  border-radius: 10px;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game-hero {
  position: relative;
  min-height: 286px;
  padding: 36px 34px;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) 250px;
  gap: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(49, 232, 255, .1), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, rgba(17, 19, 31, .94), rgba(10, 12, 20, .98));
}

.hero-glow {
  position: absolute;
  inset: auto -80px -120px auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 216, .32), transparent 66%);
  pointer-events: none;
}

.cover-frame {
  position: relative;
  width: 204px;
  height: 204px;
  padding: 12px;
  border: 1px solid rgba(49, 232, 255, .42);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(49, 232, 255, .12), rgba(168, 85, 247, .18));
  box-shadow: 0 0 34px rgba(49, 232, 255, .2);
}

.cover {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.hero-copy {
  min-width: 0;
}

h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.22;
  letter-spacing: 0;
}

.summary {
  margin: 0;
  color: #c7cfe2;
  font-size: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tags a,
.tag-cloud a {
  border: 1px solid rgba(49, 232, 255, .25);
  background: rgba(49, 232, 255, .08);
  color: #dffbff;
  border-radius: 6px;
  font-size: 13px;
}

.tags a {
  padding: 6px 10px;
}

.tags a:hover,
.tag-cloud a:hover {
  border-color: rgba(255, 79, 216, .55);
  color: #fff;
}

.quick-panel {
  position: relative;
  z-index: 1;
  align-self: stretch;
  padding: 18px;
  border: 1px solid rgba(168, 85, 247, .28);
  border-radius: 10px;
  background: rgba(5, 6, 10, .5);
}

.quick-panel dl {
  margin: 0 0 18px;
}

.quick-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.quick-panel dt {
  color: #8995ad;
}

.quick-panel dd {
  margin: 0;
  color: #ffffff;
  font-weight: 700;
  text-align: right;
}

.download-button {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #05070d;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(49, 232, 255, .22);
}

.download-button:hover {
  filter: brightness(1.08);
}

.resource-content {
  padding: 30px 34px 34px;
}

.resource-content h2 {
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 4px solid var(--cyan);
  color: #ffffff;
  font-size: 22px;
  line-height: 1.35;
}

.resource-content p,
.resource-content li {
  color: #c6cee0;
  font-size: 16px;
}

.resource-content p {
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 1px solid rgba(122, 240, 255, .12);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(49, 232, 255, .07), rgba(255, 255, 255, .025));
  line-height: 1.9;
}

.resource-content ul {
  margin: 0;
  padding-left: 20px;
}

.resource-content li + li {
  margin-top: 8px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side-panel {
  padding: 20px;
  border-radius: 10px;
}

.side-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.side-panel h3 {
  margin: 0;
  font-size: 20px;
}

.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-entry + .update-entry {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.update-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.update-entry i {
  color: var(--cyan);
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.update-entry-featured {
  grid-template-columns: 28px 64px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
}

.update-thumb img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
}

.update-copy {
  min-width: 0;
}

.update-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f7f9ff;
  font-size: 15px;
  font-weight: 700;
}

.update-title:hover {
  color: var(--cyan);
}

.update-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
}

.update-tags a {
  display: inline-block;
  max-width: 142px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8f99b2;
  font-size: 12px;
  line-height: 1.2;
}

.update-list .update-tags a:hover {
  color: var(--cyan);
}

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

.tag-cloud a {
  padding: 7px 10px;
}

.tag-panel {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(122, 240, 255, .14);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(49, 232, 255, .06), rgba(255, 255, 255, .02));
}

.tag-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tag-panel h2 {
  margin: 0;
  font-size: 22px;
}

.tag-cloud-large {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tag-cloud-large a {
  text-align: center;
}

.site-footer {
  border-top: 1px solid rgba(122, 240, 255, .12);
  padding: 28px 0 34px;
  color: #828da5;
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--cyan);
}

.site-footer p {
  margin: 0;
}

.error-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-page {
  flex: 1;
  padding-top: 26px;
}

.error-card {
  position: relative;
  min-height: 430px;
  padding: 58px 70px;
  border: 1px solid rgba(122, 240, 255, .16);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(49, 232, 255, .10), rgba(255, 78, 224, .06) 78%, rgba(0, 0, 0, .22)),
    var(--panel);
  box-shadow: var(--shadow);
}

.error-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px;
}

.error-code,
.error-copy {
  position: relative;
  z-index: 1;
}

.error-code {
  font-size: 104px;
  line-height: 1;
  font-weight: 900;
  color: rgba(49, 232, 255, .16);
  text-shadow: 0 0 38px rgba(49, 232, 255, .26);
}

.error-copy h1 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.2;
}

.error-copy p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.error-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.error-actions .download-button {
  min-width: 142px;
  padding: 0 22px;
}

.category-hero {
  position: relative;
  min-height: 170px;
  padding: 32px 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(90deg, rgba(49, 232, 255, .1), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px),
    linear-gradient(180deg, rgba(17, 19, 31, .94), rgba(10, 12, 20, .98));
}

.category-copy {
  width: 100%;
  min-width: 0;
}

.category-copy h1 {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-copy p {
  max-width: 1120px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  color: #c7cfe2;
  font-size: 16px;
}

.category-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(17, 19, 31, .94), rgba(10, 12, 20, .98));
  box-shadow: var(--shadow);
}

.list-heading {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(122, 240, 255, .12);
}

.list-heading h2 {
  margin: 0;
  font-size: 24px;
}

.game-card-grid {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.game-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(122, 240, 255, .12);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(49, 232, 255, .055), rgba(255, 255, 255, .025));
}

.game-card-cover,
.game-card-cover img {
  width: 96px;
  height: 96px;
  border-radius: 9px;
}

.game-card-cover img {
  object-fit: cover;
}

.game-card-copy h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.game-card-copy h3 a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-copy p {
  margin: 0 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #c6cee0;
}

.game-card-meta,
.mini-tags {
  display: none;
}

.game-card-meta {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: #8f99b2;
  font-size: 13px;
}

.mini-tags {
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tags a {
  padding: 5px 8px;
  border: 1px solid rgba(49, 232, 255, .2);
  border-radius: 6px;
  background: rgba(49, 232, 255, .06);
  color: #dffbff;
  font-size: 12px;
}

.pagination {
  padding: 0 22px 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 232, 255, .22);
  border-radius: 7px;
  background: rgba(49, 232, 255, .06);
  color: #c9d1e6;
  font-weight: 800;
}

.page-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #060812;
}
