:root{
  --ink:#1c1726;
  --ink-2:#251d33;
  --violet:#6514ff;
  --magenta:#bf00ff;
  --paper:#f6f1ff;
  --dim:#c6b8dd;
  --line:rgba(191,0,255,.3);
  --r:10px;
  --dock:104px;
}

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

html{
  background:var(--ink);
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Crimson Pro","Cormorant Garamond",Georgia,"Songti SC","Noto Serif SC",serif;
  font-size:17px;
  line-height:1.78;
  color:#efe8fb;
  background:var(--ink);
  padding-bottom:calc(var(--dock) + env(safe-area-inset-bottom));
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:-18%;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(36vw 36vw at 88% 4%, rgba(101,20,255,.5), transparent 64%),
    radial-gradient(30vw 30vw at 4% 46%, rgba(191,0,255,.26), transparent 70%),
    radial-gradient(24vw 24vw at 62% 92%, rgba(101,20,255,.22), transparent 72%),
    repeating-linear-gradient(116deg, rgba(255,255,255,.035) 0 2px, transparent 2px 28px);
  animation:drift 28s linear infinite alternate;
}

@keyframes drift{
  from{transform:translate3d(0,0,0) rotate(0deg)}
  to{transform:translate3d(-3%,2%,0) rotate(.7deg)}
}

a{color:#ddc8ff; text-decoration-color:var(--magenta); text-underline-offset:3px}
a:hover{color:#fff}

a:focus-visible,
button:focus-visible{
  outline:2px solid var(--magenta);
  outline-offset:3px;
  border-radius:6px;
}

/* 底部固定条 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  background:rgba(19,14,29,.95);
  border-top:2px solid var(--violet);
  box-shadow:0 -18px 40px rgba(0,0,0,.45);
  backdrop-filter:blur(10px);
}

.mark{
  flex:0 0 auto;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:var(--r);
  background:linear-gradient(135deg,var(--violet),var(--magenta));
  transition:transform .24s ease, filter .24s ease;
}
.mark span{
  display:block;
  width:15px;
  height:15px;
  background:var(--ink);
  transform:rotate(45deg);
}
.mark:hover{transform:rotate(6deg) scale(1.05)}
.mark:hover span{background:#0d0916}

.dock-nav{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.dock-nav::-webkit-scrollbar{height:0}

.dock-nav ul{
  display:flex;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.dock-nav a{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:0 11px;
  border-radius:8px;
  color:#d6c8ee;
  font-size:16px;
  white-space:nowrap;
  text-decoration:none;
  transition:background .22s ease, color .22s ease;
}
.dock-nav a:hover{background:rgba(101,20,255,.36); color:#fff}
.dock-nav a.is-on{background:rgba(191,0,255,.42); color:#fff}

.pip{
  width:7px;
  height:7px;
  background:var(--magenta);
  transform:rotate(45deg);
  flex:0 0 auto;
}

.cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 15px;
  border-radius:var(--r);
  background:var(--violet);
  color:#fff;
  font-size:16px;
  text-decoration:none;
  transition:background .24s ease, transform .24s ease;
}
.cta:hover{background:var(--magenta); color:#fff; transform:translateY(-2px)}

/* 栅格 */
main{position:relative; z-index:1; display:block}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:clamp(20px,4vw,52px) clamp(14px,4vw,32px) 56px;
  display:grid;
  grid-template-columns:236px minmax(0,1fr);
  gap:clamp(20px,3vw,46px);
  align-items:start;
}

/* 左侧栏 */
.rail{
  position:sticky;
  top:24px;
  border-left:3px solid var(--violet);
  padding-left:14px;
}
.rail h2{
  margin:0 0 12px;
  font-family:Cinzel,"Cormorant Garamond",serif;
  font-size:16px;
  font-weight:500;
  letter-spacing:.26em;
  color:var(--dim);
}
.rail h2 span{display:inline-block; padding-bottom:2px; border-bottom:2px solid var(--magenta)}

.rail-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:4px;
}
.rail a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:0 8px;
  font-size:16px;
  color:#cbbce4;
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.1);
  transition:background .2s ease, color .2s ease;
}
.rail a::before{
  content:"";
  width:10px;
  height:10px;
  flex:0 0 auto;
  border-radius:2px;
  background:var(--violet);
}
.rail a:hover{background:rgba(101,20,255,.2); color:#fff}
.rail a:hover::before{background:var(--magenta)}

/* 首屏 */
.sheet{min-width:0}

.hero{
  min-height:45vh;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:16px;
  text-align:right;
  padding:14px 0 40px;
}

.badge{
  align-self:flex-end;
  font-family:Cinzel,serif;
  font-size:16px;
  letter-spacing:.14em;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid var(--magenta);
  background:rgba(191,0,255,.18);
  color:#f4ebff;
  transform:rotate(-2deg);
}

.hero h1{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:500;
  font-size:clamp(2.35rem,7.2vw,4.6rem);
  line-height:1.04;
  letter-spacing:-.01em;
  color:#f8f3ff;
  background:linear-gradient(102deg,#ffffff 18%,#dcc9ff 56%,var(--magenta));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.lead{
  margin:0;
  max-width:54ch;
  font-size:17px;
  color:var(--dim);
}

/* 正文区块 */
.sheet div > article{
  position:relative;
  margin:0 0 48px;
  padding:clamp(20px,3.6vw,42px);
  border-radius:var(--r);
  border-left:6px solid var(--violet);
  background:rgba(37,29,51,.76);
  scroll-margin-top:2rem;
}
.sheet div > article:nth-of-type(even){
  background:rgba(101,20,255,.17);
  border-left-color:var(--magenta);
}
.sheet div > article::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:70px;
  height:70px;
  border-radius:0 var(--r) 0 var(--r);
  background:linear-gradient(135deg, rgba(191,0,255,.5), transparent 72%);
  pointer-events:none;
}
.sheet div > article:last-of-type{margin-bottom:0}

.sheet p{margin:0 0 1em; color:#e6ddf4}
.sheet p:last-child{margin-bottom:0}

.sheet h2,
.sheet h3{
  font-family:"Cormorant Garamond",Georgia,serif;
  color:#fff;
  line-height:1.2;
  margin:0 0 .55em;
}
.sheet h2{font-size:clamp(1.6rem,3.6vw,2.3rem); font-weight:600}
.sheet h3{font-size:clamp(1.25rem,2.4vw,1.6rem); font-weight:600}
.sheet h2 span,
.sheet h3 span{
  display:inline;
  box-shadow:inset 0 -.26em 0 rgba(191,0,255,.42);
}
.sheet h2 + p,
.sheet h3 + p{margin-top:.2em}

.sheet ul,
.sheet ol{padding-left:1.2em; margin:0 0 1em}
.sheet li{margin-bottom:.4em}
.sheet li::marker{color:var(--magenta)}

.sheet blockquote{
  margin:0 0 1em;
  padding:14px 18px;
  border-left:3px solid var(--magenta);
  background:rgba(28,23,38,.6);
  border-radius:0 var(--r) var(--r) 0;
  color:#e3d8f5;
}

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

.sheet figure{margin:0 0 1em}
.sheet img{max-width:100%; height:auto; border-radius:var(--r); display:block}

/* 页脚 */
.foot{
  position:relative;
  z-index:1;
  margin-top:24px;
  border-top:2px solid var(--violet);
  background:linear-gradient(180deg, rgba(101,20,255,.24), rgba(20,15,30,.98) 42%);
  padding:clamp(28px,5vw,56px) clamp(16px,4vw,40px) 34px;
}

.cta-block{
  max-width:1180px;
  margin:0 auto clamp(28px,4vw,44px);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:clamp(20px,4vw,40px);
  border-radius:var(--r);
  background:linear-gradient(120deg, var(--violet), #7d1bff 55%, var(--magenta));
}
.cta-block h2{
  margin:0;
  font-family:"Cormorant Garamond",Georgia,serif;
  font-weight:600;
  font-size:clamp(1.8rem,5vw,3rem);
  line-height:1.08;
  color:#fff;
}
.cta-block h2 span{box-shadow:inset 0 -.3em 0 rgba(28,23,38,.4)}

.cta-big{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 24px;
  border-radius:var(--r);
  background:var(--ink);
  color:#fff;
  font-size:17px;
  text-decoration:none;
  transition:background .24s ease, transform .24s ease;
}
.cta-big:hover{background:#0b0714; color:#fff; transform:translateY(-2px)}

.cols{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:clamp(18px,3vw,42px);
}
.cols dl{margin:0}
.cols dt{
  font-family:Cinzel,serif;
  font-size:16px;
  letter-spacing:.18em;
  color:#b8a7d6;
  margin-bottom:10px;
}
.cols dd{
  margin:0 0 6px;
  color:#e9e0f8;
  font-size:16px;
}
.cols dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#e9e0f8;
  text-decoration:none;
  border-bottom:1px solid rgba(191,0,255,.4);
  transition:color .2s ease, border-color .2s ease;
}
.cols dd a:hover{color:#fff; border-color:var(--magenta)}

.copy{
  max-width:1180px;
  margin:clamp(24px,4vw,38px) auto 0;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:16px;
  color:#a99bc2;
}

/* 动效 */
@media (prefers-reduced-motion: no-preference){
  .sheet div > article{
    animation:rise .62s cubic-bezier(.2,.72,.3,1) both;
  }
  .sheet div > article:nth-of-type(1){animation-delay:.04s}
  .sheet div > article:nth-of-type(2){animation-delay:.09s}
  .sheet div > article:nth-of-type(3){animation-delay:.14s}
  .sheet div > article:nth-of-type(4){animation-delay:.19s}
  .sheet div > article:nth-of-type(5){animation-delay:.24s}
  .sheet div > article:nth-of-type(6){animation-delay:.29s}
  .sheet div > article:nth-of-type(7){animation-delay:.34s}
  .sheet div > article:nth-of-type(n+8){animation-delay:.38s}
}

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

@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .sheet div > article{
      animation:rise linear both;
      animation-timeline:view();
      animation-range:entry 4% cover 22%;
    }
    .sheet div > article:nth-of-type(n){animation-delay:0s}
  }
}

/* 断点 */
@media (max-width:900px){
  .wrap{
    grid-template-columns:minmax(0,1fr);
    padding-top:18px;
  }
  .rail{
    position:static;
    border-left:0;
    padding-left:0;
    border-bottom:1px solid var(--line);
    padding-bottom:10px;
  }
  .rail h2{margin-bottom:8px}
  .rail-list{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:none;
  }
  .rail-list::-webkit-scrollbar{height:0}
  .rail a{
    white-space:nowrap;
    padding:0 13px;
    border:1px solid var(--line);
    border-radius:999px;
  }
  .rail a::before{width:8px;height:8px}
  .hero{min-height:38vh; padding-top:6px}
  .cols{grid-template-columns:1fr 1fr}
  .col-brand{grid-column:1 / -1}
}

@media (max-width:560px){
  .dock{gap:6px; padding-left:8px; padding-right:8px}
  .dock-nav a{padding:0 9px; gap:5px}
  .cta{padding:0 12px}
  .cols{grid-template-columns:1fr}
  .col-brand{grid-column:auto}
  .hero h1{font-size:clamp(2.1rem,10vw,2.9rem)}
  .sheet div > article{margin-bottom:32px; border-left-width:5px}
  .sheet div > article::after{width:52px; height:52px}
}

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

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