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

:root {
  --wm-navy: #0B1F3A;
  --wm-navy-deep: #081625;
  --wm-gold: #D4AF37;
  --wm-gold-light: #F0D27A;
  --wm-black: #111111;
  --wm-paper: #F5F5F5;
  --wm-orange: #FF6B35;
  --wm-cyan: #00C2D1;
  --wm-gray: #8A8A8A;
  --wm-gray-dark: #757575;
  --font-headline: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'Courier New', monospace;
  --container-w: min(1280px, 100% - 2rem);
  --nav-breakpoint: 960px;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--wm-black);
  background-color: var(--wm-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.25;
  color: var(--wm-navy);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--wm-gold);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease, top 0.15s ease;
}

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

ul, ol {
  list-style: none;
}

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

::selection {
  background: var(--wm-gold);
  color: var(--wm-navy);
}

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

/* ========== Container & Layout Utilities ========== */
.container {
  width: var(--container-w);
  margin-inline: auto;
}

.container-narrow {
  width: min(900px, 100% - 2rem);
  margin-inline: auto;
}

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

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

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

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

.section {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wm-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 3px 10px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--wm-navy);
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--wm-gray-dark);
  line-height: 1.7;
  max-width: 640px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--wm-gold);
  color: var(--wm-navy);
  border: 2px solid var(--wm-gold);
}

.btn-primary:hover {
  background: var(--wm-gold-light);
  border-color: var(--wm-gold-light);
  color: var(--wm-navy);
}

.btn-outline {
  background: transparent;
  color: var(--wm-gold);
  border: 2px solid var(--wm-gold);
}

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

/* ========== Tags ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  line-height: 1.6;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tag-gold {
  background: rgba(212, 175, 55, 0.12);
  color: var(--wm-gold);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.tag-orange {
  background: rgba(255, 107, 53, 0.1);
  color: var(--wm-orange);
  border: 1px solid rgba(255, 107, 53, 0.4);
}

.tag-cyan {
  background: rgba(0, 194, 209, 0.1);
  color: var(--wm-cyan);
  border: 1px solid rgba(0, 194, 209, 0.4);
}

.tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========== Data Card ========== */
.data-card {
  padding: 22px 20px;
  background: var(--wm-paper);
  border-left: 4px solid var(--wm-gold);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
}

.data-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 50%, rgba(212, 175, 55, 0.35) 50%);
  pointer-events: none;
}

.data-card:hover {
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.12);
  transform: translateY(-2px);
}

.data-label {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wm-gray-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.data-value {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700;
  color: var(--wm-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.data-unit {
  font-size: 0.875rem;
  color: var(--wm-gray);
  margin-left: 4px;
  font-weight: 500;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  margin-bottom: 2rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--wm-gray);
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  color: var(--wm-gold);
  font-family: var(--font-mono);
  margin: 0 4px;
}

.breadcrumb-link {
  color: var(--wm-gray-dark);
  transition: color 0.15s ease;
}

.breadcrumb-link:hover {
  color: var(--wm-gold);
}

.breadcrumb-current {
  color: var(--wm-navy);
  font-weight: 600;
}

/* ========== Image Frame ========== */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--wm-navy);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.img-frame:hover img {
  transform: scale(1.03);
}

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

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

.img-ratio-square {
  aspect-ratio: 1 / 1;
}

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 1001;
  padding: 10px 20px;
  background: var(--wm-gold);
  color: var(--wm-navy);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0 0 4px 0;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

/* ========== Scroll Progress ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--wm-gold);
  z-index: 9999;
  pointer-events: none;
}

/* ========== Announcement Bar ========== */
.announcement-bar {
  background: var(--wm-navy-deep);
  color: rgba(245, 245, 245, 0.85);
  font-size: 0.8125rem;
  position: relative;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.announcement-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(212, 175, 55, 0.08) 50%);
  pointer-events: none;
}

.announcement-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: var(--container-w);
  margin-inline: auto;
  padding: 6px 0;
}

.announcement-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wm-orange);
  animation: wm-pulse 2s ease-in-out infinite;
}

@keyframes wm-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 5px rgba(255, 107, 53, 0);
  }
}

.announcement-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  margin: 0;
}

.announcement-ver {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--wm-gold);
  letter-spacing: 0.1em;
  white-space: nowrap;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 1px 8px;
  border-radius: 2px;
}

/* ========== Header ========== */
.site-header {
  position: relative;
}

.header-main {
  background: var(--wm-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  position: relative;
}

.header-main::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--wm-gold);
  z-index: 1;
}

.header-main::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border-top: 2px solid rgba(212, 175, 55, 0.4);
  border-right: 2px solid rgba(212, 175, 55, 0.4);
  pointer-events: none;
  z-index: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--container-w);
  margin-inline: auto;
  padding: 12px 0;
  position: relative;
}

/* ========== Brand ========== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wm-gold);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.brand-mark-inner {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--wm-navy);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wm-paper);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-headline);
  font-size: 0.625rem;
  color: var(--wm-gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.footer-brand .brand-name {
  color: var(--wm-paper);
}

.footer-brand .brand-tagline {
  color: var(--wm-gold);
}

/* ========== Navigation ========== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 2px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--wm-gold);
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--wm-gold);
}

.nav-toggle-icon {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--wm-gold);
  transition: background-color 0.15s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--wm-gold);
  transition: transform 0.15s ease, top 0.15s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-toggle-text {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  color: rgba(245, 245, 245, 0.78);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 2px;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--wm-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.15s ease;
}

.nav-link:hover {
  color: var(--wm-gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--wm-paper);
  background: rgba(212, 175, 55, 0.12);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wm-gold);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.nav-link:hover .nav-index {
  color: var(--wm-orange);
}

.nav-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  background: var(--wm-navy);
  color: rgba(245, 245, 245, 0.75);
  margin-top: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--wm-gold) 0,
    var(--wm-gold) 12px,
    var(--wm-navy) 12px,
    var(--wm-navy) 24px
  );
  pointer-events: none;
}

.footer-main {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  width: var(--container-w);
  margin-inline: auto;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-trust {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(245, 245, 245, 0.55);
  max-width: 300px;
  margin: 8px 0 0;
}

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

.footer-heading {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wm-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--wm-gold);
}

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

.footer-list li {
  line-height: 1;
}

.footer-list a {
  display: inline-block;
  color: rgba(245, 245, 245, 0.7);
  font-family: var(--font-headline);
  font-size: 0.875rem;
  line-height: 2.4;
  position: relative;
  padding-left: 0;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.footer-list a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--wm-gold);
  opacity: 0;
  transition: opacity 0.15s ease, left 0.15s ease;
}

.footer-list a:hover {
  color: var(--wm-gold);
  padding-left: 18px;
}

.footer-list a:hover::before {
  opacity: 1;
  left: 4px;
}

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

.contact-row {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.contact-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wm-gold);
  letter-spacing: 0.08em;
  padding-top: 3px;
  text-transform: uppercase;
}

.contact-value {
  color: rgba(245, 245, 245, 0.8);
  font-family: var(--font-body);
  font-size: 0.875rem;
  word-break: break-all;
  line-height: 1.6;
}

.footer-bottom {
  background: var(--wm-navy-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.12);
  padding: 18px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  width: var(--container-w);
  margin-inline: auto;
  font-family: var(--font-headline);
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.45);
}

.footer-icp {
  color: rgba(245, 245, 245, 0.4);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

.footer-powered {
  color: rgba(212, 175, 55, 0.45);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

/* ========== Media Queries ========== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.5rem;
  }

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

  .footer-trust {
    max-width: 100%;
  }

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

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

  .header-inner {
    padding: 10px 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wm-navy);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    display: block;
  }

  .site-nav[data-open] {
    max-height: 70vh;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .nav-link {
    padding: 12px 20px;
    border-radius: 0;
    border-left: 3px solid transparent;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--wm-gold);
    background: rgba(212, 175, 55, 0.1);
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .nav-index {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .announcement-ver {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .header-main::before {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-mark-inner {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .announcement-text {
    font-size: 0.75rem;
  }

  .announcement-dot {
    flex-basis: 5px;
    width: 5px;
    height: 5px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

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

/* ========== Reduced Motion ========== */
@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;
  }

  .announcement-dot {
    animation: none;
  }

  .img-frame:hover img {
    transform: none;
  }

  .data-card:hover {
    transform: none;
  }
}
