:root {
  --color-primary-blue: #0F4C81;
  --color-accent-orange: #FF7F50;
  --color-highlight-yellow: #FFD700;
  --color-ink: #111827;
  --color-gray: #4B5563;
  --color-line: #9CB0C4;
  --color-bg-offwhite: #F8FAFC;
  --color-panel-white: #FFFFFF;
  --color-success-green: #22C55E;
  --color-error-red: #EF4444;
  --font-heading: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  --font-digit: "JetBrains Mono", "Roboto Mono", monospace;
  --header-width: 240px;
  --header-mobile-height: 60px;
  --content-max-width: 1200px;
  --space-unit: 8px;
  --space-1: calc(var(--space-unit) * 1);
  --space-2: calc(var(--space-unit) * 2);
  --space-3: calc(var(--space-unit) * 3);
  --space-4: calc(var(--space-unit) * 4);
  --space-6: calc(var(--space-unit) * 6);
  --space-8: calc(var(--space-unit) * 8);
  --shadow-panel: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-card: 0 2px 8px rgba(15, 76, 129, 0.08);
}

*,
*::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: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg-offwhite);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.25rem;
}

ul, ol {
  list-style-position: inside;
}

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

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

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent-orange);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
  border-radius: 0 0 4px 0;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1000;
  pointer-events: none;
  background: rgba(15, 76, 129, 0.1);
}

.scroll-progress::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--color-accent-orange), var(--color-highlight-yellow));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-width);
  background: var(--color-primary-blue);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.03) 50%, transparent 55%),
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.02) 50%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent-orange), var(--color-highlight-yellow));
  z-index: 1;
}

.site-header__bar {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-brand {
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  text-decoration: none;
}

.site-brand__mark {
  font-family: var(--font-digit);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-highlight-yellow);
  text-transform: uppercase;
}

.site-brand__name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: #FFFFFF;
  font-family: var(--font-body);
}

.nav-toggle__box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: #FFFFFF;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__label {
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 0;
}

.site-nav__list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.5rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.site-nav__link::before {
  content: "";
  position: absolute;
  left: 1.45rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__link:hover::before {
  background: var(--color-highlight-yellow);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.site-nav__index {
  font-family: var(--font-digit);
  font-size: 0.75rem;
  color: var(--color-highlight-yellow);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.site-nav__link[aria-current="page"] {
  color: #FFFFFF;
  background: rgba(255, 127, 80, 0.1);
}

.site-nav__link[aria-current="page"]::before {
  background: var(--color-accent-orange);
  box-shadow: 0 0 6px rgba(255, 127, 80, 0.6);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  opacity: 1;
}

.site-nav__meta {
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.8);
}

.site-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success-green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  flex-shrink: 0;
}

.site-nav__ver {
  font-family: var(--font-digit);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

.site-footer {
  background: var(--color-panel-white);
  border-top: 1px solid var(--color-line);
  position: relative;
  padding: 3rem 2rem 1.5rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary-blue), var(--color-accent-orange));
}

.site-footer__grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: var(--space-4);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-footer__mark {
  font-family: var(--font-digit);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-primary-blue);
  text-transform: uppercase;
}

.site-footer__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-ink);
}

.site-footer__tagline {
  font-size: 0.8125rem;
  color: var(--color-gray);
  margin-top: 0.25rem;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__nav a {
  position: relative;
  padding-left: 12px;
  font-size: 0.875rem;
  color: var(--color-primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent-orange);
}

.site-footer__nav a:hover {
  color: var(--color-accent-orange);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: var(--color-gray);
  font-family: var(--font-body);
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
}

.btn--primary {
  background: var(--color-accent-orange);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: #E86A3A;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn--outline {
  border-color: var(--color-primary-blue);
  color: var(--color-primary-blue);
  background: transparent;
}

.btn--outline:hover {
  background: var(--color-primary-blue);
  color: #FFFFFF;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary:hover,
  .btn--outline:hover {
    transform: none;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: var(--font-digit);
  font-size: 0.75rem;
  color: var(--color-gray);
}

.breadcrumb a {
  color: var(--color-primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-accent-orange);
}

.breadcrumb__sep {
  color: var(--color-line);
  font-size: 0.875rem;
}

.content-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-6);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.section {
  padding: var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-line);
}

.section__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section__index {
  font-family: var(--font-digit);
  font-size: 0.875rem;
  color: var(--color-accent-orange);
  letter-spacing: 0.06em;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-ink);
  position: relative;
  padding-left: 0.875rem;
}

.section__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 4px;
  height: 0.8em;
  background: var(--color-highlight-yellow);
}

.status-panel {
  background: var(--color-panel-white);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent-orange);
  padding: 1.5rem;
  box-shadow: var(--shadow-panel);
  position: relative;
}

.data-card {
  background: var(--color-panel-white);
  border: 1px solid var(--color-line);
  padding: 1.25rem;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.data-card:hover {
  border-color: var(--color-accent-orange);
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.12);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .data-card:hover {
    transform: none;
  }
}

.blueprint-bg {
  background-image:
    linear-gradient(to right, rgba(15, 76, 129, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 76, 129, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--color-panel-white);
  border: 1px solid var(--color-line);
  border-radius: 4px;
}

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

.img-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.img-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.img-frame--accent {
  border-top: 3px solid var(--color-accent-orange);
}

@media (min-width: 992px) {
  body {
    margin-left: var(--header-width);
  }

  .scroll-progress {
    left: var(--header-width);
  }
}

@media (max-width: 991.98px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--header-mobile-height);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }

  .site-header__bar {
    padding: 0;
    flex: 1;
    justify-content: space-between;
  }

  .site-brand {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }

  .site-brand__mark {
    font-size: 0.6875rem;
  }

  .site-brand__name {
    font-size: 1.125rem;
  }

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

  .site-nav {
    position: fixed;
    top: var(--header-mobile-height);
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--color-primary-blue);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 101;
    box-shadow: 2px 0 12px rgba(17, 24, 39, 0.2);
    padding-top: 1rem;
  }

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

  .site-nav__meta {
    margin-top: auto;
  }

  body {
    margin-left: 0;
    padding-top: var(--header-mobile-height);
  }

  .scroll-progress {
    left: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .content-container {
    padding: var(--space-3) var(--space-2) var(--space-4);
  }

  .section {
    padding: var(--space-4) var(--space-2);
  }

  .section__title {
    font-size: 1.5rem;
  }
}

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

  .site-footer__nav,
  .site-footer__contact,
  .site-footer__legal {
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-line);
  }
}
