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

:root{
  --ink:#1f1726;
  --ink-2:#261c31;
  --purple:#56228b;
  --purple-l:#a678d8;
  --brown:#8b4513;
  --brown-l:#c98a4b;
  --paper:#f6f0f9;
  --muted:#c8b7d4;
  --line:rgba(166,120,216,.2);
  --card:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
  --r:18px;
}

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

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

body{
  margin:0;
  font-size:17px;
  line-height:1.78;
  color:var(--paper);
  font-family:Poppins,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  background:
    radial-gradient(62vw 52vw at 10% -8%,rgba(86,34,139,.6),transparent 64%),
    radial-gradient(52vw 44vw at 98% 10%,rgba(139,69,19,.38),transparent 62%),
    radial-gradient(74vw 62vw at 48% 106%,rgba(86,34,139,.35),transparent 72%),
    var(--ink);
  background-attachment:fixed;
  overflow-x:hidden;
}

h1,h2,h3{font-family:Righteous,Poppins,"PingFang SC",sans-serif;font-weight:400;letter-spacing:.008em}
a{color:var(--purple-l)}
img{max-width:100%;height:auto}
p{margin:0 0 .9rem}
figure{margin:0}
ul,ol{padding-left:1.2rem}

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

/* ---------- sticky shell ---------- */
.topwrap{
  position:sticky;
  top:0;
  z-index:60;
  background:linear-gradient(180deg,rgba(31,23,38,.97),rgba(31,23,38,.9));
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}

.band{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:.55rem;
  padding:.45rem .8rem;
  max-width:1180px;
  margin:0 auto;
}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border-radius:16px 20px 15px 22px;
  background:linear-gradient(145deg,var(--purple),var(--brown));
  border:1px solid rgba(230,202,165,.3);
  text-decoration:none;
}
.mark svg{width:28px;height:28px}
.logoimg{width:36px;height:36px;border-radius:12px;object-fit:cover}

.drawer{position:relative;justify-self:start;min-width:0}
.drawer>summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  min-height:44px;
  padding:.45rem .95rem;
  border-radius:16px 22px 16px 22px;
  border:1px solid rgba(201,138,75,.5);
  background:rgba(139,69,19,.18);
  color:var(--paper);
  font-weight:600;
  cursor:pointer;
  user-select:none;
}
.drawer>summary::-webkit-details-marker{display:none}
.drawer>summary::after{
  content:"";
  width:.5rem;
  height:.5rem;
  border-right:2px solid var(--brown-l);
  border-bottom:2px solid var(--brown-l);
  transform:rotate(45deg) translateY(-2px);
  transition:transform .22s ease;
}
.drawer[open]>summary::after{transform:rotate(225deg) translateY(-2px)}

.drawer>menu{
  position:absolute;
  left:0;
  top:calc(100% + .5rem);
  width:min(80vw,320px);
  margin:0;
  padding:.45rem;
  list-style:none;
  border-radius:20px 26px 22px 26px;
  border:1px solid var(--line);
  background:linear-gradient(170deg,#2b1f38,#241a2e);
  box-shadow:0 26px 54px rgba(0,0,0,.6);
}
.drawer menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.35rem .8rem;
  border-radius:14px;
  color:var(--paper);
  text-decoration:none;
  font-size:16px;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.drawer menu li:last-child a{border-bottom:0}
.drawer menu a:hover,.drawer menu a:focus-visible{background:rgba(86,34,139,.4)}

.find{
  display:flex;
  gap:.4rem;
  justify-self:end;
  min-width:0;
  width:100%;
  max-width:330px;
}
.find input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:.4rem .85rem;
  font:inherit;
  font-size:16px;
  color:var(--paper);
  border-radius:16px 22px 16px 22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.055);
}
.find input::placeholder{color:#a493b1}
.find input:focus-visible{outline:2px solid var(--brown-l);outline-offset:1px}
.find button{
  flex:0 0 auto;
  min-height:44px;
  padding:.4rem 1rem;
  font:inherit;
  font-size:16px;
  font-weight:600;
  color:#fff;
  cursor:pointer;
  border:0;
  border-radius:16px 22px 16px 22px;
  background:linear-gradient(150deg,var(--brown),#6f3710);
}
.find input.miss{animation:shake .45s ease}

/* ---------- anchor rail ---------- */
.ticker{border-top:1px solid rgba(255,255,255,.06)}
.rail{
  display:flex;
  gap:.35rem;
  margin:0;
  padding:.4rem .8rem;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}
.rail::-webkit-scrollbar{display:none}
.rail li{flex:0 0 auto;scroll-snap-align:start}
.rail a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.3rem .8rem;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
  text-decoration:none;
  font-size:16px;
  white-space:nowrap;
}
.rail a:hover,.rail a:focus-visible,.rail a.is-on{
  color:#fff;
  border-color:rgba(201,138,75,.55);
  background:rgba(139,69,19,.28);
}

/* ---------- hero ---------- */
main{display:block}

.hero{
  display:grid;
  gap:1rem;
  align-content:center;
  min-height:45vh;
  max-width:1180px;
  margin:0 auto;
  padding:1.5rem 1rem 2rem;
  scroll-margin-top:130px;
}
.hero-tag{
  display:inline-block;
  margin:0 0 .1rem;
  font-size:16px;
  letter-spacing:.16em;
  color:var(--brown-l);
  text-transform:none;
}
.hero h1{
  margin:.1rem 0 .7rem;
  font-size:clamp(2rem,7.2vw,3.4rem);
  line-height:1.2;
  background:linear-gradient(120deg,#fff 20%,#e8d3b4 90%);
  -webkit-background-clip:text;
  background-clip:text;
  color:#fff;
}
.lead{max-width:46ch;color:var(--muted);margin:0 0 1.1rem}

.go{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:.55rem 1.4rem;
  border-radius:20px 26px 20px 26px;
  background:linear-gradient(150deg,var(--purple),#3d175f);
  border:1px solid rgba(201,138,75,.4);
  color:#fff;
  font-weight:600;
  text-decoration:none;
}

.blob{
  position:relative;
  overflow:hidden;
  border-radius:26px 44px 30px 40px;
  border:1px solid rgba(255,255,255,.08);
  border-bottom:4px solid var(--brown);
  box-shadow:0 22px 48px rgba(0,0,0,.42);
}
.blob svg{display:block;width:100%;height:clamp(150px,26vw,232px)}
.badge{
  position:absolute;
  left:.9rem;
  top:.9rem;
  z-index:2;
  padding:.3rem .9rem;
  font-size:16px;
  border-radius:999px;
  color:#fff;
  background:rgba(31,23,38,.72);
  border:1px solid rgba(201,138,75,.55);
}

/* ---------- body grid ---------- */
.page-body{
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  gap:1.5rem;
  align-items:start;
  max-width:1180px;
  margin:0 auto;
  padding:0 1rem 3rem;
}

.prose{min-width:0;display:grid;gap:1.3rem}
.prose>div{
  padding:1.25rem 1.1rem 1.35rem;
  border-radius:var(--r);
  border:1px solid var(--line);
  border-bottom:3px solid var(--brown);
  background:var(--card);
  box-shadow:0 12px 26px rgba(0,0,0,.22);
  scroll-margin-top:132px;
}
.prose h2{
  margin:0 0 .55rem;
  font-size:1.4rem;
  line-height:1.35;
  color:#fff;
}
.prose h3{margin:1rem 0 .35rem;font-size:1.15rem;color:#f1e2cd}
.prose>div>:last-child{margin-bottom:0}
.prose ul,.prose ol{margin:0 0 .9rem}
.prose li{margin-bottom:.4rem}
.prose a{color:#e7c096;text-underline-offset:3px}
.prose img{border-radius:14px;max-width:100%}
.prose blockquote{
  margin:0 0 .9rem;
  padding:.55rem 1rem;
  border-left:3px solid var(--brown-l);
  border-radius:0 14px 14px 0;
  background:rgba(255,255,255,.035);
  color:var(--muted);
}
.prose figure{margin:0 0 .9rem}
.prose pre{overflow-x:auto}

.prose>div.flash{animation:flash 1s ease}

/* ---------- aside ---------- */
.side{
  position:sticky;
  top:126px;
  padding:1rem .95rem 1.1rem;
  border-radius:20px 26px 22px 26px;
  border:1px solid var(--line);
  border-bottom:3px solid var(--purple);
  background:linear-gradient(170deg,rgba(86,34,139,.3),rgba(36,26,46,.95));
}
.side h2{margin:.1rem 0 .5rem;font-size:1.12rem;color:#fff}
.side-list{margin:0;padding:0;list-style:none}
.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:.25rem .1rem;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.12);
}
.side-list li:last-child a{border-bottom:0}
.side-list a:hover,.side-list a:focus-visible{color:#fff}

.kicker{
  display:block;
  margin-bottom:.15rem;
  font-size:16px;
  font-weight:600;
  letter-spacing:.14em;
  color:var(--brown-l);
}

/* ---------- footer ---------- */
.foot{
  display:grid;
  grid-template-columns:1.15fr 1fr 1.15fr;
  gap:1.1rem;
  max-width:1180px;
  margin:0 auto;
  padding:2rem 1rem 1.4rem;
  border-top:1px solid var(--line);
}
.foot>div{
  padding:1.1rem 1rem 1.2rem;
  border-radius:20px 26px 20px 26px;
  border:1px solid var(--line);
  border-bottom:3px solid rgba(139,69,19,.8);
  background:rgba(255,255,255,.04);
}
.foot-mark{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-family:Righteous,Poppins,sans-serif;
  font-size:1.2rem;
  color:#fff;
  text-decoration:none;
}
.f-note{margin:.4rem 0 0;font-size:16px;line-height:1.7;color:var(--muted)}
.f-nav h3{margin:.1rem 0 .5rem;font-size:1.05rem;color:#fff}
.f-list{margin:0;padding:0;list-style:none}
.f-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
}
.f-list a:hover,.f-list a:focus-visible{color:#fff}

.cta{
  display:grid;
  gap:.8rem;
  align-content:start;
  background:linear-gradient(155deg,rgba(86,34,139,.6),rgba(139,69,19,.55));
}
.cta-lead{
  margin:0;
  font-family:Righteous,Poppins,sans-serif;
  font-size:1.25rem;
  line-height:1.4;
  color:#fff;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:.55rem 1.1rem;
  border-radius:18px 24px 18px 24px;
  background:var(--paper);
  color:var(--ink);
  font-weight:700;
  text-decoration:none;
}

.f-base{
  grid-column:1/-1;
  text-align:center;
  font-size:16px;
  color:var(--muted);
  padding-top:.4rem;
}
.f-base p{margin:.1rem 0}

/* ---------- motion ---------- */
@keyframes flash{
  0%,100%{box-shadow:0 0 0 0 rgba(201,138,75,0)}
  38%{box-shadow:0 0 0 5px rgba(201,138,75,.42)}
}
@keyframes shake{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-4px)}
  75%{transform:translateX(4px)}
}

html.js .rv{opacity:0;transform:translateY(14px);transition:opacity .55s ease,transform .55s ease}
html.js .rv.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  html.js .rv{opacity:1;transform:none;transition:none}
  .prose>div.flash{animation:none}
}

/* ---------- breakpoints ---------- */
@media (max-width:900px){
  .page-body{grid-template-columns:minmax(0,1fr)}
  .side{position:static;top:auto}
  .prose>div,.hero{scroll-margin-top:150px}
  .foot{grid-template-columns:1fr 1fr}
  .f-cta{grid-column:1/-1}
}

@media (max-width:640px){
  body{font-size:17px}
  .band{grid-template-columns:auto 1fr;gap:.5rem;padding:.45rem .7rem}
  .find{grid-column:1/-1;max-width:none;justify-self:stretch}
  .ticker .rail{padding:.35rem .7rem}
  .hero{padding:1.2rem .8rem 1.6rem;min-height:0}
  .hero h1{font-size:clamp(1.85rem,8.4vw,2.5rem)}
  .page-body{padding:0 .8rem 2.4rem}
  .prose>div{padding:1rem .85rem 1.1rem;border-radius:16px}
  .prose>div,.hero{scroll-margin-top:186px}
  .foot{grid-template-columns:1fr;padding:1.6rem .8rem 1.2rem}
  .f-cta{grid-column:auto}
}

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