:root {
  --bg: #F7F3E8;
  --bg-soft: #D8E0DC;
  --primary: #1E3D32;
  --gold: #C9A063;
  --gold-deep: #A87F4A;
  --red: #8A3324;
  --ink: #2B1E16;
  --neon: #3FE0C5;
  --pink: #FF5B79;
  --white: #F7F3E8;
  --font-head: "Ma Shan Zheng", "LXGW WenKai", "STKaiti", "KaiTi", "FangSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Inter", "Roboto", sans-serif;
  --radius: 8px;
  --shadow: 0 12px 32px rgba(43, 30, 22, .12);
  --header-h: 4rem;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 80%, rgba(201, 160, 99, .08) 0 2px, transparent 2px),
    radial-gradient(circle at 82% 18%, rgba(30, 61, 50, .06) 0 3px, transparent 3px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  padding-left: 1.2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 .5em;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

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

.skip-link {
  position: fixed;
  top: 0;
  left: -9999px;
  background: var(--neon);
  color: var(--ink);
  font-weight: 700;
  padding: .5rem 1rem;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  z-index: 2000;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(120deg, rgba(30, 61, 50, .96), rgba(30, 61, 50, .86));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 160, 99, .35);
  box-shadow: 0 1px 0 rgba(201, 160, 99, .15);
  color: var(--white);
}

.site-header__inner {
  width: min(1200px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: .35rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand__logo {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
}

.brand__logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: var(--white);
  white-space: nowrap;
}

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

.site-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: .2rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .4rem .55rem;
  color: rgba(247, 243, 232, .82);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .04em;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.site-nav__link::before {
  content: attr(data-index);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: .62rem;
}

.site-nav__link:hover {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

.site-nav__link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
  font-weight: 600;
}

.site-nav__link[aria-current="page"]::before {
  color: var(--neon);
  text-shadow: 0 0 8px rgba(63, 224, 197, .8);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.site-header__actions .btn {
  white-space: nowrap;
  padding: .42rem .85rem;
  font-size: .78rem;
  border-radius: 24px 4px 24px 4px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(201, 160, 99, .5);
  border-radius: 6px;
  padding: .42rem .7rem;
  cursor: pointer;
  line-height: 1;
}

.nav-toggle__icon {
  display: grid;
  gap: 3px;
  width: 14px;
}

.nav-toggle__icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

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

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

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

.nav-toggle__text {
  font-family: var(--font-head);
  font-size: .85rem;
}

.site-footer {
  background: var(--ink);
  color: var(--white);
  border-top: 4px solid var(--gold);
}

.site-footer__inner {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

.site-footer__brand .brand {
  margin-bottom: .8rem;
}

.site-footer__brand .brand__logo {
  width: 2.4rem;
  height: 2.4rem;
}

.site-footer__brand .brand__text {
  font-size: 1.7rem;
}

.site-footer__about {
  color: rgba(247, 243, 232, .62);
  font-size: .92rem;
  max-width: 38ch;
  margin: .5rem 0 0;
}

.site-footer__heading {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: .12em;
  margin: 0 0 1rem;
  font-weight: 400;
}

.site-footer__heading::before {
  content: "/";
  color: var(--neon);
  margin-right: .4rem;
}

.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1rem;
}

.site-footer__menu li {
  break-inside: avoid;
}

.site-footer__menu a {
  color: rgba(247, 243, 232, .7);
  text-decoration: none;
  display: inline-block;
  padding: .25rem 0;
  font-size: .85rem;
  transition: color .2s ease, padding-left .2s ease;
}

.site-footer__menu a:hover {
  color: var(--neon);
  padding-left: .3rem;
}

.source-footer__contact {
  color: rgba(247, 243, 232, .7);
  font-style: normal;
}

.site-footer__contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact li {
  display: flex;
  gap: .5rem;
  padding: .18rem 0;
  font-size: .85rem;
  color: rgba(247, 243, 232, .7);
}

.site-footer__contact li span {
  flex: 0 0 2.5em;
  color: var(--gold);
  font-weight: 600;
}

.site-footer__contact li span::after {
  content: "：";
}

.site-footer__bottom {
  border-top: 1px solid rgba(201, 160, 99, .3);
  padding: 1.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2rem;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(247, 243, 232, .55);
}

.site-footer__bottom p {
  margin: 0;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

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

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

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section__kicker {
  font-family: var(--font-head);
  color: var(--gold-deep);
  letter-spacing: .1em;
  font-size: .85rem;
  margin-bottom: .25rem;
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--primary);
  margin: 0;
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--primary);
  margin: 0 0 .5rem;
}

.prose {
  max-width: 65ch;
}

.prose h2 {
  font-size: 1.6rem;
  margin: 2rem 0 .5rem;
  color: var(--primary);
}

.prose p {
  margin: 0 0 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: .65rem 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--gold-deep);
}

.btn--gold:hover {
  background: #d9b273;
  box-shadow: 0 5px 12px rgba(201, 160, 99, .4);
}

.btn--dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--gold);
}

.btn--dark:hover {
  box-shadow: 0 8px 20px rgba(30, 61, 50, .25);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--ghost:hover {
  background: var(--primary);
  color: var(--white);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .05em;
  padding: .35em .65em;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  text-transform: uppercase;
}

.tag--gold {
  background: var(--gold);
  color: var(--ink);
}

.tag--neon {
  background: rgba(30, 61, 50, .85);
  color: var(--neon);
  border: 1px solid var(--neon);
}

.tag--pink {
  background: var(--pink);
  color: var(--ink);
}

.glass-panel {
  background: rgba(247, 243, 232, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 160, 99, .4);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card {
  background: var(--white);
  border: 1px solid var(--bg-soft);
  border-radius: 12px;
  padding: 1.2rem;
}

.card--dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

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

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

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: .8rem;
  color: var(--gold-deep);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: .4rem;
  color: rgba(43, 30, 22, .3);
}

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

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

.link-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.link-more::after {
  content: "→";
  color: var(--gold-deep);
}

.link-more:hover {
  color: var(--red);
}

.img-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  background: linear-gradient(135deg, var(--bg-soft), #fffdf5);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  overflow: hidden;
  color: var(--primary);
  font-family: var(--font-head);
}

.img-placeholder::after {
  content: attr(data-label);
  opacity: .7;
  padding: 1rem;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: .6rem 1rem;
  font-size: .8rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}

.to-top.is-visible {
  display: inline-flex;
}

.to-top:hover {
  background: var(--primary);
  color: var(--neon);
}

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

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: .7rem 0;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    margin-left: 0;
    border-top: 1px solid rgba(201, 160, 99, .3);
    margin-top: .3rem;
  }

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

  .site-nav__list {
    flex-direction: column;
    gap: .15rem;
    padding: .8rem 0;
  }

  .site-nav__link {
    padding: .7rem .55rem;
    font-size: .95rem;
    border-bottom: 1px solid rgba(201, 160, 99, .2);
  }

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

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

  .site-footer__top {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }

  .site-footer__menu {
    columns: 1;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
