:root {
  color-scheme: dark;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #05060a;
  --panel: #10121a;
  --panel-light: #151826;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fbff;
  --text-dim: rgba(248, 251, 255, 0.7);
  --accent: #ffbd2f;
  --accent-strong: #f66b0e;
  --success: #37ff8b;
  --danger: #ff5f6d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

header,
section,
footer {
  padding: 24px clamp(16px, 6vw, 80px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 18px clamp(16px, 6vw, 80px);
  background: rgba(5, 6, 10, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.branding img {
  width: 48px;
  height: 48px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

.brand-desc {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text);
  font-size: 0.92rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  border-color: var(--accent);
  background: rgba(255, 189, 47, 0.1);
}

.site-nav a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 189, 47, 0.2);
  box-shadow: 0 0 16px rgba(255, 189, 47, 0.25);
}

.cta {
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

.cta.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0a0b10;
  border: none;
}

.cta.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.cta.small {
  padding: 0.35rem 1rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding-top: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.announcement {
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
  color: var(--text-dim);
}
.subtitle.small {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.hero-access {
  display: grid;
  grid-template-columns: repeat(2, 600px);
  gap: 2rem;
  align-items: stretch;
  justify-content: center;
}

.hero-download {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: center;
  min-height: 280px;
}

.hero-access > .hero-download,
.hero-access > .hero-miniapp {
  height: 100%;
}

.hero-download__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hero-download__info h3,
.hero-miniapp__info h3 {
  margin: 0;
  align-self: flex-start;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
  width: 100%;
}

.download-btn {
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  flex: 1 1 220px;
  text-align: center;
}

.download-btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border: none;
  color: #0f111b;
}

.download-btn.ghost {
  background: transparent;
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1.25rem;
}

.download-meta span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.download-meta strong {
  font-size: 1.2rem;
  color: var(--text);
}

.hero-download__preview {
  flex: 0 0 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mock {
  width: 210px;
  height: 420px;
  border-radius: 32px;
  padding: 0.3rem;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: #020308;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.55);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: url("./assets/app-preview.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.8rem;
}

.hero-miniapp {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: center;
  min-height: 280px;
}

.hero-miniapp__info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.miniapp-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.miniapp-features li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--accent);
}

.hero-miniapp__qr {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

.hero-miniapp__qr img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-miniapp__qr p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .hero-download,
  .hero-miniapp {
    flex-wrap: wrap;
    min-height: auto;
  }

  .hero-download__preview,
  .hero-miniapp__qr {
    flex: 1 1 200px;
  }
}

@media (max-width: 1240px) {
  .hero-access {
    grid-template-columns: 1fr;
  }

  .hero-access > .hero-download,
  .hero-access > .hero-miniapp {
    width: 100%;
  }
}

.section {
  border-bottom: 1px solid var(--border);
  padding-top: 64px;
  padding-bottom: 64px;
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card h3 {
  margin: 0;
}

.feature-card p {
  flex: 1;
  color: var(--text-dim);
}

.feature-card a {
  font-weight: 600;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.status-card .label {
  color: var(--text-dim);
  margin: 0;
}

.status-card .value {
  font-size: 1.6rem;
  margin: 0.4rem 0 0;
}

.status-online .value {
  color: var(--success);
}

.status-maintenance .value {
  color: var(--danger);
}

.ban-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ban-form label {
  font-weight: 600;
}

.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.input-row input {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.helper {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.ban-result {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.ban-card {
  margin-top: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.ban-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ban-card__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.ban-card__badge {
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 210, 127, 0.3);
  font-weight: 700;
  color: #2ddf7e;
  background: rgba(45, 223, 126, 0.12);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.ban-card__body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.ban-card__tier {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ban-card__tier img {
  width: 48px;
  height: 48px;
}

.ban-card__tier span {
  font-size: 1.1rem;
  font-weight: 500;
}

.ban-result img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.ban-history {
  margin-top: 2rem;
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.text-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

#ban-history-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

#ban-history-list li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.accordion {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.accordion details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
}

.accordion summary {
  cursor: pointer;
  font-weight: 600;
}

.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.weapon-card {
  background: var(--panel-light);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--border);
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.weapon-card-main {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.weapon-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: #05060a;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem;
}

.weapon-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.weapon-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.weapon-mode {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.weapon-type {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent);
}

.weapon-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.weapon-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.weapon-stat span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.weapon-stat strong {
  font-size: 1.05rem;
  color: var(--text);
}

dialog {
  border: none;
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  width: min(420px, 90vw);
}

dialog article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#weapon-dialog-close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filters select,
.filters input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  min-width: 160px;
}

.helper-inline {
  margin: 0;
  font-size: 0.92rem;
}

.table-wrapper {
  margin-top: 1.25rem;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-dim);
  font-weight: 500;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.lb-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lb-rank-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.lb-main-row {
  cursor: pointer;
}

.lb-detail-row {
  display: none;
  background: rgba(0, 0, 0, 0.2);
}

.lb-detail-row--visible {
  display: table-row;
}

.lb-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.lb-main-row {
  cursor: pointer;
}

.lb-toggle-cell,
.lb-detail-toggle-cell {
  width: 72px;
  text-align: right;
}

.lb-toggle-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.1rem 0.8rem;
  background: transparent;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
}

.lb-toggle-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.lb-detail-row {
  display: none;
  background: rgba(255, 255, 255, 0.02);
}

.lb-detail-row--visible {
  display: table-row;
}

.lb-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem 3rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top img {
  width: 28px;
  height: 28px;
}

.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
}

.imglib-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--panel);
  border: 1px dashed var(--border);
  color: var(--text-dim);
}

.imglib-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.img-card {
  position: relative;
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.img-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.7), rgba(5, 6, 10, 0.85));
}

.img-card > img,
.img-card > div {
  position: relative;
}

.img-card > img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.img-card__image-large {
  height: 220px;
}

.img-card .quality {
  font-size: 0.9rem;
  font-weight: 600;
}

.imglib-results ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.imglib-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}

.imglib-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--panel-light);
  border-radius: 8px;
}

.legal-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.legal-grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  background: #04050a;
  border-top: 1px solid var(--border);
}

footer h4 {
  margin-top: 0;
}

footer p {
  margin: 0.2rem 0;
  color: var(--text-dim);
}

@media (max-width: 720px) {
  .site-nav {
    order: 3;
  }

  .inline-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-row {
    flex-direction: column;
  }

  .hero {
    padding-top: 24px;
  }
}

