:root {
  --c-deep: #0a3d2e;
  --c-teal: #1a5c44;
  --c-gold: #c9a35c;
  --c-red: #e33e2b;
  --c-ivory: #f5f2e8;
  --c-ink: #1a1a1a;
  --c-border: #e0ca8a;
  --c-hover: #2a7a5f;
  --font-head: "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif CJK SC", "Songti SC", serif;
  --sidebar-w: 320px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --trans: 250ms cubic-bezier(.2, .7, .3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--c-deep);
  color: var(--c-ivory);
  line-height: 1.75;
  padding-left: var(--sidebar-w);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

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

#main-content {
  background:
    radial-gradient(circle at 98% 0%, rgba(201, 163, 92, .12), transparent 26%),
    linear-gradient(180deg, #fbf8f1 0%, var(--c-ivory) 24%, #eee9dd 100%);
  color: var(--c-ink);
  min-height: 100vh;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  overflow: clip;
}

#main-content a {
  color: var(--c-deep);
  text-decoration: underline;
  text-decoration-color: var(--c-gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.18;
  transform: skew(-2deg);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

p {
  margin-bottom: 1rem;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: var(--c-gold);
  color: var(--c-deep);
  padding: .75rem 1.25rem .75rem 1rem;
  border-radius: 0 0 var(--radius-pill) 0;
  font-family: var(--font-head);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform var(--trans);
}

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

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.75rem;
  z-index: 50;
  background:
    linear-gradient(155deg, rgba(201, 163, 92, .16), transparent 45%),
    linear-gradient(180deg, #0d4733 0%, var(--c-deep) 48%, #051b13 100%);
  border-right: 1px solid rgba(224, 202, 138, .22);
  clip-path: polygon(0 0, 92% 0, 100% 3.5%, 100% 96.5%, 92% 100%, 0 100%);
  overflow-y: auto;
}

.sidebar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: var(--c-ivory);
}

.brand__mark {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #efe6d0, var(--c-gold) 55%, #8d6a2f 100%);
  border: 2px solid var(--c-border);
  box-shadow: 0 0 0 4px rgba(201, 163, 92, .18), 0 10px 24px rgba(0, 0, 0, .3);
}

.brand__ring {
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(10, 61, 46, .45);
  border-radius: 50%;
}

.brand__core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--c-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}

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

.brand__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: .06em;
  color: var(--c-ivory);
}

.brand__tagline {
  font-size: .72rem;
  color: rgba(245, 242, 232, .62);
  letter-spacing: .08em;
  margin-top: .1rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  background: rgba(26, 92, 68, .45);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: .5rem .85rem;
  color: var(--c-ivory);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  transition: background var(--trans), border-color var(--trans);
}

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

.nav-toggle__box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__bar {
  width: 16px;
  height: 2px;
  background: var(--c-ivory);
  border-radius: 2px;
  transition: transform var(--trans);
}

.nav-toggle__label {
  font-size: .8rem;
}

.site-nav {
  margin-top: 2.5rem;
}

.nav-list {
  list-style: none;
  counter-reset: nav;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.nav-item {
  counter-increment: nav;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .72rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(26, 92, 68, .22);
  border: 1px solid transparent;
  color: rgba(245, 242, 232, .82);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background var(--trans), color var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.nav-link::before {
  content: "0" counter(nav);
  font-size: .68rem;
  font-weight: 900;
  color: var(--c-gold);
  opacity: .75;
  letter-spacing: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--c-hover);
  color: var(--c-ivory);
  border-color: rgba(224, 202, 138, .35);
}

.nav-link[aria-current="page"] {
  background: var(--c-gold);
  color: var(--c-deep);
  border-color: var(--c-gold);
  box-shadow: 0 8px 22px rgba(201, 163, 92, .28);
}

.nav-link[aria-current="page"]::before {
  color: var(--c-deep);
  opacity: .9;
}

.sidebar__foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(224, 202, 138, .18);
}

.sidebar__contact {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--c-red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  text-decoration: none;
  transition: background var(--trans), transform var(--trans);
}

.sidebar__contact:hover {
  background: #f05540;
  transform: translateY(-1px);
}

.site-footer {
  background:
    linear-gradient(120deg, rgba(201, 163, 92, .1), transparent 30%),
    linear-gradient(180deg, #051f17 0%, var(--c-deep) 45%, #060d0a 100%);
  color: var(--c-ivory);
  border-top: 3px solid var(--c-gold);
  padding: 3rem clamp(1rem, 4vw, 2.5rem) 1.25rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.site-footer__brand,
.site-footer__links,
.site-footer__contact {
  display: flex;
  flex-direction: column;
}

.site-footer__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--c-ivory);
  letter-spacing: .06em;
}

.site-footer__slogan {
  color: var(--c-gold);
  font-size: .9rem;
  margin-top: .25rem;
  letter-spacing: .08em;
}

.site-footer__trust {
  margin-top: 1.25rem;
  font-size: .85rem;
  line-height: 1.8;
  color: rgba(245, 242, 232, .7);
  max-width: 42ch;
}

.site-footer__heading {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .16em;
  color: var(--c-gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.site-footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.site-footer__list a {
  color: rgba(245, 242, 232, .8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--trans), border-color var(--trans);
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--c-gold);
  border-bottom-color: var(--c-gold);
}

.site-footer__contact p {
  margin-bottom: .4rem;
  color: rgba(245, 242, 232, .78);
  font-size: .9rem;
  word-break: break-word;
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 2.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(224, 202, 138, .18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  font-size: .82rem;
  color: rgba(245, 242, 232, .55);
}

.site-footer__copyright,
.site-footer__icp,
.site-footer__bottom p {
  margin: 0;
}

.page-body {
  max-width: 1160px;
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  font-size: .85rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: .5rem;
  color: var(--c-gold);
}

.breadcrumb a {
  color: var(--c-deep);
  text-decoration: none;
  font-weight: 700;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .92rem;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), box-shadow var(--trans), transform var(--trans);
}

.btn--primary {
  background: var(--c-gold);
  color: var(--c-deep);
  box-shadow: 0 12px 28px rgba(201, 163, 92, .3);
}

.btn--primary:hover {
  background: #dcbb72;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(201, 163, 92, .4);
}

.btn--ghost {
  background: transparent;
  color: var(--c-deep);
  border: 2px solid var(--c-gold);
  box-shadow: none;
}

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

.btn--danger {
  background: var(--c-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(227, 62, 43, .28);
}

.btn--danger:hover {
  background: #f05540;
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .74rem;
  line-height: 1;
  background: rgba(26, 92, 68, .1);
  color: var(--c-deep);
  border: 1px solid rgba(201, 163, 92, .55);
}

.tag--gold {
  background: var(--c-gold);
  color: var(--c-deep);
  border-color: var(--c-gold);
}

.tag--red {
  background: var(--c-red);
  color: #fff;
  border-color: var(--c-red);
}

.card {
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 8px 24px rgba(10, 61, 46, .05);
}

.card--dark {
  background: linear-gradient(145deg, var(--c-teal), var(--c-deep));
  color: var(--c-ivory);
  border-color: transparent;
}

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

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-teal);
  border: 1px solid var(--c-border);
}

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

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

.media-frame--ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.media-frame--cover {
  display: block;
  background: var(--c-teal);
}

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

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 242, 232, .7);
  font-family: var(--font-head);
  font-size: .9rem;
  letter-spacing: .1em;
  background:
    linear-gradient(135deg, rgba(201, 163, 92, .2), transparent 60%),
    var(--c-teal);
}

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

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

@media (max-width: 1199px) and (min-width: 900px) {
  :root {
    --sidebar-w: 280px;
  }

  .sidebar {
    padding: 1.5rem 1.25rem;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand__name {
    font-size: 1.05rem;
  }
}

@media (max-width: 899px) {
  :root {
    --sidebar-w: 0px;
  }

  body {
    padding-left: 0;
    padding-top: 68px;
  }

  .sidebar {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: auto;
    clip-path: none;
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(224, 202, 138, .25);
    border-right: none;
    z-index: 100;
  }

  .sidebar__top {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand__name {
    font-size: 1rem;
  }

  .brand__tagline {
    font-size: .65rem;
  }

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

  .site-nav {
    display: none;
    margin-top: .75rem;
    padding: 0 0 .5rem;
    flex-basis: 100%;
  }

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

  .nav-list {
    gap: .2rem;
  }

  .nav-link {
    font-size: .9rem;
    padding: .6rem .9rem;
  }

  .sidebar__foot {
    display: none;
  }

  #main-content {
    padding-top: 1.5rem;
  }

  .site-footer {
    padding-top: 2rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .site-footer__bottom {
    justify-content: flex-start;
    flex-direction: column;
    gap: .3rem;
  }
}

@media (max-width: 480px) {
  .brand__tagline {
    display: none;
  }

  .site-footer__contact p {
    font-size: .82rem;
  }

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

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

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

  .brand__ring {
    animation: none;
  }
}
