:root {
  --color-deep-blue: #1A2B4C;
  --color-phoenix-gold: #D4A24A;
  --color-flame-orange: #FF6B35;
  --color-emerald: #2E8B57;
  --color-light-gray: #F5F5F5;
  --color-dark-gray: #333333;
  --color-white: #FFFFFF;
  --color-dark-gold: #B8860B;
  --content-max: 1200px;
  --content-pad: 1.25rem;
  --header-h: 72px;
  --font-display: Impact, 'Arial Black', 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background: var(--color-deep-blue);
  color: var(--color-light-gray);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: inherit;
  margin: 0 0 0.75em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 6vw + 1rem, 4.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw + 0.5rem, 2.8rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-phoenix-gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--color-flame-orange);
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--header-h);
  background-color: rgba(26, 43, 76, 0.72);
  background-image: linear-gradient(180deg, rgba(26, 43, 76, 0.9) 0%, rgba(26, 43, 76, 0.4) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header[data-scrolled="true"] {
  background-color: rgba(26, 43, 76, 0.98);
  background-image: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 1px 0 var(--color-dark-gold);
}

.site-header__inner {
  position: relative;
  max-width: calc(var(--content-max) + 2rem);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--content-pad);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
}

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

.brand__mark {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: linear-gradient(135deg, var(--color-flame-orange) 0%, var(--color-phoenix-gold) 58%, var(--color-dark-gold) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  clip-path: polygon(50% 0, 100% 20%, 78% 100%, 22% 100%, 0 20%);
  overflow: hidden;
}

.brand__mark::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 9px;
  height: 16px;
  background: rgba(255, 255, 255, 0.9);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.brand__mark::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 16px;
  background: rgba(255, 255, 255, 0.55);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

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

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__text small {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-phoenix-gold);
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--color-white);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover {
  color: var(--color-phoenix-gold);
  border-color: var(--color-phoenix-gold);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-deep-blue);
  border-bottom: 2px solid var(--color-flame-orange);
  z-index: 900;
}

.site-nav[data-open="true"] {
  display: block;
}

.site-nav__list {
  list-style: none;
  padding: 0.5rem var(--content-pad) 0.75rem;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.85rem 0.5rem;
  color: var(--color-light-gray);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--color-phoenix-gold);
  background: rgba(212, 162, 74, 0.06);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-phoenix-gold);
}

.header-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.header-search:hover {
  color: var(--color-phoenix-gold);
  border-color: var(--color-phoenix-gold);
  background: rgba(255, 255, 255, 0.05);
}

.header-search__icon {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
}

.header-search__icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.header-search__icon::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 1px;
  width: 7px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-phoenix-gold), var(--color-flame-orange));
  transform: scaleX(0);
  transform-origin: 0 0;
  pointer-events: none;
  z-index: 10;
}

@media (max-width: 1023px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    background-color: rgba(26, 43, 76, 0.98);
    background-image: none;
  }
}

@media (min-width: 1024px) {
  .brand--header {
    margin-right: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    align-items: center;
    margin-left: auto;
    background: transparent;
    border-bottom: 0;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
  }

  .site-nav__link {
    display: block;
    padding: 0.55rem 0.85rem;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: -2px;
    height: 2px;
    background: var(--color-flame-orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
  }

  .site-nav__link:hover {
    background: transparent;
  }

  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .site-nav__link[aria-current="page"] {
    color: var(--color-phoenix-gold);
  }
}

.site-footer {
  background: #0E1C33;
  color: #C9D3E0;
  border-top: 3px solid var(--color-phoenix-gold);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3.5rem var(--content-pad) 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.site-footer__brand {
  max-width: 30rem;
}

.site-footer__brand .brand__text strong,
.site-footer__brand .brand__text small {
  color: var(--color-white);
}

.site-footer__statement {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.site-footer__title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--color-phoenix-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.site-footer__links {
  list-style: none;
}

.site-footer__links li {
  margin-bottom: 0.45rem;
}

.site-footer__links a {
  color: #C9D3E0;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--color-phoenix-gold);
  padding-left: 4px;
}

.site-footer__contact p {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  color: #C9D3E0;
}

.site-footer__bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.25rem var(--content-pad);
  border-top: 1px solid rgba(212, 162, 74, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 640px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.page-intro {
  position: relative;
  overflow: hidden;
  background: var(--color-deep-blue);
  color: var(--color-white);
  padding: calc(var(--header-h) + 3.5rem) var(--content-pad) 3.5rem;
}

.page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, transparent 48%, rgba(212, 162, 74, 0.08) 50%, transparent 52%);
  pointer-events: none;
}

.page-intro::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(212, 162, 74, 0.4);
  transform: rotate(45deg);
  pointer-events: none;
}

.page-intro__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
}

.page-intro .section-heading__title {
  color: var(--color-white);
  max-width: 16em;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) var(--content-pad);
}

.section--light {
  background: var(--color-light-gray);
  color: var(--color-dark-gray);
}

.section--deep {
  background: var(--color-deep-blue);
  color: var(--color-light-gray);
}

.section--paper {
  background: var(--color-white);
  color: var(--color-dark-gray);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--color-phoenix-gold);
  text-decoration: none;
}

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

.breadcrumbs__current {
  color: rgba(255, 255, 255, 0.85);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.section-heading__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-flame-orange);
}

.section-heading__kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--color-flame-orange);
}

.section-heading__title {
  margin: 0;
  color: var(--color-deep-blue);
  font-size: clamp(1.6rem, 4vw, 3rem);
  max-width: 16em;
}

.section-heading--light .section-heading__title {
  color: var(--color-white);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.bento-item {
  min-height: 12rem;
  padding: 1.5rem;
  background: var(--color-light-gray);
  color: var(--color-dark-gray);
  border: 1px solid rgba(184, 134, 11, 0.22);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bento-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-phoenix-gold);
}

.bento-item--spotlight {
  background: linear-gradient(135deg, var(--color-deep-blue) 0%, #24375F 100%);
  color: var(--color-white);
  border-color: rgba(212, 162, 74, 0.45);
}

.bento-item--spotlight .section-heading__title,
.bento-item--spotlight h3 {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }

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

  .bento-item--wide {
    grid-column: span 4;
  }

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

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

.archive-card {
  position: relative;
  background: var(--color-light-gray);
  color: var(--color-dark-gray);
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid rgba(184, 134, 11, 0.22);
  box-shadow: 8px 8px 0 rgba(26, 43, 76, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 rgba(26, 43, 76, 0.09);
}

.archive-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 1rem;
  width: 3.5rem;
  height: 11px;
  background: var(--color-phoenix-gold);
  clip-path: polygon(0 0, 100% 0, 85% 100%, 15% 100%);
}

.archive-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-deep-blue);
  margin: 0 0 0.5rem;
}

.archive-card__meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark-gold);
  margin-bottom: 1rem;
}

.archive-card__body {
  color: var(--color-dark-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(212, 162, 74, 0.14);
  color: var(--color-dark-gold);
  border: 1px solid rgba(212, 162, 74, 0.45);
  text-decoration: none;
}

.tag--flame {
  background: rgba(255, 107, 53, 0.12);
  color: var(--color-flame-orange);
  border-color: rgba(255, 107, 53, 0.35);
}

.tag--emerald {
  background: rgba(46, 139, 87, 0.12);
  color: var(--color-emerald);
  border-color: rgba(46, 139, 87, 0.35);
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #223456 0%, #16233C 100%);
  border: 1px solid rgba(212, 162, 74, 0.35);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.04) 75%, transparent 75%);
  background-size: 1rem 1rem;
  pointer-events: none;
}

.media-frame[data-ratio="wide"] {
  aspect-ratio: 21 / 9;
}

.media-frame[data-ratio="square"] {
  aspect-ratio: 1 / 1;
}

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

.data-table-wrap {
  overflow-x: auto;
  background: var(--color-white);
  border: 1px solid rgba(184, 134, 11, 0.25);
  box-shadow: 8px 8px 0 rgba(26, 43, 76, 0.06);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #ECE7DA;
  text-align: left;
}

.data-table th {
  background: var(--color-deep-blue);
  color: var(--color-phoenix-gold);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: rgba(212, 162, 74, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--color-flame-orange);
  color: var(--color-white);
}

.btn--primary:hover {
  background: #E45524;
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-phoenix-gold);
  color: var(--color-phoenix-gold);
}

.btn--ghost:hover {
  background: var(--color-phoenix-gold);
  color: var(--color-deep-blue);
}

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