@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --teal: #5cc6b0;
  --sand: #d4c4a8;
  --ink: #172623;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --linen: #efe5d5;
  --linen-2: #f7f0e4;
  --bar-h: 64px;
  --serif: "Cormorant Garamond", "Libre Baskerville", Georgia, "Songti SC", "Noto Serif SC", serif;
  --body: "Libre Baskerville", Georgia, "Songti SC", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 8px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  background:
    radial-gradient(120% 55% at 82% -4%, #f8efdf 0%, rgba(248, 239, 223, 0) 62%),
    radial-gradient(90% 46% at 0% 34%, #e6dac4 0%, rgba(230, 218, 196, 0) 72%),
    linear-gradient(180deg, #f1e7d8 0%, var(--linen) 48%, #e8dcc8 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(23, 38, 35, .14) .5px, transparent .5px),
    radial-gradient(rgba(198, 123, 92, .12) .5px, transparent .5px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
}

a { color: inherit; }

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

/* ---------- 底栏 ---------- */
.site-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding: 0 12px calc(0px + env(safe-area-inset-bottom));
  align-items: center;
  background: linear-gradient(180deg, #20332e, #101c19);
  border-top: 1px solid rgba(212, 196, 168, .3);
  box-shadow: 0 -14px 30px -18px rgba(23, 38, 35, .7);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  border-radius: 13px 5px 13px 5px;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .22);
  transition: transform .25s ease-out, background .25s ease-out;
}

.brand-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.brand-mark:hover { transform: translateY(-2px) rotate(-2deg); }

.bar-contact {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(212, 196, 168, .5);
  border-radius: 999px;
  color: var(--sand);
  font-size: 16px;
  text-decoration: none;
  transition: background .25s ease-out, color .25s ease-out;
}

.bar-contact:hover { background: rgba(212, 196, 168, .16); color: #f6eddd; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 78px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .25s ease-out, transform .25s ease-out;
}

.menu-btn:hover { background: #7ad6c3; transform: translateY(-2px); }

/* ---------- 遮罩菜单 ---------- */
.site-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  z-index: 40;
  padding: 30px 18px 30px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .32s ease-out, transform .32s ease-out, visibility .32s;
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(92, 198, 176, .22) 0%, rgba(92, 198, 176, 0) 60%),
    linear-gradient(160deg, #172623 0%, #24403a 62%, #2b4a42 100%);
  color: var(--sand);
}

.site-bar.is-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-mark {
  display: block;
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #f0e7d6;
}

.site-nav p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(212, 196, 168, .1);
  color: #f3ead9;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .02em;
  transition: background .25s ease-out, color .25s ease-out, transform .25s ease-out;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--teal);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- 首屏 ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  min-height: 45vh;
  padding: 38px 18px 0;
  text-align: center;
}

.hero-copy { display: block; }

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 8vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  text-wrap: balance;
  color: var(--ink);
}

.hero-desc {
  margin: 12px auto 0;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: #3c5049;
}

.hero-fig {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px 6px 20px 6px;
  background: linear-gradient(150deg, var(--sand), #c7b494 60%, #b9a687);
  box-shadow: 0 22px 44px -26px rgba(23, 38, 35, .7);
}

.hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.slash {
  display: block;
  height: 24px;
  margin: 0 -18px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--olive) 34%, var(--clay) 68%, var(--sand) 100%);
  clip-path: polygon(0 46%, 100% 4%, 100% 58%, 0 100%);
}

/* ---------- 正文骨架 ---------- */
.body-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 18px 44px;
}

.prose { min-width: 0; }

.prose > article {
  margin: 0 0 16px;
  padding: 22px 18px;
  border-radius: 10px;
  background: var(--linen-2);
  box-shadow: 0 12px 28px -24px rgba(23, 38, 35, .8);
  scroll-margin-top: 14px;
  scroll-margin-bottom: calc(var(--bar-h) + 22px);
}

.prose > article:last-child { margin-bottom: 0; }

.prose h2,
.prose h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.prose h2 {
  margin: 0 0 10px;
  font-size: clamp(1.42rem, 5.2vw, 1.95rem);
  line-height: 1.28;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1.22rem;
  line-height: 1.35;
  color: #24382f;
}

.prose hr {
  height: 2px;
  border: 0;
  margin: 16px 0;
  background: linear-gradient(90deg, var(--teal), rgba(92, 198, 176, 0));
}

.prose h2 + hr,
.prose h3 + hr { margin: 0 0 16px; }

.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: #1f6659;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--clay); }

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.prose li { margin-bottom: 8px; }

.prose strong { color: #12211c; }

.prose blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--clay);
  border-radius: 0 10px 10px 0;
  background: #f1e4d3;
  color: #33443c;
}

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

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border-radius: 10px;
}

.prose figure { margin: 16px 0; }
.prose figcaption { font-size: 16px; color: #4c5f57; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th,
.prose td { padding: 8px 10px; text-align: left; border-bottom: 1px solid rgba(23, 38, 35, .14); }

/* ---------- 侧栏 ---------- */
.side-rail {
  align-self: start;
  padding: 20px 18px 14px;
  border-radius: 10px;
  background: linear-gradient(165deg, #1f332e, #15241f);
  color: #e9dece;
  box-shadow: 0 18px 38px -28px rgba(23, 38, 35, .95);
}

.rail-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #f4ead9;
}

.side-rail hr {
  height: 2px;
  width: 54px;
  border: 0;
  margin: 0 0 12px;
  background: var(--teal);
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 2px;
  color: #e5dac7;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(212, 196, 168, .22);
  transition: color .2s ease-out, padding-left .2s ease-out;
}

.rail-list a:hover { color: var(--teal); padding-left: 6px; }

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 10px;
  padding: 40px 18px 18px;
  background: linear-gradient(180deg, #1b2f2a, #0e1916);
  color: #cfc3ae;
}

.foot-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.foot-addr {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: .03em;
  color: #f0e6d5;
}

.foot-addr img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.foot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: #c7bba6;
  text-decoration: none;
  transition: color .2s ease-out;
}

.foot-list a:hover { color: var(--teal); }

.foot-note {
  max-width: 1080px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 196, 168, .18);
  text-align: center;
  font-size: 16px;
  color: #9fada5;
}

/* ---------- 桌面 ---------- */
@media (min-width: 820px) {
  .site-nav { padding: 58px 40px; }
  .site-nav p { flex-direction: row; flex-wrap: wrap; gap: 14px; max-width: 900px; }
  .nav-mark { font-size: 2.1rem; margin-bottom: 28px; }
  .hero { min-height: 44vh; padding-top: 56px; }
  .hero-fig { aspect-ratio: 21 / 9; }
  .slash { height: 30px; }
}

@media (min-width: 900px) {
  .body-shell {
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 44px;
    padding-top: 48px;
  }
  .side-rail { position: sticky; top: 22px; }
  .foot-cols { grid-template-columns: 1.25fr 1fr 1fr; gap: 34px; }
  .prose > article { padding: 28px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .hero-fig img { transform: none !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
