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

:root{
  --red:#ff0000;
  --violet:#8b00ff;
  --ink:#261717;
  --text:#f5eeeb;
  --muted:#c9b6b6;
  --line:rgba(255,255,255,.2);
  --glass:rgba(255,255,255,.1);
  --glass-2:rgba(255,255,255,.16);
  --shadow:0 18px 46px rgba(0,0,0,.45);
  --radius:28px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--text);
  overflow-x:hidden;
  background:
    radial-gradient(920px 640px at 84% -10%, rgba(139,0,255,.42), transparent 66%),
    radial-gradient(780px 560px at 6% 4%, rgba(255,0,0,.34), transparent 68%),
    radial-gradient(1100px 900px at 50% 110%, rgba(139,0,255,.2), transparent 72%),
    linear-gradient(180deg,#1b0e0f 0%,#120a0b 52%,#1c1011 100%);
  background-attachment:fixed;
}

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

a{color:#ff9c9c}

h1,h2,h3{font-family:'Playfair Display',Georgia,'Songti SC',serif;font-weight:600;color:#fff}

article[id]{scroll-margin-top:104px}

/* ---------- 顶栏 ---------- */
.bar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px clamp(12px,3vw,34px);
  background:rgba(26,14,15,.62);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 12px 34px rgba(0,0,0,.35);
}

.brand-mark{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 6px;
  text-decoration:none;
  color:#fff;
  flex:0 0 auto;
}

.brand-mark img{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid var(--line);
}

.brand-mark .dot{
  width:16px;
  height:16px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 0 18px rgba(255,0,0,.7);
}

.brand-name{
  font-family:'Playfair Display',serif;
  font-size:1.08rem;
  letter-spacing:.06em;
  white-space:nowrap;
}

.pills{flex:1 1 auto;min-width:0}

.pill-list{
  display:flex;
  align-items:center;
  gap:8px;
  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:42px;
  padding:0 18px;
  border-radius:999px;
  font-size:.94rem;
  white-space:nowrap;
  text-decoration:none;
  color:var(--text);
  background:var(--glass);
  border:1px solid var(--line);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:background .25s ease,box-shadow .25s ease,transform .25s ease;
}

.pill:hover,.pill:focus-visible{
  background:linear-gradient(120deg,rgba(255,0,0,.34),rgba(139,0,255,.3));
  box-shadow:0 0 0 1px rgba(255,255,255,.25),0 10px 26px rgba(139,0,255,.35);
  transform:translateY(-1px);
  outline:none;
}

.finder{flex:0 0 auto}

.finder input{
  width:clamp(120px,16vw,208px);
  min-height:42px;
  padding:0 16px;
  font:inherit;
  font-size:.92rem;
  color:var(--text);
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:border-color .2s ease,background .2s ease;
}
.finder input::placeholder{color:#ad9898}
.finder input:focus{
  outline:none;
  border-color:rgba(255,0,0,.6);
  background:rgba(255,255,255,.14);
}

/* ---------- 主视觉 ---------- */
.hero{
  position:relative;
  display:grid;
  gap:clamp(18px,3.4vw,38px);
  align-content:center;
  justify-items:end;
  min-height:70vh;
  padding:clamp(26px,5vw,64px) clamp(14px,4vw,58px) 0;
}

.hero-copy{
  display:grid;
  gap:12px;
  justify-items:end;
  max-width:800px;
  text-align:right;
}

.kicker{
  margin:0;
  font-size:.8rem;
  letter-spacing:.34em;
  color:#ffb0b0;
}

.hero-copy h1{
  margin:0;
  font-size:clamp(2rem,5.4vw,3.6rem);
  line-height:1.14;
  letter-spacing:.01em;
  text-shadow:0 0 46px rgba(255,0,0,.4);
}

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

.hero-art{
  position:relative;
  justify-self:stretch;
  width:100%;
  height:clamp(170px,30vh,300px);
  margin:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:var(--radius) var(--radius) 0 0;
  background:
    linear-gradient(140deg,rgba(255,0,0,.26),rgba(139,0,255,.26)),
    rgba(255,255,255,.05);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.9;
  mix-blend-mode:luminosity;
}

.hero-art .glow{
  position:absolute;
  top:-25%;
  width:30%;
  height:160%;
  filter:blur(20px);
  mix-blend-mode:screen;
  pointer-events:none;
}
.hero-art .g1{
  left:14%;
  background:linear-gradient(180deg,rgba(255,0,0,.85),rgba(255,0,0,0));
  transform:rotate(13deg);
}
.hero-art .g2{
  right:16%;
  background:linear-gradient(180deg,rgba(139,0,255,.85),rgba(139,0,255,0));
  transform:rotate(-11deg);
}

.hero-art .band{
  position:absolute;
  left:-8%;
  right:-8%;
  bottom:0;
  height:58%;
  mix-blend-mode:screen;
  background:linear-gradient(90deg,rgba(255,0,0,.62),rgba(139,0,255,.55));
  clip-path:polygon(0 100%,0 42%,100% 0,100% 100%);
}

/* ---------- 主体 ---------- */
main{flex:1 0 auto}

.shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(238px,26vw,318px);
  align-items:start;
  gap:clamp(16px,2.6vw,32px);
  padding:clamp(22px,4vw,46px) clamp(12px,4vw,58px) clamp(30px,5vw,58px);
}

.prose{min-width:0}

.prose article{
  position:relative;
  margin:0 0 clamp(16px,2.4vw,26px);
  padding:clamp(20px,3vw,34px);
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--glass);
  backdrop-filter:blur(16px) saturate(130%);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  box-shadow:var(--shadow);
  animation:rise .6s ease both;
}

.prose article:nth-child(1){animation-delay:.02s}
.prose article:nth-child(2){animation-delay:.07s}
.prose article:nth-child(3){animation-delay:.12s}
.prose article:nth-child(4){animation-delay:.17s}
.prose article:nth-child(5){animation-delay:.22s}
.prose article:nth-child(6){animation-delay:.27s}
.prose article:nth-child(7){animation-delay:.32s}

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

.prose article:hover{
  background:var(--glass-2);
  transition:background .3s ease;
}

.prose h2{
  margin:0 0 .62em;
  font-size:clamp(1.38rem,2.5vw,1.86rem);
  line-height:1.3;
}

.prose h3{
  margin:1.1em 0 .5em;
  font-size:clamp(1.1rem,1.9vw,1.28rem);
  line-height:1.4;
}

.prose h2 span,.prose h3 span,.rail-card h2 span{
  position:relative;
  display:inline-block;
  padding-bottom:.2em;
}

.prose h2 span::after,.rail-card h2 span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--red),var(--violet));
  opacity:.92;
}

.prose h3 span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:rgba(255,255,255,.28);
}

.prose p{margin:0 0 1em}
.prose p:last-child{margin-bottom:0}
.prose ul,.prose ol{pargin:0 0 1em;padding-left:1.35em}
.prose li{margin:.3em 0}
.prose strong{color:#fff}
.prose a{text-decoration:none;border-bottom:1px solid rgba(255,154,154,.5)}
.prose a:hover{color:#fff;border-bottom-color:#fff}
.prose blockquote{
  margin:1.2em 0;
  padding:.7em 1.1em;
  border-left:2px solid var(--red);
  border-radius:0 16px 16px 0;
  background:rgba(255,255,255,.07);
  color:var(--muted);
}
.prose figure{margin:1.2em 0}
.prose figure img{border-radius:18px;border:1px solid var(--line)}
.prose figcaption{font-size:.86rem;color:#a89696;margin-top:.5em}
.prose table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.95rem}
.prose th,.prose td{padding:.55em .7em;border-bottom:1px solid rgba(255,255,255,.14);text-align:left}

/* ---------- 侧栏 ---------- */
.rail{
  display:grid;
  gap:14px;
  position:sticky;
  top:98px;
}

.rail-card{
  padding:16px 18px 18px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(14px) saturate(130%);
  -webkit-backdrop-filter:blur(14px) saturate(130%);
  box-shadow:var(--shadow);
}

.rail-card h2{
  margin:0 0 .7em;
  font-size:1.02rem;
  letter-spacing:.02em;
}

.rail-list{
  display:grid;
  gap:5px;
  margin:0;
  padding:0;
  list-style:none;
}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border-radius:13px;
  font-size:.93rem;
  color:var(--muted);
  text-decoration:none;
  border:1px solid transparent;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}

.rail-list a:hover,.rail-list a:focus-visible{
  color:#fff;
  background:linear-gradient(120deg,rgba(255,0,0,.26),rgba(139,0,255,.24));
  border-color:var(--line);
  outline:none;
}

.rail-back{margin:0}
.rail-back a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  font-size:.92rem;
  text-decoration:none;
  color:var(--text);
  background:var(--glass);
  border:1px solid var(--line);
}
.rail-back a:hover{
  background:linear-gradient(120deg,rgba(255,0,0,.34),rgba(139,0,255,.3));
  color:#fff;
}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:clamp(12px,2.6vw,28px);
  padding:clamp(20px,3.6vw,38px) clamp(12px,4vw,58px) clamp(26px,4vw,44px);
  border-top:1px solid var(--line);
  background:rgba(26,14,15,.55);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.foot-big{
  font-family:'Playfair Display',serif;
  font-size:clamp(1.45rem,4.4vw,2.35rem);
  line-height:1.1;
  letter-spacing:.02em;
  background:linear-gradient(92deg,#ff6f6f,var(--red) 42%,var(--violet));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  white-space:nowrap;
}

.foot-nav{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-left:auto;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 12px;
  border-radius:999px;
  font-size:.91rem;
  color:var(--muted);
  text-decoration:none;
  transition:background .2s ease,color .2s ease;
}

.foot-nav a:hover,.foot-nav a:focus-visible{
  color:#fff;
  background:rgba(255,255,255,.1);
  outline:none;
}

.foot-legal p{
  margin:0;
  font-size:.84rem;
  color:#a29191;
  white-space:nowrap;
}

/* ---------- 响应式 ---------- */
@media (max-width:980px){
  .shell{grid-template-columns:1fr}
  .rail{position:static;order:2}
  .prose article{margin-bottom:16px}
}

@media (max-width:820px){
  .bar{flex-wrap:wrap}
  .pills{order:3;flex:1 1 100%}
  .finder{margin-left:auto}
  .finder input{width:clamp(110px,34vw,190px)}
  .hero{justify-items:stretch;min-height:auto;padding-top:clamp(20px,5vw,34px)}
  .hero-copy{justify-items:start;text-align:left}
  .hero-art{height:clamp(150px,26vh,220px)}
  .foot-nav{margin-left:0;width:100%;order:3}
  .foot-legal{order:2;margin-left:auto}
}

@media (max-width:560px){
  body{font-size:16px}
  .brand-name{font-size:1rem}
  .pill{padding:0 14px;font-size:.9rem}
  .hero-copy h1{font-size:clamp(1.72rem,7.4vw,2.2rem)}
  .kicker{letter-spacing:.22em;font-size:.74rem}
  .foot{gap:10px}
  .foot-nav a{padding:0 9px;font-size:.86rem}
  .foot-legal p{font-size:.78rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .prose article{animation:none}
  .pill,.rail-list a,.foot-nav a{transition:none}
}

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