@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');

:root {
  --lime: #80ff00;
  --green: #00ff00;
  --ink: #1f2617;
  --paper: #eef3d8;
  --paper2: #e1e8c3;
  --olive: #44562f;
  --dust: #a9b68c;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Crimson Pro", Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  background-image: radial-gradient(var(--ink) 1px, transparent 1.4px);
  background-size: 6px 6px;
  opacity: .15;
  mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 .5em;
}
p { margin: 0 0 1.1em; }
a { color: var(--ink); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
div { scroll-margin-top: 104px; }

/* 跳转 */
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 90;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--lime);
  text-decoration: none;
  font-size: 16px;
  transition: top .18s;
}
.skip:focus { top: 10px; }

/* 顶栏：品牌居中，菜单分列 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  grid-template-areas: "l b r c";
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--lime);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 5px 0 rgba(31, 38, 23, .18);
}
.navl { grid-area: l; min-width: 0; }
.navr { grid-area: r; min-width: 0; }
.call { grid-area: c; }

.navl ul, .navr ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.navl ul { justify-content: flex-end; }
.navr ul { justify-content: flex-start; }

.navlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 8px;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .16s, color .16s;
}
.navlink i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: rotate(45deg);
  transition: transform .18s, background .18s;
}
.navlink:hover { border-bottom-color: var(--ink); }
.navlink:hover i { transform: rotate(0deg) scale(1.45); background: var(--olive); }

.brand {
  grid-area: b;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  background: var(--ink);
  color: var(--lime);
  padding: 5px 15px;
  transform: rotate(-1.6deg);
  box-shadow: 4px 4px 0 var(--olive);
  transition: transform .18s;
}
.brand:hover { transform: rotate(1deg) translateY(-1px); }

.call {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 16px;
  text-decoration: none;
  background: var(--green);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.call:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

/* 版心 */
.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

/* 正文通用排版 */
.flow { min-width: 0; }

.flow h2 {
  font-size: clamp(28px, 5vw, 44px);
  margin-top: 4px;
}
.flow h3 {
  font-size: clamp(22px, 3.6vw, 30px);
  margin-top: 1.4em;
}
.flow small {
  display: inline-block;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: .16em;
  background: var(--green);
  border: 2px solid var(--ink);
  padding: 1px 9px;
  margin-bottom: 8px;
  transform: rotate(-1.2deg);
}
.flow p, .flow li { font-size: 18px; }
.flow a { border-bottom: 2px solid var(--lime); text-decoration: none; }
.flow a:hover { background: var(--lime); }
.flow ul, .flow ol { margin: 0 0 1.2em; }
.flow ul { list-style: none; padding-left: 2px; }
.flow ul li { position: relative; padding-left: 22px; margin-bottom: .55em; }
.flow ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 9px;
  height: 9px;
  background: var(--ink);
  transform: rotate(45deg);
}
.flow ol { padding-left: 1.4em; }
.flow ol li { margin-bottom: .55em; }
.flow blockquote {
  margin: 0 0 1.2em;
  padding: 14px 18px;
  border-left: 9px solid var(--lime);
  background: var(--paper2);
  font-style: italic;
}
.flow figure {
  margin: 24px 0;
  padding: 9px;
  background: var(--paper2);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-.6deg);
}
.flow figure img { width: 100%; height: auto; filter: saturate(140%); }
.flow img { filter: saturate(140%); }
.flow table { width: 100%; border-collapse: collapse; font-size: 17px; margin-bottom: 1.2em; }
.flow th, .flow td { border: 2px solid var(--ink); padding: 8px 10px; text-align: left; }
.flow th { background: var(--lime); font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; }
.flow hr { border: 0; border-top: 3px dashed var(--ink); margin: 28px 0; }

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 70vh;
  overflow: hidden;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}
.hero-art {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  transform: none;
  background: var(--ink);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(125%) contrast(1.06);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 38, 23, .93) 6%, rgba(31, 38, 23, .45) 56%, rgba(31, 38, 23, .12) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 84px 22px 78px;
  text-align: left;
}
.hero-copy small {
  display: inline-block;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 16px;
  letter-spacing: .18em;
  background: var(--green);
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 2px 11px;
  margin-bottom: 16px;
  transform: rotate(-2deg);
}
.hero-copy h1 {
  font-size: clamp(36px, 7.8vw, 74px);
  color: var(--paper);
  text-shadow: 4px 4px 0 var(--ink);
  margin-bottom: .38em;
}
.hero-sub {
  color: var(--paper);
  max-width: 44ch;
  font-size: 18px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
}

/* 跑马灯 */
.marquee {
  overflow: hidden;
  margin: 26px 0;
  padding: 8px 0;
  background: var(--ink);
  color: var(--lime);
  transform: rotate(-1.1deg) scale(1.02);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  animation: slide 26s linear infinite;
}
.marquee-track span {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.marquee-track i {
  font-style: normal;
  font-size: 17px;
  color: var(--green);
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 正文各段 */
.flow > div {
  position: relative;
  padding: 46px 22px;
  border-top: 3px solid var(--ink);
}
.flow > .marquee + div { border-top: 0; }
.flow > div:nth-of-type(even) { background: var(--paper2); }
.flow > div.hero {
  padding: 0;
  border-top: 0;
  background: var(--ink);
}

/* 侧栏 */
.rail {
  position: relative;
  padding: 26px 18px 36px;
  background: var(--paper2);
  border-top: 3px solid var(--ink);
}
.rail h2 { font-size: 27px; }
.rail-list { margin: 14px 0 0; }
.rail-list li { border-bottom: 2px dashed var(--dust); }
.rail-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 6px;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s, padding-left .15s;
}
.rail-list a::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--ink);
  transform: rotate(45deg);
  flex: none;
}
.rail-list a:hover { background: var(--lime); padding-left: 12px; }

.sticker {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 13px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  background: var(--green);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-3.5deg);
  animation: jitter 5s ease-in-out infinite;
}
@keyframes jitter {
  0%, 100% { transform: rotate(-3.5deg); }
  33% { transform: rotate(-.8deg) translateY(-2px); }
  66% { transform: rotate(-5.2deg) translateY(1px); }
}

/* 页脚 */
footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 20px;
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--lime);
}
footer p, footer small { margin: 0; font-size: 16px; line-height: 1.6; }
footer a { color: var(--lime); text-decoration: none; border-bottom: 2px solid var(--lime); }
footer a:hover { background: var(--lime); color: var(--ink); }

/* 平板以下 */
@media (max-width: 899px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "b c"
      "l l"
      "r r";
    padding: 8px 12px;
    row-gap: 4px;
  }
  .brand { justify-self: start; }
  .navl ul, .navr ul { justify-content: flex-start; }
  .hero-copy { padding: 66px 18px 64px; }
}

@media (min-width: 900px) {
  .spread { grid-template-columns: minmax(0, 1fr) 302px; }
  .rail {
    border-top: 0;
    border-left: 3px solid var(--ink);
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .flow > div { padding: 56px 34px; }
  footer {
    grid-template-columns: 1.1fr 1.6fr auto;
    align-items: center;
  }
  footer > :last-child { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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