:root {
  --paper: #F6F1E7;
  --paper-2: #EBE2D2;
  --ink: #101820;
  --sky: #1668B3;
  --teal: #0B3948;
  --orange: #E4571F;
  --orange-lt: #F79450;
  --snow: #FDFCF9;
  --green: #1F8A5B;
  --pulse-y: #F2C14E;

  --wrap: 1200px;
  --bar-h: 72px;

  --edge: 3px solid var(--ink);
  --edge-2: 2px solid var(--ink);
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-lg: 8px 8px 0 var(--ink);

  --display: "PingFang SC", "Source Han Sans SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: var(--sky); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

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

.mono {
  font-family: var(--mono);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -120px;
  left: 14px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--snow);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  border: var(--edge-2);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- command bar ---------- */
.cmd-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: var(--edge);
}

.cmd-bar__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: padding .18s ease;
}

.cmd-bar[data-condensed] .cmd-bar__inner { padding-top: 5px; padding-bottom: 5px; }
.cmd-bar[data-condensed] .brand__name { font-size: 15px; }

.cmd-bar__pulse {
  position: absolute;
  left: 0;
  right: auto;
  bottom: -3px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sky) 0%, var(--orange) 100%);
  pointer-events: none;
  transition: width .12s linear;
}

/* ---------- brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  display: inline-block;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}
.brand__name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: font-size .18s ease;
}

/* ---------- status lamp ---------- */
.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 3px 9px;
  border: var(--edge-2);
  border-color: var(--sky);
  color: var(--sky);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
}
.status-lamp__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: lamp-pulse 2.4s ease-in-out infinite;
}
@keyframes lamp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

/* ---------- panel / nav / actions ---------- */
.cmd-bar__panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: navidx;
}
.nav-list > li { counter-increment: navidx; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 8px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.nav-link::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--orange);
  transform: translateY(-2px);
}
.nav-link:hover {
  color: var(--sky);
  border-bottom-color: var(--sky);
}
.nav-link[aria-current="page"] {
  color: var(--sky);
  background: rgba(22, 104, 179, .08);
  border-bottom-color: var(--orange);
}

.cmd-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- meta / version / toggle ---------- */
.cmd-bar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cp-version {
  padding: 4px 9px;
  border: var(--edge-2);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: var(--edge-2);
  background: var(--snow);
  cursor: pointer;
  transition: background .15s ease;
}
.nav-toggle:hover { background: var(--paper-2); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: var(--edge-2);
  background: var(--snow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn--solid {
  background: var(--orange);
  color: var(--snow);
}
.btn--line {
  background: transparent;
  color: var(--ink);
}
.btn--line:hover { background: var(--paper-2); }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--wide { max-width: 1400px; }

.site-main {
  flex: 1 0 auto;
  display: block;
  padding-top: var(--bar-h, 72px);
}

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

.grid {
  display: grid;
  gap: 28px;
}
.grid--5-7 { grid-template-columns: 5fr 7fr; }
.grid--3-9 { grid-template-columns: 3fr 9fr; }

.rule {
  border: 0;
  border-top: var(--edge);
  margin: 0;
}

/* ---------- type ---------- */
.title-xl,
.title-lg,
.title-md,
.title-sm {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -.01em;
}
.title-xl {
  font-size: clamp(44px, 6.5vw, 92px);
  font-weight: 900;
  line-height: 1.02;
  margin: 0;
}
.title-lg {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  margin: 0;
}
.title-md {
  font-size: clamp(23px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}
.title-sm {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.prose {
  max-width: 34em;
  font-size: 17px;
  line-height: 1.85;
}
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 10px;
  border-left: 3px solid var(--orange);
  color: var(--sky);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- tags & plates ---------- */
.tag {
  display: inline-block;
  padding: 3px 8px;
  border: var(--edge-2);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.tag--sky { background: var(--sky); border-color: var(--sky); color: var(--snow); }
.tag--orange { background: var(--orange); border-color: var(--orange); color: var(--snow); }
.tag--green { background: var(--green); border-color: var(--green); color: var(--snow); }

.plate {
  padding: 24px;
  border: var(--edge);
  background: var(--snow);
  box-shadow: var(--shadow-hard);
  transition: transform .18s ease, box-shadow .18s ease;
}
.plate:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-lg);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(16, 24, 32, .58);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--orange);
}
.breadcrumb a {
  color: var(--sky);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- media frames ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  border: var(--edge);
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper-2) 0 10px,
      var(--snow) 10px 20px
    );
  aspect-ratio: 16 / 9;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media > img,
.media > picture,
.media > svg,
.media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media > picture > img { display: block; width: 100%; height: 100%; object-fit: cover; }

.media__caption {
  display: block;
  margin: 0;
  padding: 10px 14px;
  border-top: var(--edge-2);
  background: var(--snow);
  color: rgba(16, 24, 32, .72);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---------- pulse strip ---------- */
.pulse-strip {
  display: block;
  width: 100%;
  height: 84px;
  border-top: var(--edge);
  border-bottom: var(--edge);
  background: var(--paper-2);
  overflow: hidden;
}
.pulse-strip > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pulse-strip .pulse-line {
  animation: pulse-drift 8s linear infinite;
}
.pulse-strip:hover .pulse-line {
  animation-duration: 3s;
}
@keyframes pulse-drift {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -420; }
}

/* ---------- footer ---------- */
.site-foot {
  margin-top: 96px;
  padding: 56px 0 28px;
  background: var(--teal);
  color: var(--snow);
  border-top: var(--edge);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr 1.15fr;
  gap: 36px 40px;
}

.foot-col { min-width: 0; }

.foot-brand {
  margin: 0 0 12px;
  color: var(--snow);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
}
.foot-desc {
  margin: 0;
  max-width: 34ch;
  color: rgba(253, 252, 249, .7);
  font-size: 14px;
  line-height: 1.85;
}

.foot-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(253, 252, 249, .18);
  color: var(--orange-lt);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.foot-links,
.foot-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-links li { margin-bottom: 10px; }
.foot-links a {
  color: var(--snow);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.foot-links a:hover {
  color: var(--orange-lt);
  border-bottom-color: var(--orange-lt);
}

.foot-meta li {
  margin-bottom: 10px;
  color: rgba(253, 252, 249, .86);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.foot-k {
  display: inline-block;
  min-width: 42px;
  margin-right: 8px;
  color: var(--orange-lt);
  font-size: 11px;
  letter-spacing: .14em;
}

.copy-btn {
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(247, 148, 80, .6);
  background: transparent;
  color: var(--orange-lt);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.copy-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--snow);
}

.foot-version {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 2px solid var(--orange);
  color: var(--orange-lt);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.foot-icp,
.foot-copy {
  margin: 0 0 8px;
  color: rgba(253, 252, 249, .62);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.foot-copy { margin-bottom: 0; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 2px solid rgba(253, 252, 249, .16);
  color: rgba(253, 252, 249, .5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
}
.foot-base__mark { color: rgba(247, 148, 80, .8); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .status-lamp { display: none; }
}

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }

  .cmd-bar__panel {
    position: absolute;
    top: calc(100% + 3px);
    left: -20px;
    right: -20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--bar-h, 72px));
    overflow-y: auto;
    padding: 6px 0 18px;
    background: var(--paper);
    border-bottom: var(--edge);
  }
  .cmd-bar__panel[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-link {
    justify-content: flex-start;
    padding: 13px 20px;
    font-size: 16px;
    border-bottom: 2px solid rgba(16, 24, 32, .12);
  }
  .nav-link::before { font-size: 11px; transform: translateY(-1px); }

  .cmd-bar__actions {
    flex-wrap: wrap;
    padding: 16px 20px 0;
  }
  .cmd-bar__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .grid--5-7,
  .grid--3-9 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }
  .site-foot { margin-top: 64px; }
  .media { aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
  .cmd-bar__inner { gap: 10px; }
  .brand__name { font-size: 15px; }
  .cp-version { font-size: 11px; padding: 3px 6px; }
  .nav-toggle { width: 40px; height: 40px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .plate { padding: 18px; box-shadow: 4px 4px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .cmd-bar__pulse { transition: none; }
  .btn:hover { transform: none; box-shadow: none; }
  .plate:hover { transform: none; box-shadow: var(--shadow-hard); }
}
