@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root {
  --red: #ff0000;
  --violet: #8b00ff;
  --ink: #261717;
  --paper: #f8eeea;
  --muted: #d8c1ba;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.2);
  --line-2: rgba(255, 255, 255, 0.12);
  --radius: 4px;
  --display: 'Abril Fatface', 'Merriweather', Georgia, 'Songti SC', 'Noto Serif SC', serif;
  --serif: 'Merriweather', Georgia, 'Songti SC', 'Noto Serif SC', serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(58vw 58vw at 6% -10%, rgba(255, 0, 0, 0.55), transparent 62%),
    radial-gradient(54vw 54vw at 98% 2%, rgba(139, 0, 255, 0.5), transparent 60%),
    radial-gradient(84vw 54vw at 44% 110%, rgba(139, 0, 255, 0.32), transparent 68%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

a {
  color: #ffd7cb;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid #ffd7cb;
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-weight: 400;
  color: #fff;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

.kicker {
  display: block;
  font-family: var(--serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffb7a6;
  line-height: 1.6;
}

/* 顶部 */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  padding: 0.6rem clamp(0.9rem, 3vw, 2rem);
  background: rgba(38, 23, 23, 0.55);
  border-bottom: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.2rem 0.55rem 0.2rem 0.1rem;
  text-decoration: none;
  color: var(--paper);
}

.brand-word {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 0.5rem;
  border-radius: 1px;
  background: linear-gradient(135deg, var(--red), var(--violet));
}

.nav a:hover,
.nav a:focus-visible {
  color: #fff;
  background: var(--glass-2);
}

/* 粘性锚点条 */
.scrollrail {
  position: sticky;
  top: 0;
  z-index: 25;
  padding: 0.15rem clamp(0.9rem, 3vw, 2rem);
  background: rgba(38, 23, 23, 0.78);
  border-bottom: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.rail-strip {
  display: flex;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.rail-strip::-webkit-scrollbar {
  display: none;
}

.rail-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rail-strip a:hover,
.rail-strip a:focus-visible {
  color: #fff;
  border-bottom-color: var(--red);
}

/* 版心 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  align-items: start;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 2.6vw, 2rem) clamp(0.9rem, 3vw, 2rem) 2.6rem;
}

.sheet {
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  min-width: 0;
  padding: clamp(0.8rem, 1.8vw, 1.3rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.sheet > section {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.4vw, 1.9rem);
  background: var(--glass);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  scroll-margin-top: 5.4rem;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.sheet > section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--violet));
  opacity: 0.9;
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  min-height: min(70vh, 620px);
  text-align: right;
  background-color: var(--glass-2);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
}

.hero-media {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(255, 0, 0, 0.36), rgba(139, 0, 255, 0.34));
}

.hero-figure {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blank {
  display: block;
  height: 100%;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(255, 255, 255, 0.28), transparent 70%),
    linear-gradient(160deg, rgba(255, 0, 0, 0.35), rgba(38, 23, 23, 0.1));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  min-width: 0;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.hero-lead {
  margin: 0;
  max-width: 34ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-jump {
  margin: 0.2rem 0 0;
}

.hero-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(120deg, var(--red), var(--violet));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-jump a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 0, 0, 0.28);
}

/* 正文内容 */
.sheet small {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffb7a6;
}

.sheet h2 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  line-height: 1.26;
}

.sheet h3 {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.15rem;
  line-height: 1.4;
}

.sheet :where(p, ul, ol, dl, blockquote, figure, table, pre) {
  margin: 0 0 1rem;
}

.sheet > section > :last-child {
  margin-bottom: 0;
}

.sheet ul,
.sheet ol {
  padding-left: 1.35rem;
}

.sheet li {
  margin-bottom: 0.4rem;
}

.sheet li::marker {
  color: #ff9a86;
}

.sheet strong {
  color: #fff;
}

.sheet blockquote {
  padding: 0.6rem 0 0.6rem 1rem;
  border-left: 3px solid var(--violet);
  color: var(--muted);
  font-style: italic;
}

.sheet img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
}

.sheet table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

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

.sheet th {
  color: #fff;
  background: var(--glass);
}

/* 侧栏 */
.rail {
  position: sticky;
  top: 4.9rem;
  max-height: calc(100vh - 6rem);
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 1rem 0.9rem;
  background: rgba(38, 23, 23, 0.52);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.rail-title {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.3;
}

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

.rail-list li {
  animation: rise 0.5s ease both;
}

.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; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 2px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #fff;
  background: var(--glass);
  border-left-color: var(--red);
}

/* 页脚 */
.foot {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: 0 clamp(0.9rem, 3vw, 2rem) 2.2rem;
}

.cta-plate {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1180px;
  padding: clamp(1.6rem, 5vw, 3rem) 1.1rem;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(255, 0, 0, 0.3), rgba(139, 0, 255, 0.28));
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.cta-word {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.45rem 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(38, 23, 23, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: rgba(38, 23, 23, 0.75);
  transform: translateY(-2px);
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  width: 100%;
  max-width: 1180px;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.foot-addr {
  display: grid;
  gap: 0.1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

.foot-brand {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--paper);
}

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

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  color: #fff;
  background: var(--glass);
}

.copy {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

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

/* 移动端 */
@media (max-width: 860px) {
  body {
    background-attachment: scroll;
  }

  .nav {
    flex-basis: 100%;
  }

  .nav ol {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .nav a {
    white-space: nowrap;
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 2rem;
  }

  .rail {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 1.1rem;
  }

  .hero-media {
    order: 2;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .hero-copy {
    order: 1;
    align-items: flex-end;
    gap: 0.55rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8.4vw, 2.5rem);
  }

  .hero-lead {
    max-width: none;
    font-size: 1rem;
  }

  .sheet {
    padding: 0.55rem;
  }

  .foot-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

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