:root {
  --c-bg: #0A192F;
  --c-accent: #00FFAA;
  --c-hot: #FF4D4D;
  --c-card: #112240;
  --c-muted: #8892B0;
  --c-white: #FFFFFF;
  --c-link: #00B4D8;
  --c-ink: #01040A;
  --font-head: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", Consolas, "Courier New", monospace;
  --site-width: 1200px;
  --radius: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 6px 20px rgba(1, 4, 10, 0.35);
  --shadow-float: 0 18px 50px rgba(1, 4, 10, 0.55);
  --header-z: 1000;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: clamp(16px, 1vw + 2px, 18px);
  line-height: 1.75;
  color: var(--c-white);
  background-color: var(--c-bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.25;
  color: var(--c-white);
}

h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: 0.02em; }
h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: 0.02em; }
h3 { font-size: clamp(20px, 2.2vw, 28px); }
h4 { font-size: 18px; }

p {
  line-height: 1.75;
}

a {
  color: var(--c-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-accent);
}

ul, ol {
  list-style: none;
  padding: 0;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--c-accent);
  color: var(--c-bg);
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--site-width);
  margin-inline: auto;
}

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

.blueprint-grid {
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.vertical-text {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.grid__col-3 { grid-column: span 3; }
.grid__col-4 { grid-column: span 4; }
.grid__col-6 { grid-column: span 6; }
.grid__col-8 { grid-column: span 8; }

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .grid__col-3,
  .grid__col-4,
  .grid__col-6,
  .grid__col-8 {
    grid-column: span 1;
  }
}

.prose {
  max-width: 68ch;
}

.prose p {
  margin-bottom: 1.2em;
}

.media {
  position: relative;
  overflow: hidden;
  background: var(--c-card);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--full { aspect-ratio: 21 / 9; }

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

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-muted);
  vertical-align: middle;
}

.dot--live {
  background: var(--c-accent);
  box-shadow: 0 0 8px var(--c-accent);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: 2px solid var(--c-accent);
  border-radius: 8px;
  background: transparent;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-bg);
}

.btn--primary:hover {
  background: rgba(0, 255, 170, 0.85);
  box-shadow: 0 0 24px rgba(0, 255, 170, 0.35);
  color: var(--c-bg);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--c-white);
}

.btn--ghost:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(0, 255, 170, 0.06);
}

.btn--hot {
  border-color: var(--c-hot);
  color: var(--c-hot);
}

.btn--hot:hover {
  background: var(--c-hot);
  color: var(--c-ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(0, 180, 216, 0.45);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-link);
  background: rgba(0, 180, 216, 0.08);
}

.tag--live {
  border-color: rgba(0, 255, 170, 0.5);
  color: var(--c-accent);
  background: rgba(0, 255, 170, 0.08);
}

.tag--hot {
  border-color: rgba(255, 77, 77, 0.55);
  color: var(--c-hot);
  background: rgba(255, 77, 77, 0.08);
}

.card {
  background: var(--c-card);
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 170, 0.35);
  box-shadow: var(--shadow-float);
}

.card__title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.card__text {
  font-size: 15px;
  color: var(--c-muted);
}

.sec-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  text-transform: uppercase;
}

.sec-index::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--c-accent);
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-muted);
}

.breadcrumb__link {
  color: var(--c-link);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--c-accent);
}

.breadcrumb__sep {
  color: var(--c-accent);
}

.breadcrumb__current {
  color: var(--c-white);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 3000;
  transform: translateY(calc(-100% - 24px));
  padding: 10px 20px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-weight: 900;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--header-z);
}

.site-header__ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px clamp(16px, 3vw, 32px);
  background: var(--c-ink);
  border-bottom: 1px solid rgba(0, 255, 170, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  overflow: hidden;
  white-space: nowrap;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease, border-color 0.4s ease;
}

.site-header__coord {
  color: var(--c-accent);
}

.site-header__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-header__ver {
  color: var(--c-link);
}

.site-header.is-scrolled .site-header__ticker {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.site-header__capsule {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 20px);
  max-width: calc(var(--site-width) - 24px);
  margin: 10px auto 8px;
  padding: 10px 12px 10px 16px;
  background: rgba(10, 25, 47, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(0, 255, 170, 0.28);
  border-radius: 26px;
  box-shadow: 0 8px 32px rgba(1, 4, 10, 0.5);
  transition: margin 0.35s ease, border-color 0.35s ease;
}

.site-header.is-scrolled .site-header__capsule {
  margin-top: 6px;
  border-color: rgba(0, 255, 170, 0.45);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  clip-path: polygon(0 0, 88% 0, 98% 48%, 88% 100%, 0 100%);
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-brand__name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: var(--c-white);
}

.site-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-accent);
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 8px;
  right: 8px;
  z-index: 900;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 2px solid rgba(0, 255, 170, 0.45);
  border-radius: 18px;
  background: rgba(10, 25, 47, 0.98);
  box-shadow: var(--shadow-float);
}

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

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__link::before {
  content: attr(data-index);
  margin-right: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--c-link);
}

.site-nav__link:hover {
  color: var(--c-white);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__link[aria-current="page"] {
  color: var(--c-bg);
  background: var(--c-accent);
  box-shadow: 0 0 18px rgba(0, 255, 170, 0.35);
}

.site-nav__link[aria-current="page"]::before {
  color: var(--c-bg);
}

.site-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 2px solid rgba(0, 255, 170, 0.4);
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-nav-toggle:hover {
  border-color: var(--c-accent);
  background: rgba(0, 255, 170, 0.08);
}

.site-nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

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

.site-header__progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 5;
  pointer-events: none;
}

.site-header__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--c-accent), var(--c-link));
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.7);
  transition: width 0.1s linear;
}

.site-footer {
  position: relative;
  margin-top: 80px;
  background-color: var(--c-ink);
  background-image:
    linear-gradient(rgba(0, 255, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 170, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

.site-footer::before {
  content: "";
  display: block;
  height: 8px;
  background: repeating-linear-gradient(
    135deg,
    var(--c-accent) 0,
    var(--c-accent) 14px,
    var(--c-ink) 14px,
    var(--c-ink) 28px
  );
}

.site-footer::after {
  content: "N28°40′55″ E115°51′28″ · 南昌";
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(136, 146, 176, 0.25);
  pointer-events: none;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 44px 0 32px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.site-footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
}

.site-footer__name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--c-white);
}

.site-footer__tagline {
  max-width: 30em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-muted);
  border-left: 3px solid var(--c-accent);
  padding-left: 14px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-footer__title {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-accent);
}

.site-footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer__link:hover {
  color: var(--c-accent);
  transform: translateX(4px);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__contact-item {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-white);
  font-family: var(--font-mono);
}

.site-footer__contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--c-link);
  margin-bottom: 2px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-bar__btn {
  padding: 8px 20px;
  border: 2px solid rgba(0, 255, 170, 0.35);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-accent);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar__btn:hover {
  border-color: var(--c-accent);
  background: rgba(0, 255, 170, 0.08);
}

.filter-bar__btn.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-bg);
  box-shadow: 0 0 16px rgba(0, 255, 170, 0.35);
}

.filter-hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 861px) {
  .site-header__capsule {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 14px auto;
    padding: 8px 10px 8px 20px;
    border-radius: 999px;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav__link {
    padding: 8px 14px;
    font-size: 14px;
  }

  .site-nav-toggle {
    display: none;
  }
}

@media (min-width: 960px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .site-header__status,
  .site-header__ver {
    display: none;
  }

  .site-header__ticker {
    justify-content: center;
  }

  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .site-footer::after {
    display: none;
  }
}

@media (max-width: 380px) {
  .site-brand__sub {
    display: none;
  }
}

@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;
    transition-delay: 0ms !important;
  }

  .card:hover,
  .btn:hover {
    transform: none;
  }
}
