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

:root {
  --mint: #b4fde1;
  --sky: #add8e6;
  --ink: #172620;
  --ink-soft: rgba(23, 38, 32, 0.66);
  --round: 28px;
  --line: 4px solid var(--ink);
  --soft: inset -4px -4px 10px rgba(23, 38, 32, 0.10), 6px 10px 20px rgba(23, 38, 32, 0.15);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Nunito', 'DM Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 100% 0%, #eafff9 0%, rgba(234, 255, 249, 0) 62%),
    linear-gradient(180deg, #f4fffb 0%, #e9f7ff 58%, #f5fffc 100%);
  background-attachment: fixed;
}

a { color: inherit; }

/* 顶部两行：品牌行 + 菜单行 */
.deck {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.7rem clamp(0.8rem, 4vw, 2.2rem) 0.85rem;
  background: linear-gradient(180deg, #f9fffd, #ecfffa);
  border-bottom: var(--line);
  box-shadow: 0 8px 18px rgba(23, 38, 32, 0.12);
}

.deck-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.35rem 1rem 0.35rem 0.5rem;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  background: var(--mint);
  border: var(--line);
  border-radius: 20px;
  box-shadow: var(--soft);
  transition: transform 0.2s ease-out;
}

.brand:active { transform: scale(0.97); }

.brand-mark {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: radial-gradient(circle at 30% 25%, #ffffff 8%, var(--sky) 58%, #86c9df 100%);
  box-shadow: inset -2px -2px 4px rgba(23, 38, 32, 0.18);
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.45rem 1.1rem;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--sky);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.12), 3px 4px 0 rgba(23, 38, 32, 0.20);
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.contact:hover { background: var(--mint); transform: translateY(-2px); }
.contact:active { transform: translateY(1px) scale(0.98); }

.deck-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: 1160px;
  margin: 0.7rem auto 0;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.10), 3px 4px 0 rgba(23, 38, 32, 0.18);
  transition: transform 0.2s ease-out, background 0.2s ease-out;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

.menu-link:hover, .menu-link:focus-visible { background: var(--mint); transform: translateY(-2px); }
.menu-link:active { transform: translateY(1px) scale(0.98); }

/* 主区 */
.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(0.9rem, 3vw, 1.7rem) clamp(0.8rem, 4vw, 2.2rem) 1.4rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.9rem;
  text-align: right;
  padding: clamp(1.5rem, 5vw, 3.2rem) clamp(1.1rem, 4vw, 2.6rem);
  border: var(--line);
  border-radius: 36px;
  background: linear-gradient(158deg, var(--sky) 0%, #d9f7ff 46%, var(--mint) 100%);
  box-shadow: inset -6px -8px 18px rgba(23, 38, 32, 0.14), 0 14px 26px rgba(23, 38, 32, 0.16);
  animation: rise 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ghost {
  position: absolute;
  top: -0.32em;
  right: -1vw;
  z-index: 0;
  margin: 0;
  font-size: clamp(3.4rem, 15vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 2px 3px 0 rgba(23, 38, 32, 0.08);
  pointer-events: none;
  will-change: transform;
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.85rem, 5.6vw, 3.3rem);
  font-weight: 900;
  line-height: 1.26;
  letter-spacing: 0.01em;
  text-shadow: 1px 2px 0 rgba(255, 255, 255, 0.55);
}

.hero-lead {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(23, 38, 32, 0.80);
}

.hero-jumps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.12), 4px 5px 0 rgba(23, 38, 32, 0.22);
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.jump:first-child { background: var(--mint); }
.jump:hover { background: var(--mint); transform: translateY(-2px); }
.jump:active { transform: translateY(1px) scale(0.97); }

/* 正文 + 右侧栏 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  align-items: start;
  gap: clamp(1.1rem, 3vw, 2rem);
  margin-top: clamp(1.3rem, 4vw, 2.3rem);
}

.stage-main { min-width: 0; }

.stage-main > section {
  margin: 0 0 1.4rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  border-radius: var(--round);
  background: #ffffff;
  box-shadow: inset -3px -3px 10px rgba(23, 38, 32, 0.06), 5px 8px 18px rgba(23, 38, 32, 0.10);
  scroll-margin-top: 9.5rem;
  animation: rise 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.stage-main > section:nth-child(even) { background: #eefbff; }
.stage-main > section:last-child { margin-bottom: 0; }
.stage-main > section:target { outline: 4px solid var(--sky); outline-offset: 4px; }

.stage-main h2 {
  margin: 0.1rem 0 0.55rem;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  font-weight: 900;
  line-height: 1.35;
}

.stage-main h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1.12rem;
  font-weight: 900;
}

.stage-main p { margin: 0 0 0.85rem; line-height: 1.8; }
.stage-main p:last-child { margin-bottom: 0; }

.stage-main ul, .stage-main ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.stage-main li { margin: 0.3rem 0; }

.stage-main a {
  color: #0f6b53;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.stage-main strong { font-weight: 900; }

.stage-main figure { margin: 1rem 0; }
.stage-main img { max-width: 100%; height: auto; border-radius: 20px; }

.stage-main blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 6px solid var(--mint);
  border-radius: 0 16px 16px 0;
  background: #f6fffc;
  font-style: normal;
}

.stage-main table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.stage-main th, .stage-main td { padding: 0.5rem 0.6rem; border-bottom: 2px dashed rgba(23, 38, 32, 0.18); text-align: left; }

.subtitle {
  margin: 0 0 0.85rem;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 右侧栏 */
.rail {
  position: sticky;
  top: 9.5rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: var(--round);
  background: linear-gradient(180deg, #ffffff, #e8fff6);
  box-shadow: inset -4px -4px 10px rgba(23, 38, 32, 0.08), 5px 9px 18px rgba(23, 38, 32, 0.12);
}

.rail-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.rail-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rail-list li {
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.08), 3px 4px 0 rgba(23, 38, 32, 0.14);
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.rail-list a:hover { background: var(--mint); transform: translateX(-3px); }
.rail-list a:active { transform: scale(0.98); }

/* 页脚四栏 + 底栏 */
.foot {
  width: min(1160px, calc(100% - 1.4rem));
  margin: 2.4rem auto 0;
  padding: clamp(1.3rem, 4vw, 2.1rem) clamp(1rem, 4vw, 2rem) 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.3rem;
  background: linear-gradient(180deg, #e9fff7, #d9f3ff);
  border: var(--line);
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
  box-shadow: inset -5px -6px 16px rgba(23, 38, 32, 0.10);
}

.foot section { min-width: 0; }

.foot-logo {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.45;
}

.foot-col dl { margin: 0; }
.foot-col dt { margin-bottom: 0.35rem; font-size: 0.95rem; font-weight: 900; letter-spacing: 0.05em; }
.foot-col dd { margin: 0; }

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(23, 38, 32, 0.86);
  transition: color 0.2s ease-out;
}

.foot-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.foot-base {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.3rem;
  padding-top: 1rem;
  border-top: 3px dashed rgba(23, 38, 32, 0.28);
}

.foot-base p { margin: 0; font-size: 0.96rem; font-weight: 700; }

.foot-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 1rem;
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset -2px -2px 6px rgba(23, 38, 32, 0.10), 3px 4px 0 rgba(23, 38, 32, 0.18);
  transition: transform 0.2s ease-out, background 0.2s ease-out;
}

.foot-top:hover { background: var(--mint); transform: translateY(-2px); }
.foot-top:active { transform: translateY(1px) scale(0.98); }

@keyframes pop {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 960px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .ghost { font-size: clamp(3rem, 19vw, 7rem); }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .deck-menu { gap: 0.4rem; }
  .menu-link { padding: 0.45rem 0.8rem; font-size: 0.95rem; }
  .hero { min-height: 44vh; border-radius: 28px; }
  .hero h1 { max-width: 100%; }
  .foot { grid-template-columns: 1fr; }
  .foot-base { justify-content: space-between; }
}

@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}
