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

:root{
  --ink:#1f1726;
  --plum:#56228b;
  --clay:#8b4513;
  --bg:#120e18;
  --panel:#1c1526;
  --fg:#f1ecf7;
  --dim:#bdaecb;
  --line:rgba(241,236,247,.13);
  --lift:#a469e0;
  --ember:#c07a38;
  --rail:250px;
  --r:18px;
}

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

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

body{
  margin:0;
  background-color:var(--bg);
  color:var(--fg);
  font-family:'Poppins','PingFang SC','Hiragino Sans GB','Noto Sans SC','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.78;
  font-weight:300;
  letter-spacing:.012em;
  background-image:
    radial-gradient(58vw 55vw at 4% -8%, rgba(86,34,139,.40), transparent 64%),
    radial-gradient(46vw 46vw at 104% 26%, rgba(139,69,19,.26), transparent 62%),
    radial-gradient(74vw 42vw at 48% 118%, rgba(86,34,139,.22), transparent 70%);
  background-attachment:fixed;
  background-repeat:no-repeat;
}

::selection{background:rgba(139,69,19,.55);color:#fff}

a{color:var(--lift)}

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

.shell{min-height:100vh}

/* ---------- 左侧固定竖排 ---------- */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  z-index:30;
  padding:26px 20px 44px;
  overflow-y:auto;
  background:linear-gradient(185deg, rgba(31,23,38,.97) 0%, rgba(18,14,24,.99) 72%);
  border-right:1px solid var(--line);
  border-radius:0 34px 52px 0 / 0 46px 70px 0;
  box-shadow:22px 0 60px -40px rgba(0,0,0,.9);
}
.rail::after{
  content:"";
  position:absolute;
  left:-52px;
  bottom:-58px;
  width:190px;
  height:190px;
  border-radius:62% 38% 55% 45% / 48% 62% 38% 52%;
  background:radial-gradient(circle at 34% 30%, rgba(139,69,19,.55), rgba(86,34,139,.18) 68%, transparent 74%);
  filter:blur(2px);
  pointer-events:none;
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:46px;
  padding:6px 8px;
  text-decoration:none;
  color:#fff;
  border-radius:16px 20px 18px 22px;
  position:relative;
  z-index:1;
}
.brand-name{
  font-family:'Righteous','Poppins',system-ui,sans-serif;
  font-size:19px;
  letter-spacing:.03em;
  line-height:1.3;
}
.brand-mark{
  flex:none;
  width:30px;
  height:30px;
  border-radius:58% 42% 50% 50% / 46% 58% 42% 54%;
  background:linear-gradient(140deg,var(--ember),var(--plum) 78%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand-img{
  flex:none;
  width:34px;
  height:34px;
  border-radius:50%;
  object-fit:cover;
}

.rail-title{
  font-family:'Righteous','Poppins',system-ui,sans-serif;
  font-weight:400;
  font-size:15px;
  letter-spacing:.34em;
  color:var(--dim);
  margin:30px 0 12px 10px;
  line-height:1.4;
}
.rail-rule{
  border:0;
  height:2px;
  width:66px;
  margin:0 0 10px 10px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--ember),rgba(164,105,224,.1));
}

.rail-nav ul{
  list-style:none;
  margin:14px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
.rail-nav li{
  animation:slide-in .5s cubic-bezier(.22,.9,.3,1) both;
  animation-delay:calc(var(--i) * 55ms);
}
.rail-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:9px 12px;
  font-size:16px;
  line-height:1.45;
  color:var(--dim);
  text-decoration:none;
  border-radius:14px 20px 16px 22px / 18px 22px 16px 20px;
  transition:color .22s ease, background-color .22s ease, transform .22s ease;
}
.rail-nav a:hover,
.rail-nav a:focus-visible,
.rail-nav a.is-on{
  color:#fff;
  background:linear-gradient(100deg, rgba(86,34,139,.52), rgba(139,69,19,.20));
  transform:translateX(4px);
}
.dot{
  flex:none;
  width:9px;
  height:9px;
  border-radius:60% 40% 55% 45% / 50% 62% 38% 50%;
  background:linear-gradient(150deg,var(--lift),var(--ember));
  opacity:.75;
  transition:opacity .22s ease, transform .22s ease;
}
.rail-nav a:hover .dot,
.rail-nav a.is-on .dot{opacity:1;transform:scale(1.35)}

/* ---------- 右侧舞台 ---------- */
.stage{
  margin-left:var(--rail);
  padding:0 clamp(16px,4vw,52px);
}

.ticker{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:8px 2px;
  background:linear-gradient(180deg, rgba(18,14,24,.94), rgba(18,14,24,.62));
  backdrop-filter:blur(9px);
  -webkit-backdrop-filter:blur(9px);
  border-bottom:1px solid var(--line);
  scroll-margin-top:0;
}
.ticker-blob{
  flex:none;
  width:14px;
  height:14px;
  border-radius:64% 36% 50% 50% / 44% 60% 40% 56%;
  background:linear-gradient(140deg,var(--ember),var(--plum));
}
.ticker-word{
  font-size:15px;
  letter-spacing:.2em;
  color:var(--dim);
  white-space:nowrap;
}
.ticker-line{
  flex:1;
  height:1px;
  border-radius:2px;
  background:linear-gradient(90deg, rgba(164,105,224,.45), transparent);
}

main{padding:clamp(18px,3vw,34px) 0 0}

article{
  max-width:940px;
  display:flex;
  flex-direction:column;
  gap:clamp(18px,2.6vw,30px);
}

article > div{
  background:linear-gradient(180deg, rgba(41,30,52,.86), rgba(26,19,34,.9));
  border:1px solid var(--line);
  border-bottom:3px solid var(--clay);
  border-radius:var(--r) var(--r) 22px 22px / var(--r) var(--r) 26px 20px;
  padding:clamp(20px,3.2vw,36px);
  box-shadow:0 26px 54px -38px rgba(0,0,0,.95);
  transition:transform .3s ease, border-color .3s ease;
}
article > div:hover{border-bottom-color:var(--lift)}
article > div[id]{scroll-margin-top:76px}
article > div > *:last-child{margin-bottom:0}

/* ---------- 首屏 ---------- */
article > div.hero{
  position:relative;
  overflow:hidden;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-end;
  gap:clamp(16px,3vw,26px);
  padding:clamp(26px,5vw,52px) 0 0;
  background:none;
  border:0;
  box-shadow:none;
}
.hero-copy{
  position:relative;
  z-index:2;
  text-align:right;
  max-width:38ch;
  margin-left:auto;
}
.kicker{
  margin:0 0 10px;
  font-size:15px;
  letter-spacing:.32em;
  color:var(--ember);
  text-transform:none;
}
.hero h1{
  margin:0 0 14px;
  font-family:'Righteous','Poppins','PingFang SC',system-ui,sans-serif;
  font-weight:400;
  font-size:clamp(30px,4.8vw,50px);
  line-height:1.24;
  letter-spacing:.005em;
  color:#fff;
  text-shadow:0 18px 44px rgba(0,0,0,.55);
}
.lede{
  margin:0;
  color:var(--dim);
  font-size:17px;
  line-height:1.7;
}
.hero-media{
  position:relative;
  z-index:2;
  width:100%;
}
.hero-img{
  display:block;
  width:100%;
  height:clamp(180px,32vh,330px);
  object-fit:cover;
  border-radius:28px 28px 20px 20px / 34px 34px 24px 24px;
  box-shadow:0 34px 68px -34px rgba(0,0,0,.9);
}
.hero-band{
  position:absolute;
  inset:auto 0 0 0;
  height:150px;
  z-index:1;
  background:linear-gradient(90deg, rgba(86,34,139,.55), rgba(139,69,19,.48));
  clip-path:polygon(0 58%, 100% 0, 100% 100%, 0 100%);
  opacity:.75;
}

/* ---------- 正文排版 ---------- */
article h2{
  margin:0 0 12px;
  font-family:'Righteous','Poppins','PingFang SC',system-ui,sans-serif;
  font-weight:400;
  font-size:clamp(21px,2.5vw,28px);
  line-height:1.38;
  color:#fff;
  letter-spacing:.006em;
}
article h2 + hr{
  border:0;
  height:2px;
  width:78px;
  margin:0 0 20px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--lift),var(--clay));
}
article h3{
  margin:26px 0 10px;
  font-size:19px;
  font-weight:600;
  line-height:1.5;
  color:#fff;
}
article p{margin:0 0 14px}
article ul,article ol{margin:0 0 16px;padding-left:1.35em}
article li{margin:0 0 8px}
article ul li::marker{color:var(--ember)}
article ol li::marker{color:var(--lift)}
article a{color:var(--lift);text-underline-offset:3px}
article strong{color:#fff;font-weight:600}
article hr{
  border:0;
  height:1px;
  margin:22px 0;
  background:linear-gradient(90deg,var(--line),transparent);
}
article img{max-width:100%;height:auto;border-radius:16px}
article blockquote{
  margin:0 0 16px;
  padding:14px 18px;
  border-left:3px solid var(--clay);
  border-radius:0 16px 18px 0;
  background:rgba(86,34,139,.16);
  color:var(--dim);
}
article time{color:var(--ember);font-size:15px;letter-spacing:.04em}

/* ---------- 页脚 ---------- */
.site-foot{
  margin-top:clamp(44px,7vw,86px);
  padding:clamp(26px,4vw,44px) 0 38px;
  border-top:1px solid var(--line);
  max-width:940px;
}
.foot-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:clamp(22px,4vw,52px);
  align-items:start;
}
.foot-blob{
  display:block;
  width:44px;
  height:44px;
  margin-bottom:14px;
  border-radius:62% 38% 52% 48% / 44% 60% 40% 56%;
  background:linear-gradient(140deg,var(--ember),var(--plum) 80%);
  opacity:.9;
}
.foot-addr{
  font-style:normal;
  font-family:'Righteous','Poppins','PingFang SC',system-ui,sans-serif;
  font-size:19px;
  line-height:1.4;
  color:#fff;
  margin-bottom:14px;
}
.foot-links{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 16px;
  font-size:16px;
  text-decoration:none;
  color:var(--dim);
  border:1px solid var(--line);
  border-radius:16px 20px 18px 22px / 20px 22px 18px 20px;
  transition:color .22s ease, border-color .22s ease, background-color .22s ease;
}
.foot-links a:hover,
.foot-links a:focus-visible{
  color:#fff;
  border-color:var(--clay);
  background:rgba(139,69,19,.28);
}

.foot-nav dl{
  margin:0;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:0 18px;
}
.foot-nav dt{
  grid-column:1 / -1;
  font-size:15px;
  letter-spacing:.24em;
  color:var(--ember);
  margin-bottom:8px;
}
.foot-nav dd{
  margin:0;
}
.foot-nav dd a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 0;
  font-size:16px;
  color:var(--dim);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .22s ease, border-color .22s ease;
}
.foot-nav dd a:hover,
.foot-nav dd a:focus-visible{
  color:#fff;
  border-bottom-color:var(--clay);
}

.foot-copy{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:clamp(26px,4vw,42px) 0 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:15px;
  color:var(--dim);
  letter-spacing:.05em;
}
.to-top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 18px;
  font-size:15px;
  text-decoration:none;
  color:var(--fg);
  border:1px solid var(--line);
  border-radius:15px 19px 17px 21px;
  transition:background-color .22s ease, border-color .22s ease;
}
.to-top:hover,
.to-top:focus-visible{
  background:rgba(86,34,139,.4);
  border-color:var(--lift);
}

@keyframes slide-in{
  from{opacity:0;transform:translateX(-12px)}
  to{opacity:1;transform:translateX(0)}
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .rail{
    position:static;
    width:auto;
    padding:16px 16px 18px;
    border-right:0;
    border-bottom:1px solid var(--line);
    border-radius:0 0 26px 26px / 0 0 34px 34px;
    box-shadow:none;
    overflow:visible;
  }
  .rail::after{display:none}
  .rail-title{margin:18px 0 10px 6px;font-size:14px}
  .rail-rule{margin-left:6px;width:52px}
  .rail-nav ul{
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px;
  }
  .rail-nav a{
    min-height:44px;
    padding:9px 14px;
    background:rgba(255,255,255,.045);
  }
  .rail-nav a:hover,
  .rail-nav a.is-on{transform:none}
  .stage{margin-left:0;padding:0 16px}
  .ticker{min-height:44px}
  article{max-width:none}
  article > div.hero{min-height:auto;padding:26px 0 0;align-items:stretch}
  .hero-copy{max-width:none;margin-left:0}
  .hero h1{font-size:clamp(27px,7vw,38px)}
  .hero-band{height:96px}
  .foot-grid{grid-template-columns:1fr}
  .foot-nav dl{grid-template-columns:1fr}
  .site-foot{max-width:none}
  .foot-copy{font-size:15px}
}

@media (max-width:420px){
  body{font-size:16.5px}
  article > div{padding:18px 16px}
  .brand-name{font-size:18px}
  .foot-links a{padding:8px 14px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-delay:0ms !important;
    transition-duration:.001ms !important;
  }
}

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