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

:root {
  --paper: #fdfbf7;
  --wash: #f5f5f5;
  --ink: #1a1a1a;
  --rule: #e0e0e0;
  --dim: #6b6660;
  --serif: "Cormorant", Georgia, "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --sans: "Montserrat", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: Georgia, "Songti SC", "SimSun", "Noto Serif CJK SC", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.2'/%3E%3C/svg%3E");
}

.strip,
.bar,
.menu,
main,
.foot {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
}

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

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

/* 顶部细条 */
.strip {
  background: var(--wash);
  border-bottom: 1px solid var(--rule);
  text-align: center;
  padding: 0.5rem 1rem;
}

.strip-txt {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: none;
  color: #3a3630;
}

/* 页头 */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}

.mark-img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}

.mark-txt {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.mark-sm {
  min-width: 38px;
  min-height: 38px;
}

.burger {
  appearance: none;
  min-width: 84px;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  cursor: pointer;
}

.burger:hover {
  background: var(--ink);
  color: var(--paper);
}

/* 全屏遮罩菜单 */
.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.01s linear;
}

body.menu-open .menu {
  visibility: visible;
  opacity: 1;
}

body.menu-open {
  overflow: hidden;
}

.menu-list {
  list-style: none;
  counter-reset: m;
  margin: 0;
  padding: 5rem 1.5rem 3rem;
  width: min(700px, 100%);
  max-height: 100vh;
  overflow-y: auto;
}

.menu-list li {
  counter-increment: m;
  border-bottom: 1px solid var(--rule);
}

.menu-list li:first-child {
  border-top: 1px solid var(--rule);
}

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  min-height: 52px;
  padding: 0.85rem 0.25rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.3;
}

.menu-list a::before {
  content: counter(m, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--dim);
  flex: none;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
}

/* 首屏 */
main {
  display: block;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr);
  gap: 2rem;
  padding: 3.5rem 1.25rem 1.75rem;
  border-bottom: 1px solid var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='%23dcd7ce'/%3E%3C/svg%3E");
  background-size: 24px 24px;
}

.hero-head {
  max-width: 40rem;
}

.hero-title {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0;
  max-width: 32rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.015em;
  color: #3a3630;
}

.hero-plate {
  margin: 0;
  display: block;
  min-height: 220px;
  background: var(--wash);
  border: 1px solid var(--rule);
  border-bottom: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
}

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

/* 主体网格 */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 3rem;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}

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

.flow > section {
  background: #fff;
  border: 1px solid var(--rule);
  border-bottom: 2px solid var(--ink);
  border-radius: 10px;
  padding: 2rem 1.6rem;
  margin: 0 0 2.5rem;
}

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

section[id] {
  scroll-margin-top: 5.5rem;
}

.flow h2,
.flow h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin: 0 0 0.55rem;
}

.flow h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.4rem);
}

.flow h3 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin-top: 1.9rem;
}

h2 + hr,
h3 + hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 0.7rem 0 1.5rem;
}

.flow hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1.75rem 0;
}

.flow p {
  margin: 0 0 1.25rem;
}

.flow ul,
.flow ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.flow li {
  margin: 0.4rem 0;
}

.flow a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.flow figure {
  margin: 1.75rem 0;
}

.flow figcaption {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--dim);
  margin-top: 0.6rem;
}

.flow img {
  height: auto;
  border-radius: 10px;
}

.flow blockquote {
  margin: 1.75rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--ink);
  font-style: italic;
}

.flow table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 14px;
}

.flow th,
.flow td {
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0.5rem;
  text-align: left;
}

.flow pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--wash);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
}

.flow code {
  font-size: 0.92em;
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 4.75rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.9rem;
  font-family: var(--sans);
  order: 2;
}

.rail-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.rail-rule {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 0.55rem 0 0.9rem;
}

.rail-list {
  list-style: none;
  counter-reset: r;
  margin: 0;
  padding: 0;
}

.rail-list li {
  counter-increment: r;
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 40px;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  color: #2a2723;
}

.rail-list a::before {
  content: counter(r, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--dim);
  flex: none;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--ink);
  background: var(--wash);
  font-family: var(--sans);
  font-size: 13px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.foot-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.foot-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  margin: 0;
  padding: 0;
}

.foot-list a,
.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: var(--ink);
}

.foot-list a:hover,
.foot-legal a:hover {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.foot-legal {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #3a3630;
}

.foot-legal .top {
  letter-spacing: 0.12em;
}

/* 滚动显现 */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

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

  .reveal.in {
    transition: none;
  }
}

/* 断点 */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    padding: 2.25rem 1rem 3.5rem;
  }

  .rail {
    position: static;
    order: 2;
  }

  .hero {
    padding: 2.5rem 1rem 1.25rem;
    gap: 1.5rem;
  }
}

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

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .flow > section {
    padding: 1.5rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1.75rem;
  }

  .menu-list a {
    font-size: 1.3rem;
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .foot-legal {
    width: 100%;
    justify-content: space-between;
  }
}

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