@charset "utf-8";

:root {
  --ink: #171f26;
  --ink-hi: #1f2b36;
  --ink-lo: #131b22;
  --ice: #c8e0f4;
  --rose: #f5e0e8;
  --txt: #d8e4ee;
  --dim: #9dadba;
  --up: -6px -6px 16px rgba(200, 224, 244, 0.10);
  --down: 6px 6px 18px rgba(0, 0, 0, 0.55);
  --r-card: 28px;
  --r-key: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Merriweather", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--txt);
  background-color: var(--ink);
  background-image:
    radial-gradient(90% 60% at 12% -6%, #25333f 0%, rgba(23, 31, 38, 0) 62%),
    radial-gradient(70% 55% at 96% 8%, #2a2b36 0%, rgba(23, 31, 38, 0) 58%);
  background-attachment: fixed;
}

body,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--ice);
}

svg {
  display: block;
}

/* 顶部两行 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.8rem 1rem 0.9rem;
  background: linear-gradient(180deg, rgba(23, 31, 38, 0.96), rgba(23, 31, 38, 0.82));
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.2rem 0.6rem 0.2rem 0;
  text-decoration: none;
  color: var(--rose);
  font-family: "Abril Fatface", "Songti SC", serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.brand img,
.footmark img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--up), var(--down);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border-radius: var(--r-key);
  text-decoration: none;
  font-size: 1rem;
  color: var(--ink);
  background: linear-gradient(145deg, #fceff4, #e3c9d6);
  box-shadow: -5px -5px 14px rgba(245, 224, 232, 0.18), 5px 5px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.28);
}

.menubar {
  max-width: 1120px;
  margin: 0.65rem auto 0;
}

.disclosure {
  display: block;
  min-width: 0;
}

.disclosure > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-key);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ice);
  background: linear-gradient(145deg, var(--ink-hi), var(--ink-lo));
  box-shadow: var(--up), var(--down);
  transition: transform 0.15s ease;
}

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

.disclosure > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.disclosure[open] > summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.disclosure > summary:active {
  transform: translateY(1px) scale(0.99);
}

.disclosure > menu {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  max-height: 58vh;
  overflow-y: auto;
}

.disclosure > menu > li {
  min-width: 0;
}

.disclosure > menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  color: #d3e2ee;
  background: linear-gradient(145deg, #1d2832, #151d25);
  box-shadow: -4px -4px 11px rgba(200, 224, 244, 0.08), 4px 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  overflow-wrap: break-word;
}

.disclosure > menu a:hover {
  color: #ffffff;
}

.disclosure > menu a:active {
  transform: translateY(1px) scale(0.985);
  box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.55), inset -2px -2px 6px rgba(200, 224, 244, 0.07);
}

/* 紧凑开篇 */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.8rem 1.25rem 2.2rem;
  text-align: center;
}

.hero-art {
  margin: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  color: var(--ice);
  background: linear-gradient(145deg, #202c37, #131b22);
  box-shadow: var(--up), var(--down);
}

.hero-art svg {
  width: 46px;
  height: 46px;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Abril Fatface", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: 0.015em;
  color: #f2f8fd;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  overflow-wrap: anywhere;
}

.lede {
  margin: 0.85rem auto 0;
  max-width: 36ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dim);
}

/* 左栏 + 正文 */
.stage {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

main div[id] {
  scroll-margin-top: 118px;
}

.rail {
  align-self: start;
  min-width: 0;
  max-width: 100%;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: var(--r-card);
  background: linear-gradient(145deg, #1c2731, #141c23);
  box-shadow: var(--up), var(--down);
}

.kicker {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--ice);
  opacity: 0.85;
}

.railtitle {
  margin: 0.15rem 0 0.9rem;
  font-family: "Abril Fatface", "Songti SC", serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--rose);
}

.railnav {
  display: flex;
  gap: 0.5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.railnav a {
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.35rem 0.85rem;
  border-radius: 13px;
  font-size: 1rem;
  text-decoration: none;
  color: #c9d9e6;
  background: linear-gradient(145deg, #1e2a34, #161f27);
  box-shadow: -3px -3px 9px rgba(200, 224, 244, 0.07), 3px 3px 10px rgba(0, 0, 0, 0.48);
  transition: color 0.15s ease, box-shadow 0.15s ease;
}

.railnav a:hover,
.railnav a[aria-current] {
  color: #ffffff;
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.5), inset -2px -2px 7px rgba(200, 224, 244, 0.09);
}

.prose {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 1.5rem 1.25rem 2rem;
  border-radius: var(--r-card);
  background: linear-gradient(145deg, #1b242e, #141c23);
  box-shadow: var(--up), var(--down);
  overflow: hidden;
  overflow-wrap: break-word;
}

.prose::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--ice), var(--rose));
  opacity: 0.75;
}

.prose > div {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(200, 224, 244, 0.09);
}

.prose > div:last-child {
  margin-bottom: 0;
  padding-bottom: 0.6rem;
  border-bottom: 0;
}

.prose h2 {
  margin: 0.2rem 0 0.9rem;
  font-family: "Abril Fatface", "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #f0f7fd;
}

.prose h3 {
  margin: 1.4rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--rose);
}

.prose p {
  margin: 0 0 1rem;
  color: #cddae5;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--ice);
}

.prose strong {
  color: #ffffff;
}

.prose figure {
  margin: 1.1rem 0;
  padding: 0.7rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #1e2933, #151d25);
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.45), inset -3px -3px 9px rgba(200, 224, 244, 0.06);
}

.prose figure img,
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.prose pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #101820;
}

.prose code {
  overflow-wrap: anywhere;
}

.prose blockquote {
  margin: 1.1rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--rose);
  border-radius: 0 16px 16px 0;
  background: rgba(245, 224, 232, 0.06);
  color: #e6eef5;
}

.prose a {
  color: var(--ice);
  text-decoration-color: rgba(200, 224, 244, 0.45);
  text-underline-offset: 3px;
  overflow-wrap: break-word;
}

/* 页脚单行 */
.sitefoot {
  padding: 1.6rem 1rem 2.2rem;
  background: linear-gradient(180deg, rgba(19, 27, 34, 0.65), rgba(19, 27, 34, 0.98));
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.4);
}

.footrow {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
}

.footmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}

.footnav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 0.85rem;
}

.footnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.15rem;
  font-size: 1rem;
  text-decoration: none;
  color: var(--dim);
}

.footnav a:hover {
  color: var(--rose);
}

.copyright {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--dim);
}

.bigbrand {
  font-family: "Abril Fatface", "Songti SC", serif;
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: var(--rose);
  text-shadow: -2px -2px 8px rgba(245, 224, 232, 0.16), 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.rights {
  font-size: 0.95rem;
}

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

.prose > div {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.prose > div:nth-child(1) { animation-delay: 0.02s; }
.prose > div:nth-child(2) { animation-delay: 0.07s; }
.prose > div:nth-child(3) { animation-delay: 0.12s; }
.prose > div:nth-child(4) { animation-delay: 0.17s; }
.prose > div:nth-child(5) { animation-delay: 0.22s; }
.prose > div:nth-child(6) { animation-delay: 0.27s; }
.prose > div:nth-child(7) { animation-delay: 0.32s; }
.prose > div:nth-child(n + 8) { animation-delay: 0.36s; }

@media (max-width: 799px) {
  body {
    font-size: 16.5px;
  }

  .hero {
    flex-direction: column;
    gap: 1rem;
    padding: 2.2rem 1.1rem 1.8rem;
  }

  .hero-art {
    width: 78px;
    height: 78px;
  }

  .hero-art svg {
    width: 38px;
    height: 38px;
  }

  .stage {
    padding: 0 0.9rem 3.2rem;
  }

  .rail {
    padding: 1rem 0.95rem 1.1rem;
  }

  .railnav a {
    min-height: 44px;
  }

  .prose {
    padding: 1.25rem 1rem 1.8rem;
  }

  .prose::after {
    left: 0.9rem;
    right: 0.9rem;
  }

  .footrow {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .copyright {
    justify-content: center;
  }
}

@media (min-width: 800px) {
  .topbar {
    padding: 0.9rem 1.5rem 1rem;
  }

  .disclosure > menu {
    grid-template-columns: none;
    display: flex;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
  }

  .disclosure > menu > li {
    flex: 0 1 auto;
  }

  .stage {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 1.75rem;
    padding: 0 1.5rem 5rem;
  }

  .rail {
    position: sticky;
    top: 122px;
  }

  .railnav {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  .prose {
    padding: 2rem 2rem 2.4rem;
  }

  .prose::after {
    left: 2rem;
    right: 2rem;
  }

  .hero {
    padding: 3.4rem 1.5rem 2.8rem;
  }
}

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

  .prose > div {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

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