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

:root{
  --ink:#26171f;
  --ink-deep:#170d13;
  --mag:#ff0080;
  --fuch:#ff00ff;
  --violet:#7a2bff;
  --text:#fdf1f9;
  --soft:rgba(253,241,249,.78);
  --muted:rgba(253,241,249,.55);
  --line:rgba(255,255,255,.14);
  --glass:rgba(255,255,255,.055);
  --glass-hi:rgba(255,255,255,.10);
  --r:18px;
  --shadow:0 18px 44px rgba(10,2,8,.42);
  --header-h:132px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  color:var(--text);
  background:var(--ink-deep);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* 极光网格层 */
body::before{
  content:"";
  position:fixed;
  inset:-25%;
  z-index:-2;
  background:
    radial-gradient(42% 38% at 14% 12%,rgba(255,0,128,.62),transparent 68%),
    radial-gradient(48% 44% at 84% 6%,rgba(255,0,255,.5),transparent 70%),
    radial-gradient(40% 42% at 72% 74%,rgba(122,43,255,.46),transparent 72%),
    radial-gradient(46% 34% at 18% 88%,rgba(255,0,150,.4),transparent 70%),
    conic-gradient(from 210deg at 50% 50%,#2b1421,#40112f,#22101c,#33122a,#2b1421);
  filter:blur(34px) saturate(128%);
  animation:aurora 24s ease-in-out infinite alternate;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:.22;
  background-image:
    repeating-linear-gradient(90deg,rgba(255,255,255,.34) 0 1px,transparent 1px 88px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.22) 0 1px,transparent 1px 88px),
    linear-gradient(180deg,rgba(23,13,19,.5),rgba(23,13,19,.82) 62%);
  mix-blend-mode:screen;
}
@keyframes aurora{
  from{transform:translate3d(-4%,-3%,0) scale(1.04) rotate(-1deg)}
  to{transform:translate3d(4%,3%,0) scale(1.16) rotate(1deg)}
}

/* 基础 */
a{color:var(--text);text-decoration:none}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{font-weight:600;letter-spacing:-.015em;margin:0}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}

.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;
}

.skip{
  position:absolute;left:12px;top:-64px;z-index:99;
  background:var(--mag);color:#fff;
  padding:10px 16px;border-radius:999px;font-size:16px;
  transition:top .2s ease;
}
.skip:focus{top:12px}

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

/* 顶部两行 */
.site-header{
  position:sticky;
  top:0;
  z-index:40;
  padding:14px clamp(16px,4vw,48px) 0;
  background:linear-gradient(180deg,rgba(23,13,19,.94),rgba(23,13,19,.72) 72%,rgba(23,13,19,0));
  backdrop-filter:blur(14px) saturate(130%);
  -webkit-backdrop-filter:blur(14px) saturate(130%);
}

.brand-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-bottom:10px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  font-weight:600;
  letter-spacing:.02em;
}
.brand .mark,
.brand img{
  width:30px;height:30px;border-radius:10px;object-fit:cover;
  box-shadow:0 0 0 1px var(--line);
}
.brand-name{
  font-size:19px;
  background:linear-gradient(92deg,#fff,var(--fuch) 46%,var(--mag) 78%,#fff);
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:shine 9s linear infinite;
}
@keyframes shine{
  from{background-position:0% 0}
  to{background-position:220% 0}
}

.menu{
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  padding-bottom:4px;
}
.menu::-webkit-scrollbar{display:none}

.menu p{
  display:flex;
  gap:8px;
  min-width:max-content;
  padding-bottom:8px;
}

.menu p a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:9px 17px;
  border-radius:999px;
  font-size:16px;
  line-height:1.3;
  white-space:nowrap;
  color:var(--soft);
  background:var(--glass);
  border:1px solid var(--line);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:transform .18s ease,border-color .18s ease,color .18s ease,background .18s ease;
}
.menu p a:hover,
.menu p a:focus-visible{
  color:#fff;
  border-color:rgba(255,0,255,.6);
  background:linear-gradient(120deg,rgba(255,0,128,.34),rgba(255,0,255,.28));
  transform:translateY(-2px);
}

/* 正文骨架 */
main{
  display:block;
  padding:0 clamp(16px,4vw,48px) 0;
}

.page{
  max-width:1180px;
  margin:0 auto;
}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(140px,22vw,260px);
  gap:clamp(16px,3vw,44px);
  align-items:center;
  min-height:45vh;
  padding:clamp(24px,5vh,54px) 0 clamp(26px,5vh,52px);
  border-bottom:1px solid var(--line);
}

.hero-copy{
  order:2;
  text-align:right;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:14px;
}

.hero-copy h1{
  font-size:clamp(27px,5vw,50px);
  line-height:1.14;
  letter-spacing:-.03em;
  background:linear-gradient(100deg,#fff 6%,#ffd9ee 36%,var(--fuch) 64%,var(--mag) 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  text-wrap:balance;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding:5px 13px;
  border-radius:999px;
  font-size:16px;
  line-height:1.4;
  color:#fff;
  background:linear-gradient(100deg,var(--mag),var(--fuch));
  box-shadow:0 10px 26px rgba(255,0,128,.34);
  transform:rotate(-2deg);
}

.lede{
  max-width:56ch;
  font-size:17px;
  line-height:1.78;
  color:var(--soft);
}

.hero-jump{margin-top:2px}

.pill-cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:11px 24px;
  border-radius:999px;
  font-size:16px;
  font-weight:500;
  color:#1a0c14;
  background:linear-gradient(100deg,#ffffff,#ffe3f4 60%,#ffd0ea);
  box-shadow:0 14px 32px rgba(255,0,135,.3);
  transition:transform .18s ease,box-shadow .18s ease;
}
.pill-cta:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(255,0,135,.42)}

.hero-media{
  order:1;
  display:flex;
  justify-content:flex-start;
  align-items:center;
}
.hero-art,
.hero-media img{
  width:100%;
  max-width:clamp(140px,22vw,260px);
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.24);
  box-shadow:var(--shadow);
  filter:saturate(118%);
}

/* 内容 + 侧栏 */
.split{
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:clamp(24px,4vw,56px);
  align-items:start;
  padding-top:clamp(20px,3vh,34px);
}

.body-wrap{
  min-width:0;
  padding-bottom:clamp(40px,7vh,88px);
}

.body-wrap > article{
  position:relative;
  padding:clamp(26px,4vh,44px) 0;
  border-top:1px solid rgba(255,255,255,.1);
  scroll-margin-top:var(--header-h);
}
.body-wrap > article:first-child{
  border-top:0;
  padding-top:6px;
}

.body-wrap h2{
  font-size:clamp(21px,2.7vw,29px);
  line-height:1.3;
  letter-spacing:-.02em;
  margin:0 0 .55em;
}
.body-wrap h3{
  font-size:19px;
  line-height:1.4;
  margin:1.4em 0 .5em;
  color:#fff;
}
.body-wrap p{
  margin:0 0 1.05em;
  color:var(--soft);
  font-size:17px;
  line-height:1.82;
}
.body-wrap ul,
.body-wrap ol{
  margin:0 0 1.1em;
  padding-left:1.15em;
  list-style:disc;
  color:var(--soft);
}
.body-wrap ol{list-style:decimal}
.body-wrap li{margin:.35em 0;line-height:1.75}
.body-wrap strong{color:#fff;font-weight:600}
.body-wrap a{
  color:#ffb3dd;
  text-decoration:underline;
  text-underline-offset:3px;
}
.body-wrap a:hover{color:#fff}
.body-wrap blockquote{
  margin:1.2em 0;
  padding:14px 20px;
  border-left:2px solid var(--fuch);
  border-radius:0 var(--r) var(--r) 0;
  background:var(--glass);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  color:var(--soft);
}
.body-wrap blockquote p:last-child{margin-bottom:0}
.body-wrap img{
  border-radius:var(--r);
  border:1px solid var(--line);
  margin:1.1em 0;
}

/* 侧栏 */
.rail{
  position:sticky;
  top:calc(var(--header-h) + 12px);
  padding:20px 18px;
  border-radius:var(--r);
  background:var(--glass);
  border:1px solid var(--line);
  backdrop-filter:blur(16px) saturate(130%);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
  box-shadow:var(--shadow);
}
.rail-kicker{
  display:block;
  font-size:16px;
  letter-spacing:.16em;
  color:rgba(255,179,221,.92);
  margin-bottom:2px;
}
.rail-title{
  font-size:19px;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.rail-list{
  counter-reset:rail;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.rail-list li{counter-increment:rail}
.rail-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:8px 8px 8px 4px;
  border-radius:11px;
  font-size:16px;
  line-height:1.4;
  color:var(--soft);
  transition:background .18s ease,color .18s ease,padding-left .18s ease;
}
.rail-list a::before{
  content:counter(rail,decimal-leading-zero);
  font-size:16px;
  font-variant-numeric:tabular-nums;
  color:rgba(255,0,255,.9);
  min-width:1.9em;
}
.rail-list a:hover{
  color:#fff;
  background:rgba(255,255,255,.09);
  padding-left:8px;
}

/* 页脚 */
.site-footer{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1.5fr;
  gap:clamp(20px,3vw,40px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(30px,5vh,54px) clamp(16px,4vw,48px) 26px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,0));
}
.f-brand{min-width:0}
.f-mark img,
.f-mark .mark{
  width:44px;height:44px;border-radius:13px;object-fit:cover;
  border:1px solid var(--line);
}
.f-name{
  margin-top:10px;
  font-size:19px;
  font-weight:600;
  background:linear-gradient(96deg,#fff,var(--fuch),var(--mag));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.f-kw{
  margin-top:4px;
  font-size:16px;
  color:var(--muted);
  letter-spacing:.06em;
}
.f-title{
  font-size:16px;
  letter-spacing:.16em;
  color:rgba(255,179,221,.9);
  margin-bottom:10px;
}
.f-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.f-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  font-size:16px;
  line-height:1.4;
  color:var(--soft);
  transition:color .18s ease,transform .18s ease;
}
.f-list a:hover{color:#fff;transform:translateX(3px)}

.sub-form{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:4px;
}
.sub-form input{
  flex:1 1 130px;
  min-width:0;
  min-height:44px;
  padding:10px 14px;
  font:inherit;
  font-size:16px;
  color:var(--text);
  background:rgba(255,255,255,.07);
  border:1px solid var(--line);
  border-radius:999px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.sub-form input::placeholder{color:rgba(253,241,249,.5)}
.sub-form input:focus{
  border-color:rgba(255,0,255,.66);
  outline:none;
}
.sub-form button{
  flex:0 0 auto;
  min-height:44px;
  padding:10px 22px;
  font:inherit;
  font-size:16px;
  font-weight:500;
  color:#1a0c14;
  background:linear-gradient(100deg,#fff,#ffcfe9);
  border:0;
  border-radius:999px;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease;
}
.sub-form button:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(255,0,128,.34);
}

.foot-base{
  grid-column:1 / -1;
  margin-top:8px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.09);
  font-size:16px;
  color:var(--muted);
}

/* 滚动显现 */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s cubic-bezier(.2,.75,.2,1),transform .7s cubic-bezier(.2,.75,.2,1);
}
.reveal.in{opacity:1;transform:none}

/* 断点 */
@media (max-width:900px){
  :root{--header-h:128px}
  .split{grid-template-columns:minmax(0,1fr)}
  .rail{
    position:static;
    order:-1;
    margin-bottom:8px;
  }
  .rail-list{
    flex-direction:row;
    flex-wrap:wrap;
    gap:6px;
  }
  .rail-list a{
    padding:8px 12px;
    min-height:40px;
    background:rgba(255,255,255,.06);
    border-radius:999px;
  }
  .rail-list a::before{display:none}
  .rail-list a:hover{padding-left:12px}
  .site-footer{grid-template-columns:1fr 1fr}
  .f-news{grid-column:1 / -1}
}

@media (max-width:620px){
  :root{--header-h:124px}
  body{font-size:16px}
  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
    padding-top:18px;
  }
  .hero-copy{
    order:1;
    text-align:left;
    align-items:flex-start;
  }
  .hero-media{
    order:2;
    justify-content:flex-end;
    margin-top:4px;
  }
  .hero-art,
  .hero-media img{max-width:112px;border-radius:18px}
  .lede{font-size:16px}
  .rail{padding:16px 14px}
  .rail-list{gap:5px}
  .rail-title{font-size:18px}
  .site-footer{grid-template-columns:1fr;gap:22px}
  .f-news{grid-column:auto}
  .body-wrap > article{scroll-margin-top:var(--header-h)}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body::before{animation:none}
  .brand-name{animation:none}
  .reveal{opacity:1;transform:none;transition:none}
  .menu p a,.pill-cta,.sub-form button,.f-list a{transition:none}
}

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