@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root{
  --ink:#26171a;
  --ink2:#2e1c20;
  --ink3:#1d1114;
  --line:rgba(235,135,156,.22);
  --line-soft:rgba(235,135,156,.12);
  --rose:#eb879c;
  --rose2:#ffb6c1;
  --text:#f5eaed;
  --muted:#ceb4ba;
  --r:4px;
  --soft:0 1px 2px rgba(0,0,0,.45),0 10px 24px -14px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.05);
  --t:240ms cubic-bezier(.22,.61,.36,1);
}

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

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

body{
  margin:0;
  padding-bottom:190px;
  background:
    radial-gradient(110% 55% at 50% -12%,#3a2228 0%,#2b1a1e 52%,#26171a 100%) no-repeat,
    var(--ink);
  background-attachment:fixed;
  color:var(--text);
  font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.72;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block}
p{margin:0}
ul,ol{margin:0}

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

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

.sr-only{
  position:absolute;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  overflow:hidden;
  height:44vh;
  min-height:272px;
  padding:18px 18px 32px;
  border-bottom-left-radius:46% 56px;
  border-bottom-right-radius:46% 56px;
  background:
    radial-gradient(120% 130% at 18% 0%,#543039 0%,#332025 55%,#26171a 100%);
  box-shadow:0 18px 40px -24px rgba(0,0,0,.9);
}

.hero__media{position:absolute;inset:0}

.hero__img{
  width:100%;height:100%;
  object-fit:cover;
  opacity:.55;
  filter:saturate(.85) contrast(1.06);
}

.hero::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(198deg,rgba(38,23,26,.18) 0%,rgba(38,23,26,.9) 72%);
}

.hero__panel{position:relative;z-index:2;text-align:right;max-width:100%}

.hero__word{
  margin:0 0 8px;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:13px;
  font-weight:500;
  letter-spacing:.24em;
  line-height:1.4;
  color:var(--rose2);
}

.hero__h{
  margin:0;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-weight:600;
  font-size:clamp(25px,6.8vw,50px);
  line-height:1.18;
  letter-spacing:.02em;
  color:#fff;
  text-shadow:0 3px 20px rgba(38,23,26,.92);
  overflow-wrap:break-word;
}

.hero__bar{
  display:block;
  width:78px;height:3px;
  margin:12px 0 0 auto;
  border-radius:2px;
  background:linear-gradient(90deg,rgba(235,135,156,0),var(--rose) 60%,var(--rose2));
}

/* ---------- 主体骨架 ---------- */
.wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  max-width:1180px;
  margin:0 auto;
  padding:26px 14px 0;
}

.stream{min-width:0}

.prose div{
  position:relative;
  margin-bottom:26px;
  padding:24px 18px;
  border-radius:var(--r);
  border-bottom:2px solid rgba(235,135,156,.45);
  background:linear-gradient(180deg,var(--ink2),#29191d);
  box-shadow:var(--soft);
  transition:transform var(--t),box-shadow var(--t),border-color var(--t);
}

.prose div:hover{
  transform:translateY(-2px);
  border-bottom-color:var(--rose);
  box-shadow:0 2px 4px rgba(0,0,0,.5),0 20px 36px -20px rgba(235,135,156,.45);
}

.prose div[id]{
  scroll-margin-top:22px;
  scroll-margin-bottom:180px;
}

.prose h1{
  margin:0 0 16px;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-weight:600;
  font-size:clamp(26px,6vw,40px);
  line-height:1.22;
  letter-spacing:-.01em;
  color:#fff;
}

.prose h2{
  margin:34px 0 14px;
  padding-left:13px;
  border-left:3px solid var(--rose);
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-weight:600;
  font-size:clamp(21px,3.6vw,28px);
  line-height:1.35;
  color:var(--rose2);
}

.prose div > h2:first-child{margin-top:0}

.prose h3{
  margin:24px 0 10px;
  font-size:19px;
  line-height:1.45;
  color:#fff;
}

.prose h4{
  margin:20px 0 8px;
  font-size:17px;
  color:var(--rose2);
}

.prose p{margin:0 0 14px;color:#eadddf}
.prose p:last-child{margin-bottom:0}

.prose strong{color:#fff;font-weight:600}
.prose em{color:var(--rose2);font-style:normal}

.prose a{
  color:var(--rose2);
  text-decoration:underline;
  text-decoration-color:rgba(235,135,156,.55);
  text-underline-offset:3px;
}

.prose ul,.prose ol{margin:0 0 16px;padding-left:22px}
.prose li{margin-bottom:9px;color:#eadddf}
.prose li::marker{color:var(--rose)}

.prose blockquote{
  margin:0 0 16px;
  padding:13px 16px;
  border-left:3px solid var(--line);
  border-radius:var(--r);
  background:rgba(255,182,193,.05);
  color:var(--muted);
}

.prose img{margin:14px 0;border-radius:var(--r)}

.prose code{
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:.9em;
  padding:1px 5px;
  border-radius:3px;
  background:rgba(255,182,193,.14);
  color:#fff;
}

.prose pre{
  margin:0 0 16px;
  padding:14px;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--r);
  background:var(--ink3);
}

.prose pre code{padding:0;background:none}

.prose table{
  width:100%;
  margin:0 0 16px;
  border-collapse:collapse;
  font-size:16px;
}

.prose th,.prose td{
  padding:10px 8px;
  border-bottom:1px solid var(--line-soft);
  text-align:left;
}

.prose th{color:var(--rose2);font-weight:600}

.prose time{
  display:inline-block;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:14px;
  color:var(--muted);
}

.prose hr{
  margin:24px 0;
  border:0;
  border-top:1px solid var(--line-soft);
}

/* ---------- 侧栏 ---------- */
.rail{
  align-self:start;
  padding:18px 16px;
  border:1px solid var(--line-soft);
  border-radius:var(--r);
  background:rgba(255,182,193,.045);
  box-shadow:var(--soft);
  font-family:"JetBrains Mono",ui-monospace,monospace;
}

.rail__k{
  display:block;
  font-size:13px;
  letter-spacing:.16em;
  color:var(--muted);
  text-transform:uppercase;
}

.rail__h{
  margin:2px 0 14px;
  font-size:17px;
  font-weight:600;
  letter-spacing:.08em;
  color:var(--rose2);
}

.rail__list{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
}

.rail__list a{
  display:block;
  padding:9px 11px;
  min-height:41px;
  border:1px solid transparent;
  border-radius:3px;
  font-size:15px;
  line-height:1.4;
  color:var(--text);
  transition:color var(--t),background var(--t),border-color var(--t);
}

.rail__list a:hover{
  color:var(--rose2);
  border-color:var(--line);
  background:rgba(235,135,156,.1);
}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  max-width:1180px;
  margin:36px auto 0;
  padding:26px 16px 26px;
  border-top:1px solid var(--line-soft);
}

.foot__brand{display:flex;align-items:center}

.foot__logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 4px;
  min-height:40px;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:16px;
  font-weight:600;
  letter-spacing:.12em;
  color:var(--text);
}

.foot__mark{border-radius:3px}

.foot__nav ol{
  display:flex;
  flex-wrap:wrap;
  gap:4px 16px;
  list-style:none;
  padding:0;
}

.foot__nav a{
  display:inline-block;
  padding:10px 2px;
  min-height:42px;
  font-size:16px;
  color:var(--muted);
  transition:color var(--t);
}

.foot__nav a:hover{color:var(--rose2)}

.foot__form{display:flex;gap:8px}

.foot__form input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:3px;
  background:var(--ink3);
  color:var(--text);
  font:inherit;
  font-size:16px;
}

.foot__form input::placeholder{color:var(--muted)}

.foot__form button{
  flex:0 0 auto;
  min-height:44px;
  padding:10px 18px;
  border:0;
  border-radius:3px;
  background:linear-gradient(180deg,var(--rose2),var(--rose));
  color:#26171a;
  font:inherit;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 2px 4px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.45);
  transition:filter var(--t),transform var(--t);
}

.foot__form button:hover{filter:brightness(1.06);transform:translateY(-1px)}

.foot__copy{
  margin:12px 0 0;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-size:14px;
  letter-spacing:.06em;
  color:var(--muted);
}

/* ---------- 底部固定导航 ---------- */
.dock{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:60;
  padding:8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  background:rgba(29,17,20,.95);
  backdrop-filter:blur(16px);
  box-shadow:0 -8px 30px rgba(0,0,0,.55);
}

.dock__list{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:2px;
  padding:0;
}

.dock__list a{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:42px;
  padding:11px 9px;
  border-radius:3px;
  font-size:16px;
  line-height:1.2;
  white-space:nowrap;
  color:var(--muted);
  transition:color var(--t),background var(--t);
}

.dock__list a::before{
  content:"";
  width:5px;height:5px;
  flex:none;
  border-radius:1px;
  background:currentColor;
  opacity:.55;
}

.dock__list a:hover{color:var(--rose2);background:rgba(235,135,156,.1)}
.dock__list a.is-on{color:var(--rose2);background:rgba(235,135,156,.14)}

.dock__brand{
  order:-1;
  flex:0 0 100%;
  text-align:center;
}

.dock__brand a{
  justify-content:center;
  min-height:42px;
  font-family:"JetBrains Mono",ui-monospace,monospace;
  font-weight:700;
  letter-spacing:.2em;
  color:var(--rose2);
  font-size:16px;
}

.dock__brand a::before{display:none}

.dock__cta{
  position:absolute;
  top:6px;right:8px;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:3px;
  background:linear-gradient(180deg,var(--rose2),var(--rose));
  color:#26171a;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  box-shadow:0 2px 4px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.45);
  transition:filter var(--t),transform var(--t);
}

.dock__cta:hover{filter:brightness(1.07);transform:translateY(-1px)}

/* ---------- 动效 ---------- */
.js-anim .reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity 260ms ease,transform 260ms cubic-bezier(.22,.61,.36,1);
}

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

.prose div.is-in:hover{transform:translateY(-2px)}

/* ---------- 桌面 ---------- */
@media (min-width:900px){
  body{padding-bottom:118px}

  .hero{
    height:70vh;
    min-height:470px;
    padding:40px 48px 58px;
    border-bottom-left-radius:50% 92px;
    border-bottom-right-radius:50% 92px;
  }

  .hero__word{font-size:14px;letter-spacing:.3em}

  .wrap{
    grid-template-columns:236px minmax(0,1fr);
    gap:46px;
    padding:56px 28px 0;
  }

  .stream{grid-column:2;grid-row:1}
  .rail{grid-column:1;grid-row:1;position:sticky;top:24px}
  .rail__list{flex-direction:column;gap:2px}

  .prose div{padding:36px 34px;margin-bottom:34px}

  .foot{
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:36px;
    padding:30px 28px;
  }

  .dock{display:flex;align-items:center;gap:16px;padding:10px 24px}
  .dock__list{flex:1;flex-wrap:nowrap;justify-content:space-between;padding-right:10px}
  .dock__brand{order:0;flex:0 0 auto;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
  .dock__list li:nth-child(3){margin-right:140px}
  .dock__list li:nth-child(5){margin-left:140px}
  .dock__cta{position:static}
}

@media (min-width:1180px){
  .prose div{padding:40px 42px}
}

/* ---------- 小屏微调 ---------- */
@media (max-width:420px){
  .dock__list a{padding:10px 7px;font-size:15px}
  .dock__brand a{letter-spacing:.14em}
  .dock__cta{padding:9px 12px;font-size:15px}
  .rail__list a{font-size:15px}
}

@media (max-width:359px){
  .hero{min-height:252px;padding:14px 14px 26px}
  .hero__h{font-size:24px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js-anim .reveal{opacity:1;transform:none;transition:none}
  .prose div,.dock__list a,.dock__cta,.foot__form button{transition:none}
}

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