:root {
  --deep-black: #0A0A12;
  --electric-blue: #1E88FF;
  --neon-purple: #B026FF;
  --fluorescent-green: #39FF14;
  --soft-cyan: #54E6FF;
  --dark-slate: #131523;
  --steel-gray: #A0A6B0;
  --off-white: #F0F4FF;
  --font-display: "Rajdhani", "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-height: 72px;
  --container-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-panel: 0 20px 60px rgba(0,0,0,0.45);
  --border-glow: 0 0 0 1px rgba(30,136,255,0.35), 0 0 24px rgba(30,136,255,0.12);
  --transition-base: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--off-white);
  background: var(--deep-black);
  background-image:
    linear-gradient(rgba(30,136,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,136,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: var(--soft-cyan);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--off-white);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--fluorescent-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--electric-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

#main-content {
  scroll-margin-top: var(--header-height);
}

.container {
  width: min(100% - 48px, var(--container-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(30, 136, 255, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.header-inner {
  width: min(100% - 48px, var(--container-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--off-white);
}

.site-brand:hover {
  color: var(--off-white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--electric-blue), var(--neon-purple));
  border-radius: 12px 4px 12px 4px;
  box-shadow: 0 0 24px rgba(30, 136, 255, 0.4);
}

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

.brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text small {
  font-size: 11px;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  color: var(--steel-gray);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  position: relative;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(240, 244, 255, 0.78);
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(30, 136, 255, 0.14);
}

.main-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(90deg, rgba(30, 136, 255, 0.28), rgba(176, 38, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(30, 136, 255, 0.5);
}

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--fluorescent-green);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--fluorescent-green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  background: rgba(19, 21, 35, 0.8);
  border: 1px solid rgba(30, 136, 255, 0.3);
}

.nav-toggle-line {
  width: 20px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, #0C0D18 0%, #08080F 100%);
  border-top: 1px solid rgba(30, 136, 255, 0.2);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--electric-blue), var(--neon-purple), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 48px;
  width: min(100% - 48px, var(--container-width));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--off-white);
  padding: 4px 14px 4px 0;
}

.footer-logo::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 26px;
  margin-right: 10px;
  background: linear-gradient(180deg, var(--electric-blue), var(--neon-purple));
  vertical-align: -4px;
  border-radius: 4px 0 4px 0;
}

.footer-tagline {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-gray);
}

.footer-trust {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--steel-gray);
  max-width: 38ch;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--electric-blue), transparent) 1;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--steel-gray);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-links a:hover {
  color: var(--soft-cyan);
  padding-left: 6px;
}

.footer-contact {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--steel-gray);
}

.footer-bottom {
  border-top: 1px solid rgba(160, 166, 176, 0.14);
  width: min(100% - 48px, var(--container-width));
  margin: 0 auto;
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--steel-gray);
}

.footer-copyright {
  letter-spacing: 0.04em;
}

.footer-update-log {
  color: rgba(160, 166, 176, 0.8);
  text-align: right;
}

.terminal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--dark-slate);
  border: 1px solid rgba(30, 136, 255, 0.22);
  border-left: 3px solid var(--electric-blue);
  border-radius: var(--radius-md);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  color: var(--steel-gray);
}

.terminal-bar .status-dot {
  margin-right: 6px;
}

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

.bento-grid > * {
  grid-column: span 4;
}

.bento-grid .span-2 {
  grid-column: span 2;
}

.bento-grid .span-3 {
  grid-column: span 3;
}

.bento-grid .span-5 {
  grid-column: span 5;
}

.bento-grid .span-6 {
  grid-column: span 6;
}

.bento-grid .span-7 {
  grid-column: span 7;
}

.bento-grid .span-8 {
  grid-column: span 8;
}

.bento-grid .span-9 {
  grid-column: span 9;
}

.bento-grid .span-10 {
  grid-column: span 10;
}

.bento-grid .span-12 {
  grid-column: span 12;
}

.bento-grid .tall {
  grid-row: span 2;
}

.data-panel {
  position: relative;
  background: linear-gradient(160deg, rgba(19, 21, 35, 0.95), rgba(13, 14, 24, 0.95));
  border: 1px solid rgba(160, 166, 176, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.data-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 80%) var(--mouse-y, 0%), rgba(30, 136, 255, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.data-panel:hover {
  border-color: rgba(30, 136, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--border-glow), var(--shadow-panel);
}

.data-panel:hover::before {
  opacity: 1;
}

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

.panel-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-gray);
}

.panel-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240, 244, 255, 0.86);
}

.panel-body strong {
  color: var(--off-white);
}

.version-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--fluorescent-green);
  border-radius: 999px;
  color: var(--fluorescent-green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.18);
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--electric-blue);
  background: rgba(30, 136, 255, 0.12);
  border: 1px solid rgba(30, 136, 255, 0.4);
}

.tag-chip.purple {
  color: var(--neon-purple);
  background: rgba(176, 38, 255, 0.1);
  border-color: rgba(176, 38, 255, 0.4);
}

.tag-chip.green {
  color: var(--fluorescent-green);
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.35);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fluorescent-green);
  box-shadow: 0 0 10px var(--fluorescent-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

.is-maintenance .status-dot {
  background: #FFC400;
  box-shadow: 0 0 10px #FFC400;
}

.is-offline .status-dot {
  background: #FF4D4D;
  box-shadow: 0 0 10px #FF4D4D;
}

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

.content-page-header {
  position: relative;
  padding: calc(var(--header-height) + 72px) 0 56px;
  background:
    linear-gradient(120deg, rgba(30, 136, 255, 0.12), transparent 42%),
    linear-gradient(220deg, rgba(176, 38, 255, 0.08), transparent 50%);
  border-bottom: 1px solid rgba(30, 136, 255, 0.16);
  overflow: hidden;
}

.content-page-header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  background: conic-gradient(from 120deg at 50% 50%, transparent 0deg, rgba(30, 136, 255, 0.22) 80deg, transparent 160deg, rgba(176, 38, 255, 0.16) 250deg, transparent 360deg);
  border-radius: 50%;
  filter: blur(8px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--steel-gray);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.breadcrumb a {
  color: var(--steel-gray);
}

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

.breadcrumb span[aria-hidden="true"] {
  color: rgba(160, 166, 176, 0.4);
}

.page-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--off-white);
}

.page-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--electric-blue), var(--neon-purple), transparent);
  border-radius: 4px;
}

.page-description {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--steel-gray);
}

.prose-section {
  max-width: 68ch;
  margin: 0 auto;
  padding: 64px 24px;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(240, 244, 255, 0.82);
}

.prose-section h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--off-white);
  margin: 40px 0 16px;
  letter-spacing: 0.02em;
}

.prose-section h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--off-white);
  margin: 28px 0 12px;
}

.prose-section p {
  margin-bottom: 18px;
}

.prose-section a {
  color: var(--soft-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-section ul {
  margin: 0 0 18px;
  padding-left: 4px;
}

.prose-section ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.prose-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--electric-blue), var(--neon-purple));
  transform: rotate(45deg);
  border-radius: 2px;
}

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

.filter-btn {
  padding: 8px 18px;
  border: 1px solid rgba(160, 166, 176, 0.3);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--steel-gray);
  background: transparent;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--electric-blue);
  color: var(--off-white);
  box-shadow: 0 0 16px rgba(30, 136, 255, 0.15);
}

.filter-btn.is-active {
  background: linear-gradient(90deg, var(--electric-blue), var(--neon-purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 136, 255, 0.35);
}

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(19, 21, 35, 0.92);
  border: 1px solid rgba(30, 136, 255, 0.5);
  color: var(--soft-cyan);
  font-size: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(30, 136, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 24px rgba(30, 136, 255, 0.4);
}

.copy-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--dark-slate);
  border: 1px solid rgba(30, 136, 255, 0.25);
  border-radius: var(--radius-md);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  color: var(--soft-cyan);
  margin-bottom: 20px;
}

.copy-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid rgba(30, 136, 255, 0.4);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--off-white);
  background: rgba(30, 136, 255, 0.12);
  transition: all 0.25s ease;
}

.copy-btn:hover {
  background: rgba(30, 136, 255, 0.3);
  box-shadow: 0 0 14px rgba(30, 136, 255, 0.3);
}

.copy-btn.is-copied {
  border-color: var(--fluorescent-green);
  color: var(--fluorescent-green);
  background: rgba(57, 255, 20, 0.1);
}

.basic-image {
  position: relative;
  display: block;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(19, 21, 35, 0.6), rgba(10, 10, 18, 0.9));
  border: 1px dashed rgba(30, 136, 255, 0.35);
  overflow: hidden;
}

.basic-image::after {
  content: "IMG";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.2em;
  color: rgba(30, 136, 255, 0.35);
}

.basic-image.is-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.basic-image.is-contain > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.module-fade {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.module-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento-grid > *,
  .bento-grid .span-2,
  .bento-grid .span-3,
  .bento-grid .span-5,
  .bento-grid .span-6,
  .bento-grid .span-7,
  .bento-grid .span-8,
  .bento-grid .span-9,
  .bento-grid .span-10 {
    grid-column: span 3;
  }

  .bento-grid .span-12 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px 40px;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(30, 136, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
  }

  .main-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 16px 14px;
    font-size: 18px;
    border-bottom: 1px solid rgba(160, 166, 176, 0.12);
    border-radius: 0;
  }

  .main-nav a[aria-current="page"] {
    background: linear-gradient(90deg, rgba(30, 136, 255, 0.2), rgba(176, 38, 255, 0.12));
  }

  .main-nav a[aria-current="page"]::after {
    left: 14px;
    right: auto;
    width: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 32px;
  }

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

  .footer-update-log {
    text-align: left;
    font-size: 12px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bento-grid > *,
  .bento-grid .span-2,
  .bento-grid .span-3,
  .bento-grid .span-5,
  .bento-grid .span-6,
  .bento-grid .span-7,
  .bento-grid .span-8,
  .bento-grid .span-9,
  .bento-grid .span-10,
  .bento-grid .span-12 {
    grid-column: span 1;
  }

  .bento-grid .tall {
    grid-row: span 1;
  }

  .data-panel {
    padding: 20px;
  }

  .content-page-header {
    padding: calc(var(--header-height) + 48px) 0 40px;
  }

  .page-title {
    font-size: 32px;
  }

  .terminal-bar {
    padding: 14px 16px;
    font-size: 12px;
  }

  .prose-section {
    padding: 48px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .module-fade {
    opacity: 1;
    transform: none;
  }

  .status-dot {
    animation: none;
  }
}
