@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syncopate:wght@400;700&display=swap');

:root {
  --ink: #1f1726;
  --void: #141019;
  --violet: #56228b;
  --violet-l: #a06ce0;
  --bark: #8b4513;
  --leaf: #9dbb7a;
  --paper: #efe7f4;
  --body: #dcd0e6;
  --mute: #b3a3c3;
  --dim: #8d7f9d;
  --line: rgba(239, 231, 244, 0.14);
  --glass: rgba(255, 255, 255, 0.052);
  --r: 28px;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  color: var(--paper);
  font-family: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  background:
    repeating-linear-gradient(114deg, rgba(255, 255, 255, 0.022) 0 2px, transparent 2px 9px),
    radial-gradient(1100px 640px at 84% -12%, rgba(86, 34, 139, 0.52), transparent 62%),
    radial-gradient(820px 560px at 0% 16%, rgba(139, 69, 19, 0.30), transparent 66%),
    radial-gradient(720px 720px at 58% 104%, rgba(86, 34, 139, 0.22), transparent 70%),
    var(--void);
}

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

/* 顶部细条 */
.line-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(139, 69, 19, 0.30);
  border-bottom: 1px solid rgba(239, 231, 244, 0.10);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #ecdccb;
}
.line-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(157, 187, 122, 0.16);
}
.line-txt {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 头部：品牌行 + 菜单行 */
.masthead {
  z-index: 40;
  background: rgba(20, 16, 25, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px 6px;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--paper);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 12px;
  object-fit: cover;
  border: 1px solid rgba(160, 108, 224, 0.5);
}
.brand-name {
  font-family: 'Syncopate', 'Space Mono', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.6vw, 25px);
  letter-spacing: 0.14em;
  line-height: 1.25;
  background: linear-gradient(96deg, #f3eaf9, #bb92e6 58%, #cf9560);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rail-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 12px;
}
.rail-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rail-nav li { animation: rise 0.5s both; }
.rail-nav li:nth-child(1) { animation-delay: 0.04s; }
.rail-nav li:nth-child(2) { animation-delay: 0.08s; }
.rail-nav li:nth-child(3) { animation-delay: 0.12s; }
.rail-nav li:nth-child(4) { animation-delay: 0.16s; }
.rail-nav li:nth-child(5) { animation-delay: 0.20s; }
.rail-nav li:nth-child(6) { animation-delay: 0.24s; }
.rail-nav li:nth-child(7) { animation-delay: 0.28s; }

.rail-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--mute);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 18px 18px 18px 6px;
  transition: color 0.25s, background 0.25s, border-color 0.25s, transform 0.25s;
}
.rail-nav a:hover,
.rail-nav a:focus-visible {
  color: #fff;
  background: rgba(86, 34, 139, 0.45);
  border-color: rgba(160, 108, 224, 0.5);
  transform: translateY(-2px);
}

/* 主区 */
.stage {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.story { min-width: 0; }

div > section { scroll-margin-top: 28px; }

/* 首屏 */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 14px 0 30px;
  overflow: hidden;
  isolation: isolate;
}
.hero-ghost {
  position: absolute;
  z-index: 0;
  top: -0.12em;
  left: -0.06em;
  font-family: 'Syncopate', 'Space Mono', sans-serif;
  font-weight: 700;
  font-size: clamp(3.6rem, 19vw, 13rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: rgba(160, 108, 224, 0.10);
  pointer-events: none;
  user-select: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  order: -1;
  max-width: 34ch;
}
.hero-copy > * { animation: rise 0.7s both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.22s; }

.hero-h1 {
  margin: 0 0 10px;
  font-size: clamp(31px, 6.6vw, 58px);
  line-height: 1.22;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.hero-h2 {
  margin: 0 0 12px;
  font-family: 'Syncopate', 'Space Mono', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.30em;
  color: var(--leaf);
}
.subtitle {
  margin: 0;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.75;
}

.hero-media {
  position: relative;
  z-index: 1;
  flex: 0 0 42%;
  max-width: 100%;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 46% 54% 42% 58% / 40% 38% 62% 60%;
  border: 1px solid rgba(160, 108, 224, 0.35);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95), 0 0 0 8px rgba(86, 34, 139, 0.14);
  animation: rise 0.9s both;
}

/* 正文区块 */
.story > section:not(.hero) {
  margin: 0 0 18px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.3s, border-color 0.3s;
}
.story > section:not(.hero):nth-of-type(3n) { border-radius: 36px 20px 30px 22px; }
.story > section:not(.hero):nth-of-type(3n + 1) { border-radius: 22px 34px 20px 34px; }
.story > section:not(.hero):hover { border-color: rgba(160, 108, 224, 0.35); transform: translateY(-3px); }

.story h2 {
  position: relative;
  margin: 0 0 8px;
  padding-left: 17px;
  font-size: clamp(21px, 3.2vw, 27px);
  line-height: 1.42;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: #f6effb;
}
.story h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 6px;
  height: 1.1em;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--violet-l), var(--bark));
}

.story h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #eedff8;
}

.story p { margin: 0 0 14px; color: var(--body); }
.story p:last-child { margin-bottom: 0; }

.story a {
  color: #cdaaf4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.story a:hover { color: #f0dcff; }

.story ul,
.story ol { margin: 0 0 16px; padding-left: 1.3em; }
.story li { margin: 0 0 8px; }
.story li::marker { color: var(--violet-l); }

.story blockquote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid var(--bark);
  border-radius: 4px 20px 20px 4px;
  background: rgba(139, 69, 19, 0.16);
  color: #eddfd2;
}
.story blockquote p:last-child { margin-bottom: 0; }

.story img { border-radius: 20px; margin: 6px 0 16px; }
.story figure { margin: 0 0 16px; }
.story figcaption { font-size: 15px; color: var(--dim); }

.story table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 16px;
}
.story th,
.story td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.story th { color: #f0e3fa; background: rgba(86, 34, 139, 0.22); }
.story code {
  font-family: 'Space Mono', ui-monospace, monospace;
  font-size: 15px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(86, 34, 139, 0.3);
}

/* 侧栏 */
.side {
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 26px 26px 26px 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-self: start;
}
.side-label {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.34em;
  color: var(--leaf);
}
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-list li { animation: rise 0.5s both; }
.side-list li:nth-child(1) { animation-delay: 0.05s; }
.side-list li:nth-child(2) { animation-delay: 0.10s; }
.side-list li:nth-child(3) { animation-delay: 0.15s; }
.side-list li:nth-child(4) { animation-delay: 0.20s; }
.side-list li:nth-child(5) { animation-delay: 0.25s; }
.side-list li:nth-child(6) { animation-delay: 0.30s; }
.side-list li:nth-child(7) { animation-delay: 0.35s; }

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--mute);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 14px 14px 14px 4px;
  transition: color 0.25s, background 0.25s, border-color 0.25s, padding-left 0.25s;
}
.side-list a:hover,
.side-list a:focus-visible {
  color: #fff;
  background: rgba(86, 34, 139, 0.34);
  border-left-color: var(--violet-l);
  padding-left: 15px;
}

/* 页脚 */
.foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 20px 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.foot-brand {
  margin: 0;
  font-family: 'Syncopate', 'Space Mono', sans-serif;
  font-weight: 700;
  font-size: clamp(27px, 7.4vw, 56px);
  line-height: 1.06;
  letter-spacing: 0.02em;
  background: linear-gradient(92deg, #ecdcfa, #b988e4 50%, #cd9159);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 16px;
  color: var(--mute);
  text-decoration: none;
  border-radius: 12px;
  transition: color 0.25s, background 0.25s;
}
.foot-links a:hover,
.foot-links a:focus-visible { color: #fff; background: rgba(86, 34, 139, 0.32); }

.foot-copy {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(239, 231, 244, 0.09);
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
}

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

/* 平板以上 */
@media (min-width: 820px) {
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 34px;
    min-height: 72vh;
  }
  .hero-copy { order: 0; flex: 1 1 auto; }
  .hero-media { order: 0; }
}

@media (min-width: 900px) {
  .masthead { position: sticky; top: 0; }
  div > section { scroll-margin-top: 172px; }
}

@media (min-width: 1000px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) 268px;
    gap: 38px;
    padding-top: 30px;
  }
  .hero { min-height: calc(100vh - 200px); }
  .side { position: sticky; top: 176px; }
  .story > section:not(.hero) { padding: 34px 32px; }
}

@media (min-width: 760px) {
  .foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 34px;
  }
  .foot-copy { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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