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

:root {
  --violet: #6514ff;
  --magenta: #bf00ff;
  --ink: #1c1726;
  --deep: #120d19;
  --paper: #f6f1ff;
  --dim: #c3b6e0;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.15);
  --r: 18px;
  --display: "Playfair Display SC", "Songti SC", "Georgia", serif;
  --body: Karla, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  padding-bottom: 112px;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -30% -12%;
  z-index: -2;
  background:
    radial-gradient(38% 42% at 16% 20%, rgba(101, 20, 255, 0.52), transparent 70%),
    radial-gradient(32% 36% at 84% 6%, rgba(191, 0, 255, 0.42), transparent 70%),
    repeating-linear-gradient(52deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 30px);
  animation: drift 26s linear infinite;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 55% at 50% 100%, rgba(18, 13, 25, 0.9), transparent 70%);
  pointer-events: none;
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-3%, 2.5%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  color: #fff;
}

a {
  color: #dcbcff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

/* 底部固定胶囊条 */
.dock {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  max-width: 1120px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: rgba(20, 15, 28, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 6px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand .mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  box-shadow: 0 0 0 3px rgba(191, 0, 255, 0.22);
  flex: none;
}

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

.pillnav::-webkit-scrollbar {
  display: none;
}

.pillnav ol {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pillnav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.07);
  color: #e6dbf9;
  text-decoration: none;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.pillnav a:hover,
.pillnav a:focus-visible {
  background: linear-gradient(100deg, var(--violet), var(--magenta));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.cta {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--magenta), var(--violet));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.22s ease, transform 0.22s ease;
  flex: none;
}

.cta:hover {
  filter: brightness(1.16);
  transform: translateY(-2px);
}

/* 主体 */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 34px 0 10px;
  text-align: right;
}

.ghost {
  position: absolute;
  top: 0;
  right: -8px;
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(64px, 19vw, 176px);
  line-height: 0.86;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.075);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 7.4vw, 56px);
  line-height: 1.14;
  text-shadow: 0 6px 30px rgba(18, 13, 25, 0.75);
}

.lede {
  margin: 0 0 0 auto;
  max-width: 54ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dim);
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  flex: 1 1 auto;
  min-height: 152px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(120deg, var(--violet), var(--magenta) 58%, #2a1140);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 152px;
  object-fit: cover;
}

.art-fill {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 30px),
    repeating-linear-gradient(0deg, rgba(28, 23, 38, 0.24) 0 2px, transparent 2px 30px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 56px;
  align-items: start;
  padding-top: 36px;
}

/* 正文 */
.main-col div {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
  scroll-margin-bottom: 124px;
}

.main-col div:first-child {
  border-top: 0;
  padding-top: 6px;
}

.main-col h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4.4vw, 34px);
  line-height: 1.22;
}

.main-col h3 {
  margin: 26px 0 10px;
  font-size: 1.16rem;
  color: #ffd6fb;
}

.main-col hr {
  height: 4px;
  margin: 0 0 20px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--magenta) 55%, transparent);
}

.main-col p {
  margin: 0 0 15px;
  color: #eae2f8;
}

.main-col ul,
.main-col ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

.main-col li {
  margin: 0 0 9px;
}

.main-col li::marker {
  color: var(--magenta);
}

.main-col img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.main-col blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--magenta);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--glass);
}

.main-col blockquote p:last-child {
  margin-bottom: 0;
}

.main-col table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.main-col th,
.main-col td {
  padding: 9px 11px;
  border: 1px solid var(--line);
  text-align: left;
}

.main-col th {
  background: rgba(101, 20, 255, 0.22);
}

/* 右栏 */
.side {
  position: sticky;
  top: 24px;
  padding: 18px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.side h2 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  letter-spacing: 0.05em;
}

.side hr {
  height: 2px;
  margin: 0 0 14px;
  border: 0;
  background: linear-gradient(90deg, var(--magenta), transparent);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #e9dffb;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.side-list a:hover {
  background: linear-gradient(100deg, var(--violet), var(--magenta));
  color: #fff;
  transform: translateX(-3px);
}

/* 页脚 */
footer {
  padding: 56px 18px 28px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--dim);
}

footer p {
  margin: 0 0 6px;
  font-family: var(--display);
  color: #fff;
  letter-spacing: 0.04em;
}

footer small {
  display: block;
  opacity: 0.78;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 28px;
  }

  .side {
    position: static;
    order: 2;
  }

  .main-col div {
    scroll-margin-bottom: 140px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 104px;
  }

  .brand-name {
    display: none;
  }

  .dock {
    gap: 8px;
    padding-left: 10px;
  }

  .cta {
    padding: 0 14px;
  }

  .pillnav a {
    padding: 0 12px;
  }
}

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

  body::before {
    animation: none;
  }

  .pillnav a,
  .cta,
  .side-list a {
    transition: none;
  }
}

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