:root {
  --color-navy: #0A1F44;
  --color-gold: #C9A961;
  --color-orange: #FF7A29;
  --color-cream: #F5F3EE;
  --color-charcoal: #1F2937;
  --color-midnight: #0B1020;
  --color-light-navy: #1E3A6E;
  --color-pale-gold: #E8DDB5;
  --color-green: #2F9E44;
  --color-line: #CCD6E0;
  --font-head: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, "Helvetica Neue", sans-serif;
  --font-body: "Georgia", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-mono: "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, "Courier New", monospace;
  --header-width: 300px;
  --content-max: 1200px;
  --radius: 4px;
  --shadow: 0 8px 32px rgba(10, 31, 68, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

button {
  font: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.site-main :focus-visible {
  outline-color: var(--color-orange);
}

.container {
  width: min(100% - 48px, var(--content-max));
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-navy);
  box-shadow: 0 4px 16px rgba(201, 169, 97, 0.25);
}

.btn-gold:hover {
  background: #D9BC72;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 169, 97, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  border-radius: 4px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-cream);
}

.site-header {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: var(--color-navy);
  color: var(--color-cream);
}

.header-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 40px 0 0;
}

.brand-block {
  position: relative;
  padding: 0 28px 32px;
  border-bottom: 1px solid rgba(204, 214, 224, 0.12);
  margin-bottom: 28px;
}

.brand-block::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--color-gold) 0%, #B3944E 100%);
  color: var(--color-navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  flex-shrink: 0;
}

.brand-logo::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-cream);
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.brand-tagline {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(204, 214, 224, 0.6);
  text-transform: uppercase;
}

.main-nav {
  flex: 1;
  padding: 0 16px;
}

.nav-overline {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 169, 97, 0.7);
  padding: 0 16px;
  margin-bottom: 12px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: rgba(245, 243, 238, 0.75);
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list a:focus {
  color: var(--color-cream);
  background: rgba(201, 169, 97, 0.1);
  border-left-color: var(--color-gold);
}

.nav-list a[aria-current="page"] {
  color: var(--color-gold);
  background: rgba(201, 169, 97, 0.14);
  border-left-color: var(--color-gold);
}

.nav-list a[aria-current="page"] .nav-index {
  color: var(--color-orange);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(201, 169, 97, 0.45);
  transition: color 0.25s var(--ease);
}

.header-meta {
  margin-top: auto;
  padding: 24px 24px 28px;
  border-top: 1px solid rgba(204, 214, 224, 0.12);
}

.header-meta .btn {
  width: 100%;
}

.header-hotline {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(204, 214, 224, 0.55);
}

.hotline-label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(204, 214, 224, 0.4);
  margin-bottom: 2px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  pointer-events: none;
  z-index: 5;
}

.nav-toggle {
  display: none;
}

.site-footer {
  background: var(--color-midnight);
  color: rgba(245, 243, 238, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.8fr;
  gap: 48px;
  padding: 56px 48px 40px;
  max-width: calc(var(--content-max) + 96px);
  margin-inline: auto;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-cream);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.footer-logo::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 4px;
  margin-left: 8px;
  background: var(--color-gold);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.footer-about {
  color: rgba(204, 214, 224, 0.65);
  max-width: 32em;
}

.footer-hours {
  margin-top: 12px;
  color: var(--color-gold);
  font-family: var(--font-head);
  font-size: 13px;
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--color-orange);
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(204, 214, 224, 0.65);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(204, 214, 224, 0.65);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(204, 214, 224, 0.1);
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: calc(var(--content-max) + 96px);
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(204, 214, 224, 0.45);
}

@media (min-width: 1025px) {
  .site-header {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--header-width);
    border-right: 1px solid rgba(201, 169, 97, 0.25);
    overflow-y: auto;
  }

  .site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-orange) 100%);
    z-index: 6;
  }

  .site-main,
  .site-footer {
    margin-left: var(--header-width);
  }
}

@media (max-width: 1024px) {
  .site-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.35);
  }

  .header-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .brand-block {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: none;
  }

  .brand-block::after,
  .brand-tagline,
  .nav-overline {
    display: none;
  }

  .brand-link {
    gap: 10px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

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

  .brand-version {
    font-size: 10px;
  }

  .main-nav {
    flex: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease), padding 0.3s var(--ease), visibility 0.3s;
  }

  .header-meta {
    flex: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease), padding 0.3s var(--ease), visibility 0.3s;
    border-top: none;
  }

  .site-header[data-open] .main-nav {
    max-height: 70vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 12px 16px 8px;
    border-top: 1px solid rgba(204, 214, 224, 0.1);
  }

  .site-header[data-open] .header-meta {
    max-height: 160px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    padding: 14px 16px 20px;
    border-top: 1px solid rgba(204, 214, 224, 0.1);
  }

  .header-meta .btn {
    width: 100%;
  }

  .header-hotline {
    text-align: center;
    margin-top: 10px;
  }

  .scroll-progress {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-navy);
    border: 1px solid rgba(201, 169, 97, 0.4);
    border-radius: 6px;
    z-index: 1100;
  }

  .toggle-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }

  .toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-gold);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .site-header[data-open] .toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header[data-open] .toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header[data-open] .toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .toggle-text {
    display: block;
    font-family: var(--font-head);
    font-size: 10px;
    color: rgba(245, 243, 238, 0.6);
    margin-top: 2px;
    line-height: 1;
  }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px 32px;
  }

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

  .footer-bottom {
    justify-content: center;
    text-align: center;
    padding: 16px 24px;
  }
}

@media (max-width: 767px) {
  .site-header {
    padding: 12px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .brand-link {
    gap: 8px;
  }

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

  .nav-list a {
    padding: 12px 14px;
    font-size: 15px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    padding: 32px 20px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
  }

  .footer-bottom p {
    text-align: center;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  color: rgba(31, 41, 55, 0.6);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-navy);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  border-bottom-color: var(--color-navy);
}

.breadcrumb .crumb-sep {
  color: var(--color-gold);
  font-weight: 700;
}

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

.page-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.page-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(31, 41, 55, 0.75);
  max-width: 46em;
}

.prose {
  font-size: 17px;
  line-height: 1.8;
  max-width: 68ch;
}

.prose p {
  margin-bottom: 1.2em;
}

.prose h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prose h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-navy);
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

.prose ul {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 3px;
  background: var(--color-gold);
  transform: skewX(-20deg);
}

.prose a {
  color: var(--color-navy);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.prose a:hover {
  color: var(--color-light-navy);
  text-decoration-color: var(--color-orange);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: 0 12px 32px rgba(10, 31, 68, 0.12);
}

.card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-line), var(--color-cream));
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 64%, rgba(10, 31, 68, 0.18));
  pointer-events: none;
  z-index: 1;
}

.media-frame .media-note {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-light-navy);
  background: rgba(245, 243, 238, 0.85);
  padding: 2px 8px;
  border-left: 3px solid var(--color-gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-pale-gold);
  color: var(--color-navy);
  border-radius: 2px;
  border-left: 3px solid var(--color-gold);
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
}
