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

:root {
  --ink: #1c1726;
  --ink-lift: #241d31;
  --violet: #6514ff;
  --magenta: #bf00ff;
  --paper: #f5f1ff;
  --muted: #bfb4d8;
  --line: rgba(245, 241, 255, 0.16);
  --r: 28px;
  --maxw: 1180px;
  --serif: "Bodoni Moda", "Songti SC", Georgia, serif;
  --sans: "Jost", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(58vmax 58vmax at 88% -12%, rgba(191, 0, 255, 0.26), transparent 62%),
    radial-gradient(52vmax 52vmax at -8% 108%, rgba(101, 20, 255, 0.28), transparent 60%),
    repeating-linear-gradient(135deg, rgba(245, 241, 255, 0.045) 0 2px, transparent 2px 18px);
  background-size: cover, cover, 36px 36px;
  animation: drift 30s linear infinite;
}

@keyframes drift {
  to { background-position: 0 0, 0 0, 36px 36px; }
}

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

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

a:hover, a:focus-visible {
  color: #fff;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }

ul { margin: 0; }

small {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--magenta);
  margin-bottom: 8px;
}

/* ---------- 顶栏 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(28, 23, 38, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.brandrow {
  padding-top: 16px;
  padding-bottom: 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
}

.mark-block {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--violet), var(--magenta));
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menurow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
}

.nav { min-width: 0; }

.menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.menu-sub {
  list-style: none;
  padding: 8px;
  margin: 0;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 208px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ink-lift);
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.has-sub { position: relative; }

.has-sub:hover .menu-sub,
.has-sub:focus-within .menu-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.menu-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
  border-bottom: 2px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  background: var(--violet);
  border-bottom-color: var(--magenta);
  color: #fff;
}

.menu-sub .menu-link { border-bottom-color: transparent; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  background: linear-gradient(100deg, var(--violet), var(--magenta));
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta:hover, .cta:focus-visible {
  filter: brightness(1.15);
  transform: translateY(-2px);
  color: #fff;
}

/* ---------- 主区 ---------- */
.page, .foot { position: relative; z-index: 1; }

.hero { padding: 0; }

.hero-media {
  position: relative;
  margin: 0;
  height: 70vh;
  min-height: 420px;
  max-height: 660px;
  overflow: hidden;
  background: linear-gradient(115deg, var(--violet), var(--ink) 72%);
  border-bottom: 1px solid var(--line);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(256deg, rgba(28, 23, 38, 0.94) 0%, rgba(28, 23, 38, 0.6) 46%, rgba(28, 23, 38, 0.28) 100%);
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  text-align: right;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--magenta);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(191, 0, 255, 0.32);
}

.hero h1 {
  font-size: clamp(34px, 6.4vw, 68px);
  margin: 0;
  max-width: 20ch;
  text-shadow: 0 4px 28px rgba(28, 23, 38, 0.7);
}

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 52px;
  align-items: start;
}

.content { min-width: 0; }

.content > article {
  position: relative;
  margin: 0 0 52px;
  padding: 34px 30px 40px;
  background: rgba(245, 241, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  scroll-margin-top: 152px;
}

.content > article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--violet), var(--magenta));
}

.content > article:nth-child(even) {
  background: rgba(101, 20, 255, 0.09);
}

.content h2 {
  font-size: clamp(26px, 3vw, 35px);
  margin-bottom: 0.6em;
}

.content h3 {
  font-size: 22px;
  margin-top: 1.4em;
}

.content p { color: #e6dff7; }

.content ul, .content ol {
  padding-left: 1.25em;
  margin: 0 0 1.2em;
}

.content li { margin-bottom: 0.5em; }

.content strong { color: #fff; }

.content a {
  color: var(--magenta);
  border-bottom: 1px solid rgba(191, 0, 255, 0.5);
}

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

.content blockquote {
  margin: 0 0 1.2em;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--violet);
  color: var(--muted);
}

.content img {
  border-radius: 16px;
  margin: 0 0 1.2em;
}

.content figure { margin: 0 0 1.2em; }

.content figcaption {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 132px;
  padding: 26px 22px;
  background: var(--ink-lift);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-bottom: 6px solid var(--violet);
}

.rail h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.rail-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 6px;
  color: var(--paper);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.rail-list a:hover, .rail-list a:focus-visible {
  background: var(--violet);
  padding-left: 18px;
  color: #fff;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(28, 23, 38, 0.7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0;
}

.foot article {
  max-width: var(--maxw);
  padding: 0 22px;
}

.foot-copy p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  font-size: 16px;
  border-radius: 6px;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

.to-top { border: 1px solid var(--line); }

/* ---------- 进场动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .hero-img { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 平板 ---------- */
@media (max-width: 980px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 44px;
  }
  .rail { position: static; top: auto; }
  .rail-list { flex-direction: row; flex-wrap: wrap; }
  .rail-list a { padding: 6px 14px; }
  .content > article { scroll-margin-top: 24px; }
  .foot { justify-content: flex-start; }
}

/* ---------- 手机 ---------- */
@media (max-width: 860px) {
  .masthead { position: static; }
  .menurow { gap: 10px; padding-bottom: 10px; }
  .menu {
    flex-wrap: wrap;
    gap: 6px;
  }
  .menu-sub {
    position: static;
    display: contents;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .menu-link { padding: 8px 12px; }
  .hero-media { min-height: 360px; height: 62vh; }
  .hero-copy { padding: 0 18px 34px; gap: 12px; }
  .hero h1 { font-size: clamp(30px, 9vw, 42px); max-width: 14ch; }
  .badge { font-size: 16px; padding: 6px 12px; }
  .content > article { padding: 26px 20px 32px; border-radius: 20px; margin-bottom: 36px; }
  .shell { padding: 36px 16px 0; }
  .bar { padding: 0 16px; }
  .foot article { padding: 0 16px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .brand-name { font-size: 20px; }
}

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