@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #2F241B;
  --moss: #8A9A5B;
  --sand: #F2EADF;
  --paper: #FBF7F1;
  --page: #E9DDCB;
  --clay: #C3B19A;
  --line: rgba(47, 36, 27, 0.14);
  --shadow: 0 6px 22px rgba(47, 36, 27, 0.12);
  --soft: 0 2px 9px rgba(47, 36, 27, 0.08);
  --radius: 10px;
  --head: 'Lexend', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --body: 'Source Sans 3', 'Source Sans Pro', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; letter-spacing: -0.01em; }
i { font-style: normal; }
button { font: inherit; }

/* ---------- 顶部两行 ---------- */
.top { background: var(--ink); color: var(--sand); }

.brand-row {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.2rem 0;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.menu-btn {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid rgba(242, 234, 223, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--sand);
  cursor: pointer;
}

.menu-row {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.1rem 0.5rem;
  background: var(--ink);
  border-bottom: 1px solid rgba(242, 234, 223, 0.16);
}

.primary { display: flex; gap: 0.4rem; }

.group { position: relative; }

.group-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(242, 234, 223, 0.08);
  color: var(--sand);
  font-family: var(--head);
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.group-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}

.group:hover .group-btn,
.group.open .group-btn,
.group:focus-within .group-btn { background: var(--moss); color: #1C1610; }

.drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 12rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  z-index: 50;
}

.group:hover .drop,
.group.open .drop,
.group:focus-within .drop { display: block; }

.drop li[hidden] { display: none; }

.drop a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.15rem 0.75rem;
  border-radius: 7px;
  color: var(--ink);
  font-size: 1rem;
}

.drop a:hover,
.drop a:focus-visible { background: rgba(138, 154, 91, 0.2); }

.find { flex: 0 1 13rem; }

.find input {
  width: 100%;
  min-height: 42px;
  padding: 0 0.85rem;
  border: 1px solid rgba(242, 234, 223, 0.3);
  border-radius: 999px;
  background: rgba(242, 234, 223, 0.08);
  color: var(--sand);
  font-family: var(--body);
  font-size: 1rem;
}

.find input::placeholder { color: rgba(242, 234, 223, 0.6); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, #3E3024 0%, var(--ink) 62%);
  color: var(--sand);
  perspective: 1px;
}

.hero-mark {
  position: absolute;
  inset: auto -0.1em 0.4rem auto;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(5rem, 24vw, 17rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: rgba(242, 234, 223, 0.07);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.1rem 1.2rem;
  text-align: right;
}

.kicker {
  margin: 0 0 0.5rem;
  font-family: var(--head);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  color: var(--moss);
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 5.6vw, 3.4rem);
  font-weight: 600;
}

.lede {
  margin: 0 0 0 auto;
  max-width: 34rem;
  font-size: 1.02rem;
  color: rgba(242, 234, 223, 0.82);
}

.hero-figure {
  position: relative;
  z-index: 1;
  height: 42%;
  min-height: 130px;
  background: linear-gradient(180deg, rgba(242, 234, 223, 0.05), rgba(138, 154, 91, 0.25));
  will-change: transform;
}

.hero-figure img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

/* ---------- 主体 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem 1.1rem 3rem;
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.side {
  position: sticky;
  top: 5rem;
  padding: 1.1rem 0.85rem 1.2rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--sand);
  box-shadow: var(--shadow);
}

.side-title {
  margin: 0 0 0.7rem;
  padding: 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--moss);
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sec;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.1rem 0.45rem;
  border-radius: 7px;
  font-size: 0.96rem;
  color: rgba(242, 234, 223, 0.86);
}

.side-list a:hover,
.side-list a:focus-visible { background: rgba(242, 234, 223, 0.1); color: #fff; }

.side-list i {
  font-family: var(--head);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--moss);
  opacity: 0.85;
}

.body { min-width: 0; }

.prose { min-width: 0; overflow-wrap: break-word; }

.prose > section {
  margin: 0 0 1.5rem;
  padding: 1.6rem 1.45rem 1.7rem;
  background: var(--paper);
  border-left: 3px solid var(--moss);
  border-radius: var(--radius);
  box-shadow: var(--soft);
  scroll-margin-top: 6.5rem;
}

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

.prose h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 600;
}

.prose h2 > span,
.prose h3 > span { display: inline-block; border-bottom: 3px solid rgba(138, 154, 91, 0.55); padding-bottom: 0.15rem; }

.prose h3 { margin: 1.4rem 0 0.5rem; font-size: 1.15rem; font-weight: 600; }

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

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

.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }

.prose li { margin-bottom: 0.35rem; }

.prose blockquote {
  margin: 1rem 0;
  padding: 0.6rem 1rem;
  border-left: 3px solid var(--clay);
  background: rgba(138, 154, 91, 0.1);
  border-radius: 0 8px 8px 0;
}

.prose img { border-radius: 8px; margin: 0.6rem 0; }

.prose table { width: 100%; border-collapse: collapse; margin: 0.8rem 0; font-size: 0.96rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; text-align: left; }

/* ---------- 页脚 ---------- */
.site-foot {
  background: var(--ink);
  color: rgba(242, 234, 223, 0.75);
  padding: 2.2rem 1.1rem 1rem;
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.foot-grid dl { margin: 0; }

.foot-grid dt {
  margin-bottom: 0.5rem;
}

.foot-grid h2 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--moss);
}

.foot-grid dd { margin: 0; }

.foot-grid a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.1rem 0;
  font-size: 0.96rem;
  color: rgba(242, 234, 223, 0.86);
}

.foot-grid a:hover,
.foot-grid a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.foot-info dd { margin-bottom: 0.7rem; font-size: 0.96rem; }

.foot-bar {
  max-width: 1180px;
  margin: 1.6rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(242, 234, 223, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.foot-bar p { margin: 0; }

.foot-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.2rem;
}

.foot-bar a:hover { color: #fff; }

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in { opacity: 1; transform: none; }

.side-list li:nth-child(1) a { transition-delay: 0.02s; }
.side-list li:nth-child(2) a { transition-delay: 0.05s; }
.side-list li:nth-child(3) a { transition-delay: 0.08s; }
.side-list li:nth-child(4) a { transition-delay: 0.11s; }
.side-list li:nth-child(5) a { transition-delay: 0.14s; }
.side-list li:nth-child(6) a { transition-delay: 0.17s; }
.side-list li:nth-child(7) a { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-mark, .hero-figure { transform: none !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .side { position: static; order: 2; }
  .side-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .menu-btn { display: inline-flex; }

  .menu-row {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.2rem 1.1rem 0.9rem;
  }

  body.nav-open .menu-row { display: flex; }

  .primary { flex-direction: column; gap: 0.5rem; }

  .group-btn { width: 100%; justify-content: space-between; }

  .drop,
  .group:hover .drop,
  .group:focus-within .drop {
    position: static;
    display: block;
    min-width: 0;
    margin-top: 0.35rem;
    background: rgba(242, 234, 223, 0.06);
    box-shadow: none;
  }

  .drop a { color: var(--sand); }

  .find { flex: 1 1 auto; }

  .hero { min-height: 45vh; }

  .hero-copy { padding: 1.4rem 1.1rem 0.8rem; }

  .lede { font-size: 0.97rem; }

  .wrap { padding: 1.2rem 1.1rem 2.2rem; gap: 1.2rem; }

  .prose > section { padding: 1.25rem 1.1rem 1.35rem; }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem; }

  .foot-more { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .side-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

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