@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --paper: #f7fffb;
  --line: rgba(23, 38, 32, 0.9);
  --lift: rgba(23, 38, 32, 0.12);
  --glass: rgba(255, 255, 255, 0.55);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-card: 4px;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background:
    radial-gradient(900px 620px at 90% -8%, #e8f9ff 0%, rgba(232, 249, 255, 0) 60%),
    radial-gradient(760px 520px at -6% 22%, #eafff6 0%, rgba(234, 255, 246, 0) 58%),
    linear-gradient(168deg, #e8fdf4 0%, #dff1f9 46%, #f5fffb 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px clamp(14px, 4vw, 34px);
  background: rgba(247, 255, 251, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--line);
  box-shadow: 0 6px 0 rgba(23, 38, 32, 0.07);
}

.mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, var(--mint), #e9fdf6 70%);
  box-shadow: inset -2px -2px 7px rgba(255, 255, 255, 0.9), 3px 4px 0 var(--lift);
  overflow: hidden;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.mark:hover {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: inset -2px -2px 7px rgba(255, 255, 255, 0.9), 4px 6px 0 rgba(23, 38, 32, 0.2);
}

.mark:active {
  transform: translateY(1px) scale(0.97);
}

.mark-img,
.mark-art img,
.mark-art svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mark-glyph {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.pill-nav p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.pill-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 15px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset -2px -2px 6px rgba(255, 255, 255, 0.95), 3px 3px 0 rgba(23, 38, 32, 0.1);
  transition: transform 0.2s ease-out, background 0.2s ease-out, box-shadow 0.2s ease-out;
}

.pill-nav a:hover {
  background: linear-gradient(160deg, var(--mint), #eafaff);
  transform: translateY(-2px);
  box-shadow: inset -2px -2px 6px rgba(255, 255, 255, 0.95), 4px 6px 0 rgba(23, 38, 32, 0.18);
}

.pill-nav a:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: inset 2px 2px 6px rgba(23, 38, 32, 0.14);
}

/* ---------- 首屏 ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100svh - 74px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 4vw, 34px);
  padding: clamp(28px, 6vw, 64px) clamp(14px, 4vw, 34px) clamp(26px, 5vw, 52px);
}

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

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 7vw, 74px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-desc {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(16px, 1.7vw, 19px);
  color: rgba(23, 38, 32, 0.76);
}

.hero-art {
  position: relative;
  flex: 1 1 auto;
  margin: 0;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 20% 0%, #f2fffb 0%, rgba(242, 255, 251, 0) 55%),
    linear-gradient(150deg, var(--mint) 0%, var(--sky) 100%);
  box-shadow: inset -5px -7px 16px rgba(255, 255, 255, 0.75), 10px 12px 0 var(--lift);
}

.hero-art::after {
  content: '';
  position: absolute;
  inset: auto 22px 20px auto;
  width: 62px;
  height: 62px;
  border-radius: 50% 50% 6px 50%;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset -3px -3px 8px rgba(23, 38, 32, 0.1);
  pointer-events: none;
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.board {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px) clamp(14px, 4vw, 34px) 72px;
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  grid-template-areas:
    'side body'
    'fig body';
  gap: 22px 30px;
  align-items: start;
}

.side {
  grid-area: side;
  position: sticky;
  top: 84px;
  padding: 18px 16px;
  border: 3px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: inset -2px -2px 8px rgba(255, 255, 255, 0.85), 5px 6px 0 var(--lift);
}

.side-head {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1.4;
  border: 2px solid rgba(23, 38, 32, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out;
}

.side-list a:hover {
  background: linear-gradient(160deg, var(--mint), rgba(173, 216, 230, 0.7));
  border-color: var(--line);
  transform: translateX(3px);
}

.side-list a:active {
  transform: translateX(1px) scale(0.985);
}

.board-fig {
  grid-area: fig;
  margin: 0;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #eafaff, var(--mint));
  box-shadow: inset -3px -4px 10px rgba(255, 255, 255, 0.8), 5px 6px 0 var(--lift);
}

.board-img {
  display: block;
  width: 100%;
  height: auto;
  padding: 12px;
  object-fit: contain;
}

.board-body {
  grid-area: body;
  min-width: 0;
}

.board-body > section {
  margin: 0 0 26px;
  padding: clamp(18px, 3vw, 32px);
  border: 3px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--glass);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: inset -2px -2px 9px rgba(255, 255, 255, 0.9), 6px 7px 0 var(--lift);
  scroll-margin-top: 96px;
}

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

.board-body p,
.board-body li {
  font-size: 17px;
  line-height: 1.82;
}

.board-body p {
  margin: 0 0 15px;
}

.board-body ul,
.board-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.board-body li {
  margin-bottom: 8px;
}

.board-body h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3.4vw, 28px);
  line-height: 1.34;
  letter-spacing: -0.02em;
}

.board-body h3 {
  margin: 26px 0 10px;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.4;
}

.board-body h2 + hr,
.board-body h3 + hr {
  margin: 0 0 18px;
  border: 0;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--sky) 78%, rgba(173, 216, 230, 0));
}

.board-body hr {
  margin: 22px 0;
  border: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(23, 38, 32, 0.16);
}

.board-body blockquote {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 3px solid rgba(23, 38, 32, 0.5);
  border-radius: var(--radius-md);
  background: rgba(180, 253, 225, 0.34);
}

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

.board-body a {
  text-decoration: underline;
  text-decoration-color: rgba(23, 38, 32, 0.35);
  text-underline-offset: 3px;
}

.board-body a:hover {
  text-decoration-color: var(--ink);
}

.board-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 3px solid var(--line);
}

.board-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 16px;
}

.board-body th,
.board-body td {
  border: 2px solid rgba(23, 38, 32, 0.28);
  padding: 8px 10px;
  text-align: left;
}

.board-body code {
  font-size: 15px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(23, 38, 32, 0.08);
}

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

.base {
  border-top: 4px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(180, 253, 225, 0.42));
  padding: clamp(28px, 5vw, 56px) clamp(14px, 4vw, 34px) 22px;
}

.base-cols {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 22px 26px;
  align-items: start;
}

.base-big {
  margin: 0;
  font-size: clamp(30px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.045em;
  word-break: break-word;
}

.base-cell address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(23, 38, 32, 0.72);
}

.base-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.base-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(23, 38, 32, 0.82);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease-out, transform 0.2s ease-out;
}

.base-list a:hover {
  border-bottom-color: var(--ink);
  transform: translateX(2px);
}

.base-bar {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 16px;
  border-top: 3px dashed rgba(23, 38, 32, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.base-copy,
.base-jump {
  margin: 0;
  font-size: 16px;
  color: rgba(23, 38, 32, 0.7);
}

.base-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset -2px -2px 6px rgba(255, 255, 255, 0.95), 3px 3px 0 var(--lift);
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.base-jump a:hover {
  background: var(--mint);
  transform: translateY(-2px);
}

.base-jump a:active {
  transform: translateY(1px) scale(0.985);
}

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

@media (prefers-reduced-motion: no-preference) {
  .board-body > section {
    animation: rise 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  .hero-copy h1 {
    animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .hero-art {
    animation: pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 断点 ---------- */

@media (max-width: 980px) {
  .base-cols {
    grid-template-columns: 1fr 1fr;
  }
  .base-big {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'side'
      'body'
      'fig';
    gap: 18px;
  }
  .side {
    position: static;
  }
  .side-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .side-list a {
    padding: 8px 13px;
  }
}

@media (max-width: 620px) {
  .topbar {
    flex-wrap: wrap;
    gap: 9px;
    padding: 10px 14px;
  }
  .pill-nav {
    flex: 1 1 100%;
  }
  .pill-nav p {
    gap: 7px;
  }
  .pill-nav a {
    padding: 9px 13px;
    font-size: 16px;
  }
  .hero {
    min-height: auto;
    padding-top: 26px;
  }
  .hero-art {
    min-height: 190px;
  }
  .base-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .base-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

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