@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

:root{
  --ink:#1f1726;
  --ink-2:#271c31;
  --plum:#56228b;
  --plum-l:#7d43b8;
  --brown:#8b4513;
  --paper:#f2e8da;
  --muted:#b9a9c8;
  --line:rgba(242,232,218,.14);
  --radius-a:20px 16px 22px 18px;
}

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

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

body{
  margin:0;
  min-height:100%;
  background:var(--ink);
  color:var(--paper);
  font-family:'EB Garamond','Crimson Text',Georgia,'Songti SC','Noto Serif CJK SC','Noto Serif SC',serif;
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
}

body::before{
  content:'';
  position:fixed;
  inset:-12% -12% auto -12%;
  height:132vh;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(42vw 42vw at 82% 6%, rgba(86,34,139,.52), transparent 68%),
    radial-gradient(52vw 44vw at 2% 94%, rgba(139,69,19,.34), transparent 70%);
  filter:blur(8px);
}

img{max-width:100%;display:block}
a{color:inherit}

/* 左侧固定竖排导航 */
.top{
  position:fixed;
  inset:0 auto 0 0;
  width:250px;
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:26px;
  padding:30px 20px 26px;
  background:linear-gradient(180deg,rgba(39,28,49,.97),rgba(31,23,38,.97));
  border-right:1px solid var(--line);
  overflow-y:auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
  text-decoration:none;
  color:var(--paper);
}
.logo{
  width:44px;height:44px;
  object-fit:cover;
  border-radius:52% 48% 56% 44%;
  border:1px solid var(--line);
}
.brand-name{font-size:19px;letter-spacing:.08em;line-height:1.3}

.menu p{margin:0;display:flex;flex-direction:column;gap:2px}
.menu a{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:9px 12px;
  border-radius:18px 20px 16px 22px;
  color:var(--paper);
  text-decoration:none;
  font-size:16px;
  transition:background .25s ease,transform .25s ease;
}
.menu a:hover,.menu a:focus-visible{background:rgba(86,34,139,.45);transform:translateX(3px)}
.dot{
  width:8px;height:8px;flex:none;
  border-radius:48% 52% 44% 56%;
  background:var(--brown);
  box-shadow:0 0 0 3px rgba(139,69,19,.16);
}

.call{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:14px 12px;
  border-top:1px solid var(--line);
  border-bottom:3px solid var(--plum);
}
.call span{font-size:14px;letter-spacing:.24em;color:var(--muted)}
.call a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--paper);
  text-decoration:none;
  font-size:16px;
}

main{margin-left:250px}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.02fr 1fr;
  align-items:center;
  gap:44px;
  min-height:100vh;
  padding:64px 52px 104px;
}
.hero::after{
  content:'';
  position:absolute;
  left:0;right:0;bottom:0;
  height:104px;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(86,34,139,0),rgba(86,34,139,.34) 42%,var(--ink));
  clip-path:polygon(0 64%,100% 0,100% 100%,0 100%);
}
.hero-media{
  position:relative;
  aspect-ratio:5/6;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:54% 46% 60% 40% / 46% 52% 48% 54%;
  background:linear-gradient(155deg,#3c2754,#5d3a26 70%,#2a2030);
  box-shadow:0 34px 66px -34px rgba(0,0,0,.92);
}
.hero-media img{width:100%;height:100%;object-fit:cover}

.hero-copy{text-align:right}
.hero h1{
  margin:0 0 18px;
  font-size:clamp(34px,4.6vw,60px);
  line-height:1.12;
  font-weight:700;
  letter-spacing:.01em;
}
.lede{
  margin:0 0 26px auto;
  max-width:30ch;
  color:var(--muted);
  font-size:17px;
}
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:12px 28px;
  border-radius:24px 20px 26px 18px;
  background:var(--plum);
  color:#fff;
  text-decoration:none;
  letter-spacing:.1em;
  box-shadow:0 16px 30px -20px rgba(86,34,139,.95);
  transition:transform .2s ease,background .2s ease;
}
.cta:hover{background:var(--plum-l);transform:translateY(-2px)}

/* 正文区 */
.wrap{
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  gap:44px;
  align-items:start;
  padding:40px 52px 84px;
}

.rail{
  position:sticky;
  top:40px;
  padding:0 0 16px;
  border-bottom:3px solid var(--plum);
}
.rail h2{
  margin:0 0 10px;
  font-size:17px;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--muted);
}
.rail h2 > span{display:inline-block;padding-bottom:4px;border-bottom:1px solid var(--brown)}
.rail ul{list-style:none;margin:0;padding:0}
.rail a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:8px 0;
  font-size:16px;
  color:var(--paper);
  text-decoration:none;
  border-bottom:1px dashed var(--line);
  transition:color .2s ease,padding-left .2s ease;
}
.rail a:hover{color:#d9bcf7;padding-left:5px}

.prose{min-width:0;max-width:70ch}
.prose section{
  scroll-margin-top:36px;
  padding-top:34px;
  padding-bottom:6px;
}
.prose section:first-child{padding-top:0}
.prose section + section{border-top:1px dashed var(--line)}
.prose h2{
  margin:0 0 16px;
  font-size:clamp(23px,2.6vw,31px);
  line-height:1.25;
  font-weight:700;
}
.prose h2 > span,.prose h3 > span{
  display:inline-block;
  padding-bottom:6px;
  border-bottom:2px solid var(--brown);
}
.prose h3{margin:28px 0 12px;font-size:20px}
.prose p{margin:0 0 1.15em}
.prose ul,.prose ol{margin:0 0 1.15em;padding-left:1.3em}
.prose li{margin:.35em 0}
.prose a{color:#c9a6ee;text-decoration:underline;text-underline-offset:3px}
.prose img{margin:1.2em 0;border-radius:20px}
.prose blockquote{
  margin:1.4em 0;
  padding:14px 20px;
  background:rgba(139,69,19,.14);
  border-left:3px solid var(--brown);
  border-radius:0 var(--radius-a) var(--radius-a) 0;
}

/* 页脚 */
footer{
  margin-left:250px;
  padding:52px 52px 26px;
  border-top:1px solid var(--line);
  background:rgba(39,28,49,.62);
}
.foot-cols{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:40px;
  max-width:900px;
}
footer h2{
  margin:0 0 12px;
  font-size:17px;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--muted);
}
footer h2 > span{display:inline-block;padding-bottom:5px;border-bottom:1px solid var(--brown)}
footer address{font-style:normal;line-height:1.8;color:var(--paper)}
.foot-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 22px}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--paper);
  text-decoration:none;
  border-bottom:1px solid transparent;
}
.foot-nav a:hover{border-bottom-color:var(--plum-l)}

.sub{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  max-width:520px;
  margin:34px 0 0;
  padding:18px;
  border:1px solid var(--line);
  border-bottom:3px solid var(--brown);
}
.sub input{
  flex:1 1 200px;
  min-height:46px;
  padding:10px 14px;
  border-radius:18px 16px 20px 14px;
  border:1px solid var(--line);
  background:rgba(31,23,38,.72);
  color:var(--paper);
  font:inherit;
}
.sub input:focus{outline:2px solid var(--plum-l);outline-offset:2px}
.sub button{
  min-height:46px;
  padding:10px 26px;
  border:0;
  border-radius:20px 16px 22px 14px;
  background:var(--brown);
  color:#fff;
  font:inherit;
  letter-spacing:.12em;
  cursor:pointer;
  transition:background .2s ease;
}
.sub button:hover{background:#a85618}

.foot-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px 24px;
  align-items:center;
  justify-content:space-between;
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid var(--line);
  font-size:15px;
  color:var(--muted);
}
.foot-bar p{margin:0}
.mini{list-style:none;display:flex;gap:20px;margin:0;padding:0}
.mini a{display:inline-flex;align-items:center;min-height:40px;color:var(--muted);text-decoration:none}
.mini a:hover{color:var(--paper)}

/* 滚动显现 */
.js .reveal{opacity:0;transform:translateY(18px)}
.js .reveal.is-in{opacity:1;transform:none;transition:opacity .65s ease,transform .65s ease}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
  *{animation:none !important;transition:none !important}
}

@media (max-width:1000px){
  .top{
    position:sticky;
    inset:0 0 auto 0;
    width:auto;
    height:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:10px 16px;
    padding:12px 16px;
    border-right:0;
    border-bottom:1px solid var(--line);
    overflow:visible;
  }
  .menu{order:3;width:100%}
  .menu p{flex-direction:row;gap:8px;overflow-x:auto;padding-bottom:4px}
  .menu a{flex:none;white-space:nowrap}
  .call{margin:0 0 0 auto;padding:0;border-top:0;border-bottom:0}
  .call span{display:none}
  main,footer{margin-left:0}

  .hero{
    grid-template-columns:1fr;
    min-height:auto;
    gap:26px;
    padding:32px 20px 86px;
  }
  .hero-copy{order:1}
  .hero-media{order:2;aspect-ratio:16/11;max-height:56vh}
  .hero h1{font-size:clamp(30px,8.6vw,44px)}
  .lede{margin-left:auto}

  .wrap{grid-template-columns:1fr;gap:26px;padding:26px 20px 58px}
  .rail{position:static}
  .rail ul{display:flex;flex-wrap:wrap;gap:0 6px}
  .rail a{
    border:1px solid var(--line);
    border-radius:18px 16px 20px 14px;
    padding:6px 12px;
    margin-bottom:6px;
  }
  .prose section{scroll-margin-top:176px}

  footer{padding:40px 20px 22px}
  .foot-cols{grid-template-columns:1fr;gap:24px}
}

@media (max-width:520px){
  body{font-size:16px}
  .foot-bar{justify-content:flex-start}
  .mini{gap:16px}
}

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