@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --ink: #172623;
  --ink-2: #2c3f39;
  --sage: #5cc6b0;
  --sand: #d4c4a8;
  --clay: #c67b5c;
  --olive: #6b7b3c;
  --bg: #f3ece2;
  --paper: #faf5ed;
  --line: #201b1580;
  --rail: 208px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 88% -10%, #efe4d2 0%, transparent 60%),
    radial-gradient(900px 520px at 6% 105%, #e6ded0 0%, transparent 58%),
    var(--bg);
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .45;
  mix-blend-mode: multiply;
  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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: #16211e;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 左侧固定竖导航 ---------- */

.masthead {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 16px 20px;
  background: linear-gradient(180deg, #172623 0%, #1d302a 62%, #223a32 100%);
  border-right: 1px solid rgba(212, 196, 168, .18);
}

.mark-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  background: var(--sage);
  color: #10201c;
  border-bottom: 3px solid var(--sand);
}

.mark-glyph {
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.mark-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  display: block;
}

.wm {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #f0e9dc;
  line-height: 1.35;
}

.topnav p {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.topnav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 8px;
  font-size: 16px;
  line-height: 1.35;
  color: #dfd6c6;
  border-left: 2px solid transparent;
  transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}

.topnav a::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
  opacity: .55;
  transition: background-color .25s var(--ease), opacity .25s var(--ease);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #fff;
  background: rgba(92, 198, 176, .12);
  border-left-color: var(--sage);
}

.topnav a:hover::before,
.topnav a:focus-visible::before {
  background: var(--sage);
  opacity: 1;
}

.contact {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #10201c;
  background: var(--sand);
  border-bottom: 3px solid var(--sage);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.contact:hover {
  background: var(--sage);
  color: #10201c;
  transform: translateY(-1px);
}

/* ---------- 主区 ---------- */

main {
  margin-left: var(--rail);
  max-width: 1220px;
  padding: 0 clamp(20px, 4vw, 60px) 20px;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(40px, 8vh, 90px) 0 clamp(32px, 6vh, 64px);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}

.ghost {
  position: absolute;
  right: -1vw;
  bottom: 6%;
  z-index: 0;
  max-width: 100%;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 9rem);
  line-height: .82;
  letter-spacing: -.03em;
  color: rgba(23, 38, 35, .07);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 4px;
}

.kicker {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--clay);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 800;
}

.lede {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}

.hero-cta {
  margin: 26px 0 0;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 22px;
  font-weight: 700;
  color: #10201c;
  background: var(--sage);
  border-bottom: 3px solid var(--ink);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}

.hero-cta a:hover {
  transform: translateY(-2px);
  background: #74d4c0;
}

.hero-fig {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--sand) 0%, #c3b193 48%, var(--olive) 100%);
  border-bottom: 3px solid var(--sage);
  overflow: hidden;
}

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

.hero-fill {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(92, 198, 176, .5), transparent 55%),
    linear-gradient(160deg, #cbb99b, #8a9470 90%);
}

/* ---------- 正文壳：aside 在左 ---------- */

.shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px);
  padding: clamp(34px, 6vh, 60px) 0 0;
  align-items: start;
}

.rail {
  position: sticky;
  top: 28px;
  padding: 18px 16px 20px;
  background: var(--paper);
  border-left: 3px solid var(--clay);
  border-bottom: 1px solid var(--sand);
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--clay);
  margin-bottom: 4px;
}

.rail-h {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
}

.rail-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e0d6c4;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 2px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-2);
  border-bottom: 1px solid #e6ddcc;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.rail-list a:hover,
.rail-list a.on {
  color: #1b2b26;
  padding-left: 8px;
  box-shadow: inset 3px 0 0 var(--sage);
}

.totop {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 2px solid var(--sage);
}

/* ---------- 正文排版 ---------- */

.prose {
  max-width: 72ch;
  min-width: 0;
}

.prose > article {
  padding-bottom: clamp(28px, 4vh, 44px);
  margin-bottom: clamp(28px, 4vh, 44px);
  border-bottom: 2px solid #d9cdb9;
  scroll-margin-top: 96px;
}

.prose > article:last-child {
  border-bottom: 3px solid var(--sage);
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 .55em;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: -.01em;
  font-weight: 800;
}

.prose h3 {
  margin: 1.6em 0 .5em;
  font-size: 1.16rem;
  font-weight: 700;
}

.prose p {
  margin: 0 0 1.05em;
  color: var(--ink-2);
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
  color: var(--ink-2);
}

.prose li {
  margin-bottom: .45em;
}

.prose a {
  color: #1e3b34;
  border-bottom: 2px solid var(--sage);
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border-bottom: 3px solid var(--sand);
}

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 14px 18px;
  background: var(--paper);
  border-left: 3px solid var(--clay);
  color: var(--ink-2);
}

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

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

.prose hr {
  border: 0;
  border-top: 1px solid var(--sand);
  margin: 2em 0;
}

/* ---------- 页脚 ---------- */

.foot {
  margin-left: var(--rail);
  margin-top: clamp(40px, 8vh, 80px);
  padding: clamp(38px, 6vh, 60px) clamp(20px, 4vw, 60px) 22px;
  background: linear-gradient(175deg, #172623 0%, #1f342d 100%);
  color: #e4dbcb;
  border-top: 3px solid var(--sage);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  gap: clamp(22px, 4vw, 48px);
  max-width: 1100px;
}

.foot h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  letter-spacing: .03em;
  color: #f4eee3;
}

.foot-brand h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.foot .eyebrow {
  color: var(--sage);
}

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

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

.foot a:hover {
  color: #fff;
  border-bottom-color: var(--sage);
}

.foot-cta {
  margin: 6px 0 0;
}

.foot-cta a {
  min-height: 44px;
  padding: 8px 18px;
  font-weight: 700;
  color: #10201c;
  background: var(--sand);
  border-bottom: 3px solid var(--sage);
}

.foot-cta a:hover {
  background: var(--sage);
  color: #10201c;
}

.sub-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.sub-form input {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-size: 16px;
  color: #f2ebdf;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(212, 196, 168, .38);
  border-radius: 0;
}

.sub-form input::placeholder {
  color: #b9b0a0;
}

.sub-form button {
  min-height: 44px;
  padding: 8px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #10201c;
  background: var(--sage);
  border: 0;
  border-bottom: 3px solid #0c1714;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.sub-form button:hover {
  background: #74d4c0;
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 34px;
  padding-top: 14px;
  border-top: 1px solid rgba(212, 196, 168, .24);
  font-size: 15px;
  color: #b8af9f;
}

.foot-bar p {
  margin: 0;
}

/* ---------- 动效 ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .prose > article,
    .foot-top > article {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

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

  * {
    transition-duration: .01ms !important;
  }
}

/* ---------- 移动端 ---------- */

@media (max-width: 940px) {
  .masthead {
    position: sticky;
    inset: 0 0 auto 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 3px solid var(--sage);
    overflow: hidden;
  }

  .mark-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: none;
  }

  .wm {
    font-size: 14px;
    max-width: 5.5em;
    line-height: 1.2;
  }

  .topnav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav p {
    flex-direction: row;
    gap: 6px;
    width: max-content;
  }

  .topnav a {
    white-space: nowrap;
    padding: 10px 12px;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .topnav a:hover,
  .topnav a:focus-visible {
    border-left-color: transparent;
    border-bottom-color: var(--sage);
  }

  .contact {
    margin-top: 0;
    flex: none;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
  }

  main,
  .foot {
    margin-left: 0;
  }

  main {
    padding-inline: 18px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 34px;
    gap: 26px;
  }

  .hero-copy {
    text-align: left;
  }

  .lede {
    margin-inline: 0;
  }

  .ghost {
    bottom: auto;
    top: 4px;
    right: 4px;
    font-size: clamp(2.6rem, 15vw, 4.6rem);
    opacity: .9;
  }

  .hero-fig {
    aspect-ratio: 16 / 10;
  }

  .shell {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .rail {
    position: static;
  }

  .rail-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46%, 1fr));
    gap: 0 12px;
  }

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

  .foot-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .wm {
    display: none;
  }

  .hero h1 {
    font-size: 1.95rem;
  }
}

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