@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --red: #ff0000;
  --mag: #ff006e;
  --ink: #1a1a2e;
  --paper: #efeaf6;
  --dim: #a9a3bd;
  --pad: 24px;
  --mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(920px 500px at 88% -8%, rgba(255, 0, 110, 0.24), transparent 64%),
    radial-gradient(720px 440px at 2% 2%, rgba(255, 0, 0, 0.16), transparent 60%),
    linear-gradient(180deg, #0a0a14 0%, #10101c 48%, #0b0b15 100%);
  background-color: #0a0a14;
  color: var(--paper);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.005em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px);
  opacity: 0.75;
}

a { color: var(--mag); }

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

/* 角落品牌 */
.brand-corner {
  position: fixed;
  top: 14px;
  left: var(--pad);
  z-index: 85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 0, 110, 0.5);
  background: rgba(10, 10, 20, 0.78);
  color: var(--mag);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand-corner img { width: 26px; height: 26px; object-fit: contain; }

/* 骨架 */
.shell {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px var(--pad) 60px;
}

/* 头图 */
.hero {
  position: relative;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 68vh;
  margin: 0 calc(-1 * var(--pad));
  padding: 96px 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 0, 110, 0.35);
  border-radius: 0 0 26px 26px;
  background: linear-gradient(200deg, rgba(255, 0, 0, 0.2), rgba(26, 26, 46, 0.9) 62%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.15) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 20, 0.72) 0%, rgba(10, 10, 20, 0.15) 40%, rgba(10, 10, 20, 0.94) 100%),
    linear-gradient(90deg, rgba(255, 0, 110, 0.32), transparent 70%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.4px);
  background-size: 20px 20px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 85%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 calc(var(--pad) + 8px) 46px;
  max-width: 940px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 8.2vw, 4.7rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-rail {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--mag), transparent);
  box-shadow: 0 0 18px rgba(255, 0, 110, 0.8);
}

/* 故障字 */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
  text-shadow: none;
}
.glitch::before {
  color: var(--mag);
  clip-path: inset(0 0 56% 0);
  animation: gl-a 4.2s steps(2, end) infinite;
}
.glitch::after {
  color: #12e2ff;
  clip-path: inset(50% 0 0 0);
  animation: gl-b 3.6s steps(2, end) infinite;
}
@keyframes gl-a {
  0%, 82%, 100% { transform: translate(0, 0); }
  86% { transform: translate(-3px, -2px) skewX(6deg); }
  90% { transform: translate(2px, -1px); }
}
@keyframes gl-b {
  0%, 78%, 100% { transform: translate(0, 0); }
  84% { transform: translate(3px, 2px) skewX(-5deg); }
  92% { transform: translate(-2px, 1px); }
}

/* 左侧栏 */
.rail {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 20px 18px 14px;
  border: 1px solid rgba(255, 0, 110, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.94), rgba(16, 16, 30, 0.94));
  box-shadow: 0 22px 46px -26px rgba(0, 0, 0, 0.95), 0 0 26px -14px rgba(255, 0, 110, 0.5);
}

.rail-title {
  margin: 0 0 8px;
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}

.subtitle {
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 2px solid var(--mag);
  color: var(--dim);
  font-size: 15px;
  line-height: 1.62;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}
.rail-list li {
  counter-increment: rail;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.rail-list a {
  display: block;
  position: relative;
  padding: 11px 4px 11px 28px;
  color: #d8d2e7;
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  position: absolute;
  left: 2px;
  top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mag);
  opacity: 0.85;
}
.rail-list a:hover {
  color: #fff;
  padding-left: 32px;
}

/* 正文 */
.post {
  min-width: 0;
  max-width: 760px;
}
.post > div {
  padding: 42px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.13);
  scroll-margin-top: 20px;
  scroll-margin-bottom: 96px;
}
.post > div:first-child {
  padding-top: 4px;
  border-top: 0;
}

.post h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 0, 110, 0.4);
}
.post h3 {
  margin: 26px 0 8px;
  font-size: 1.16rem;
  line-height: 1.4;
  color: #ffe9f2;
}
.post p {
  margin: 0 0 16px;
  color: #ded8ea;
}
.post h2 + p,
.post .subtitle {
  font-size: 17px;
}
.post a {
  color: #ff5c9d;
  text-underline-offset: 3px;
}
.post ul,
.post ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
  color: #ded8ea;
}
.post li { margin-bottom: 6px; }

.post blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--red);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 0, 110, 0.09);
  box-shadow: 0 18px 36px -26px #000;
  color: #f3ecfa;
}
.post blockquote p:last-child { margin-bottom: 0; }

.post img {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 18px;
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 0, 110, 0.25);
}
.post figure { margin: 22px 0; }

.post strong { color: #fff; }
.post code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 0, 110, 0.14);
  color: #ffc2d9;
}

/* 底部胶囊导航 */
.pillbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 0, 110, 0.32);
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.65), rgba(10, 10, 20, 0.97) 45%);
  box-shadow: 0 -14px 42px rgba(255, 0, 110, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pillbar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}

.pill-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.pill-list::-webkit-scrollbar { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 0, 110, 0.4);
  border-radius: 999px;
  background: rgba(255, 0, 110, 0.09);
  color: #f4eefb;
  font-size: 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}
.pill:hover,
.pill.is-on {
  background: var(--mag);
  border-color: var(--mag);
  color: #0a0a14;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.7);
}

.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.62);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.85);
}

/* 页脚 */
.site-foot {
  position: relative;
  margin-top: 40px;
  padding: 54px var(--pad) calc(132px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.08), transparent 62%);
}

.foot-big {
  max-width: 1180px;
  margin: 0 auto 34px;
  font-size: clamp(2.1rem, 9.4vw, 4.6rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 0, 110, 0.62);
  text-shadow: 0 0 30px rgba(255, 0, 110, 0.35);
  word-break: break-word;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.foot-nav { display: contents; }

.foot-cols dl { margin: 0; }
.foot-cols dt {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--mag);
}
.foot-cols dd {
  margin: 0;
  color: #c6bfd6;
  font-size: 16px;
  line-height: 1.6;
}
.foot-cols dd a {
  display: inline-block;
  padding: 8px 0;
  color: #cfc7de;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.foot-cols dd a:hover {
  color: #fff;
  border-bottom-color: var(--mag);
}

.foot-copy {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 15px;
  color: #8e88a3;
}

/* 滚动显现 */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js-reveal.in {
  opacity: 1;
  transform: none;
}

/* 断点 */
@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .rail {
    position: static;
  }
  .post { max-width: none; }
  .post > div { scroll-margin-top: 14px; scroll-margin-bottom: 110px; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 620px) {
  :root { --pad: 16px; }
  body { font-size: 17px; }
  .hero { min-height: 64vh; padding-top: 84px; }
  .hero-copy { padding: 0 calc(var(--pad) + 4px) 36px; }
  .pill { padding: 0 13px; }
  .cta { padding: 0 14px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .foot-big { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal { opacity: 1; transform: none; transition: none; }
  .glitch::before,
  .glitch::after { animation: none; }
  .cta:hover { transform: none; }
}
</｜DSML｜ parameter>
</｜DSML｜ invoke>
</｜DSML｜ calls>

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