@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --ink: #26171a;
  --ink-2: #5a4247;
  --pink: #eb879c;
  --pink-2: #ffb6c1;
  --paper: #fdf0f1;
  --card: #fff8f9;
  --line: rgba(38, 23, 26, 0.12);
  --sh: 0 2px 4px rgba(38, 23, 26, 0.07), 0 16px 32px -22px rgba(38, 23, 26, 0.45);
  --sh-deep: 0 3px 6px rgba(38, 23, 26, 0.09), 0 26px 48px -26px rgba(38, 23, 26, 0.5);
  --serif: "Cormorant Garamond", "Songti SC", "Noto Serif SC", Georgia, serif;
  --body: "Libre Baskerville", "Songti SC", "Noto Serif SC", Georgia, serif;
  --max: 1160px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background:
    radial-gradient(120% 55% at 6% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #fdf0f1 0%, #f8e1e6 58%, #fdf0f1 100%);
  background-attachment: fixed;
}

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

a { color: #a83c5d; }

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

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  z-index: 90;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #ffe2e8;
  text-decoration: none;
  transition: top 0.22s ease;
}

.skip:focus { top: 0.6rem; }

/* ---------- 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 240, 241, 0.93);
  box-shadow: 0 2px 4px rgba(38, 23, 26, 0.06), 0 20px 32px -28px rgba(38, 23, 26, 0.55);
  backdrop-filter: blur(9px);
}

.head-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.2rem 0.3rem;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--sh);
  flex: none;
}

.mark-txt {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #ffd6de;
  font-size: 1rem;
  font-weight: 700;
}

.brand-txt {
  font-size: 1rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.drawer {
  order: 2;
  position: relative;
  margin-left: auto;
}

.drawer > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  background: var(--card);
  box-shadow: var(--sh);
  font-size: 1rem;
}

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

.s-ico {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.s-ico::before,
.s-ico::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

.s-ico::before { top: -5px; }
.s-ico::after { top: 5px; }

.nav-menu {
  list-style: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  margin: 0;
  padding: 0.45rem;
  min-width: 12rem;
  display: grid;
  gap: 0.1rem;
  background: var(--card);
  box-shadow: var(--sh-deep);
  z-index: 70;
}

.nav-menu a {
  display: block;
  padding: 0.6rem 0.75rem;
  min-height: 44px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
  border-left: 2px solid transparent;
  transition: background 0.24s ease, border-color 0.24s ease;
}

.nav-menu a:hover {
  background: #fff;
  border-left-color: var(--pink);
}

.find {
  order: 3;
  flex: 1 1 100%;
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.find input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 2px 6px rgba(38, 23, 26, 0.14);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}

.find input::placeholder { color: #97787f; }

.find button {
  flex: none;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #2b1017;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--sh);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.find button:hover { transform: translateY(-1px); box-shadow: var(--sh-deep); }

/* ---------- 主区 ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.2rem 0 2.6rem;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: linear-gradient(90deg, var(--pink), var(--pink-2) 55%, var(--pink));
  clip-path: polygon(0 46%, 100% 0, 100% 100%, 0 100%);
}

.hero-copy {
  text-align: center;
  padding: 0.2rem 0.2rem 0;
}

.hero-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 7.4vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: 0.012em;
}

.hero-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.hero-fig {
  margin: 0;
  overflow: hidden;
  box-shadow: var(--sh-deep);
}

.hero-img {
  display: block;
  width: 100%;
  max-height: 38vh;
  object-fit: cover;
  transform: scale(1.04);
  will-change: transform;
}

.hero-plate {
  min-height: 32vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 60%),
    linear-gradient(200deg, var(--pink-2), var(--pink));
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: 2.2rem 0 3rem;
}

/* ---------- 正文 ---------- */
.prose {
  min-width: 0;
  font-size: 1.02rem;
}

.prose article {
  padding: 1.5rem 0 1.7rem;
  border-bottom: 1px dashed var(--line);
  scroll-margin-top: 96px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.prose article:last-child { border-bottom: 0; }

.prose article.flash {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 4px 0 0 var(--pink);
}

.prose h2 {
  position: relative;
  margin: 0.1rem 0 0.8rem;
  padding-left: 0.9rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  line-height: 1.32;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 6px;
  background: var(--pink);
}

.prose h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 1.4rem 0 0.5rem;
}

.prose p { margin: 0 0 1rem; }

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

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

.prose blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: var(--card);
  box-shadow: var(--sh);
  border-left: 4px solid var(--pink-2);
  color: var(--ink-2);
}

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

.prose img {
  display: block;
  margin: 1.1rem 0;
  width: 100%;
  box-shadow: var(--sh);
}

.prose pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  background: var(--ink);
  color: #ffe2e8;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.prose th,
.prose td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ---------- 侧栏 ---------- */
.rail {
  background: var(--card);
  box-shadow: var(--sh);
  padding: 1.1rem 1rem 1.2rem;
}

.rail h2 {
  margin: 0 0 0.15rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.subtitle {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.rail-list a {
  display: block;
  min-height: 40px;
  padding: 0.5rem 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.rail-list a:hover,
.rail-list a.on {
  background: #fff;
  border-left-color: var(--pink);
  transform: translateX(2px);
}

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.5rem;
  padding: 2.4rem 1rem 0;
  background: var(--ink);
  color: #ffd9e0;
  font-size: 0.98rem;
}

.site-foot h2 {
  margin: 0 0 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.site-foot .subtitle {
  color: #f3b3c2;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

.f-desc {
  margin: 0;
  color: #e9c3cb;
  font-size: 0.96rem;
  line-height: 1.7;
}

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

.foot-list a {
  display: block;
  min-height: 40px;
  padding: 0.45rem 0;
  color: #ffd9e0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 182, 193, 0.18);
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.foot-list a:hover {
  color: #fff;
  padding-left: 0.3rem;
}

.sub-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.sub-form input {
  flex: 1 1 7rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #3b2529;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.sub-form input::placeholder { color: #c9a3ac; }

.sub-form button {
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--pink-2);
  color: #2b1017;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.22s ease;
}

.sub-form button:hover { transform: translateY(-1px); }

.foot-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 1.4rem;
  padding: 1rem 0 1.6rem;
  border-top: 1px solid rgba(255, 182, 193, 0.25);
  font-size: 0.95rem;
  text-align: center;
}

.foot-bar p { margin: 0; }

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  color: #ffd9e0;
  text-decoration: none;
  border: 1px solid rgba(255, 182, 193, 0.45);
  border-radius: 999px;
}

.to-top:hover { background: rgba(255, 182, 193, 0.16); }

/* ---------- 桌面 ---------- */
@media (min-width: 860px) {
  .head-in {
    flex-wrap: nowrap;
    gap: 0.8rem;
    padding: 0.6rem 1.2rem;
    max-width: var(--max);
    margin: 0 auto;
  }

  .brand { order: 1; }
  .brand-txt { display: none; }

  .drawer {
    order: 2;
    margin-left: 0.6rem;
  }

  .drawer > summary {
    background: transparent;
    box-shadow: none;
    padding: 0.35rem 0.5rem;
    cursor: default;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 0.6rem 0.6rem;
    font-size: 0.98rem;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .nav-menu a:hover {
    background: transparent;
    border-bottom-color: var(--pink);
  }

  .find {
    order: 3;
    flex: 0 1 auto;
    margin-left: auto;
  }

  .find input { width: 10rem; flex: 0 1 10rem; }

  .hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 2.6rem;
    align-items: center;
    min-height: 45vh;
    padding: 2rem 0 3.2rem;
  }

  .hero-fig { order: -1; }

  .hero-img { max-height: 46vh; }

  .hero-plate { min-height: 40vh; }

  .stage {
    grid-template-columns: minmax(0, 1fr) 16.5rem;
    gap: 3rem;
    align-items: start;
  }

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

  .site-foot {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    padding: 2.8rem max(1.5rem, calc(50vw - 580px)) 0;
  }
}

@media (min-width: 1080px) {
  .brand-txt {
    display: inline;
    font-size: 0.98rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .hero-img { transform: none !important; }
}

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