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

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

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

p {
  max-width: 68ch;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

/* ========== Variables ========== */
:root {
  --green: #1E7B4B;
  --blue: #1E90FF;
  --gold: #FFC107;
  --red: #E53935;
  --dark: #0A2E36;
  --cream: #FFF8E7;
  --gray: #2D3748;
  --silver: #CBD5E0;
  --white: #FFFFFF;
  --font-heading: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
  --font-data: 'Roboto Mono', 'SF Mono', 'Cascadia Mono', 'Consolas', monospace;
  --container-max: 1200px;
  --radius: 2px;
  --shadow: 6px 6px 0 var(--silver);
  --shadow-green: 6px 6px 0 rgba(30, 123, 75, 0.35);
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.1rem;
}

h1, h2, h3, h4, p, ul, ol, blockquote {
  margin-bottom: 1rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-left: 6px solid var(--blue);
  box-shadow: 4px 4px 0 var(--silver);
  font-style: italic;
  color: var(--gray);
}

blockquote p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--silver);
  text-align: left;
}

th {
  font-family: var(--font-heading);
  background: var(--dark);
  color: var(--cream);
}

figure {
  margin: 1.5rem 0;
}

figcaption {
  margin-top: 0.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--green);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gray);
}

/* ========== Layout ========== */
.container {
  width: min(calc(100% - 2.5rem), var(--container-max));
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding-block: 3.5rem;
}

.section--tight {
  padding-block: 2rem;
}

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

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark a {
  color: var(--gold);
}

.prose {
  max-width: 68ch;
}

/* ========== Grid ========== */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid--main-aside {
  grid-template-columns: minmax(0, 1fr) 320px;
}

@media (max-width: 899px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
}

@media (max-width: 768px) {
  .grid--main-aside {
    grid-template-columns: 1fr;
  }
}

/* ========== Scroll Progress ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  z-index: 400;
  pointer-events: none;
}

/* ========== Skip Link ========== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 6px;
  z-index: 500;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 6px;
  top: 6px;
  color: var(--dark);
  text-decoration: none;
}

/* ========== Header ========== */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--gold);
}

@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.header-topbar {
  background: var(--green);
  color: var(--cream);
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--container-max) - 3rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0.3rem 1.5rem;
}

.header-topbar-item {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.header-topbar-item--gold {
  color: var(--gold);
  font-weight: 700;
}

.header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--container-max) - 3rem);
  margin-left: auto;
  margin-right: auto;
  padding: 0.65rem 1.5rem;
  min-height: 66px;
}

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

.brand:hover {
  color: var(--gold);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-en {
  font-family: var(--font-data);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--silver);
  text-transform: uppercase;
}

/* ========== Nav Toggle ========== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.nav-toggle:hover {
  background: var(--blue);
}

.nav-toggle-text {
  font-size: inherit;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.nav-toggle-bars i {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  font-style: normal;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== Nav ========== */
.nav-item {
  margin: 0;
}

.nav-drawer-brand {
  display: none;
}

/* Desktop */
@media (min-width: 900px) {
  .site-nav {
    display: block;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }

  .nav-link {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    position: relative;
    text-decoration: none;
  }

  .nav-link:hover {
    color: var(--gold);
    text-decoration: none;
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 100%;
    bottom: 0.1rem;
    height: 3px;
    background: var(--gold);
    transition: right 0.2s ease;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after {
    right: 0.8rem;
  }

  .nav-link[aria-current="page"] {
    color: var(--gold);
  }
}

/* Mobile */
@media (max-width: 899px) {
  .site-header {
    position: relative;
    z-index: auto;
  }

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

  html.js .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: min(82vw, 360px);
    background: var(--dark);
    border-left: 4px solid var(--gold);
    box-shadow: -12px 0 30px rgba(10, 46, 54, 0.35);
    padding: 1.8rem 1.25rem 2rem;
    transform: translateX(105%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 300;
  }

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

  .nav-drawer-brand {
    display: block;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 0.12em;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--green);
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    color: var(--cream);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-left: 3px solid transparent;
  }

  .nav-link:hover {
    color: var(--gold);
    background: rgba(30, 123, 75, 0.2);
    text-decoration: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--gold);
    background: rgba(30, 123, 75, 0.25);
    border-left-color: var(--gold);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 46, 54, 0.6);
    z-index: 250;
  }

  html:not(.js) .site-nav {
    position: static;
    transform: none;
    width: 100%;
    padding: 0;
    background: transparent;
    border-left: 0;
    box-shadow: none;
    overflow: visible;
  }

  html:not(.js) .nav-drawer-brand {
    display: none;
  }

  html:not(.js) .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  html:not(.js) .nav-link {
    border-left: 0;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  html:not(.js) .header-main {
    flex-wrap: wrap;
  }
}

/* ========== Footer ========== */
.site-footer {
  margin-top: 5rem;
  background-color: var(--dark);
  background-image: linear-gradient(
    135deg,
    rgba(30, 123, 75, 0.06) 25%,
    transparent 25%,
    transparent 50%,
    rgba(30, 123, 75, 0.06) 50%,
    rgba(30, 123, 75, 0.06) 75%,
    transparent 75%,
    transparent
  );
  background-size: 28px 28px;
  border-top: 8px solid var(--gold);
  color: var(--cream);
}

.site-footer-top {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5rem;
  max-width: calc(var(--container-max) - 3rem);
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem 2rem;
}

.site-footer-main .footer-tagline {
  margin-top: 0.4rem;
  color: var(--silver);
  font-family: var(--font-heading);
  font-weight: 500;
}

.footer-trust {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--green);
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 248, 231, 0.8);
  max-width: 46ch;
}

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

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

.footer-brand:hover {
  color: var(--gold);
  text-decoration: none;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
}

.footer-title {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--green);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--gold);
  border-bottom-color: currentColor;
  text-decoration: none;
}

.footer-contact-list li {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--silver);
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: calc(var(--container-max) - 3rem);
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(203, 213, 224, 0.18);
  color: var(--silver);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .site-footer-aside {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--green);
  color: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.btn:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--dark);
}

.btn:active {
  transform: translate(0, 2px);
  box-shadow: 2px 2px 0 var(--dark);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  box-shadow: inset 0 0 0 2px var(--green), 4px 4px 0 var(--dark);
}

.btn--outline::before {
  background: var(--green);
}

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

.btn--gold {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 4px 4px 0 var(--dark);
}

.btn--gold::before {
  background: var(--red);
}

.btn--gold:hover {
  background: var(--red);
  color: var(--white);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0;
  font-family: var(--font-heading);
  font-size: 0.85rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--silver);
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--green);
  text-decoration: underline;
}

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

/* ========== Cards ========== */
.card {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--silver);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 rgba(30, 123, 75, 0.35);
}

/* ========== Media Frame ========== */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--dark);
  border: 2px solid var(--dark);
  box-shadow: 6px 6px 0 var(--silver);
  overflow: hidden;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.media-frame--portrait {
  aspect-ratio: 3 / 4;
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

@media (max-width: 768px) {
  .media-frame {
    aspect-ratio: 4 / 3;
  }

  .media-frame--portrait {
    aspect-ratio: 3 / 4;
  }
}

/* ========== Tags ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--cream);
  border: 1px solid var(--silver);
  border-left: 4px solid var(--blue);
  padding: 0.2rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.tag--gold {
  border-left-color: var(--gold);
  background: rgba(255, 193, 7, 0.14);
}

.tag--red {
  border-left-color: var(--red);
  background: rgba(229, 57, 53, 0.1);
}

/* ========== Plaque ========== */
.plaque {
  position: relative;
  margin-top: 1.2rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--silver);
}

.plaque::before {
  content: attr(data-label);
  position: absolute;
  top: -11px;
  left: 0.75rem;
  background: var(--dark);
  color: var(--gold);
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.55rem;
}

.plaque p:last-child {
  margin-bottom: 0;
}

/* ========== Data ========== */
.data-num,
.stat {
  font-family: var(--font-data);
  line-height: 1.2;
}

.data-num {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.stat {
  display: block;
  font-size: 1.05rem;
  color: var(--blue);
}

/* ========== Reveal ========== */
html.js .reveal,
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js .reveal.is-revealed,
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-progress {
    display: none;
  }

  html.js .reveal,
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
    box-shadow: 6px 6px 0 var(--silver);
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
    box-shadow: 4px 4px 0 var(--dark);
  }

  .nav-toggle-bars i,
  .nav-link::after,
  html.js .site-nav {
    transition: none;
  }
}
