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

:root {
  --ink: #261717;
  --deep: #140b0b;
  --red: #ff0000;
  --rose: #ff1493;
  --cream: #f9eef0;
  --dim: rgba(249, 238, 240, .7);
  --line: rgba(255, 20, 147, .24);
  --soft: rgba(255, 255, 255, .07);
  --serif: 'Cinzel', 'Songti SC', 'Noto Serif SC', serif;
  --sans: 'Josefin Sans', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding-bottom: 92px;
  overflow-x: hidden;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: -22%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 44% at 22% 16%, rgba(255, 0, 0, .58), transparent 62%),
    radial-gradient(42% 40% at 78% 24%, rgba(255, 20, 147, .52), transparent 64%),
    radial-gradient(48% 46% at 62% 84%, rgba(255, 84, 60, .34), transparent 66%),
    conic-gradient(from 200deg at 50% 50%, #2a1414, #3d1219, #221010, #2a1414);
  background-size: 200% 200%;
  filter: blur(54px) saturate(1.25);
  opacity: .6;
  animation: aurora 11s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(74% 62% at 50% 28%, #000, transparent 78%);
  mask-image: radial-gradient(74% 62% at 50% 28%, #000, transparent 78%);
  opacity: .55;
}

@keyframes aurora {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 50% 50%; }
  100% { background-position: 62% 38%, 28% 62%, 18% 58%, 0% 0%; }
}

main, .foot, .mark, .dock { position: relative; z-index: 1; }

img { max-width: 100%; }

a { color: inherit; }

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

/* ---------- 角落标识 ---------- */
.mark { position: fixed; top: 14px; left: 14px; z-index: 45; }
.mark-a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .06em;
  background: rgba(20, 11, 11, .62);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
}
.mark-a img { width: 26px; height: 26px; object-fit: contain; display: block; }
.mark-a:hover { border-color: var(--rose); color: var(--rose); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero-fig { position: absolute; inset: 0; margin: 0; z-index: -2; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transform-origin: 50% 30%;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 55% at 8% 92%, rgba(255, 20, 147, .34), transparent 72%),
    linear-gradient(180deg, rgba(20, 11, 11, .62) 0%, rgba(20, 11, 11, .16) 42%, rgba(20, 11, 11, .94) 90%);
}

.hero-in {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) clamp(70px, 12vh, 138px);
  text-align: left;
}

h1 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 7.2vw, 4.4rem);
  line-height: 1.16;
  letter-spacing: .05em;
  background: linear-gradient(94deg, #ffffff 12%, #ffd3e4 46%, var(--rose) 78%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

/* ---------- 分栏 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 266px;
  gap: clamp(24px, 4vw, 62px);
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 82px) clamp(18px, 4vw, 48px) clamp(30px, 5vw, 60px);
}

.col-main { min-width: 0; }

/* ---------- 概述卡 ---------- */
.brief {
  position: relative;
  padding: clamp(22px, 3.4vw, 36px);
  background: linear-gradient(160deg, rgba(38, 23, 23, .82), rgba(20, 11, 11, .6));
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 26px 60px -22px rgba(255, 20, 147, .42), 0 2px 0 rgba(255, 255, 255, .05) inset;
  overflow: hidden;
}

.brief::after {
  content: '';
  position: absolute;
  inset: auto -30% -60% auto;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 0, 0, .5), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

main h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.6vw, 2rem);
  line-height: 1.32;
  letter-spacing: .04em;
  background: linear-gradient(92deg, #ffffff, #ffc9dd 52%, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0 0 4px;
  max-width: 58ch;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.7;
}

.brief-fig { margin: 20px 0 0; }
.brief-img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--soft);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, .8);
}

/* ---------- 侧边栏 ---------- */
.rail {
  align-self: start;
  position: sticky;
  top: 34px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.rail-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--rose);
}

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

.rail a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
  transition: color .25s ease, padding-left .25s ease;
}

.rail a:hover { color: #fff; padding-left: 6px; }

/* ---------- 正文区块（page.content） ---------- */
main section[id] {
  position: relative;
  padding: clamp(34px, 5.4vw, 58px) 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  scroll-margin-top: 24px;
}

main section[id]::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 74px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--rose), transparent);
}

main section[id] > p { margin: 0 0 16px; color: var(--dim); max-width: 66ch; }
main section[id] > p:last-child { margin-bottom: 0; }
main section[id] strong { color: #fff; font-weight: 600; }
main section[id] a { color: var(--rose); text-underline-offset: 3px; }

main section[id] ul,
main section[id] ol {
  margin: 0 0 18px;
  padding-left: 20px;
  max-width: 66ch;
  color: var(--dim);
}

main section[id] li { margin-bottom: 8px; }
main section[id] li::marker { color: var(--rose); }

main section[id] figure { margin: 22px 0; }
main section[id] figure img { width: 100%; height: auto; display: block; border: 1px solid var(--soft); }

main section[id] blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 2px solid var(--rose);
  background: rgba(255, 20, 147, .07);
  color: var(--cream);
}

main section[id] blockquote p:last-child { margin-bottom: 0; }

main section[id] table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}

main section[id] th,
main section[id] td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--soft);
  text-align: left;
  vertical-align: top;
}

main section[id] th { color: #fff; font-weight: 600; letter-spacing: .04em; background: rgba(255, 255, 255, .04); }

main section[id] code {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 15px;
  padding: 1px 5px;
  background: rgba(255, 255, 255, .08);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: clamp(40px, 6vw, 76px);
  padding: clamp(32px, 5vw, 58px) clamp(18px, 4vw, 48px) 26px;
  background: linear-gradient(180deg, rgba(20, 11, 11, .5), rgba(20, 11, 11, .94));
  border-top: 1px solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  max-width: 1140px;
  margin: 0 auto;
}

address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .1em;
  color: #fff;
}

.foot-h {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--rose);
}

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

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--dim);
  text-decoration: none;
  transition: color .25s ease;
}

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

.copy {
  max-width: 1140px;
  margin: 26px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
  letter-spacing: .14em;
  color: rgba(249, 238, 240, .52);
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(38, 23, 23, .74), rgba(20, 11, 11, .96));
  border-top: 1px solid rgba(255, 20, 147, .34);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, .55);
}

.dock nav {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.dock nav::-webkit-scrollbar { display: none; }

.dock ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }

.dock nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: .05em;
  white-space: nowrap;
  color: var(--dim);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.dock nav a:hover,
.dock nav a:focus-visible {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 20, 147, .14);
}

.dock-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 44px;
  padding: 10px 13px;
  font-size: 15px;
  letter-spacing: .06em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(96deg, var(--red), var(--rose));
  box-shadow: 0 10px 28px -12px rgba(255, 20, 147, .9);
}

.dock-call .ico { flex: none; }

/* ---------- 滚动显现 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .85s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 断点 ---------- */
@media (max-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: static;
    order: 2;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }
  .rail ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-in { padding-bottom: clamp(56px, 14vh, 110px); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .dock { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .dock-call { padding: 10px 10px; font-size: 14px; }
  .dock nav a { padding: 10px 10px; font-size: 14px; }
  .foot-grid { grid-template-columns: 1fr; gap: 14px; }
  .mark { top: 10px; left: 10px; }
  .mark-a { width: 42px; height: 42px; }
}

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

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