:root {
  --bg-primary: #0A0E17;
  --bg-panel: #141B2D;
  --bg-panel-soft: #1A2333;
  --accent-blue: #00E5FF;
  --accent-orange: #FF6A00;
  --metal: #B0BEC5;
  --text-main: #E0E6ED;
  --text-dim: #8899AA;
  --warning: #FFD166;
  --success: #00E676;
  --blue-glow: rgba(0, 229, 255, 0.15);
  --border-dim: rgba(176, 190, 205, 0.14);
  --border-blue: rgba(0, 229, 255, 0.35);
  --rail-width: 260px;
  --header-height: 64px;
  --font-body: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Roboto Mono", "Menlo", Consolas, monospace;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

@media (min-width: 1024px) {
  body {
    padding-top: 0;
    padding-left: var(--rail-width);
  }
}

#main-content {
  display: block;
  min-height: 70vh;
}

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

ul,
ol {
  padding-left: 1.25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-main);
  margin: 0 0 0.75em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: rgba(0, 229, 255, 0.35);
  color: #ffffff;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #26344a transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: #26344a;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

.container {
  width: min(100% - 3rem, 1440px);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, 1440px);
  }
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  z-index: 1000;
  background: var(--accent-orange);
  color: var(--bg-primary);
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: top 0.25s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: var(--header-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(10, 14, 23, 0.96);
  border-bottom: 1px solid var(--border-blue);
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .site-header {
    width: var(--rail-width);
    height: 100vh;
    padding: 0;
    justify-content: flex-start;
    background: rgba(10, 14, 23, 0.98);
    border-right: 1px solid var(--border-blue);
    border-bottom: none;
  }
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.35rem 0;
  position: relative;
  z-index: 140;
}

@media (min-width: 1024px) {
  .header-bar {
    justify-content: flex-start;
    padding: 1.4rem 1.25rem 0.25rem;
    z-index: auto;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-panel-soft) 100%);
  border: 1px solid var(--border-blue);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  color: var(--accent-blue);
  font-weight: 900;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--accent-blue);
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid var(--border-blue);
  border-radius: 0;
  cursor: pointer;
  color: var(--accent-blue);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(0, 229, 255, 0.12);
}

.toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-blue);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.site-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  z-index: 130;
  width: min(320px, 86vw);
  background: var(--bg-primary);
  border-right: 1px solid var(--border-blue);
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-102%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.site-nav[data-open] {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .site-nav {
    position: static;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    z-index: auto;
    transform: none;
    transition: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-right: none;
  }
}

.nav-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.25rem 1.25rem;
}

@media (min-width: 1024px) {
  .nav-inner {
    padding: 0.75rem 1.25rem 1.25rem;
    background-image:
      linear-gradient(rgba(0, 229, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 229, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
  }
}

.rail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.rail-label::after {
  content: "";
  flex: 0 0 3.5rem;
  height: 1px;
  background: var(--border-blue);
}

.rail-login {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.login-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid var(--border-blue);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  color: var(--accent-blue);
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s, filter 0.2s;
}

.login-chip:hover {
  background: rgba(0, 229, 255, 0.1);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.25));
  text-decoration: none;
}

.chip-mark {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transform: rotate(45deg);
  border: 2px solid var(--accent-blue);
}

.chip-text {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.chip-state {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.7);
}

.nav-track {
  position: relative;
  margin-top: 0.75rem;
}

.nav-track::before {
  content: "";
  position: absolute;
  top: 2.5rem;
  bottom: 0.5rem;
  left: 0.55rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--border-blue), transparent);
}

.nav-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.25rem 0;
}

.nav-item {
  position: relative;
  margin-bottom: 0.25rem;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--text-dim);
  transform: translateY(-50%) rotate(45deg);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-item:hover::before,
.nav-item:has(.nav-link[aria-current="page"])::before {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.55rem 1.75rem;
  color: var(--metal);
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.4;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(0, 229, 255, 0.05);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  color: var(--accent-blue);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(0, 229, 255, 0.03));
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  font-weight: 700;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

.nav-text {
  line-height: 1.2;
}

.nav-code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.nav-link[aria-current="page"] .nav-code {
  color: var(--accent-blue);
}

.nav-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-coord {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.trust-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--metal);
}

.trust-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.5);
}

.nav-mask {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(4, 8, 14, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-mask[data-open] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .nav-mask {
    display: none !important;
  }
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--border-blue);
  color: var(--accent-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.to-top:hover {
  background: rgba(0, 229, 255, 0.1);
}

.to-top-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(var(--accent-blue) calc(var(--progress, 0) * 1%), rgba(176, 190, 205, 0.22) 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.to-top-arrow {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 900;
  font-family: var(--font-mono);
}

.site-footer {
  background: #0C111C;
  border-top: 1px solid var(--border-blue);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: repeating-linear-gradient(-45deg, var(--accent-blue) 0 8px, transparent 8px 16px);
  opacity: 0.35;
}

.footer-frame {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.25rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 1023px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

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

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

.footer-note {
  margin-top: 1rem;
  max-width: 34em;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-content: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-col-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col-title::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--accent-orange);
}

.footer-col a {
  color: var(--metal);
  font-size: 0.9rem;
  padding: 0.2rem 0;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-col a:hover {
  color: var(--accent-blue);
  padding-left: 0.3rem;
  text-decoration: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-mail,
.footer-phone,
.footer-addr {
  font-size: 0.9rem;
  color: var(--metal);
  line-height: 1.6;
}

.footer-mail {
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.footer-contact-link {
  margin-top: 0.5rem;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dim);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-copy,
.footer-icp,
.footer-seal {
  display: inline-flex;
  align-items: center;
}

.footer-seal {
  gap: 0.4rem;
}

.seal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
  animation: seal-pulse 2s ease-in-out infinite;
}

@keyframes seal-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, filter 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--accent-orange);
  color: var(--bg-primary);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  background: #ff7f2a;
  filter: drop-shadow(0 8px 20px rgba(255, 106, 0, 0.35));
}

.btn-ghost {
  border-color: var(--border-blue);
  color: var(--accent-blue);
  background: rgba(0, 229, 255, 0.04);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.1);
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.15));
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-dim);
  margin-right: 0.4rem;
  font-family: var(--font-mono);
}

.breadcrumb a {
  color: var(--accent-blue);
  text-decoration: none;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--metal);
  font-weight: 600;
}

.page-head {
  position: relative;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-blue);
}

.page-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  background: var(--accent-orange);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--accent-blue);
  text-transform: uppercase;
}

.page-title {
  margin: 0.2em 0 0.3em;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.section-index::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--accent-orange);
}

.corner-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  padding: 1.5rem;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

.corner-panel:hover {
  transform: translateY(-3px);
  border-color: var(--border-blue);
  filter: drop-shadow(0 6px 16px rgba(0, 229, 255, 0.12));
}

.img-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-panel);
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--border-dim);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1rem;
  isolation: isolate;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 229, 255, 0.04) 50%, transparent 100%);
  pointer-events: none;
}

.img-frame img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent-blue);
  background: rgba(10, 14, 23, 0.72);
  border: 1px solid var(--border-blue);
  padding: 0.3rem 0.7rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28em 0.75em;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--metal);
  background: rgba(20, 27, 45, 0.7);
  border: 1px solid rgba(176, 190, 205, 0.3);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.tag-blue {
  color: var(--accent-blue);
  border-color: var(--border-blue);
  background: rgba(0, 229, 255, 0.08);
}

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

.tag-yellow {
  color: var(--warning);
  border-color: rgba(255, 209, 102, 0.5);
  background: rgba(255, 209, 102, 0.08);
}

.tag-green {
  color: var(--success);
  border-color: rgba(0, 230, 118, 0.5);
  background: rgba(0, 230, 118, 0.08);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(20, 27, 45, 0.75);
  border: 1px solid var(--border-dim);
  border-left-width: 3px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.alert::before {
  content: ">";
  font-family: var(--font-mono);
  font-weight: 700;
  color: inherit;
  line-height: 1.6;
}

.alert-warning {
  border-left-color: var(--warning);
}

.alert-warning::before {
  color: var(--warning);
}

.alert-success {
  border-left-color: var(--success);
}

.alert-success::before {
  color: var(--success);
}

.alert-info {
  border-left-color: var(--accent-blue);
}

.alert-info::before {
  color: var(--accent-blue);
}

.accordion {
  border: 1px solid var(--border-dim);
  background: rgba(10, 14, 23, 0.4);
}

.accordion-item {
  border-bottom: 1px solid var(--border-dim);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.accordion-head:hover {
  background: rgba(0, 229, 255, 0.05);
  color: var(--accent-blue);
}

.accordion-item[data-open] > .accordion-head {
  color: var(--accent-blue);
  background: rgba(0, 229, 255, 0.07);
}

.accordion-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  display: inline-block;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.25s ease;
}

.accordion-icon::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.accordion-icon::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

.accordion-item[data-open] > .accordion-head .accordion-icon::after {
  transform: scaleY(0);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.accordion-item[data-open] > .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.25rem;
  color: var(--metal);
  font-size: 0.92rem;
}

.accordion-item[data-open] > .accordion-panel .accordion-inner {
  padding-top: 0;
  padding-bottom: 1rem;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

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

  .site-nav,
  .to-top,
  .nav-mask,
  .accordion-panel,
  .toggle-line {
    transition: none;
  }
}
