@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300&display=swap');

:root {
  --ink: #261717;
  --red: #ff0000;
  --pink: #ff1493;
  --paper: #f9efef;
  --dim: #dcc6c6;
  --line: rgba(255, 236, 236, 0.16);
  --glass: rgba(255, 255, 255, 0.055);
  --r: 28px;
}

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

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

body {
  margin: 0;
  color: var(--paper);
  font-family: "Source Serif 4", Georgia, "Songti SC", serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(52% 42% at 12% 8%, rgba(255, 0, 0, 0.5), transparent 62%),
    radial-gradient(46% 46% at 88% 16%, rgba(255, 20, 147, 0.46), transparent 66%),
    radial-gradient(62% 48% at 52% 94%, rgba(255, 20, 147, 0.32), transparent 70%),
    radial-gradient(42% 42% at 92% 82%, rgba(255, 0, 0, 0.24), transparent 70%);
  background-size: 200% 200%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  animation: drift 11s ease-in-out infinite alternate;
  filter: saturate(1.15);
}

@keyframes drift {
  from {
    background-position: 0% 0%, 100% 0%, 50% 100%, 100% 100%;
  }
  to {
    background-position: 42% 32%, 58% 42%, 18% 62%, 68% 56%;
  }
}

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

a {
  color: inherit;
}

/* 顶部细条 */
.topline {
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: rgba(38, 23, 23, 0.55);
  backdrop-filter: blur(10px);
}

.topline p {
  margin: 0;
  padding: 9px 16px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.34em;
  color: var(--dim);
  text-indent: 0.34em;
}

/* 页头：品牌独占一行 + 菜单行 */
.masthead {
  position: relative;
  z-index: 60;
  padding: 16px 20px 0;
}

.brand-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.brand {
  display: inline-block;
  padding: 6px 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(120deg, #ffffff 8%, var(--pink) 62%, var(--red) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.menu-row {
  display: flex;
  justify-content: flex-end;
  padding: 14px 0 16px;
  position: relative;
  z-index: 70;
}

.menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 22px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--paper);
}

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

.menu > summary::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
}

.menu[open] > summary::before {
  box-shadow: 0 7px 0 currentColor, 0 -7px 0 currentColor;
  background: var(--pink);
}

.menu > menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  margin: 0;
  padding: 132px 22px 56px;
  list-style: none;
  display: grid !important;
  align-content: start;
  overflow-y: auto;
  background:
    radial-gradient(70% 52% at 50% 0%, rgba(255, 20, 147, 0.3), transparent 72%),
    radial-gradient(50% 40% at 90% 100%, rgba(255, 0, 0, 0.26), transparent 70%),
    rgba(28, 16, 16, 0.95);
  backdrop-filter: blur(22px);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.menu[open] > menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.menu > menu li {
  border-bottom: 1px solid var(--line);
}

.menu > menu a {
  display: block;
  padding: 16px 8px;
  min-height: 56px;
  text-decoration: none;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 5.2vw, 2rem);
  line-height: 1.5;
  color: var(--paper);
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.menu > menu a:hover,
.menu > menu a:focus-visible {
  color: var(--pink);
  padding-left: 18px;
}

/* 首屏 */
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  gap: 38px;
  padding: 48px 20px 72px;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 11vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(158deg, #ffffff 12%, var(--pink) 58%, var(--red) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.7;
  color: var(--dim);
}

.cue {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(118deg, var(--red), var(--pink));
  box-shadow: 0 18px 44px -20px rgba(255, 20, 147, 0.95);
}

.cue:hover {
  filter: brightness(1.08);
}

.hero-art {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, rgba(255, 0, 0, 0.3), rgba(255, 20, 147, 0.24));
  box-shadow: 0 34px 76px -44px rgba(255, 20, 147, 0.9);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: bob 12s ease-in-out infinite alternate;
}

@keyframes bob {
  from {
    transform: scale(1.02) translateY(-7px);
  }
  to {
    transform: scale(1.09) translateY(7px);
  }
}

/* 正文 + 右侧栏 */
.wrap {
  display: grid;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.sheet {
  min-width: 0;
}

.sheet section {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(16px);
}

section div {
  scroll-margin-top: 112px;
  animation: rise 0.75s both;
}

section div:nth-child(2) {
  animation-delay: 0.06s;
}

section div:nth-child(3) {
  animation-delay: 0.12s;
}

section div:nth-child(4) {
  animation-delay: 0.18s;
}

section div:nth-child(5) {
  animation-delay: 0.24s;
}

section div:nth-child(6) {
  animation-delay: 0.3s;
}

section div:nth-child(7) {
  animation-delay: 0.36s;
}

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

section div + div {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4.6vw, 2.2rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

section h2 > span {
  background: linear-gradient(100deg, #ffffff, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section h3 {
  margin: 26px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.18rem, 3.4vw, 1.5rem);
  line-height: 1.3;
}

section h3 > span {
  color: var(--pink);
}

section p {
  margin: 0 0 16px;
}

section ul,
section ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

section li {
  margin-bottom: 8px;
}

section a {
  color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

section strong {
  color: #ffffff;
}

section blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--pink);
  color: var(--dim);
}

section time {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.rail {
  display: grid;
  gap: 20px;
  align-content: start;
}

.card {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(16px);
}

.rail-t {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.rail-t span {
  color: var(--pink);
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
}

.rail-list li:last-child a {
  border-bottom: 0;
}

.rail-list a:hover {
  color: var(--pink);
}

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  color: var(--pink);
  text-decoration: none;
}

/* 页脚 */
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 8px;
  padding: 32px 20px 40px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 11vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  background: linear-gradient(118deg, #ffffff, var(--pink) 58%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

footer small {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--dim);
  padding-bottom: 6px;
}

footer small a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--pink);
  text-decoration: none;
}

/* 桌面 */
@media (min-width: 900px) {
  .masthead {
    padding: 26px 40px 0;
  }

  .brand-row {
    padding-bottom: 18px;
  }

  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    padding: 72px 40px 96px;
  }

  .hero-art {
    aspect-ratio: 4 / 5;
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    padding: 0 40px 96px;
    align-items: start;
  }

  .sheet section {
    padding: 44px 48px;
  }

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

  .card {
    padding: 24px 22px;
  }

  footer {
    padding: 48px 40px 56px;
  }

  .menu > menu {
    padding: 168px 12vw 64px;
  }
}

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

  body,
  .hero-art img,
  section div {
    animation: none;
  }

  .menu > menu,
  .menu > summary::before {
    transition: none;
  }
}

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