﻿@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --bg: #080b12;
  --bg-soft: #0e1422;
  --panel: #111a2d;
  --panel-2: #162138;
  --ink: #eaf1ff;
  --muted: #a9b8d4;
  --line: #2b3c5a;
  --brand: #ff7a1a;
  --brand-2: #39c9ff;
  --danger: #ff5f5f;
  --success: #2fcf8e;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: 'Noto Sans SC', 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-1 {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 122, 26, 0.32) 0%, transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(57, 201, 255, 0.3) 0%, transparent 28%),
    radial-gradient(circle at 80% 92%, rgba(47, 207, 142, 0.2) 0%, transparent 25%),
    linear-gradient(180deg, #0a101d 0%, #080b12 100%);
}

.bg-2 {
  z-index: -1;
  opacity: 0.36;
  background-image:
    linear-gradient(transparent 96%, rgba(255, 255, 255, 0.08) 100%),
    linear-gradient(90deg, transparent 96%, rgba(255, 255, 255, 0.06) 100%);
  background-size: 36px 36px;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 284px;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(15, 24, 42, 0.95) 0%, rgba(10, 16, 28, 0.96) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-logo-mini {
  width: 58px;
  height: 58px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.brand h1 {
  margin: 0;
  font-size: 1.12rem;
  font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
  letter-spacing: 0.6px;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  color: #d7e4ff;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.sidebar nav a:hover,
.sidebar nav a:focus {
  border-color: rgba(57, 201, 255, 0.46);
  background: rgba(57, 201, 255, 0.12);
  transform: translateX(2px);
}

.sidebar-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  font-size: 0.78rem;
  color: #96a7ca;
  line-height: 1.6;
}

.overlay {
  display: none;
}

.app {
  margin-left: 284px;
  padding: 18px 24px 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 0 14px;
  backdrop-filter: blur(8px);
}

.menu-btn {
  display: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(120deg, rgba(255, 122, 26, 0.2) 0%, rgba(57, 201, 255, 0.18) 100%);
  box-shadow: var(--shadow);
}

.language-switch span {
  font-size: 0.9rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  font-weight: 700;
  color: #d9e6ff;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.lang-btn.active {
  background: linear-gradient(90deg, var(--brand) 0%, #ff9a4e 100%);
  color: #1f1204;
}

main {
  display: grid;
  gap: 16px;
}

.card,
.card-lite {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 28, 48, 0.95) 0%, rgba(13, 22, 38, 0.97) 100%);
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

.card-lite {
  padding: 14px;
}

.hero {
  animation: riseIn 0.55s ease;
}

.hero-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.25fr 0.75fr;
}

.hero-topline {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.6px;
  color: #062033;
  background: linear-gradient(90deg, #ffe1bf 0%, #9de7ff 100%);
}

.hero h2 {
  margin: 12px 0 6px;
  font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  letter-spacing: 0.4px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.logo-panel {
  background: linear-gradient(160deg, rgba(255, 122, 26, 0.14) 0%, rgba(57, 201, 255, 0.14) 100%);
  border-color: rgba(255, 255, 255, 0.22);
  display: grid;
  align-content: center;
  gap: 10px;
}

.hero-logo {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
}

.warning-box {
  margin-top: 14px;
  border: 1px solid rgba(255, 122, 26, 0.6);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(93, 45, 14, 0.45) 0%, rgba(58, 33, 18, 0.32) 100%);
  padding: 14px;
}

.warning-box h3 {
  margin: 0 0 8px;
  color: #ffd5b0;
}

.warning-box ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
}

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

.notice {
  background: linear-gradient(180deg, rgba(19, 32, 55, 0.9) 0%, rgba(17, 28, 44, 0.95) 100%);
}

.notice h4 {
  margin: 0 0 6px;
  color: #9fdfff;
}

.notice p {
  margin: 0;
}

.block-title {
  margin: 20px 0 10px;
  font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
  font-size: 1.28rem;
}

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

.download-card {
  text-decoration: none;
  color: var(--ink);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  background: linear-gradient(145deg, rgba(23, 35, 58, 0.96) 0%, rgba(17, 27, 45, 0.96) 100%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 201, 255, 0.56);
  box-shadow: 0 10px 24px rgba(57, 201, 255, 0.18);
}

.download-card.is-disabled {
  opacity: 0.72;
  cursor: default;
}

.download-card.is-disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.download-card h4 {
  margin: 0 0 6px;
  color: #92dcff;
}

.download-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.section h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-family: 'Rajdhani', 'Noto Sans SC', sans-serif;
}

.feature-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  line-height: 1.75;
}

.feature-list li::marker {
  color: #7ce0ff;
}

#legendsContent p {
  margin: 8px 0;
  line-height: 1.75;
}

.altar-box {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(10, 16, 30, 0.65);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #dae8ff;
  white-space: pre-wrap;
}

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

.stats-grid strong {
  font-size: 1.38rem;
  color: #7ce0ff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14, 23, 40, 0.95);
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  padding: 10px;
  font-size: 0.92rem;
}

th {
  background: rgba(57, 201, 255, 0.14);
  color: #cdefff;
}

.raw-files {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(10, 18, 32, 0.72);
  padding: 8px 10px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

pre {
  margin: 10px 0 0;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px;
  line-height: 1.55;
  font-size: 0.84rem;
  background: #0b1323;
  color: #dde8ff;
}

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

.community-links a {
  color: #8de5ff;
  text-decoration: none;
  font-weight: 700;
}

.community-links a:hover {
  color: #c8f2ff;
}

.community-links a.is-disabled {
  opacity: 0.72;
  cursor: default;
}

.community-links a.is-disabled:hover {
  color: #8de5ff;
}

.support-worlds {
  margin-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}

.support-worlds-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.support-worlds h4 {
  margin: 0;
  color: #ffd4b2;
}

.support-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  color: #f6fbff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #ff7a1a 0%, #39c9ff 100%);
  box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.22), 0 10px 20px rgba(57, 201, 255, 0.26);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  animation: uploadPulse 1.6s ease-in-out infinite;
}

.support-upload-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 0 2px rgba(57, 201, 255, 0.28), 0 12px 22px rgba(255, 122, 26, 0.3);
}

@keyframes uploadPulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.22), 0 10px 20px rgba(57, 201, 255, 0.26);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.32), 0 14px 26px rgba(57, 201, 255, 0.35);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.24s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    z-index: 18;
  }

  .app {
    margin-left: 0;
    padding: 14px 14px 48px;
  }

  .topbar {
    justify-content: space-between;
  }

  .menu-btn {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(14, 24, 41, 0.9);
    color: var(--ink);
    padding: 7px 10px;
    cursor: pointer;
    font-weight: 700;
  }

  .language-switch {
    transform: scale(0.95);
    transform-origin: right center;
  }

  .support-worlds-head {
    flex-wrap: wrap;
  }
}
