@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

:root {
  --paper: #f4ede1;
  --paper-2: #ece0cc;
  --paper-3: #fbf5ea;
  --ink: #2b211a;
  --ink-soft: #4a3a2e;
  --wood: #7a2e2e;
  --wood-deep: #5e2222;
  --wood-dark: #471a1a;
  --brass: #c08a3e;
  --brass-soft: #e7cea4;
  --line: #c9b79b;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Crimson Pro', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  font-size: 17px;
  line-height: 1.78;
}

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

a {
  color: var(--wood);
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  font-weight: 700;
}

/* ---------- 顶部细条 ---------- */
.topbar {
  background: var(--wood-deep);
  color: var(--brass-soft);
  border-bottom: 2px solid var(--brass);
  padding: 9px 14px;
  text-align: center;
}

.topbar p {
  margin: 0;
  font-family: 'Cinzel', 'Songti SC', serif;
  font-size: 13px;
  letter-spacing: 0.34em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 页头导航 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(12px, 3vw, 34px);
  background: var(--paper);
  border-bottom: 2px solid var(--wood);
}

.brand {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 2px solid var(--wood);
  border-radius: 4px;
  background: var(--brass);
  transition: background 0.18s ease;
}

.brand:hover,
.brand:focus-visible {
  background: var(--brass-soft);
}

.mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mark-fb {
  width: 18px;
  height: 18px;
  background: var(--wood);
  transform: rotate(45deg);
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav p {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border: 2px solid transparent;
  border-radius: 4px;
  color: var(--wood);
  font-family: 'Cinzel', 'Songti SC', serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--wood);
  border-color: var(--wood);
  color: var(--paper);
}

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 70vh;
  background: var(--paper-2);
  border-bottom: 6px solid var(--brass);
  overflow: hidden;
}

.hero-art {
  position: relative;
  background: var(--wood);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-box {
  position: absolute;
  left: 14%;
  top: 18%;
  width: 44%;
  height: 50%;
  background: var(--brass);
}

.art-disc {
  position: absolute;
  right: 15%;
  bottom: 26%;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
}

.hero-text {
  display: grid;
  place-content: center;
  gap: 16px;
  padding: clamp(26px, 5vw, 62px) clamp(20px, 4vw, 54px);
  text-align: center;
}

.hero-text h1 {
  margin: 0;
  color: var(--wood);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.24;
  letter-spacing: 0.01em;
}

.hero-text .lead {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- 正文区 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) clamp(16px, 3.5vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(24px, 3.6vw, 44px);
  align-items: start;
}

.body {
  min-width: 0;
}

.prose {
  max-width: 70ch;
}

.prose > article {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 2px solid var(--line);
  scroll-margin-top: 118px;
}

.prose > article:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  margin: 0 0 16px;
  color: var(--wood);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.32;
}

.prose h2 > span,
.prose h3 > span {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 4px solid var(--brass);
}

.prose h3 {
  margin: 26px 0 10px;
  color: var(--wood-deep);
  font-size: 20px;
  line-height: 1.4;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin: 0 0 8px;
}

.prose li::marker {
  color: var(--brass);
}

.prose a {
  color: var(--wood);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.prose strong {
  color: var(--wood-deep);
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 6px solid var(--brass);
  background: var(--paper-3);
  border-radius: 0 10px 10px 0;
}

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

.prose table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 2px solid var(--line);
  text-align: left;
}

.prose th {
  background: var(--paper-2);
  color: var(--wood);
}

/* ---------- 右侧栏 ---------- */
.side {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.side-card {
  padding: 18px;
  border: 2px solid var(--wood);
  border-radius: 10px;
  background: var(--paper-3);
}

.side-title {
  margin: 0 0 14px;
  color: var(--wood);
  font-family: 'Cinzel', 'Songti SC', serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.side-title > span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--brass);
}

.side-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: secn;
}

.side-list li {
  counter-increment: secn;
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 2px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.16s ease;
}

.side-list a:hover,
.side-list a.on {
  color: var(--wood);
}

.side-list .dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--brass);
  border-radius: 2px;
  background: var(--brass-soft);
}

.side-list .dot::before {
  content: counter(secn, decimal-leading-zero);
  color: var(--wood);
  font-family: 'Cinzel', serif;
  font-size: 11px;
}

.side-list a:hover .dot,
.side-list a.on .dot {
  background: var(--brass);
}

.side-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 4px;
  background: var(--wood);
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.18s ease;
}

.side-top:hover {
  background: var(--wood-deep);
}

/* ---------- 页脚 ---------- */
.site-foot {
  margin-top: 56px;
  padding: clamp(30px, 5vw, 54px) clamp(16px, 3.5vw, 34px) 18px;
  background: var(--wood-deep);
  border-top: 6px solid var(--brass);
  color: var(--paper);
}

.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--wood-dark);
}

.foot-top h2 {
  margin: 0;
  color: var(--brass-soft);
  font-size: 22px;
}

.foot-top h2 > span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 4px solid var(--brass);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub label {
  flex: 1 1 100%;
  color: var(--brass-soft);
  font-size: 15px;
}

.sub input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--brass);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
}

.sub input::placeholder {
  color: #c8a98a;
}

.sub button {
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--brass);
  border-radius: 4px;
  background: var(--brass);
  color: #3a2114;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease;
}

.sub button:hover {
  background: var(--brass-soft);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 26px 0;
  border-bottom: 2px solid var(--wood-dark);
}

.foot-cols dl {
  margin: 0;
  min-width: 0;
}

.foot-cols dt {
  margin-bottom: 8px;
  color: var(--brass);
  font-family: 'Cinzel', 'Songti SC', serif;
  font-size: 14px;
  letter-spacing: 0.16em;
}

.foot-cols dd {
  margin: 0;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 2px;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot-cols a:hover {
  color: var(--brass-soft);
  border-color: var(--brass);
}

.foot-brandline {
  display: inline-block;
  padding-top: 8px;
  color: var(--paper);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  color: #dcc9b4;
  font-size: 15px;
}

.foot-bottom p {
  margin: 0;
}

.foot-links {
  display: flex;
  gap: 16px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--brass-soft);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--paper);
}

/* ---------- 进场动效 ---------- */
[data-reveal] {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

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

/* ---------- 断点 ---------- */
@media (max-width: 940px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-text {
    order: 1;
    padding: 26px 20px 22px;
  }

  .hero-art {
    order: 2;
    height: 168px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
  }

  .prose > article {
    scroll-margin-top: 132px;
  }

  .foot-top {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 620px) {
  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .foot-cols dl {
    border-bottom: 1px solid var(--wood-dark);
    padding-bottom: 10px;
  }

  .foot-cols dl:last-child {
    border-bottom: 0;
  }

  .nav a {
    padding: 0 9px;
    font-size: 14px;
  }
}

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

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

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

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