:root {
  --mint: #b4fde1;
  --blue: #add8e6;
  --ink: #172620;
  --paper: #f6fffb;
  --mint-soft: #dcfff3;
  --blue-soft: #e4f4fb;
  --edge: 4px solid var(--ink);
  --thin: 3px solid var(--ink);
  --lift: 8px 8px 0 rgba(23, 38, 32, 0.16), inset -3px -3px 9px rgba(23, 38, 32, 0.13),
    inset 3px 3px 9px rgba(255, 255, 255, 0.72);
  --press: inset 4px 4px 9px rgba(23, 38, 32, 0.2), inset -3px -3px 8px rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Archivo', 'Space Grotesk', system-ui, -apple-system, 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: linear-gradient(155deg, var(--mint) 0%, #d9f6ff 42%, var(--blue) 100%) fixed;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.shell {
  overflow-x: clip;
}

/* ---------- 页头：品牌行 + 下拉菜单行 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(180, 253, 225, 0.94);
  border-bottom: var(--edge);
  backdrop-filter: blur(8px);
  padding: 10px clamp(14px, 3vw, 32px) 12px;
}

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

.brandmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 20px;
  font-size: clamp(20px, 4.4vw, 27px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, var(--mint-soft));
  border: var(--edge);
  border-radius: 999px;
  box-shadow: var(--lift);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
  border: var(--thin);
  border-radius: 999px;
  box-shadow: 4px 4px 0 rgba(23, 38, 32, 0.2);
}

.brandmark:active,
.contact:active {
  box-shadow: var(--press);
  transform: translateY(2px);
}

.dock {
  max-width: 1160px;
  margin: 10px auto 0;
}

.dock > summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
  border: var(--thin);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
  box-shadow: 4px 4px 0 rgba(23, 38, 32, 0.2);
  user-select: none;
}

.dock > summary::-webkit-details-marker {
  display: none;
}

.dock > summary::after {
  content: '▾';
  font-size: 14px;
  transition: transform 0.2s ease-out;
}

.dock[open] > summary {
  box-shadow: var(--press);
}

.dock[open] > summary::after {
  transform: rotate(180deg);
}

.dock > menu {
  display: none;
  margin: 12px 0 2px;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.dock[open] > menu {
  display: grid;
}

.dock menu a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, var(--mint-soft));
  border: var(--thin);
  border-radius: 16px;
  box-shadow: inset -2px -2px 7px rgba(23, 38, 32, 0.12), 3px 3px 0 rgba(23, 38, 32, 0.18);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.dock menu a:hover,
.dock menu a:focus-visible {
  transform: translate(-1px, -2px);
}

.dock menu a:active {
  box-shadow: var(--press);
  transform: translateY(2px);
}

.dock[open] menu li {
  animation: pop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.dock[open] menu li:nth-child(1) { animation-delay: 0.02s; }
.dock[open] menu li:nth-child(2) { animation-delay: 0.06s; }
.dock[open] menu li:nth-child(3) { animation-delay: 0.1s; }
.dock[open] menu li:nth-child(4) { animation-delay: 0.14s; }
.dock[open] menu li:nth-child(5) { animation-delay: 0.18s; }
.dock[open] menu li:nth-child(6) { animation-delay: 0.22s; }
.dock[open] menu li:nth-child(7) { animation-delay: 0.26s; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(320px, 46vh, 430px);
  padding: clamp(64px, 9vw, 92px) clamp(16px, 4vw, 46px) clamp(22px, 4vw, 40px);
  border-bottom: var(--edge);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, var(--mint) 100%);
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(200deg, rgba(23, 38, 32, 0.22) 0%, rgba(23, 38, 32, 0.8) 72%);
}

.hero-tags {
  position: absolute;
  top: clamp(14px, 3vw, 24px);
  left: clamp(14px, 3vw, 26px);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.hero-tags span {
  display: inline-block;
  padding: 5px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--mint);
  background: var(--ink);
  border: 3px solid var(--mint);
  border-radius: 999px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-left: auto;
  text-align: right;
  color: var(--paper);
  animation: rise 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 0 rgba(23, 38, 32, 0.45);
}

.hero-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #e6fff5;
}

/* ---------- 主体：左栏 + 正文 ---------- */
.board {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
  align-items: start;
  max-width: 1160px;
  margin: clamp(22px, 4vw, 44px) auto;
  padding: 0 clamp(14px, 3vw, 28px);
}

.jump {
  position: sticky;
  top: 148px;
  padding: 14px 12px 16px;
  background: var(--paper);
  border: var(--edge);
  box-shadow: var(--lift);
}

.jump h2,
.foot-col h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.jump h2 > span,
.foot-col h2 > span {
  display: inline-block;
  padding: 2px 13px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--blue-soft);
}

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

.jump a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 3px solid rgba(23, 38, 32, 0.13);
  transition: background 0.2s ease-out, padding-left 0.2s ease-out;
}

.jump li:last-child a {
  border-bottom: 0;
}

.jump a:hover,
.jump a:focus-visible {
  background: var(--mint-soft);
  padding-left: 14px;
}

.prose {
  min-width: 0;
}

.prose > div {
  margin: 0 0 20px;
  padding: clamp(18px, 3vw, 34px);
  background: var(--paper);
  border: var(--edge);
  border-radius: 0;
  box-shadow: var(--lift);
  scroll-margin-top: 160px;
}

.prose > div:last-child {
  margin-bottom: 0;
}

.prose h2 {
  margin: 0 0 12px;
  font-size: clamp(21px, 3.4vw, 29px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  border-bottom: 3px dashed rgba(23, 38, 32, 0.22);
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.prose p {
  margin: 0 0 12px;
}

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

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  background: linear-gradient(180deg, transparent 58%, var(--mint) 58%);
  font-weight: 700;
}

.prose a {
  color: #0d5340;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose figure {
  margin: 16px 0;
  border: var(--thin);
  border-radius: 16px;
  overflow: hidden;
  background: var(--blue-soft);
}

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

.prose blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--mint-soft);
  border: var(--thin);
  border-radius: 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

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

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(26px, 5vw, 52px);
  padding: clamp(24px, 4vw, 44px) clamp(16px, 3vw, 32px) 18px;
  border-top: var(--edge);
  background: var(--ink);
  color: #e8fff6;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(16px, 3vw, 30px);
  max-width: 1160px;
  margin: 0 auto;
}

.foot-brand {
  margin: 0;
  font-size: clamp(30px, 7vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--mint);
}

.foot-col h2 {
  color: var(--mint);
}

.foot-col h2 > span {
  border-color: rgba(180, 253, 225, 0.55);
  background: rgba(180, 253, 225, 0.12);
}

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

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 16px;
  color: #e8fff6;
  text-decoration: none;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: #cfeee2;
  padding-top: 4px;
}

.foot address strong {
  color: #ffffff;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: 1160px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 3px solid rgba(180, 253, 225, 0.24);
  font-size: 16px;
  color: #b9d8cc;
}

.foot-base p {
  margin: 0;
}

.foot-base ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot-base a {
  min-height: 40px;
  color: #b9d8cc;
}

/* ---------- 动效 ---------- */
.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;
}

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

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

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
  }
  .jump {
    position: static;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brandcol {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .hero {
    min-height: 330px;
  }
  .hero-copy {
    text-align: left;
    max-width: none;
  }
  .dock > menu {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .prose > div {
    scroll-margin-top: 172px;
  }
  .jump ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 8px;
  }
  .jump a {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-copy,
  .dock[open] menu li {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .dock menu a,
  .jump a {
    transition: none;
  }
}

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