:root {
  --jade-900: #0b3d3a;
  --jade-700: #1a6b5a;
  --jade-500: #2da89a;
  --jade-100: #d7f0e8;
  --orange-600: #e8513a;
  --orange-300: #ffb59e;
  --ink: #12302b;
  --paper: #f7f5ef;
  --gold: #d4af37;
  --mist: #e2efe8;
  --font-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 72px;
  --shadow: 6px 6px 0 rgba(11, 61, 58, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--header-h);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  color: var(--jade-900);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--jade-700);
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--orange-600);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: var(--jade-900);
  color: var(--paper);
  border-bottom: 3px solid var(--orange-600);
  box-shadow: 0 4px 0 rgba(232, 81, 58, 0.25), 0 12px 24px rgba(11, 61, 58, 0.35);
  z-index: 1000;
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: var(--orange-600);
  z-index: 0;
}

.header__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.25rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 900;
  color: var(--paper);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__mark {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--orange-600), var(--orange-300));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 2px var(--paper);
  flex: 0 0 2rem;
}

.brand__text span {
  color: var(--orange-300);
}

.site-nav {
  margin-inline: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1vw, 1rem);
}

.nav__item {
  list-style: none;
}

.nav__link {
  display: block;
  padding: 0.45rem 0.65rem;
  color: rgba(247, 245, 239, 0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  line-height: 1.3;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav__link:hover {
  color: var(--paper);
  background: rgba(45, 168, 154, 0.35);
  border-color: rgba(215, 240, 232, 0.4);
}

.nav__link[aria-current="page"] {
  color: var(--paper);
  background: var(--orange-600);
  border-color: var(--orange-600);
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(247, 245, 239, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--orange-600);
  color: var(--paper);
  border-color: var(--orange-600);
  box-shadow: 4px 4px 0 var(--jade-700);
}

.btn--primary:hover {
  background: var(--orange-300);
  color: var(--jade-900);
  border-color: var(--orange-300);
  box-shadow: 2px 2px 0 var(--jade-700);
  transform: translate(2px, 2px);
}

.header__cta {
  flex: 0 0 auto;
  font-size: 0.9rem;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--orange-600);
  color: var(--paper);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

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

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.nav-toggle__icon::before {
  top: -0.4rem;
}

.nav-toggle__icon::after {
  top: 0.4rem;
}

.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);
}

.site-footer {
  background: var(--jade-900);
  color: rgba(247, 245, 239, 0.85);
  border-top: 4px solid var(--orange-600);
  position: relative;
  margin-top: 4rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--orange-600), var(--gold), var(--jade-500));
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand .brand {
  font-size: 1.4rem;
}

.footer__slogan {
  margin-top: 0.75rem;
  max-width: 28rem;
  font-size: 0.95rem;
  color: rgba(247, 245, 239, 0.7);
}

.footer__heading {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__heading::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--orange-600);
  display: inline-block;
  transform: rotate(45deg);
  flex: 0 0 0.5rem;
}

.footer__contact-list,
.footer__link-list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer__contact-list li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.footer__label {
  color: var(--orange-300);
  font-weight: 700;
  flex: 0 0 auto;
}

.footer__label::after {
  content: ":";
}

.footer__link-list a {
  color: rgba(247, 245, 239, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer__link-list a:hover {
  color: var(--orange-300);
  border-bottom-color: currentColor;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(215, 240, 232, 0.2);
  font-size: 0.85rem;
  color: rgba(247, 245, 239, 0.6);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--jade-500);
}

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

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

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

.page-header {
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, var(--mist), var(--paper));
  border-bottom: 2px solid var(--jade-100);
  margin-bottom: 2rem;
  position: relative;
}

.page-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 6px;
  background: var(--orange-600);
  margin-top: 1rem;
}

.content-section {
  padding: 3rem 0;
}

.section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  color: var(--jade-900);
  margin-bottom: 1rem;
  font-weight: 900;
}

.card {
  background: var(--paper);
  border: 2px solid var(--jade-500);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 rgba(26, 107, 90, 0.2);
}

.img-placeholder {
  position: relative;
  display: block;
  background: linear-gradient(120deg, var(--jade-100), var(--mist));
  border: 2px solid var(--jade-500);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(232, 81, 58, 0.15) 50%, transparent 60%);
}

.img-placeholder--tall {
  aspect-ratio: 4 / 5;
}

.img-placeholder--wide {
  aspect-ratio: 21 / 9;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--orange-600), var(--gold));
  z-index: 3000;
  pointer-events: none;
}

.to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jade-900);
  color: var(--paper);
  border: 2px solid var(--orange-600);
  box-shadow: 4px 4px 0 rgba(232, 81, 58, 0.35);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--orange-600);
}

.is-active {
  font-weight: 800;
  color: var(--orange-600);
}

@media (max-width: 900px) {
  :root {
    --header-h: 66px;
  }

  .site-header::before {
    width: 6px;
  }

  .header__inner {
    gap: 0.6rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand__mark {
    width: 1.6rem;
    height: 1.6rem;
    flex-basis: 1.6rem;
  }

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

  .header__cta {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    box-shadow: 2px 2px 0 var(--jade-700);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--jade-900);
    border-top: 2px solid var(--orange-600);
    border-bottom: 3px solid var(--orange-600);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.35rem;
  }

  .nav__link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid transparent;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
