@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --mint: #b4fde1;
  --blue: #add8e6;
  --ink: #172620;
  --ink-soft: rgba(23, 38, 32, .74);
  --paper: #fffdf6;
  --edge: 3px solid var(--ink);
  --r-lg: 26px;
  --r-md: 18px;
  --ease: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-soft: 0 8px 0 -5px rgba(23, 38, 32, .24), 0 20px 34px -22px rgba(23, 38, 32, .55);
  --shadow-in: inset -3px -3px 10px rgba(23, 38, 32, .1), inset 3px 3px 12px rgba(255, 255, 255, .92);
}

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

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

body {
  margin: 0;
  font-family: Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background-color: #effaf5;
  background-image:
    radial-gradient(circle at 12% 4%, rgba(180, 253, 225, .95), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(173, 216, 230, .85), transparent 46%),
    radial-gradient(circle at 48% 98%, rgba(180, 253, 225, .65), transparent 56%);
  background-attachment: fixed;
}

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

h1, h2, h3 {
  font-family: Newsreader, Georgia, "Songti SC", serif;
  font-weight: 600;
  line-height: 1.24;
  margin: 0 0 .5em;
}

:focus-visible {
  outline: 3px solid #0d4a37;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 10px 16px;
  background: var(--paper);
  border: var(--edge);
  border-radius: 12px;
  font-size: 16px;
  text-decoration: none;
  z-index: 90;
}

.skip:focus { left: 10px; top: 10px; }

/* 顶部细条 */
.topbar {
  padding: 7px 14px;
  text-align: center;
  background: linear-gradient(90deg, var(--mint), var(--blue));
  border-bottom: var(--edge);
}

.topbar-txt {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .3em;
}

/* 页头 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255, 253, 246, .95);
  border-bottom: var(--edge);
  backdrop-filter: blur(8px);
}

.mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: var(--edge);
  border-radius: 16px;
  background: linear-gradient(150deg, var(--mint), var(--blue));
  box-shadow: 0 5px 0 -3px rgba(23, 38, 32, .3), var(--shadow-in);
  text-decoration: none;
  transition: transform .18s var(--ease);
}

.mark:hover { transform: translateY(-2px) rotate(-5deg); }

.mark-glyph {
  font-family: Newsreader, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

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

.pills p {
  display: flex;
  gap: 7px;
  margin: 0;
  padding: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pills p::-webkit-scrollbar { display: none; }

.pills a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: var(--edge);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 -2px rgba(23, 38, 32, .22), inset 0 -3px 6px rgba(23, 38, 32, .07);
  transition: transform .16s var(--ease), background .16s ease-out;
}

.pills a:hover, .pills a:focus-visible { background: var(--mint); transform: translateY(-2px); }
.pills a:active { transform: translateY(1px) scale(.97); }
.pills a[aria-current="true"] { background: var(--blue); }

/* 主体 */
main {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 14px 10px;
}

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 16px;
  padding: 20px 16px 22px;
  border: var(--edge);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--mint), var(--blue));
  box-shadow: var(--shadow-soft), var(--shadow-in);
  scroll-margin-top: 100px;
}

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

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(205deg, rgba(255, 255, 255, .34), rgba(180, 253, 225, .82) 58%, rgba(173, 216, 230, .94));
}

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

.hero-copy h1 {
  font-size: clamp(1.8rem, 7.4vw, 3.35rem);
  margin: 0 0 .45em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .72);
}

.hero-desc {
  margin: 0;
  max-width: 48ch;
  padding: 10px 12px;
  font-size: 17px;
  color: var(--ink-soft);
  background: rgba(255, 253, 246, .62);
  border: 2px solid rgba(23, 38, 32, .16);
  border-radius: 15px;
}

/* 右侧跳转块 */
.rail {
  position: relative;
  z-index: 1;
  padding: 14px;
  border: var(--edge);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft), var(--shadow-in);
  animation: floaty 7s ease-in-out infinite;
}

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

.rail-title { margin: 0 0 10px; }

.rail-title span {
  display: block;
  font-size: 1.05rem;
  letter-spacing: .08em;
}

.rail-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.rail-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: linear-gradient(160deg, #ffffff, var(--mint));
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  box-shadow: inset 0 -3px 6px rgba(23, 38, 32, .08);
  transition: transform .15s var(--ease), background .15s ease-out;
}

.rail-links a:hover, .rail-links a:focus-visible {
  background: var(--blue);
  transform: translateX(3px);
}

.rail-top { margin: 12px 0 0; font-size: 1rem; }
.rail-top span { display: block; }

.rail-top a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  font-family: Roboto, sans-serif;
  font-weight: 500;
  text-decoration: none;
}

.rail-top a:hover { background: var(--mint); }

/* 正文分节 */
main > section:not(.hero) {
  margin: 0 0 18px;
  padding: 20px 16px;
  border: var(--edge);
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: var(--shadow-soft), var(--shadow-in);
  scroll-margin-top: 104px;
}

main > section:not(.hero):nth-of-type(even) { background: #f4fdff; }

main > section:not(.hero) h2 {
  font-size: 1.5rem;
  margin: .1em 0 .65em;
}

main > section:not(.hero) h2 span {
  padding: 0 .12em;
  border-radius: 5px;
  background: linear-gradient(transparent 64%, rgba(180, 253, 225, .95) 64%);
}

main > section:not(.hero) h3 { font-size: 1.2rem; }

main > section:not(.hero) p { margin: 0 0 1em; }
main > section:not(.hero) p:last-child { margin-bottom: 0; }

main > section:not(.hero) ul,
main > section:not(.hero) ol { margin: 0 0 1em; padding-left: 1.35em; }
main > section:not(.hero) li { margin: .32em 0; }

main > section:not(.hero) a {
  color: #0d4a37;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

main > section:not(.hero) figure { margin: 1em 0; }

main > section:not(.hero) img {
  border: var(--edge);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}

/* 页脚 */
.foot {
  max-width: 1120px;
  margin: 26px auto;
  padding: 20px 16px;
  display: grid;
  gap: 10px;
  border: var(--edge);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--mint), var(--blue));
  box-shadow: var(--shadow-soft), var(--shadow-in);
}

.foot p { margin: 0; font-size: 16px; line-height: 1.6; }

.foot-brand {
  font-family: Newsreader, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.foot-name { color: var(--ink-soft); }

.foot-legal {
  display: block;
  padding-top: 10px;
  border-top: 2px dashed rgba(23, 38, 32, .35);
  font-size: 15px;
}

/* 滚动出现 */
.reveal { opacity: 0; transform: translateY(20px); }

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease-out, transform .5s var(--ease);
}

@media (min-width: 820px) {
  .masthead { padding: 10px 24px; }

  main { padding: 24px 24px 14px; }

  .hero {
    grid-template-columns: minmax(0, 1fr) 19rem;
    align-items: end;
    min-height: 70vh;
    padding: 30px 26px;
  }

  .hero-copy { grid-column: 1; grid-row: 1; text-align: right; }
  .hero-desc { margin-left: auto; }
  .rail { grid-column: 2; grid-row: 1; }

  main > section:not(.hero) { padding: 26px 28px; }
  main > section:not(.hero) h2 { font-size: 1.7rem; }

  .foot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 26px 28px;
  }

  .foot-legal { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rail { animation: none; }
  * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

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