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

:root{
  --ink:#1f1726;
  --ink-2:#251b2f;
  --ink-3:#2c2038;
  --purple:#56228b;
  --purple-2:#8a55bb;
  --clay:#8b4513;
  --clay-2:#c07846;
  --moss:#5f8b6b;
  --text:#ece4dc;
  --text-2:#c6b8d3;
  --text-3:#a296ad;
  --line:rgba(236,228,220,.14);
  --line-2:rgba(236,228,220,.08);
}

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

body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:"Figtree","Noto Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(58% 46% at 12% 4%,rgba(86,34,139,.34),transparent 66%),
    radial-gradient(46% 38% at 94% 18%,rgba(139,69,19,.24),transparent 68%),
    radial-gradient(52% 42% at 74% 96%,rgba(95,139,107,.16),transparent 70%),
    radial-gradient(30% 24% at 40% 62%,rgba(255,255,255,.03),transparent 70%);
}

img{max-width:100%;height:auto}
a{color:#ddc4f3;text-decoration-color:rgba(221,196,243,.45);text-underline-offset:3px}
a:hover{color:#fff}
p{margin:0 0 1.05em}
menu{margin:0;padding:0;list-style:none}
small{font-size:13px;letter-spacing:.16em;line-height:1.5}

.shell{position:relative;z-index:1}

/* ---------- 左侧竖排栏 ---------- */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:238px;
  padding:30px 22px 26px;
  display:flex;
  flex-direction:column;
  gap:18px;
  background:rgba(31,23,38,.9);
  border-right:1px solid var(--line-2);
  backdrop-filter:blur(7px);
  z-index:40;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  font-size:17px;
  letter-spacing:.03em;
  line-height:1.35;
}
.brand-t{border-bottom:1px solid rgba(139,69,19,.6);padding-bottom:2px}
.mark{width:26px;height:26px;border-radius:10px 12px 9px 13px;object-fit:cover;flex:none}
.seed{
  width:20px;height:22px;flex:none;
  border-radius:11px 13px 10px 14px;
  background:linear-gradient(150deg,var(--purple),var(--clay));
}

.nav{position:relative}
.nav > summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 15px;
  border-radius:16px 20px 15px 22px;
  background:rgba(86,34,139,.3);
  color:#f2e9fa;
  font-size:16px;
  letter-spacing:.06em;
  user-select:none;
}
.nav > summary::-webkit-details-marker{display:none}
.nav > summary::after{
  content:"";
  width:8px;height:8px;
  margin-left:auto;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  transition:transform .22s ease;
}
.nav[open] > summary::after{transform:rotate(-135deg) translateY(0)}

.nav-list{margin-top:10px;display:grid;gap:5px}
.nav-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 15px;
  border-radius:15px 19px 16px 21px;
  color:var(--text-2);
  text-decoration:none;
  font-size:16px;
  line-height:1.3;
  transition:background .18s ease,color .18s ease,padding-left .18s ease;
}
.nav-list a:hover,.nav-list a:focus-visible{
  background:rgba(139,69,19,.26);
  color:#fff;
  padding-left:19px;
}

.rail-contact{
  margin:auto 0 0;
  display:grid;
  gap:2px;
  font-size:15px;
  line-height:1.5;
}
.rail-k{font-size:12px;letter-spacing:.18em;color:#8d7f9c}
.rail-v{color:var(--text-2);word-break:break-all}

/* ---------- 主区 ---------- */
main{display:block}
.wrap{max-width:1080px;margin:0 auto;padding:0 26px}

.hero{padding-top:48px}
.lead{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:22px;
  align-items:center;
  min-height:45vh;
  padding-bottom:6px;
}
.lead h1{
  margin:0;
  font-size:clamp(30px,5.2vw,54px);
  line-height:1.18;
  letter-spacing:-.01em;
  font-weight:600;
  color:#fdf8f3;
  text-wrap:balance;
}
.lead-art{display:block;flex:none;will-change:transform}
.lead-art svg{display:block;width:clamp(84px,13vw,132px);height:auto}

.band{
  height:9px;
  margin:30px 0 36px;
  border-radius:99px;
  background:linear-gradient(90deg,var(--purple) 0%,var(--clay) 58%,var(--moss) 100%);
  transform:skewY(-1.4deg);
  opacity:.9;
}

.body-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 272px;
  gap:34px;
  align-items:start;
  padding-bottom:20px;
}

/* ---------- 正文 ---------- */
.prose{min-width:0}
.prose section{
  margin:0 0 22px;
  padding:26px 28px 28px;
  border-radius:22px 28px 20px 26px;
  background:rgba(255,255,255,.045);
  scroll-margin-top:96px;
}
.prose section:nth-of-type(even){border-radius:28px 20px 26px 22px}
.prose section:last-child{margin-bottom:0}

.prose small{color:var(--clay-2);display:inline-block;margin-bottom:6px}
.prose h2{
  margin:0 0 14px;
  font-size:clamp(23px,2.9vw,31px);
  line-height:1.32;
  font-weight:600;
  color:#fbf6f1;
  text-wrap:balance;
}
.prose h3{
  margin:24px 0 10px;
  font-size:clamp(19px,2.2vw,23px);
  line-height:1.4;
  font-weight:600;
  color:#f6efe9;
}
.prose p{color:var(--text-2)}
.prose strong{color:#fff;font-weight:600}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.3em;color:var(--text-2)}
.prose li{margin:.35em 0}
.prose li::marker{color:var(--purple-2)}
.prose blockquote{
  margin:0 0 1.1em;
  padding:14px 20px;
  border-left:3px solid var(--clay);
  border-radius:14px 18px 16px 20px;
  background:rgba(139,69,19,.16);
  color:#f2e9e2;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1.2em;
  font-size:16px;
}
.prose th,.prose td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid var(--line-2);
  color:var(--text-2);
}
.prose th{color:#fff;font-weight:600;background:rgba(86,34,139,.2)}
.prose img{border-radius:18px;margin:0 0 1.1em}
.prose figure{margin:0 0 1.2em}
.prose hr{border:0;height:1px;background:var(--line-2);margin:1.4em 0}

/* ---------- 右侧栏 ---------- */
.side{position:sticky;top:26px;display:grid;gap:16px}
.side-card{
  padding:20px 20px 22px;
  border-radius:20px 26px 18px 24px;
  background:rgba(86,34,139,.24);
}
.side-card small{color:var(--purple-2);display:inline-block;margin-bottom:4px}
.side-h{
  margin:0 0 12px;
  font-size:18px;
  line-height:1.4;
  font-weight:600;
  color:#f7f1ec;
}
.side-list{display:grid;gap:2px}
.side-list a{
  display:block;
  min-height:40px;
  padding:9px 0;
  color:var(--text-2);
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
  border-bottom:1px solid rgba(236,228,220,.09);
}
.side-list li:last-child a{border-bottom:0}
.side-list a:hover{color:#fff}
.side-contact{background:rgba(139,69,19,.22)}
.side-contact small{color:var(--clay-2)}
.side-host{margin:0;font-size:16px;word-break:break-all;color:#f7ede4}

/* ---------- 页脚 ---------- */
footer{
  margin-top:64px;
  background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.34));
  border-top:1px solid var(--line-2);
  padding-bottom:22px;
}

.cta{
  max-width:1080px;
  margin:0 auto;
  padding:52px 26px 44px;
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  justify-content:space-between;
}
.cta-t{
  margin:0;
  font-size:clamp(22px,3.4vw,34px);
  line-height:1.32;
  font-weight:600;
  color:#f7f0ea;
  max-width:22em;
}
.cta-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:12px 24px;
  border-radius:22px 26px 20px 24px;
  background:linear-gradient(120deg,var(--purple),var(--clay));
  color:#fff;
  text-decoration:none;
  font-size:16px;
  letter-spacing:.04em;
  white-space:nowrap;
}
.cta-link:hover{color:#fff;filter:brightness(1.12)}

.fcols{
  max-width:1080px;
  margin:0 auto;
  padding:0 26px 30px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
}
.fcols dl{margin:0}
.fcols dt{
  font-size:13px;
  letter-spacing:.16em;
  color:var(--clay-2);
  margin-bottom:8px;
}
.fcols dd{margin:0}
.fcols a{
  display:inline-block;
  min-height:40px;
  padding:8px 0;
  color:var(--text-3);
  text-decoration:none;
  font-size:16px;
  line-height:1.5;
  word-break:break-all;
}
.fcols a:hover{color:#fff}
.fcols .f-host{
  padding:8px 0;
  color:var(--text-3);
  font-size:16px;
  line-height:1.5;
  min-height:40px;
  word-break:break-all;
}

.fbot{
  max-width:1080px;
  margin:0 auto;
  padding:16px 26px 0;
  border-top:1px solid var(--line-2);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  font-size:15px;
  color:var(--text-3);
}
.fbot a{
  display:inline-block;
  min-height:40px;
  padding:8px 0;
  color:var(--text-3);
  text-decoration:none;
}
.fbot a:hover{color:#fff}

/* ---------- 动效 ---------- */
.rv{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease}
.rv.in{opacity:1;transform:none}

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

/* ---------- 断点 ---------- */
@media (min-width:1024px){
  .shell{padding-left:238px}
  .nav[open] > summary{background:rgba(86,34,139,.18)}
}

@media (max-width:1023px){
  .rail{
    position:sticky;
    top:0;
    inset:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:12px;
    padding:10px 18px;
    border-right:0;
    border-bottom:1px solid var(--line-2);
  }
  .brand{font-size:16px}
  .brand-t{border-bottom:0;padding-bottom:0}
  .nav{margin-left:auto}
  .nav > summary{padding:10px 16px}
  .nav-list{
    position:absolute;
    right:0;
    top:calc(100% + 9px);
    width:min(74vw,260px);
    margin-top:0;
    padding:10px;
    border-radius:20px 24px 18px 22px;
    background:#261c30;
    border:1px solid var(--line);
    box-shadow:0 18px 40px rgba(0,0,0,.45);
    z-index:50;
  }
  .rail-contact{display:none;margin:0}
  .hero{padding-top:30px}
  .lead{min-height:auto;padding-bottom:0;gap:16px}
  .band{margin:22px 0 26px}
  .body-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .side{position:static;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
  .prose section{scroll-margin-top:92px}
}

@media (max-width:560px){
  body{font-size:16px}
  .wrap{padding:0 18px}
  .prose section{padding:22px 18px 24px}
  .fcols{padding:0 18px 24px;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .cta{padding:40px 18px 34px}
  .fbot{padding:14px 18px 0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
  .lead-art{transform:none !important}
  .nav > summary::after{transition:none}
}

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