:root {
  --ink: #172620;
  --mint: #b4fde1;
  --blue: #add8e6;
  --paper: #f4fffa;
  --deep: #0d1a14;
}

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

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

body {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #e9f7f0;
  background:
    radial-gradient(880px 520px at 92% -12%, rgba(180, 253, 225, 0.22), rgba(180, 253, 225, 0) 70%),
    radial-gradient(700px 460px at -12% 18%, rgba(173, 216, 230, 0.2), rgba(173, 216, 230, 0) 70%),
    var(--ink);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

[id] {
  scroll-margin-top: 168px;
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 2px solid var(--ink);
  background: #fff;
  flex: none;
}

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 9px 14px 11px;
  background: rgba(13, 26, 20, 0.93);
  border-bottom: 4px solid var(--mint);
  backdrop-filter: blur(10px);
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 16px 5px 6px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(150deg, #eafff7, var(--mint));
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: inset -2px -2px 7px rgba(23, 38, 32, 0.18), inset 2px 2px 7px #fff, 0 5px 0 rgba(0, 0, 0, 0.35);
}

.brand__t {
  white-space: nowrap;
}

.burger {
  min-height: 46px;
  min-width: 46px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(150deg, #f0fbff, var(--blue));
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: inset -2px -2px 7px rgba(23, 38, 32, 0.18), inset 2px 2px 7px #fff, 0 5px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.burger:active {
  transform: translateY(3px);
  box-shadow: inset -2px -2px 7px rgba(23, 38, 32, 0.2), 0 2px 0 rgba(0, 0, 0, 0.35);
}

.anchors {
  max-width: 1180px;
  margin: 9px auto 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.anchors__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 2px 4px;
  list-style: none;
}

.anchors__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  background: #d9fff1;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.16), 0 4px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease-out;
}

.anchors__list a:hover {
  transform: translateY(-2px);
}

/* 全屏菜单 */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  margin: 0;
  padding: 128px 18px 40px;
  overflow-y: auto;
  background: rgba(9, 18, 14, 0.97);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.24s ease-out, visibility 0.24s;
}

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

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

.sheet__list {
  counter-reset: mi;
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.sheet__list li {
  counter-increment: mi;
}

.sheet__list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 20px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(160deg, #effff9, var(--mint));
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: inset -3px -3px 9px rgba(23, 38, 32, 0.16), inset 3px 3px 9px #fff, 0 6px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(12px);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sheet__list a::before {
  content: counter(mi, decimal-leading-zero);
  margin-right: 12px;
  font-size: 15px;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

html.menu-open .sheet__list a {
  transform: none;
}

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: calc(100% - 28px);
  max-width: 1180px;
  min-height: 45vh;
  margin: 18px auto 0;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 26px;
  background: linear-gradient(120deg, var(--blue), var(--mint));
  box-shadow: inset -4px -4px 16px rgba(23, 38, 32, 0.2), inset 4px 4px 16px #fff, 0 12px 26px rgba(0, 0, 0, 0.42);
}

.hero__art {
  position: absolute;
  inset: 0;
  margin: 0;
}

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

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(265deg, rgba(12, 24, 18, 0.94) 0%, rgba(12, 24, 18, 0.62) 46%, rgba(12, 24, 18, 0.12) 100%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(16px, 4vw, 42px);
  text-align: right;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 7.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #f7fffb;
  text-shadow: 0 4px 0 rgba(8, 16, 12, 0.55);
}

/* 版面 */
main {
  display: block;
}

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 14px 66px;
}

.board__main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.board__main div {
  padding: 22px;
  color: var(--ink);
  background: linear-gradient(165deg, #f6fffb, #c8ffe9);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: inset -4px -4px 13px rgba(23, 38, 32, 0.14), inset 4px 4px 13px #fff, 0 10px 22px rgba(0, 0, 0, 0.4);
}

.board__main h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.board__main h2 span,
.side__h span,
.foot__h span {
  background-image: linear-gradient(transparent 66%, rgba(173, 216, 230, 0.92) 66%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.board__main h3 {
  margin: 22px 0 8px;
  font-size: 1.22rem;
  line-height: 1.3;
}

.board__main p {
  margin: 0 0 14px;
  font-size: 1.06rem;
}

.board__main ul,
.board__main ol {
  margin: 0 0 16px;
  padding-left: 1.35em;
}

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

.board__main a {
  color: #0b4a34;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.board__main img {
  margin: 14px 0;
  border: 3px solid var(--ink);
  border-radius: 16px;
}

.board__main blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 6px solid var(--blue);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

/* 侧栏 */
.side {
  position: sticky;
  top: 168px;
  padding: 18px;
  color: var(--ink);
  background: linear-gradient(165deg, #f0faff, var(--blue));
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: inset -4px -4px 13px rgba(23, 38, 32, 0.15), inset 4px 4px 13px #fff, 0 10px 22px rgba(0, 0, 0, 0.4);
}

.side__h {
  margin: 0 0 10px;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.side__list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.side__list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background: #f8fffd;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.12), 0 3px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease-out;
}

.side__list a:hover {
  transform: translate(-1px, -2px);
}

.totop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(160deg, #eafff8, var(--mint));
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: inset -2px -2px 7px rgba(23, 38, 32, 0.15), 0 4px 0 rgba(0, 0, 0, 0.3);
}

/* 页脚 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 14px 40px;
  border-top: 4px solid var(--mint);
}

.foot__brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mint);
}

.foot__h {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.foot__h span {
  background-image: linear-gradient(transparent 70%, rgba(180, 253, 225, 0.45) 70%);
}

.foot__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  font-size: 16px;
  text-decoration: none;
  color: #cdeee0;
}

.foot__list a:hover {
  color: var(--mint);
}

.foot__copy {
  display: flex;
  gap: 10px;
  font-size: 16px;
  color: #9fc2b2;
}

/* 动效 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.brand:hover,
.totop:hover {
  animation: bob 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bob {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@media (max-width: 940px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .side__list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 320px;
    border-radius: 20px;
  }

  .board__main div {
    padding: 18px;
    border-radius: 18px;
  }

  .foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sheet {
    padding-top: 124px;
  }
}

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

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

  .brand:hover,
  .totop:hover {
    animation: none;
  }
}

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