@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 {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --text: #fdf4f7;
  --muted: rgba(253, 244, 247, 0.76);
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.17);
  --line: rgba(255, 255, 255, 0.24);
  --r: 4px;
  --pad: clamp(1rem, 4vw, 2.75rem);
  --blur: 15px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background-color: #170b12;
  background-image:
    radial-gradient(70vw 62vw at 6% -6%, rgba(255, 0, 0, 0.55), transparent 62%),
    radial-gradient(62vw 58vw at 96% 6%, rgba(139, 0, 255, 0.55), transparent 60%),
    radial-gradient(90vw 70vw at 48% 112%, rgba(255, 0, 0, 0.24), transparent 66%),
    linear-gradient(165deg, #2b1219, #170b12 56%, #1c0d17);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  font-family: "Source Serif 4", Georgia, "Songti SC", serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 2rem));
  max-width: 100%;
  margin-inline: auto;
}

/* ---------- 顶部细条 ---------- */
.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem max(1rem, calc((100% - 1180px) / 2));
  background: linear-gradient(90deg, var(--red), var(--violet) 78%, #4c00a8);
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.ticker-brand {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ticker-top {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 0.35rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 0.55rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(38, 23, 23, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  min-width: 0;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--red), var(--violet));
  object-fit: cover;
  flex: 0 0 auto;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.28rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock {
  min-width: 0;
  flex: 1 1 16rem;
  display: flex;
  justify-content: flex-end;
}

.dock nav {
  min-width: 0;
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.dock ul {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.2rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.dock li {
  min-width: 0;
  flex: 0 0 auto;
}

.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.dock a:hover,
.dock a[aria-current="true"] {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- 首屏 ---------- */
.stage {
  padding-block: clamp(0.8rem, 3vw, 2rem) 3rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: 100vh;
  max-width: 100%;
  padding-bottom: clamp(1.4rem, 4vw, 2.4rem);
}

.hero > * {
  min-width: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--red), var(--violet), rgba(255, 255, 255, 0.15));
  transform: skewY(-1.1deg);
}

.hero-art {
  display: grid;
  place-items: center;
  padding: 0.55rem;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  overflow: hidden;
}

.hero-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r);
  display: block;
}

.hero-glyph {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 12vw, 7rem);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
}

.hero-copy {
  min-width: 0;
  text-align: center;
  padding-inline: clamp(0rem, 1.5vw, 1rem);
}

.hero-title {
  margin: 0 0 0.7rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 7.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  overflow-wrap: break-word;
  background: linear-gradient(118deg, #fff 24%, #ffb6c0 56%, #d9b7ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  margin: 0 auto 1.4rem;
  max-width: 32ch;
  font-size: 1.06rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(255, 0, 0, 0.5), rgba(139, 0, 255, 0.5));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  border-color: #fff;
}

/* ---------- 正文 ---------- */
.doc {
  min-width: 0;
  max-width: 100%;
}

.doc article {
  position: relative;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 1.15rem;
  padding: clamp(1.1rem, 3.4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  scroll-margin-top: 116px;
  overflow-wrap: break-word;
}

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

.doc h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.42rem, 3.6vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: 0.015em;
  color: #fff;
  overflow-wrap: break-word;
}

.doc h3 {
  margin: 1.4rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.14rem, 2.6vw, 1.32rem);
  line-height: 1.4;
  color: #fff;
  overflow-wrap: break-word;
}

.doc hr {
  height: 2px;
  margin: 0.85rem 0 1.15rem;
  border: 0;
  background: linear-gradient(90deg, var(--red), var(--violet) 55%, rgba(255, 255, 255, 0));
}

.doc p {
  margin: 0.85rem 0;
  overflow-wrap: break-word;
}

.doc p:first-of-type {
  margin-top: 0;
}

.doc ul,
.doc ol {
  margin: 0.85rem 0;
  padding-left: 1.25rem;
}

.doc li {
  margin: 0.38rem 0;
  overflow-wrap: break-word;
}

.doc li::marker {
  color: #ffb3bd;
}

.doc a {
  color: #ffd6dd;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

.doc strong,
.doc b {
  color: #fff;
}

.doc blockquote {
  margin: 1.1rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--violet);
  color: var(--muted);
}

.doc table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1rem;
}

.doc th,
.doc td {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  text-align: left;
  overflow-wrap: break-word;
}

.doc img {
  height: auto;
  max-width: 100%;
  border-radius: var(--r);
}

.doc pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.8rem;
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.32);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.95rem;
}

.doc code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.95em;
  padding: 0.1em 0.35em;
  border-radius: var(--r);
  background: rgba(0, 0, 0, 0.32);
  overflow-wrap: anywhere;
}

.doc pre code {
  padding: 0;
  background: none;
}

.doc article.in ul li {
  animation: rise 0.5s ease both;
}

.doc article.in ul li:nth-child(2) {
  animation-delay: 0.07s;
}

.doc article.in ul li:nth-child(3) {
  animation-delay: 0.14s;
}

.doc article.in ul li:nth-child(4) {
  animation-delay: 0.21s;
}

.doc article.in ul li:nth-child(5) {
  animation-delay: 0.28s;
}

.doc article.in ul li:nth-child(n + 6) {
  animation-delay: 0.35s;
}

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

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.6rem 1.4rem;
  width: min(1180px, calc(100% - 2rem));
  max-width: 100%;
  margin: 2.5rem auto 0;
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--line);
}

.foot-brand {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 1.1rem;
  margin: 0;
  text-align: right;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid transparent;
  color: var(--text);
  text-decoration: none;
}

.foot-links a:hover {
  border-color: var(--line);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 1.1rem 0 0;
  text-align: center;
}

.foot-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(255, 0, 0, 0.46), rgba(139, 0, 255, 0.46));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.foot small {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- 滚动出现 ---------- */
.rv {
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.rv-on .rv {
  opacity: 0;
  transform: translateY(20px);
}

.rv-on .rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 窄屏 ---------- */
@media (max-width: 880px) {
  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-bottom: 0.5rem;
  }

  .brand {
    align-self: flex-start;
  }

  .dock {
    justify-content: flex-start;
    flex: 1 1 auto;
  }

  .dock nav {
    overflow: visible;
    width: 100%;
  }

  .dock ul {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0.35rem;
  }

  .dock a {
    padding: 0 0.72rem;
    font-size: 0.95rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-block: 0.5rem 1.6rem;
    gap: 1.2rem;
  }

  .hero-copy {
    order: 1;
    padding-inline: 0;
  }

  .hero-art {
    order: 2;
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .doc article {
    scroll-margin-top: 132px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .foot-links {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

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

  .dock ul {
    gap: 0.3rem;
  }

  .dock a {
    padding: 0 0.55rem;
    font-size: 0.9rem;
  }

  .hero-desc {
    max-width: none;
  }

  .hero-cta {
    padding: 0 1.5rem;
  }

  .foot-links {
    gap: 0 0.85rem;
  }
}

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

  .rv-on .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .doc article.in ul li {
    animation: none;
  }

  .hero-cta {
    transition: none;
  }
}

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