@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

:root{
  --violet:#6514ff;
  --magenta:#bf00ff;
  --ink:#1c1726;
  --ink2:#251d33;
  --paper:#f6f2ff;
  --mist:#b6aacb;
  --line:rgba(191,0,255,.34);
  --bar:66px;
}

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

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

body{
  margin:0;
  background-color:var(--ink);
  background-image:
    radial-gradient(rgba(101,20,255,.34) 1.6px,transparent 1.7px),
    radial-gradient(rgba(191,0,255,.2) 1.6px,transparent 1.7px);
  background-size:26px 26px,26px 26px;
  background-position:0 0,13px 13px;
  animation:dots 22s linear infinite;
  color:var(--paper);
  font-family:Merriweather,Georgia,"Songti SC","PingFang SC",serif;
  font-size:17px;
  line-height:1.78;
}

@keyframes dots{
  from{background-position:0 0,13px 13px}
  to{background-position:26px 26px,39px 39px}
}

h1,h2,h3{
  font-family:"Abril Fatface",Merriweather,Georgia,serif;
  font-weight:400;
  line-height:1.14;
  letter-spacing:.01em;
  margin:0;
}

p{margin:0 0 18px}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
ul,ol,menu{margin:0;padding:0;list-style:none}

:focus-visible{outline:3px solid var(--magenta);outline-offset:3px}

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

/* ---------- 顶栏 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--ink);
  border-bottom:4px solid var(--violet);
}

.top-in{
  max-width:1200px;
  margin:0 auto;
  padding:9px 20px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
}

.menu-d{position:relative;justify-self:start}

.menu-d summary{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 18px;
  background:var(--violet);
  color:#fff;
  font-size:16px;
  cursor:pointer;
  list-style:none;
  transition:background .22s ease,transform .22s ease;
}
.menu-d summary::-webkit-details-marker{display:none}
.menu-d summary:hover{background:var(--magenta);transform:translateY(-2px)}

.bars{
  width:18px;
  height:2px;
  background:currentColor;
  box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor;
}

.menu-d menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  z-index:70;
  min-width:240px;
  padding:8px;
  background:var(--ink2);
  border:2px solid var(--magenta);
  box-shadow:10px 10px 0 rgba(191,0,255,.25);
}

.menu-d menu a{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  padding:8px 12px;
  font-size:16px;
  transition:background .2s ease,color .2s ease;
}
.menu-d menu a:hover,
.menu-d menu a:focus-visible{background:var(--magenta);color:#fff}

.num{
  font-family:"Abril Fatface",Georgia,serif;
  font-size:15px;
  color:var(--magenta);
  letter-spacing:.06em;
}
.menu-d menu a:hover .num{color:#fff}

.brand{
  justify-self:center;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:6px 12px;
  font-family:"Abril Fatface",Georgia,serif;
  font-size:21px;
  letter-spacing:.02em;
  white-space:nowrap;
}
.brand img{width:34px;height:34px}

.cta{
  justify-self:end;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 20px;
  background:var(--magenta);
  color:#fff;
  font-size:16px;
  transition:background .22s ease,transform .22s ease;
}
.cta:hover{background:var(--violet);transform:translateY(-2px)}

/* ---------- 粘性锚点条 ---------- */
.rail{
  position:sticky;
  top:var(--bar);
  z-index:55;
  background:var(--ink2);
  border-bottom:1px solid var(--line);
}
.rail-in{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  gap:4px;
  overflow-x:auto;
  scrollbar-width:none;
}
.rail-in::-webkit-scrollbar{display:none}
.rail-in a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 14px;
  font-size:16px;
  color:var(--mist);
  border-bottom:3px solid transparent;
  transition:color .2s ease,border-color .2s ease;
}
.rail-in a:hover,.rail-in a:focus-visible{color:#fff;border-bottom-color:var(--magenta)}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
  border-bottom:8px solid var(--violet);
}

.hero-grid{
  max-width:1200px;
  margin:0 auto;
  padding:40px 20px;
  min-height:calc(100vh - var(--bar) - 44px);
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:50px;
}

.hero-art{
  position:relative;
  margin:0;
  aspect-ratio:4/5;
  background:var(--violet);
  overflow:hidden;
}
.hero-img{width:100%;height:100%;object-fit:cover;filter:saturate(1.1) contrast(1.05)}
.hero-blk{
  width:100%;height:100%;
  background:
    linear-gradient(135deg,var(--violet) 0 55%,var(--magenta) 55% 100%);
}
.chip{
  position:absolute;
  right:-26px;top:22px;
  width:96px;height:96px;
  background:var(--magenta);
  transform:rotate(18deg);
  mix-blend-mode:screen;
}
.ring{
  position:absolute;
  left:-32px;bottom:34px;
  width:130px;height:130px;
  border:14px solid var(--paper);
  border-radius:50%;
  opacity:.7;
}

.hero-copy{text-align:right;justify-self:end;max-width:34ch}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  padding:6px 14px;
  background:var(--ink2);
  border-left:4px solid var(--magenta);
  font-size:16px;
  letter-spacing:.06em;
  color:var(--mist);
}
.dot{width:9px;height:9px;background:var(--magenta);border-radius:50%}

.hero h1{
  font-size:clamp(34px,5.6vw,68px);
  color:#fff;
  text-wrap:balance;
  margin-bottom:22px;
}

.hero-desc{
  font-size:17px;
  color:var(--mist);
  margin-bottom:28px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 30px;
  background:var(--violet);
  color:#fff;
  font-size:17px;
  letter-spacing:.06em;
  transition:background .22s ease,transform .22s ease;
}
.btn:hover{background:var(--magenta);transform:translate(-3px,-3px)}

/* ---------- 主体 ---------- */
.shell{
  max-width:1200px;
  margin:0 auto;
  padding:56px 20px 0;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:52px;
  align-items:start;
}

.side{
  position:sticky;
  top:132px;
  padding:20px 16px;
  background:var(--ink2);
  border-top:5px solid var(--magenta);
}
.side h2{font-size:21px;color:#fff;margin-bottom:8px}
.side hr{
  height:3px;
  border:0;
  margin:0 0 16px;
  background:linear-gradient(90deg,var(--magenta),transparent);
}
.side-list li + li{border-top:1px solid rgba(191,0,255,.18)}
.side-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:7px 2px;
  font-size:16px;
  color:var(--mist);
  transition:color .2s ease,padding-left .2s ease;
}
.side-list a:hover{color:#fff;padding-left:6px}
.side-brand{
  margin:18px 0 0;
  font-family:"Abril Fatface",Georgia,serif;
  font-size:16px;
  color:var(--violet);
  letter-spacing:.08em;
}

.body{min-width:0;padding-bottom:64px}

.body > article{
  scroll-margin-top:150px;
  padding:48px 0;
  border-top:1px solid var(--line);
}
.body > article:first-child{border-top:0;padding-top:0}

.body h2{
  font-size:clamp(26px,3.2vw,38px);
  color:#fff;
  margin:0 0 14px;
}
.body h3{
  font-size:clamp(20px,2.4vw,25px);
  color:var(--paper);
  margin:32px 0 12px;
}

.body hr{
  height:6px;
  border:0;
  margin:0 0 26px;
  background:linear-gradient(90deg,var(--violet),var(--magenta) 55%,transparent);
}

.body p,.body li{font-size:17px;color:var(--paper)}
.body ul,.body ol{margin:0 0 22px;padding-left:22px}
.body ul li{list-style:none;position:relative;padding-left:18px;margin-bottom:10px}
.body ul li::before{
  content:"";
  position:absolute;
  left:0;top:.64em;
  width:8px;height:8px;
  background:var(--magenta);
}
.body ol{list-style:decimal;padding-left:24px}
.body ol li{margin-bottom:10px;padding-left:4px}
.body ol li::marker{color:var(--magenta);font-family:"Abril Fatface",Georgia,serif}

.body a{
  color:#fff;
  text-decoration:underline;
  text-decoration-color:var(--magenta);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  transition:color .2s ease;
}
.body a:hover{color:var(--magenta)}

.body blockquote{
  margin:0 0 22px;
  padding:18px 22px;
  background:var(--ink2);
  border-left:6px solid var(--violet);
}
.body blockquote p:last-child{margin-bottom:0}

.body table{width:100%;border-collapse:collapse;margin:0 0 22px;font-size:16px}
.body th,.body td{padding:10px 12px;border:1px solid var(--line);text-align:left}
.body th{background:var(--ink2);color:#fff}

.body figure{margin:0 0 22px}
.body figcaption{font-size:15px;color:var(--mist);padding-top:8px}

/* ---------- 页脚 ---------- */
.foot{
  display:grid;
  grid-template-columns:1fr 1fr 1.25fr;
  gap:48px;
  padding:56px 20px 0;
  max-width:1200px;
  margin:0 auto;
  border-top:8px solid var(--magenta);
}

.foot article{padding-bottom:40px;min-width:0}
.foot h2{font-size:22px;color:#fff;margin:0 0 10px}
.foot hr{
  height:4px;
  border:0;
  margin:0 0 18px;
  background:linear-gradient(90deg,var(--violet),transparent);
}
.foot-brand{
  font-family:"Abril Fatface",Georgia,serif;
  font-size:26px;
  color:var(--violet);
  letter-spacing:.04em;
  margin:0;
}

.foot-list li + li{margin-top:2px}
.foot-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:6px 0;
  font-size:16px;
  color:var(--mist);
  transition:color .2s ease,transform .2s ease;
}
.foot-list a:hover{color:#fff;transform:translateX(4px)}

.sub{display:grid;gap:10px}
.sub input{
  width:100%;
  min-height:46px;
  padding:10px 14px;
  font-family:inherit;
  font-size:16px;
  color:var(--paper);
  background:var(--ink2);
  border:2px solid var(--line);
}
.sub input:focus{outline:none;border-color:var(--magenta)}
.sub button{
  min-height:46px;
  padding:10px 22px;
  font-family:inherit;
  font-size:16px;
  color:#fff;
  background:var(--violet);
  border:0;
  cursor:pointer;
  transition:background .22s ease;
}
.sub button:hover{background:var(--magenta)}

.foot-bar{
  grid-column:1/-1;
  text-align:center;
  padding:20px 0;
  border-top:1px solid var(--line);
  font-size:15px;
  color:var(--mist);
}

/* ---------- 响应式 ---------- */
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:34px;min-height:0;padding:34px 20px 44px}
  .hero-copy{text-align:left;justify-self:start;max-width:100%}
  .hero-art{aspect-ratio:16/10}
  .shell{grid-template-columns:1fr;gap:34px;padding-top:38px}
  .side{position:static}
  .side-list{display:flex;flex-wrap:wrap;gap:4px 10px}
  .side-list li + li{border-top:0}
  .side-list a{min-height:42px}
  .foot{grid-template-columns:1fr;gap:8px;padding-top:42px}
  .body > article{padding:38px 0}
}

@media (max-width:640px){
  body{font-size:16px}
  .top-in{padding:8px 14px;gap:8px}
  .brand{font-size:18px;gap:8px}
  .cta{padding:10px 14px}
  .menu-d summary{padding:10px 12px;gap:8px}
  .rail-in{padding:0 12px}
  .hero h1{font-size:clamp(30px,8.4vw,44px)}
  .chip{width:70px;height:70px;right:-18px;top:10px}
  .ring{width:92px;height:92px;border-width:10px;left:-20px;bottom:14px}
  .body h2{font-size:26px}
}

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

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