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

:root {
  --ink: #1f1726;
  --ink-2: #271c31;
  --ink-3: #32243f;
  --plum: #56228b;
  --plum-l: #a274d6;
  --brown: #8b4513;
  --brown-l: #c4854a;
  --paper: #f4eefa;
  --text: #ded4e8;
  --muted: rgba(222, 212, 232, 0.62);
  --line: rgba(200, 182, 221, 0.16);
  --r-card: 10px;
  --r-soft: 24px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
}

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 10% 6%, rgba(86, 34, 139, 0.34), transparent 42%),
    radial-gradient(circle at 92% 24%, rgba(139, 69, 19, 0.26), transparent 44%),
    radial-gradient(circle at 50% 100%, rgba(86, 34, 139, 0.18), transparent 55%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: 'Open Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--plum-l);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brown-l);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Poppins', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--paper);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.05em;
}

/* ---------- 头部：品牌行 + 菜单行 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(24, 17, 30, 0.95);
  border-bottom: 1px solid var(--line);
}

.top-brand {
  padding: 0.6rem clamp(1rem, 4vw, 2.4rem) 0.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  min-height: 44px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand:hover {
  text-decoration: none;
  color: #fff;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(140deg, var(--plum), var(--brown));
  font-size: 0.95rem;
  color: #fff;
  object-fit: cover;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 1.02rem;
}

.top-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0 clamp(1rem, 4vw, 2.4rem) 0.55rem;
}

.burger,
.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.42rem 0.95rem;
  border-radius: var(--r-card);
  border: 1px solid rgba(196, 133, 74, 0.45);
  background: rgba(139, 69, 19, 0.16);
  color: var(--paper);
  font-family: inherit;
  font-size: 0.94rem;
  cursor: pointer;
}

.burger:hover,
.contact:hover {
  background: rgba(139, 69, 19, 0.34);
  text-decoration: none;
}

.burger-bars,
.burger-bars::before,
.burger-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
}

.burger-bars {
  position: relative;
}

.burger-bars::before,
.burger-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger-bars::before {
  top: -5px;
}

.burger-bars::after {
  top: 5px;
}

.burger-txt {
  font-size: 0.9rem;
}

/* ---------- 全屏遮罩菜单 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-content: center;
  gap: 1.4rem;
  padding: 4.5rem clamp(1.1rem, 6vw, 3rem) 2rem;
  background:
    radial-gradient(circle at 84% 14%, rgba(139, 69, 19, 0.34), transparent 48%),
    radial-gradient(circle at 12% 82%, rgba(86, 34, 139, 0.42), transparent 52%),
    #171021;
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 0.7, 0.3, 1), visibility 0.42s;
  overflow-y: auto;
}

body.menu-open .drawer {
  transform: none;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

.drawer-list {
  list-style: none;
  counter-reset: navc;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  max-width: 640px;
}

.drawer-list li {
  counter-increment: navc;
  border-bottom: 1px solid var(--line);
}

.drawer-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 48px;
  padding: 0.55rem 0.2rem;
  color: var(--paper);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(1.05rem, 4.2vw, 1.4rem);
}

.drawer-list a::before {
  content: counter(navc, decimal-leading-zero);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--brown-l);
  min-width: 1.6em;
}

.drawer-list a:hover {
  text-decoration: none;
  color: var(--plum-l);
}

.drawer-close {
  justify-self: start;
  min-height: 44px;
  padding: 0.55rem 1.3rem;
  border-radius: var(--r-soft);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.drawer-close:hover {
  background: rgba(244, 238, 250, 0.08);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 45vh;
  padding: clamp(1.5rem, 6vw, 3.4rem) clamp(1rem, 4vw, 2.6rem) clamp(1.6rem, 5vw, 2.8rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(circle, rgba(200, 182, 221, 0.2) 1px, transparent 1.7px);
  background-size: 18px 18px;
}

.hero-art {
  position: absolute;
  left: clamp(-5rem, -6vw, -1rem);
  top: clamp(-2rem, 2vw, 1rem);
  width: clamp(190px, 46vw, 420px);
  margin: 0;
  opacity: 0.85;
  will-change: transform;
  pointer-events: none;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(0.3px);
}

.hero-copy {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-title {
  margin: 0;
  max-width: 20ch;
  text-align: right;
  font-size: clamp(1.95rem, 6.6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 12%, #e6d6f6 46%, #e0bb95 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

/* ---------- 主体：左目录 + 正文 ---------- */
.play {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2.6rem);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.8rem) clamp(1rem, 4vw, 2.6rem) 3.2rem;
}

.rail {
  position: sticky;
  top: 6.6rem;
  padding: 1rem 0.85rem 1.1rem;
  border-radius: var(--r-soft) var(--r-card) var(--r-soft) var(--r-card);
  background: linear-gradient(180deg, rgba(86, 34, 139, 0.26), rgba(39, 28, 49, 0.7));
  box-shadow: var(--shadow);
  border-bottom: 3px solid rgba(139, 69, 19, 0.65);
}

.eyebrow,
.prose small {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--brown-l);
  font-family: 'Poppins', system-ui, sans-serif;
  margin-bottom: 0.35rem;
}

.rail-title {
  font-size: 1.06rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(200, 182, 221, 0.3);
}

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

.rail-list li {
  animation: leafrise 0.55s cubic-bezier(0.22, 0.7, 0.3, 1) backwards;
}

.rail-list li:nth-child(1) { animation-delay: 0.04s; }
.rail-list li:nth-child(2) { animation-delay: 0.1s; }
.rail-list li:nth-child(3) { animation-delay: 0.16s; }
.rail-list li:nth-child(4) { animation-delay: 0.22s; }
.rail-list li:nth-child(5) { animation-delay: 0.28s; }
.rail-list li:nth-child(6) { animation-delay: 0.34s; }
.rail-list li:nth-child(7) { animation-delay: 0.4s; }

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--r-card);
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.rail-list a:hover {
  text-decoration: none;
  color: var(--paper);
  background: rgba(139, 69, 19, 0.28);
  border-bottom-color: var(--brown-l);
}

/* ---------- 正文 ---------- */
.prose {
  max-width: 74ch;
  font-size: 1.02rem;
  min-width: 0;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose section {
  padding: clamp(1.2rem, 3vw, 1.9rem) clamp(0.9rem, 2.4vw, 1.6rem);
  margin-bottom: clamp(1rem, 2.6vw, 1.6rem);
  border-radius: var(--r-card);
  border-bottom: 3px solid rgba(139, 69, 19, 0.5);
  background: linear-gradient(180deg, rgba(86, 34, 139, 0.16), rgba(31, 23, 38, 0.1));
  scroll-margin-top: 7.2rem;
}

.prose section:nth-of-type(even) {
  border-bottom-color: rgba(86, 34, 139, 0.75);
  border-radius: var(--r-soft) var(--r-card) var(--r-card) var(--r-soft);
  background: linear-gradient(180deg, rgba(139, 69, 19, 0.14), rgba(31, 23, 38, 0.12));
}

.prose h2 {
  font-size: clamp(1.32rem, 3.2vw, 1.78rem);
  margin-top: 0.1rem;
}

.prose h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  margin-top: 1.5rem;
  color: #ecdff8;
}

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

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

.prose li::marker {
  color: var(--brown-l);
}

.prose strong {
  color: #fff;
}

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--plum-l);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  background: rgba(86, 34, 139, 0.22);
  color: #efe6f8;
}

.prose img {
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
}

.prose figure {
  margin: 1.2rem 0;
}

.prose figcaption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.5rem;
  text-align: left;
}

.prose th {
  color: var(--paper);
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 2.4rem;
  padding: clamp(2rem, 6vw, 3.4rem) clamp(1rem, 4vw, 2.6rem) 1.4rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(39, 28, 49, 0.9), rgba(20, 14, 26, 0.96));
}

.foot-mega {
  margin: 0 0 1.8rem;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.3rem, 11.5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: rgba(200, 182, 221, 0.3);
  word-break: break-word;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 1180px;
}

.foot-cols dl {
  margin: 0;
  border-top: 2px solid rgba(139, 69, 19, 0.55);
  padding-top: 0.7rem;
}

.foot-cols dt {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--brown-l);
}

.foot-cols dd {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
  color: var(--text);
}

.foot-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--brown-l);
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .play {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    padding-top: 1.1rem;
  }

  .rail {
    position: static;
    padding: 0.85rem 0.8rem 0.95rem;
    border-radius: var(--r-soft) var(--r-card) var(--r-soft) var(--r-card);
  }

  .rail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .rail-list li {
    flex: 0 1 auto;
  }

  .rail-list a {
    border: 1px solid var(--line);
    border-bottom: 2px solid rgba(139, 69, 19, 0.55);
    padding: 0.35rem 0.7rem;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 42vh;
  }

  .hero-art {
    width: clamp(150px, 48vw, 260px);
    top: -0.5rem;
    left: -3.2rem;
    opacity: 0.6;
  }

  .hero-title {
    max-width: 100%;
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }

  .prose section {
    padding: 1.05rem 0.9rem;
    scroll-margin-top: 6.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-art {
    transform: none !important;
  }
}

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