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

:root {
  --pink: #ff0080;
  --magenta: #ff00ff;
  --ink: #26171f;
  --deep: #150c11;
  --paper: #f6ecf2;
  --muted: #c3adba;
  --line: rgba(255, 255, 255, 0.14);
  --serif: 'EB Garamond', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --sans: 'Lato', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
}

/* ---------- 极光网格底 ---------- */
body::before {
  content: '';
  position: fixed;
  inset: -25% -18%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 16% 20%, rgba(255, 0, 128, 0.62), transparent 64%),
    radial-gradient(42% 46% at 84% 10%, rgba(255, 0, 255, 0.50), transparent 66%),
    radial-gradient(46% 52% at 74% 78%, rgba(255, 0, 128, 0.40), transparent 68%),
    radial-gradient(52% 44% at 24% 94%, rgba(122, 0, 255, 0.42), transparent 70%),
    radial-gradient(38% 38% at 52% 46%, rgba(255, 96, 176, 0.22), transparent 72%);
  filter: blur(40px) saturate(142%);
  animation: aurora 26s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 68px),
    linear-gradient(180deg, rgba(21, 12, 17, 0.26), rgba(21, 12, 17, 0.84) 58%, #150c11 100%);
}

@keyframes aurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.07); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.02); }
}

a { color: #ff8ec4; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

img { max-width: 100%; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px max(16px, 3vw);
  background: rgba(21, 12, 17, 0.76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 2px;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  border-bottom: 2px solid var(--pink);
}

.menu-set { position: relative; flex: 0 0 auto; }

.menu-set summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-size: 16px;
  color: #f2dfe9;
  background: rgba(255, 255, 255, 0.05);
}

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

.menu-set summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.menu-set[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: min(272px, 82vw);
  max-height: min(72vh, 540px);
  overflow: auto;
  background: #1d1118;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.58);
  display: grid;
  gap: 2px;
}

.menu-list li[hidden] { display: none; }

.menu-list li a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  color: #f4e6ee;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
}

.menu-list li a:hover {
  background: rgba(255, 0, 128, 0.16);
  border-bottom-color: var(--pink);
}

.search { margin-left: auto; min-width: 0; }

.search input {
  width: 160px;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.search input::placeholder { color: #c9b4c0; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: grid;
  gap: 24px;
  padding: 46px max(16px, 3vw) 44px;
  border-bottom: 1px solid var(--line);
}

.hero-word {
  position: absolute;
  right: -0.06em;
  bottom: -0.16em;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(58px, 17vw, 168px);
  line-height: 0.78;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

.hero-copy {
  position: relative;
  text-align: right;
  max-width: 760px;
  margin-left: auto;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.26;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 8px 34px rgba(255, 0, 128, 0.36);
}

.hero-copy h1::after {
  content: '';
  display: block;
  margin: 16px 0 0 auto;
  width: 92px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--magenta), var(--pink));
}

.shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 620px;
  margin-left: auto;
  width: 100%;
}

.shot {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #2a1822;
  border-bottom: 3px solid var(--pink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
}

.shot:nth-child(2) { margin-top: 20px; }

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 主体 ---------- */
main { padding: 0 max(16px, 3vw) 68px; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 42px;
  align-items: start;
  padding-top: 36px;
}

.prose { display: block; }

.prose section {
  scroll-margin-top: 96px;
  padding: 38px 0 34px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.13);
}

.prose section:first-child { padding-top: 0; }
.prose section:last-child { border-bottom: 0; padding-bottom: 0; }

.prose h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.32;
  color: #fff;
}

.prose h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--magenta));
}

.prose p { margin: 0 0 16px; color: #eddfe7; }

.prose p.subtitle,
p.subtitle {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: -2px 0 18px;
}

.prose a { color: #ff8ec4; text-underline-offset: 3px; }

.prose ul,
.prose ol { margin: 0 0 18px; padding-left: 1.25em; }

.prose li { margin: 0 0 8px; }

.prose h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: #fff;
  margin: 26px 0 10px;
}

.prose strong { color: #fff; }

.prose img {
  height: auto;
  border-radius: 4px;
  border-bottom: 3px solid var(--pink);
}

.prose blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border-left: 3px solid var(--magenta);
  border-radius: 0 4px 4px 0;
  background: rgba(255, 255, 255, 0.05);
  color: #f0e2ea;
}

.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 16px; }
.prose th,
.prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* ---------- 右侧栏 ---------- */
.rail {
  position: sticky;
  top: 92px;
  padding: 20px 18px 18px;
  border-radius: 4px;
  background: rgba(38, 23, 31, 0.74);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--magenta);
  backdrop-filter: blur(8px);
}

.rail h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
}

.rail p.subtitle {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: #bfa6b5;
}

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

.rail a {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 11px 2px;
  min-height: 44px;
  color: #f0e2ea;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rail a .num {
  font-family: var(--serif);
  font-size: 14px;
  color: #ff8ec4;
  flex: 0 0 auto;
}

.rail a:hover { color: #fff; }

/* ---------- 页脚 ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  padding: 26px max(16px, 3vw);
  border-top: 1px solid var(--line);
  background: rgba(21, 12, 17, 0.62);
  font-size: 15px;
}

.f-brand a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.f-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }

.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 8px;
  color: #d9c6d2;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.f-nav a:hover { color: #fff; border-bottom-color: var(--pink); }

.f-copy { margin-left: auto; color: #a994a2; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  min-height: 44px;
  padding: 10px 15px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 0, 128, 0.88);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.to-top.on { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- 滚动出现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}

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

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .rail { position: static; order: 2; }
  .search input { width: 130px; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .brand { font-size: 17px; gap: 6px; }
  .mark { width: 24px; height: 24px; }
  .menu-set summary { padding: 8px 11px; }
  .search input { width: 104px; padding: 8px 10px; }
  .hero { padding-top: 34px; padding-bottom: 34px; gap: 20px; }
  .shots { gap: 10px; }
  .shot:nth-child(2) { margin-top: 14px; }
  .f-copy { margin-left: 0; width: 100%; }
  .to-top { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .to-top { transition: none; }
}

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