*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #F7F3EA;
  background-color: #2B0F4C;
  min-height: 100vh;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: 3px;
}

:root {
  --c-deep: #2B0F4C;
  --c-light-purple: #6F4F9F;
  --c-gold: #FFD700;
  --c-red: #FF2E63;
  --c-cream: #F4EAD6;
  --c-ink: #2E1E14;
  --c-white: #F7F3EA;
  --c-muted: #3A1F5C;
  --c-success: #2DE2A6;
  --font-title: Impact, 'Black Ops One', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  --border-w: 3px;
  --shadow-hard: 8px 8px 0 #2E1E14;
  --shadow-gold: 8px 8px 0 #FFD700;
  --radius-lg: 18px;
  --radius-md: 12px;
  --content-width: 1280px;
  --content-pad: clamp(16px, 4vw, 40px);
}

.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

#main-content {
  outline: none;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 11000;
  padding: 12px 20px;
  background: #F4EAD6;
  color: #2E1E14;
  border: 3px solid #2E1E14;
  box-shadow: 6px 6px 0 #2E1E14;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  z-index: 10050;
  background: linear-gradient(90deg, #FFD700, #FF2E63);
  pointer-events: none;
  transition: width 0.05s linear;
}

.announce-bar {
  background: #FF2E63;
  color: #FFFFFF;
  overflow: hidden;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.announce-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFD700;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 3px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header[data-scrolled] {
  background: rgba(43, 15, 76, 0.94);
  border-bottom-color: #FFD700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #FFD700;
  color: #2B0F4C;
  border: 3px solid #2E1E14;
  border-radius: 12px 4px 12px 4px;
  box-shadow: 4px 4px 0 #2E1E14;
  font-family: var(--font-title);
  font-size: 28px;
  line-height: 1;
  transform: rotate(-6deg);
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-link:hover .brand-glyph {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 6px 6px 0 #2E1E14;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #F7F3EA;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFD700;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #F7F3EA;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  background: #FF2E63;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: #FFD700;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 12px;
  background: transparent;
  border: 3px solid #FFD700;
  border-radius: 12px;
  color: #FFD700;
  font-size: 14px;
  font-weight: 700;
}

.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #FFD700;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  margin-top: clamp(24px, 5vw, 56px);
  background: rgba(111, 79, 159, 0.08);
  border: 3px solid rgba(111, 79, 159, 0.45);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.section + .section {
  margin-top: clamp(48px, 8vw, 96px);
}

.section-header {
  position: relative;
  margin-bottom: 28px;
  padding-left: 22px;
  border-left: 6px solid #FF2E63;
}

.section-no {
  display: block;
  font-family: var(--font-data);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(255, 215, 0, 0.18);
  margin-bottom: -18px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  color: #F7F3EA;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-lead {
  max-width: 56ch;
  margin-top: 10px;
  color: #F7F3EA;
  opacity: 0.78;
  font-size: 16px;
}

.panel {
  background: var(--c-muted);
  border: 3px solid var(--c-light-purple);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: #F4EAD6;
  color: #2E1E14;
  border: 3px solid #2E1E14;
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 #2E1E14;
}

.card--dark {
  background: #2B0F4C;
  color: #F7F3EA;
  border-color: #FFD700;
  box-shadow: 8px 8px 0 #FFD700;
}

.card--dark:hover {
  box-shadow: 12px 12px 0 #FFD700;
}

.card-header {
  margin-bottom: 14px;
}

.card-title {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.2;
  color: inherit;
}

.card-body {
  font-size: 15px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  background: #FFD700;
  color: #2E1E14;
  border: 3px solid #2E1E14;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #2E1E14;
}

.btn-ghost {
  background: transparent;
  color: #F4EAD6;
  border-color: #F4EAD6;
}

.btn-ghost:hover {
  background: #F4EAD6;
  color: #2B0F4C;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #F7F3EA;
  color: #2E1E14;
  border: 2px solid #2E1E14;
  border-radius: 6px;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.badge-gold {
  background: #FFD700;
  color: #2B0F4C;
  border-color: #2E1E14;
}

.badge-red {
  background: #FF2E63;
  color: #FFFFFF;
  border-color: #2E1E14;
}

.badge-green {
  background: #2DE2A6;
  color: #2E1E14;
  border-color: #2E1E14;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(111, 79, 159, 0.25);
  border: 2px solid #6F4F9F;
  border-radius: 4px;
  color: #F7F3EA;
  font-size: 13px;
  font-weight: 500;
}

.divider {
  height: 4px;
  border: 0;
  background: linear-gradient(90deg, #FFD700, #FF2E63);
  margin: 28px 0;
}

.data-text {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.prose p {
  margin-bottom: 16px;
  line-height: 1.85;
}

.prose h2,
.prose h3 {
  color: #FFD700;
  font-family: var(--font-title);
  margin-bottom: 12px;
  line-height: 1.2;
}

.prose h2 {
  font-size: 26px;
}

.prose h3 {
  font-size: 20px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 6px;
}

.content-wrap {
  max-width: 800px;
  margin-inline: auto;
  padding: 48px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 24px 0;
  font-size: 14px;
  color: #F7F3EA;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #6F4F9F;
  font-family: var(--font-data);
}

.breadcrumb-link {
  color: #FFD700;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.notice {
  padding: 16px 20px;
  background: #F4EAD6;
  color: #2E1E14;
  border: 3px solid #2E1E14;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #2E1E14;
  font-size: 15px;
}

.notice-warning {
  background: rgba(255, 46, 99, 0.14);
  color: #F7F3EA;
  border-color: #FF2E63;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #6F4F9F;
  border: 3px solid #2E1E14;
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43, 15, 76, 0) 55%, rgba(255, 46, 99, 0.25) 100%);
  pointer-events: none;
}

.footer-nav-list li + li,
.footer-meta-list li + li {
  margin-top: 6px;
}

.site-footer {
  position: relative;
  margin-top: 80px;
  background: #3A1F5C;
  color: #F7F3EA;
  border-top: 4px solid #FFD700;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

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

.footer-brand-glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #FFD700;
  color: #2B0F4C;
  border: 3px solid #2E1E14;
  border-radius: 12px 4px 12px 4px;
  box-shadow: 4px 4px 0 #2E1E14;
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1;
  transform: rotate(-6deg);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-brand-name {
  font-family: var(--font-title);
  font-size: 20px;
  color: #F7F3EA;
  letter-spacing: 0.02em;
}

.footer-brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFD700;
}

.footer-blurb {
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.75);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(43, 15, 76, 0.65);
  border: 2px solid #6F4F9F;
  border-radius: 10px;
  font-size: 13px;
}

.status-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2DE2A6;
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(45, 226, 166, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(45, 226, 166, 0);
  }
}

.status-label {
  color: rgba(247, 243, 234, 0.65);
  font-size: 12px;
}

.footer-nav-column,
.footer-meta-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #FFD700;
  padding-bottom: 8px;
  border-bottom: 3px solid #FF2E63;
}

.footer-link {
  font-size: 15px;
  font-weight: 500;
  color: #F7F3EA;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #FFD700;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid rgba(111, 79, 159, 0.6);
}

.footer-contact-line {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 243, 234, 0.75);
  font-family: var(--font-data);
}

.footer-bottom {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.footer-copyright {
  font-size: 14px;
  color: rgba(247, 243, 234, 0.85);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-legal-item {
  font-size: 13px;
}

.footer-icp {
  font-family: var(--font-data);
  color: #6F4F9F;
}

.footer-note {
  position: relative;
  padding-top: 16px;
  padding-bottom: 32px;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(247, 243, 234, 0.5);
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1002;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: #FFD700;
  color: #2B0F4C;
  border: 3px solid #2E1E14;
  border-radius: 14px;
  box-shadow: 6px 6px 0 #2E1E14;
  font-size: 22px;
  font-weight: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, box-shadow 0.2s;
}

.back-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-2px);
  box-shadow: 9px 9px 0 #2E1E14;
}

@media (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #2B0F4C;
    border-top: 3px solid #FFD700;
    border-bottom: 3px solid #FFD700;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
    padding: 16px 20px 24px;
  }

  .site-nav[data-open] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    display: flex;
    padding: 14px 16px;
    font-size: 18px;
    border: 2px solid transparent;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    background: rgba(111, 79, 159, 0.18);
    border-color: rgba(255, 215, 0, 0.4);
  }

  .nav-link::after {
    display: none;
  }

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

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 64px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    letter-spacing: 0.04em;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand-column {
    grid-column: auto;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-progress {
    transition: none;
  }
}
