:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --paper: #f3fbf7;
  --leaf: #2f6b53;
  --soft: 7px 7px 20px rgba(23, 38, 32, 0.14), inset -2px -2px 8px rgba(23, 38, 32, 0.07);
  --soft-sm: 3px 3px 10px rgba(23, 38, 32, 0.12), inset -1px -1px 5px rgba(23, 38, 32, 0.06);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 4px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: linear-gradient(170deg, var(--mint) 0%, var(--paper) 36%, #e9f5ff 100%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
}

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

/* ---------- 顶部两行 ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px clamp(12px, 4vw, 34px) 8px;
  background: rgba(243, 251, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(23, 38, 32, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 16px 6px 8px;
  background: #ffffff;
  border-radius: var(--r-lg);
  box-shadow: var(--soft-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease-out;
}

.brand:active {
  transform: translateY(2px);
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: var(--soft-sm);
}

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.find {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 16px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: var(--soft-sm);
}

.find input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}

.find input::placeholder {
  color: #6d8b7c;
}

.find input:focus {
  outline: none;
}

.find button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(150deg, var(--mint), var(--sky));
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--soft-sm);
  transition: transform 0.2s ease-out;
}

.find button:active {
  transform: translateY(2px);
}

.hint {
  margin: 0;
  font-size: 16px;
  color: var(--leaf);
}

.hint:empty {
  display: none;
  margin: 0;
}

/* ---------- 全屏菜单 ---------- */

.drawer > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--mint);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--soft-sm);
  transition: transform 0.2s ease-out;
}

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

.drawer > summary:active {
  transform: translateY(2px);
}

.burger {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
  transition: box-shadow 0.2s ease-out;
}

.drawer > menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  margin: 0;
  padding: 92px clamp(20px, 8vw, 140px) 60px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  background: radial-gradient(circle at 82% 12%, #23412f 0%, #172620 58%);
}

.drawer > menu li {
  opacity: 0;
  transform: translateY(14px);
  animation: pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.drawer > menu li:nth-child(1) { animation-delay: 0.04s; }
.drawer > menu li:nth-child(2) { animation-delay: 0.09s; }
.drawer > menu li:nth-child(3) { animation-delay: 0.14s; }
.drawer > menu li:nth-child(4) { animation-delay: 0.19s; }
.drawer > menu li:nth-child(5) { animation-delay: 0.24s; }
.drawer > menu li:nth-child(6) { animation-delay: 0.29s; }
.drawer > menu li:nth-child(7) { animation-delay: 0.34s; }

.drawer > menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 20px;
  border-radius: var(--r-md);
  color: var(--mint);
  text-decoration: none;
  font-size: clamp(19px, 4.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 0 rgba(180, 253, 225, 0);
  transition: background 0.2s ease-out, box-shadow 0.2s ease-out;
}

.drawer > menu a:active,
.drawer > menu a:hover {
  background: rgba(180, 253, 225, 0.13);
  box-shadow: inset 3px 3px 0 rgba(180, 253, 225, 0.2);
}

.drawer[open] > summary {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 60;
  background: var(--mint);
  color: var(--ink);
}

.drawer[open] .burger {
  box-shadow: none;
  background: transparent;
}

.drawer[open] .burger::before,
.drawer[open] .burger::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.drawer[open] .burger::before {
  transform: rotate(45deg);
}

.drawer[open] .burger::after {
  transform: rotate(-45deg);
}

body:has(.drawer[open]) {
  overflow: hidden;
}

@keyframes pop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(18px, 4vw, 46px);
  min-height: 70vh;
  padding: clamp(30px, 6vw, 64px) clamp(16px, 5vw, 56px) clamp(64px, 9vw, 110px);
}

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

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(29px, 5.1vw, 48px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0 auto 24px;
  max-width: 32ch;
  font-size: 17px;
  color: #2b473a;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--mint);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  box-shadow: var(--soft);
  transition: transform 0.2s ease-out;
}

.cta:active {
  transform: translateY(3px);
}

.hero-art {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  border: 4px solid #ffffff;
  background: linear-gradient(150deg, var(--sky), var(--mint));
  box-shadow: var(--soft);
  overflow: hidden;
  animation: bob 7s ease-in-out infinite;
}

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

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

.hero-ghost {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.14em;
  z-index: 0;
  text-align: center;
  font-size: clamp(56px, 17vw, 176px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: rgba(23, 38, 32, 0.075);
  pointer-events: none;
}

/* ---------- 正文与侧栏 ---------- */

main {
  padding: 0 clamp(12px, 4vw, 42px) clamp(44px, 7vw, 84px);
}

div {
  max-width: 1180px;
  margin: 0 auto;
}

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  align-items: start;
  gap: clamp(16px, 3vw, 30px);
  padding: clamp(16px, 2.6vw, 32px);
  background: var(--paper);
  border: 3px solid #ffffff;
  border-radius: var(--r-lg);
  box-shadow: var(--soft);
}

.sheet-main > article {
  margin: 0 0 18px;
  padding: clamp(18px, 3vw, 30px);
  background: #ffffff;
  border-radius: var(--r-sm);
  box-shadow: var(--soft-sm);
}

.sheet-main > article:last-child {
  margin-bottom: 0;
}

.sheet-main h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.3vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.sheet-main h3 {
  margin: 26px 0 10px;
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.35;
}

.sheet-main p {
  margin: 0 0 14px;
}

.sheet-main hr,
.sheet-side hr {
  border: 0;
  width: 58px;
  height: 4px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--sky));
}

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

.sheet-main li {
  margin-bottom: 6px;
}

.sheet-main blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: #f0fbf5;
  border-radius: var(--r-md);
  box-shadow: inset 3px 3px 0 rgba(23, 38, 32, 0.06);
}

.sheet-side {
  position: sticky;
  top: 132px;
  padding: 20px 18px;
  background: #ffffff;
  border-radius: var(--r-lg);
  box-shadow: var(--soft-sm);
}

.sheet-side h2 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

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

.toc li {
  opacity: 0;
  transform: translateY(10px);
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toc li:nth-child(1) { animation-delay: 0.05s; }
.toc li:nth-child(2) { animation-delay: 0.1s; }
.toc li:nth-child(3) { animation-delay: 0.15s; }
.toc li:nth-child(4) { animation-delay: 0.2s; }
.toc li:nth-child(5) { animation-delay: 0.25s; }
.toc li:nth-child(6) { animation-delay: 0.3s; }
.toc li:nth-child(7) { animation-delay: 0.35s; }

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: #eaf8f1;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  box-shadow: var(--soft-sm);
  transition: background 0.2s ease-out, transform 0.2s ease-out;
}

.toc a:hover,
.toc a:active {
  background: var(--mint);
  transform: translateY(-2px);
}

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

footer {
  padding: clamp(38px, 6vw, 76px) clamp(16px, 5vw, 48px) 34px;
  text-align: center;
}

footer p {
  margin: 0;
  font-size: clamp(36px, 10vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: rgba(23, 38, 32, 0.88);
}

footer small {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  color: #3a584a;
}

footer small a {
  display: inline-block;
  min-height: 40px;
  padding: 6px 8px;
  color: var(--ink);
}

/* ---------- 窄屏 ---------- */

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

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

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 54px;
  }

  .hero-art {
    aspect-ratio: 16 / 10;
    animation: none;
  }

  .hero-ghost {
    font-size: clamp(48px, 19vw, 120px);
  }

  .find button {
    padding: 0 16px;
  }
}

@media (max-width: 380px) {
  .drawer > summary {
    padding: 0 14px;
  }

  .find {
    padding-left: 12px;
  }
}

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

  .hero-art,
  .drawer > menu li,
  .toc li {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .brand,
  .cta,
  .find button,
  .drawer > summary,
  .toc a {
    transition: none;
  }
}

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