:root {
  --huohu-primary: #FF6B00;
  --huohu-secondary: #00C4FF;
  --huohu-bg: #F6F1E7;
  --huohu-surface: #FFFCF7;
  --huohu-text: #1A1A1A;
  --huohu-text-sub: #4A3F35;
  --huohu-border: #2B2118;
  --huohu-line: #D6CABB;
  --huohu-success: #1F9D55;
  --huohu-warning: #F5A623;
  --huohu-alert: #E62E2E;
  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;
  --container: 1280px;
  --huohu-progress: 0;
  --shadow-hard: 6px 6px 0 var(--huohu-border);
  --focus-ring: 3px solid var(--huohu-secondary);
}

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

html {
  box-sizing: border-box;
  background: var(--huohu-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--huohu-bg);
  color: var(--huohu-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

ul[class], ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul:not([class]), ol:not([class]) {
  padding-left: 1.4em;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--huohu-primary);
  color: var(--huohu-text);
  border: 2px solid var(--huohu-border);
  box-shadow: 4px 4px 0 var(--huohu-border);
  font-weight: 800;
  text-decoration: none;
  transition: top 0.15s ease;
}

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

#main-content {
  min-height: 60vh;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.section {
  padding-block: clamp(64px, 8vw, 120px);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--huohu-primary);
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 4px;
  background: currentColor;
}

.section-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.section-desc {
  max-width: 640px;
  color: var(--huohu-text-sub);
  font-size: 18px;
  line-height: 1.6;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--huohu-line);
}

.breadcrumbs a {
  color: var(--huohu-text-sub);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.breadcrumbs a:hover {
  color: var(--huohu-primary);
  border-color: currentColor;
}

.breadcrumbs [aria-current="page"] {
  color: var(--huohu-primary);
  font-weight: 700;
}

.content-prose {
  max-width: 780px;
}

.content-prose h2 {
  margin: 2em 0 0.5em;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
}

.content-prose p,
.content-prose ul,
.content-prose ol {
  margin-bottom: 1.2em;
  color: var(--huohu-text-sub);
}

.content-prose a {
  color: var(--huohu-text);
  text-decoration-color: var(--huohu-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.content-prose a:hover {
  color: var(--huohu-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 20px;
  border: 2px solid var(--huohu-border);
  background: transparent;
  color: var(--huohu-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--huohu-border);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--huohu-border);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--huohu-border);
}

.btn-primary {
  background: var(--huohu-primary);
  color: var(--huohu-text);
}

.btn-outline {
  background: var(--huohu-surface);
  color: var(--huohu-text);
}

.btn-secondary {
  background: var(--huohu-secondary);
  color: var(--huohu-text);
  border-color: var(--huohu-border);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split-layout__aside {
  position: sticky;
  top: 120px;
}

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

  .split-layout__aside {
    position: static;
  }
}

.folder-card {
  position: relative;
  padding: 28px;
  background: var(--huohu-surface);
  border: 3px solid var(--huohu-border);
  box-shadow: 8px 8px 0 rgba(43, 33, 24, 0.14);
}

.folder-card::before {
  content: "FOLDER";
  position: absolute;
  top: -22px;
  left: -3px;
  display: inline-block;
  padding: 4px 10px;
  background: var(--huohu-primary);
  border: 2px solid var(--huohu-border);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--huohu-text);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 2px solid var(--huohu-border);
  background: var(--huohu-bg);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--huohu-text-sub);
}

.tag--orange {
  background: var(--huohu-primary);
  color: var(--huohu-text);
}

.tag--blue {
  background: var(--huohu-secondary);
  color: var(--huohu-text);
}

.data-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--huohu-line);
  font-family: var(--font-mono);
  font-size: 14px;
}

.data-item dt {
  color: var(--huohu-text-sub);
}

.data-item dd {
  margin: 0;
  font-weight: 800;
  color: var(--huohu-text);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--huohu-success);
  box-shadow: 0 0 0 2px rgba(31, 157, 69, 0.25);
}

.status-dot--warn {
  background: var(--huohu-warning);
}

.status-dot--alert {
  background: var(--huohu-alert);
}

.notice {
  padding: 16px 18px;
  border-left: 6px solid var(--huohu-warning);
  background: var(--huohu-surface);
  box-shadow: 4px 4px 0 rgba(43, 33, 24, 0.1);
  font-size: 15px;
}

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

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

.media-frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--huohu-surface);
  border: 3px solid var(--huohu-border);
  box-shadow: 10px 10px 0 rgba(43, 33, 24, 0.15);
  aspect-ratio: 4 / 3;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: var(--huohu-primary);
}

.media-frame--hero {
  aspect-ratio: 16 / 7;
  border-width: 4px;
  box-shadow: 14px 14px 0 rgba(43, 33, 24, 0.16);
}

.media-frame--portrait {
  aspect-ratio: 3 / 4;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--offset {
  transform: rotate(-1.5deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--huohu-text);
  color: var(--huohu-surface);
  border-bottom: 4px solid var(--huohu-primary);
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.25);
}

.header-commandline,
.header-main {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.header-commandline {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 8px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.15);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 252, 247, 0.72);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-commandline::-webkit-scrollbar {
  display: none;
}

.command-index {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
}

.command-index::before {
  content: "//";
  color: var(--huohu-primary);
  font-weight: 800;
}

.command-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex: 0 0 auto;
}

.command-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  color: rgba(255, 252, 247, 0.82);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.command-link::before {
  content: "▸";
  color: var(--huohu-secondary);
  font-size: 10px;
}

.command-link:hover {
  color: var(--huohu-primary);
  border-left-color: var(--huohu-primary);
  background: rgba(255, 107, 0, 0.12);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}

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

.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--huohu-primary);
  border: 2px solid var(--huohu-surface);
  box-shadow: 4px 4px 0 var(--huohu-secondary);
  color: var(--huohu-text);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--huohu-surface);
  white-space: nowrap;
}

.brand-name small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--huohu-secondary);
}

.brand-tag {
  margin-left: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 252, 247, 0.35);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--huohu-primary);
  white-space: nowrap;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 14px);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 10px 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--huohu-surface);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--huohu-primary);
  border-bottom-color: var(--huohu-primary);
  background: rgba(255, 107, 0, 0.1);
}

.nav-link[aria-current="page"] {
  color: var(--huohu-primary);
  border-bottom-color: var(--huohu-primary);
  background: rgba(255, 107, 0, 0.14);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--huohu-secondary);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--huohu-surface);
  background: var(--huohu-primary);
  color: var(--huohu-text);
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--huohu-secondary);
}

.nav-toggle-box {
  display: inline-grid;
  gap: 5px;
  width: 18px;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.15s, width 0.15s, opacity 0.15s;
}

.nav-toggle-box span:nth-child(1) {
  width: 18px;
}

.nav-toggle-box span:nth-child(2) {
  width: 14px;
}

.nav-toggle-box span:nth-child(3) {
  width: 18px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
  width: 18px;
}

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

.header-progress {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, var(--huohu-primary), var(--huohu-secondary));
  transform: scaleX(var(--huohu-progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-footer {
  background: var(--huohu-text);
  color: var(--huohu-surface);
  border-top: 8px solid var(--huohu-primary);
}

.footer-topline,
.footer-grid,
.footer-bottom {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.footer-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px 8px;
}

.footer-statement {
  max-width: 800px;
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--huohu-secondary);
  color: rgba(255, 252, 247, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.footer-button {
  flex: 0 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  padding-block: 48px 32px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.14);
}

.footer-brand {
  grid-column: span 5;
}

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

.footer-contact {
  grid-column: span 3;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand-logo {
  box-shadow: 4px 4px 0 var(--huohu-primary);
}

.footer-about {
  max-width: 360px;
  margin-bottom: 16px;
  color: rgba(255, 252, 247, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 196, 255, 0.4);
  color: var(--huohu-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.footer-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--huohu-primary);
}

.footer-heading {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--huohu-primary);
}

.footer-nav-list {
  display: grid;
  gap: 8px;
}

.footer-link {
  color: rgba(255, 252, 247, 0.78);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}

.footer-link:hover {
  color: var(--huohu-primary);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 252, 247, 0.8);
  font-size: 14px;
}

.contact-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--huohu-secondary);
  overflow-wrap: anywhere;
}

.contact-phone {
  font-family: var(--font-mono);
  color: var(--huohu-surface);
}

.contact-address {
  font-style: normal;
  line-height: 1.6;
}

.contact-note {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 252, 247, 0.52);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 24px;
  color: rgba(255, 252, 247, 0.58);
  font-size: 12px;
}

.footer-bottom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  flex: 1 1 100%;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.footer-bottom-list .footer-link {
  padding-left: 10px;
  border-left: 1px solid rgba(246, 241, 231, 0.2);
  font-size: 13px;
  color: rgba(255, 252, 247, 0.65);
}

.footer-bottom-list .footer-link:hover {
  color: var(--huohu-primary);
  padding-left: 10px;
}

.footer-copy {
  margin: 0;
}

.footer-icp {
  margin-left: auto;
}

@media (max-width: 960px) {
  .header-main {
    flex-wrap: wrap;
  }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    background: var(--huohu-text);
    border-top: 4px solid var(--huohu-primary);
    box-shadow: 0 20px 30px rgba(26, 26, 26, 0.25);
    transition: max-height 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
  }

  .site-nav[data-open] {
    max-height: min(70vh, 520px);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    display: grid;
    width: 100%;
  }

  .nav-item {
    border-bottom: 1px solid rgba(246, 241, 231, 0.12);
  }

  .nav-link {
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 22px;
    border-bottom: 0;
  }

  .footer-brand {
    grid-column: span 12;
  }

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

  .footer-contact {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .command-index {
    display: none;
  }

  .command-actions {
    margin-left: 0;
  }

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

  .brand-tag {
    display: none;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

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

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

  .footer-button {
    width: 100%;
    margin-left: 0;
  }

  .footer-column,
  .footer-contact {
    grid-column: span 12;
  }

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

  .footer-icp {
    margin-left: 0;
  }
}

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

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

  .site-nav,
  .header-progress {
    transition: none;
  }
}
