@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,500;0,700;1,300;1,500&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --rose: #eb879c;
  --pink: #ffb6c1;
  --ink: #26171a;
  --wine: #5a2b33;
  --link: #a3455c;
  --paper: #fdf2f4;
  --panel: #fff7f8;
  --line: #f2d8dd;
  --head-h: 64px;
  --shadow: 0 2px 4px rgba(38, 23, 26, .06), 0 10px 24px rgba(38, 23, 26, .05);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Crimson Pro', Georgia, serif;
}

*,
*::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.8;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(235, 135, 156, .4) 1px, transparent 1.2px);
  background-size: 20px 20px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

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

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--head-h);
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  background: rgba(253, 242, 244, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .24s ease, box-shadow .24s ease;
}

.brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(38, 23, 26, .1), 0 12px 22px rgba(38, 23, 26, .08);
}

.mark-t {
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: .02em;
  text-align: center;
  padding: 0 3px;
}

/* ---------- 全屏遮罩菜单 ---------- */
.menu-wrap { position: relative; }

.menu-wrap summary {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  list-style: none;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.menu-wrap summary::-webkit-details-marker { display: none; }

.menu-wrap summary i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

.menu-wrap[open] summary i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-wrap[open] summary i:nth-child(2) { opacity: 0; }
.menu-wrap[open] summary i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-wrap menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 82px 22px 36px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
  background: rgba(253, 242, 244, .97);
  backdrop-filter: blur(8px);
}

.menu-wrap menu li a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 8px 14px;
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(235, 135, 156, .3);
  transition: background .22s ease, color .22s ease, padding-left .22s ease;
}

.menu-wrap menu li a:hover {
  background: #fff;
  color: var(--link);
  padding-left: 20px;
}

.menu-wrap[open] menu li { animation: slideIn .26s ease both; }
.menu-wrap[open] menu li:nth-child(2) { animation-delay: .03s; }
.menu-wrap[open] menu li:nth-child(3) { animation-delay: .06s; }
.menu-wrap[open] menu li:nth-child(4) { animation-delay: .09s; }
.menu-wrap[open] menu li:nth-child(5) { animation-delay: .12s; }
.menu-wrap[open] menu li:nth-child(6) { animation-delay: .15s; }
.menu-wrap[open] menu li:nth-child(7) { animation-delay: .18s; }

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

/* ---------- 首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 70vh;
  padding: 42px 20px 46px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-art {
  order: -1;
  width: 116px;
  margin: 0;
}

.hero-art svg { display: block; width: 100%; height: auto; }

.hero-say { max-width: 34rem; }

.hero h1 {
  margin: 0 0 .4em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--wine);
}

.hero-desc {
  margin: 0 0 1.4em;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #4a3236;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(160deg, #eb879c, #d9647e);
  box-shadow: 0 2px 4px rgba(38, 23, 26, .12), 0 10px 22px rgba(235, 135, 156, .42);
  transition: transform .24s ease, box-shadow .24s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(38, 23, 26, .14), 0 14px 28px rgba(235, 135, 156, .5);
}

/* ---------- 主体 ---------- */
main div { scroll-margin-top: calc(var(--head-h) + 18px); }

.core {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 18px 60px;
}

.rail {
  align-self: start;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, #fff6f8, #fde7ec);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .16em;
  color: var(--link);
}

.rail-h {
  margin: .1em 0 .85em;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.rail-jump {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-jump li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 10px;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(235, 135, 156, .26);
  transition: background .22s ease, color .22s ease;
}

.rail-jump li a:hover { background: #fff; color: var(--link); }

/* ---------- 正文 ---------- */
.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.85;
}

.prose div { padding-top: 4px; }

.prose div + div {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.prose h1 {
  margin: .1em 0 .6em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.3;
  color: var(--wine);
}

.prose h2 {
  margin: 1.5em 0 .6em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.1vw, 1.95rem);
  line-height: 1.35;
  color: var(--wine);
  letter-spacing: .01em;
}

.prose h3 {
  margin: 1.4em 0 .5em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--wine);
}

.prose p { margin: 0 0 1.05em; }

.prose ul,
.prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }

.prose li { margin-bottom: .4em; }

.prose strong { color: var(--wine); }

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--wine); }

.prose figure { margin: 1.6em 0; }

.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--rose);
  background: var(--panel);
  box-shadow: var(--shadow);
  font-style: italic;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: .98rem;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { background: var(--panel); font-family: var(--serif); }

.prose img { box-shadow: var(--shadow); }

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 38px;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .05em;
}

.foot small { font-size: .95rem; }

.foot small a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .24s ease;
}

.foot small a:hover { transform: translateY(-2px); }

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
}

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

/* ---------- 断点 ---------- */
@media (min-width: 820px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 200px;
    column-gap: 34px;
    padding: 56px 26px 60px;
  }

  .hero-art { order: 2; width: 200px; }

  .hero-say { justify-self: end; }
}

@media (min-width: 900px) {
  .core {
    grid-template-columns: 250px minmax(0, 1fr);
    column-gap: 38px;
    padding: 52px 24px 72px;
  }

  .rail { position: sticky; top: calc(var(--head-h) + 16px); }

  .menu-wrap menu { padding: 100px max(24px, calc((100vw - 900px) / 2)) 40px; }
}

@media (max-width: 480px) {
  body { font-size: 16.5px; }
  .hero { padding-top: 34px; min-height: 0; }
  .hero h1 { font-size: 1.85rem; }
  .foot { padding-bottom: 30px; }
}

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

  .js .reveal,
  .js .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .menu-wrap[open] menu li { animation: none; }
  .cta:hover,
  .brand:hover,
  .foot small a:hover { transform: none; }
}

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