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

:root {
  --ink: #000000;
  --panel: #121212;
  --card: #0a0a0a;
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.09);
  --txt: #e8e5df;
  --dim: #9c9891;
  --gold: #e9c46a;
  --cyan: #6ee7ff;
  --serif: 'Libre Bodoni', 'Times New Roman', Georgia, serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --r: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.lock { overflow: hidden; }

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

a { color: var(--txt); text-decoration: none; }

p { margin: 0 0 16px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip a {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  background: #fff;
  color: #000;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
}
.skip a:focus { left: 0; }

/* ---------- 顶栏 ---------- */
.bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px clamp(16px, 4vw, 34px);
  border-bottom: 1px solid var(--line-soft);
}

.mark {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.02em;
  color: #ffffff;
  padding: 6px 0;
  text-shadow: 0 0 18px rgba(110, 231, 255, 0.14);
}

.bar-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  color: #ded9d1;
  transition: border-color 0.25s, color 0.25s;
}
.contact:hover { border-color: var(--gold); color: #fff; }

.burger {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: #ffffff;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.burger:hover { border-color: var(--cyan); }

/* ---------- 全屏菜单 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #000000;
  display: flex;
  flex-direction: column;
  padding: 18px clamp(16px, 5vw, 48px) 40px;
  overflow-y: auto;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1), visibility 0.5s;
}
.drawer.open { transform: translateY(0); visibility: visible; }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.drawer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: #ffffff;
}

.drawer-x {
  min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: #000000;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  cursor: pointer;
}

.drawer-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 4px;
  min-height: 52px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: clamp(22px, 4.4vw, 34px);
  color: #f2efe9;
  transition: color 0.2s, padding-left 0.25s;
}
.drawer-nav a:hover { color: var(--gold); padding-left: 12px; }

.idx {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

/* ---------- 首屏 ---------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 34px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  min-height: 70vh;
}

.hero-art {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.02);
}

.badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: #000000;
  background: var(--gold);
  border-radius: 999px;
  text-shadow: 0 0 12px rgba(233, 196, 106, 0.5);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 18px;
}

.hero-h1 {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 0 26px rgba(110, 231, 255, 0.16);
}

.hero-desc {
  margin: 0;
  max-width: 42ch;
  color: var(--dim);
  line-height: 1.8;
  font-weight: 300;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #f4f1eb;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.jump:hover { border-color: var(--cyan); color: #000000; background: var(--cyan); }

/* ---------- 粘性锚点条 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-top: clamp(22px, 4vw, 46px);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
}

.rail ol {
  list-style: none;
  margin: 0;
  padding: 6px clamp(10px, 4vw, 34px);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.rail ol::-webkit-scrollbar { display: none; }

.rail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  white-space: nowrap;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s;
}
.rail a:hover, .rail a:focus-visible { color: #ffffff; border-color: var(--line); }
.rail .idx { font-size: 11px; color: var(--gold); }

/* ---------- 主体两栏 ---------- */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) clamp(16px, 4vw, 34px) clamp(40px, 6vw, 70px);
  align-items: start;
}

.side {
  position: sticky;
  top: 72px;
  align-self: start;
}

.side-h {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  color: #c4c0b8;
  transition: color 0.2s, padding-left 0.25s;
}
.side-list a:hover { color: #ffffff; padding-left: 6px; }
.side-list .idx { font-size: 11px; color: #6b6862; letter-spacing: 0.1em; }
.side-list a:hover .idx { color: var(--cyan); }

/* ---------- 正文 ---------- */
.body { min-width: 0; }

.body > article {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: clamp(22px, 3.6vw, 42px);
  margin-bottom: clamp(20px, 3vw, 30px);
  scroll-margin-top: 92px;
  transition: border-color 0.3s;
}
.body > article:hover { border-color: rgba(255, 255, 255, 0.28); }

.body h2 {
  font-size: clamp(24px, 3.3vw, 38px);
  margin: 0 0 16px;
  line-height: 1.16;
}
.body h2 span { display: inline; }

.body h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 28px 0 12px;
}

.body h3 span { display: inline; }

.body p { color: #cdc9c2; line-height: 1.85; }

.body ul, .body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #cdc9c2;
}
.body li { margin-bottom: 8px; line-height: 1.8; }

.body a {
  color: var(--gold);
  border-bottom: 1px solid rgba(233, 196, 106, 0.4);
  transition: color 0.2s, border-color 0.2s;
}
.body a:hover { color: var(--cyan); border-color: var(--cyan); }

.body blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 2px solid var(--cyan);
  background: rgba(110, 231, 255, 0.05);
  color: #ded9d1;
  border-radius: 0 14px 14px 0;
}
.body blockquote p:last-child { margin-bottom: 0; }

.body img {
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  margin: 14px 0;
  width: auto;
}

.body figure { margin: 18px 0; }
.body figcaption { font-size: 15px; color: var(--dim); margin-top: 8px; }

.body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  display: block;
  overflow-x: auto;
}
.body th, .body td {
  border: 1px solid var(--line-soft);
  padding: 10px 12px;
  text-align: left;
}
.body th { background: var(--panel); color: #ffffff; }

.body > article > :last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(30px, 5vw, 52px) clamp(16px, 4vw, 34px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 34px);
}

.wordmark {
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 60px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-shadow: 0 0 32px rgba(233, 196, 106, 0.16);
}

.foot-nav { flex: 1 1 340px; }

.foot-h {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--dim);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}
.foot-list .idx { display: none; }
.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  color: var(--dim);
  transition: color 0.2s;
}
.foot-list a:hover { color: var(--gold); }

.foot-copy { text-align: center; color: #86837e; font-size: 16px; }
.foot-copy p { margin: 0; }

/* ---------- 回到顶部 ---------- */
.totop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  min-height: 46px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  color: #ffffff;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.25s;
}
.totop.show { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { border-color: var(--cyan); }

/* ---------- 滚动显现 ---------- */
.js [data-rv] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js [data-rv].rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv] { opacity: 1; transform: none; transition: none; }
  .drawer { transition: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .side-list { display: flex; flex-wrap: wrap; gap: 2px 16px; border-top: 0; }
  .side-list li { flex: 0 0 auto; }
  .side-list a { min-height: 44px; border-bottom: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { align-items: flex-start; text-align: left; }
  .hero-art { aspect-ratio: 16 / 11; }
  .foot { justify-content: flex-start; }
  .foot-copy { text-align: left; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .contact { padding: 0 14px; }
  .hero-art { aspect-ratio: 4 / 3; }
  .badge { font-size: 13px; padding: 7px 13px; }
  .body img { width: 100%; }
}

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