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

:root {
  --rose: #eb879c;
  --blush: #ffb6c1;
  --ink: #26171a;
  --ink-soft: #5c4348;
  --rose-deep: #a63b54;
  --paper: #fdf1f3;
  --paper-2: #fbe4e9;
  --card: #fffafb;
  --line: rgba(38, 23, 26, 0.14);
  --line-soft: rgba(38, 23, 26, 0.08);
  --shadow: 0 2px 4px rgba(38, 23, 26, 0.05), 0 16px 32px -20px rgba(38, 23, 26, 0.3);
  --shadow-lift: 0 4px 8px rgba(38, 23, 26, 0.07), 0 28px 52px -26px rgba(166, 59, 84, 0.4);
  --radius: 28px;
  --ease: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --serif: "Bodoni Moda", "Times New Roman", "Songti SC", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

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

a { color: var(--rose-deep); }

:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- 顶部细条 ---------- */
.ticker {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.55);
}

.ticker-text {
  margin: 0;
  padding: 8px var(--pad);
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}

/* ---------- 页头两行 ---------- */
.masthead {
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(253, 241, 243, 0));
}

.brandrow { padding: clamp(14px, 3vw, 26px) 0 6px; }

.brand {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.brand a {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}

.menurow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(10px, 2vw, 16px);
}

.drawer { position: relative; }

.drawer > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--ink);
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

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

.drawer > summary:hover { transform: translateY(-1px); }

.bars {
  width: 16px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.drawer[open] > summary {
  position: relative;
  z-index: 60;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.drawer-list {
  position: fixed;
  inset: 0;
  z-index: 50;
  margin: 0;
  padding: 104px clamp(20px, 6vw, 60px) 48px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  overflow: auto;
  background: rgba(253, 241, 243, 0.96);
  backdrop-filter: blur(12px);
  animation: veil var(--ease) both;
}

@keyframes veil {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer-list a {
  display: block;
  min-height: 48px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: clamp(20px, 4.4vw, 30px);
  line-height: 1.35;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
}

.drawer-list a:hover { color: var(--rose-deep); padding-left: 10px; }

/* ---------- 主体 ---------- */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

main section { scroll-margin-top: 28px; }

.hero {
  min-height: 70vh;
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  align-content: center;
  justify-items: end;
  text-align: right;
  padding: clamp(26px, 6vw, 64px) 0;
}

.hero-art {
  margin: 0;
  width: clamp(96px, 22vw, 132px);
  height: clamp(96px, 22vw, 132px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #ffe6ea, #f8c6d1);
  box-shadow: var(--shadow-lift);
}

.hero-mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-blob {
  width: 54%;
  height: 54%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, var(--rose) 72%);
}

.hero-copy { min-width: 0; }

.badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 7.4vw, 82px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.hero-sub {
  margin: 20px 0 0 auto;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.65;
}

.subtitle { margin: 0 0 1em; }

/* ---------- 目录栏 + 正文 ---------- */
.board {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 5vw, 56px) 0;
  border-top: 1px solid var(--line-soft);
}

.rail {
  align-self: start;
  padding: 22px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.rail-title {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rail-sub {
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.rail-list,
.foot-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 2px;
  border-bottom: 1px dashed var(--line-soft);
  color: var(--ink-soft);
  font-size: 16px;
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
}

.rail-list a:hover { color: var(--rose-deep); padding-left: 6px; }

.col { min-width: 0; }

.col > section {
  position: relative;
  margin-bottom: clamp(20px, 3vw, 34px);
  padding: clamp(22px, 3.4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.col > section::after {
  content: "";
  position: absolute;
  left: clamp(22px, 3.4vw, 46px);
  right: clamp(22px, 3.4vw, 46px);
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rose), var(--blush));
  opacity: 0.9;
}

.col section h2 {
  margin: 0 0 0.55em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.col section h3 {
  margin: 1.4em 0 0.5em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.3;
}

.col section p {
  margin: 0 0 1.05em;
  max-width: 64ch;
}

.col section p:last-child { margin-bottom: 0; }

.col section a { text-underline-offset: 3px; }

.col section ul,
.col section ol {
  margin: 0 0 1.05em;
  padding-left: 1.3em;
  max-width: 64ch;
}

.col section li { margin-bottom: 0.5em; }

.col section blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blush);
  color: var(--ink-soft);
}

.col section figure { margin: 1.2em 0; }
.col section figcaption { color: var(--ink-soft); font-size: 15px; }
.col section code {
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--paper-2);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(36px, 7vw, 88px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 182, 193, 0.24), rgba(253, 241, 243, 1));
  padding: clamp(26px, 5vw, 54px) var(--pad) 34px;
}

.foot > section + section { margin-top: clamp(18px, 3vw, 28px); }

.foot-brand .brand-word {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 9vw, 86px);
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.foot-links { border-top: 1px solid var(--line-soft); padding-top: 14px; }

.foot-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 22px;
}

.foot-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 16px;
  color: var(--rose-deep);
  text-decoration: none;
}

.foot-menu a:hover { text-decoration: underline; }

.foot-base { border-top: 1px solid var(--line-soft); padding-top: 12px; }

.copy {
  margin: 0;
  text-align: center;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}

.to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* ---------- 进场 ---------- */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 260ms ease, transform 260ms ease;
  transition-delay: var(--rv-delay, 0ms);
}

.js .rv.in { opacity: 1; transform: none; }

/* ---------- 断点 ---------- */
@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
  }
  .hero-art { grid-column: 1; justify-self: start; }
  .hero-copy { grid-column: 2; }
  .hero-sub { margin-left: auto; }
}

@media (min-width: 900px) {
  .board {
    grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
    align-items: start;
  }
  .rail { position: sticky; top: 20px; }
}

@media (max-width: 560px) {
  .drawer-list { padding-top: 92px; }
  .to-top { right: 12px; bottom: 12px; }
}

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

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