:root{
  --plum:#56228b;
  --bark:#8b4513;
  --ink:#1f1726;
  --paper:#faf5ee;
  --paper2:#f2e9dc;
  --line:#e2d5c5;
  --muted:#6d5f6e;
  --rail:272px;
  --serif:'Abril Fatface',"Songti SC","STSong",Georgia,serif;
  --text:'Merriweather',Georgia,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  padding-left:var(--rail);
  background-color:var(--paper);
  background-image:
    radial-gradient(1100px 460px at 84% -8%,rgba(139,69,19,.10),transparent 68%),
    radial-gradient(860px 420px at -6% 34%,rgba(86,34,139,.09),transparent 66%),
    radial-gradient(700px 380px at 60% 96%,rgba(139,69,19,.07),transparent 70%);
  color:var(--ink);
  font-family:var(--text);
  font-size:17px;
  line-height:1.78;
}

img{max-width:100%}
svg{display:block}

/* 左侧固定竖排导航 */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  padding:26px 20px 22px;
  overflow-y:auto;
  z-index:20;
  background-image:linear-gradient(180deg,#f5ede2,#ecdfcd);
  border-right:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:6px 0 18px;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  color:var(--ink);
  font-family:var(--serif);
  font-size:24px;
  line-height:1.22;
  letter-spacing:.01em;
}
.brand-mark,.brand-img{width:30px;height:30px;flex:0 0 auto;color:var(--bark)}
.brand-img{object-fit:cover;border-radius:50% 46% 52% 48%}
.brand-txt{display:block}
.brand:hover .brand-mark{color:var(--plum)}

.rail-links{
  list-style:none;
  margin:16px 0 18px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.rail-links a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:10px 8px 10px 10px;
  border-left:3px solid transparent;
  color:#3b2d40;
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease;
}
.rail-links .ico{
  width:14px;
  height:14px;
  flex:0 0 auto;
  color:var(--bark);
  transition:color .2s ease,transform .25s ease;
}
.rail-links a:hover,
.rail-links a:focus-visible{
  background:rgba(86,34,139,.08);
  border-left-color:var(--plum);
  color:var(--plum);
}
.rail-links a:hover .ico{color:var(--plum);transform:translateY(-1px)}

.rail-contact{
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:46px;
  padding:11px 12px;
  border:1px solid var(--bark);
  color:var(--bark);
  font-size:15px;
  text-decoration:none;
  background:rgba(255,255,255,.35);
  transition:background-color .2s ease,color .2s ease;
}
.rail-contact svg{width:16px;height:16px;flex:0 0 auto}
.rail-contact:hover{background:var(--bark);color:#fdf8f2}

/* 主体 */
.wrap{max-width:1040px;margin:0 auto;padding:0 34px}

.hero{padding:34px 0 26px;border-bottom:1px solid var(--line)}
.hero-in{
  min-height:45vh;
  display:grid;
  grid-template-columns:.88fr 1.12fr;
  gap:36px;
  align-items:center;
}
.hero-fig{margin:0}
.hero-img{
  width:100%;
  height:100%;
  max-height:46vh;
  object-fit:cover;
  border-radius:54% 46% 42% 58%/46% 54% 46% 54%;
  box-shadow:0 20px 42px rgba(31,23,38,.16);
  will-change:transform;
}
.hero-copy{text-align:center}
.hero-copy h1{
  margin:0;
  font-family:var(--serif);
  font-size:clamp(29px,4.3vw,50px);
  line-height:1.14;
  letter-spacing:.02em;
  color:var(--ink);
  text-wrap:balance;
}

/* 左栏 + 正文 */
.cols{
  display:grid;
  grid-template-columns:228px minmax(0,1fr);
  gap:44px;
  align-items:start;
  padding:34px 0 64px;
}
.side{position:sticky;top:22px}
.side h2{
  margin:0 0 8px;
  font-family:var(--serif);
  font-size:19px;
  line-height:1.3;
  color:var(--plum);
}
.side .subtitle{
  margin:0 0 20px;
  font-size:15px;
  line-height:1.68;
  color:var(--muted);
  padding-left:12px;
  border-left:2px solid rgba(139,69,19,.35);
}
.side-nav{
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid var(--line);
}
.side-nav li{border-bottom:1px dashed var(--line)}
.side-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:8px 2px;
  font-size:15px;
  color:var(--bark);
  text-decoration:none;
}
.side-nav a::before{
  content:"";
  width:6px;
  height:6px;
  margin-right:9px;
  flex:0 0 auto;
  border-radius:60% 40% 55% 45%;
  background:var(--bark);
  opacity:.6;
}
.side-nav a:hover{color:var(--plum);text-decoration:underline;text-underline-offset:3px}

.body{padding-bottom:10px}
.body > article{
  padding:30px 0;
  border-top:1px solid var(--line);
}
.body > article:first-child{border-top:0;padding-top:0}
.body article[id]{scroll-margin-top:26px}

.body h2{
  margin:0 0 14px;
  font-family:var(--serif);
  font-size:clamp(22px,2.7vw,31px);
  line-height:1.26;
  letter-spacing:.01em;
  color:var(--plum);
}
.body h3{
  margin:24px 0 8px;
  font-family:var(--serif);
  font-size:19px;
  line-height:1.35;
  color:var(--bark);
}
.body p{margin:0 0 15px}
.body a{
  color:var(--plum);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-decoration-color:rgba(86,34,139,.4);
  text-underline-offset:3px;
}
.body a:hover{text-decoration-color:var(--plum);background:rgba(86,34,139,.06)}
.body ul,.body ol{margin:0 0 16px;padding-left:1.25em}
.body li{margin:0 0 8px}
.body strong{color:#2b1f33}
.body img{
  display:block;
  margin:20px 0;
  border-radius:22px 8px 22px 8px;
  box-shadow:0 14px 30px rgba(31,23,38,.14);
}
.body blockquote{
  margin:20px 0;
  padding:14px 20px;
  border-left:4px solid var(--bark);
  border-radius:0 20px 20px 0;
  background:var(--paper2);
  color:#463548;
}
.body hr{border:0;border-top:1px solid var(--line);margin:24px 0}

/* 页脚 */
.foot{
  padding:52px 34px 24px;
  background:#1f1726;
  background-image:radial-gradient(800px 320px at 88% 0,rgba(139,69,19,.3),transparent 70%);
  color:#e9dfd3;
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px;
  max-width:1040px;
  margin:0 auto;
}
.foot dl{margin:0}
.foot dt{
  margin-bottom:10px;
  font-size:13px;
  letter-spacing:.2em;
  color:#b49fc4;
}
.foot dd{margin:0}
.foot dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 0;
  font-size:16px;
  color:#e9dfd3;
  text-decoration:none;
}
.foot dd a:hover{color:#e7ba8c;text-decoration:underline;text-underline-offset:4px}
.bigmark{
  max-width:1040px;
  margin:38px auto 0;
  font-family:var(--serif);
  font-size:clamp(38px,9vw,104px);
  line-height:.98;
  letter-spacing:.02em;
  color:#453356;
  overflow-wrap:anywhere;
}
.foot-base{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:14px;
  max-width:1040px;
  margin:20px auto 0;
  padding-top:16px;
  border-top:1px solid rgba(233,223,211,.18);
  font-size:15px;
  color:#bfaecb;
}
.foot-links{display:flex;gap:18px}
.foot-links a{
  display:inline-block;
  padding:8px 0;
  min-height:40px;
  color:#e7ba8c;
  text-decoration:none;
}
.foot-links a:hover{text-decoration:underline;text-underline-offset:4px}

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

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

/* 中屏 */
@media (max-width:1080px){
  :root{--rail:240px}
  .wrap{padding:0 24px}
  .cols{grid-template-columns:196px minmax(0,1fr);gap:30px}
  .foot{padding:44px 24px 22px}
  .hero-in{gap:26px}
}

/* 移动端 */
@media (max-width:900px){
  body{padding-left:0;font-size:16px}
  .rail{
    position:static;
    width:auto;
    height:auto;
    padding:12px 16px 10px;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    overflow:visible;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .brand{
    width:100%;
    padding:2px 0 10px;
    border-bottom:0;
    font-size:22px;
  }
  .brand-mark,.brand-img{width:26px;height:26px}
  .rail-links{
    width:100%;
    flex-direction:row;
    flex-wrap:wrap;
    gap:2px;
    margin:2px 0 6px;
  }
  .rail-links a{
    padding:9px 10px;
    min-height:44px;
    border-left:0;
    border-bottom:2px solid transparent;
    font-size:15px;
  }
  .rail-links a:hover,.rail-links a:focus-visible{border-left:0;border-bottom-color:var(--plum)}
  .rail-links .ico{width:12px;height:12px}
  .rail-contact{margin-top:0;padding:10px 12px;min-height:44px}
  .wrap{padding:0 20px}
  .hero{padding:20px 0 16px}
  .hero-in{grid-template-columns:1fr;min-height:0;gap:20px}
  .hero-copy{order:1;text-align:center}
  .hero-fig{order:2}
  .hero-img{max-height:210px;border-radius:48% 52% 44% 56%/52% 48% 52% 48%}
  .cols{grid-template-columns:1fr;gap:26px;padding:24px 0 44px}
  .side{position:static}
  .side-nav{display:flex;flex-wrap:wrap;border-top:0}
  .side-nav li{border-bottom:0;width:50%}
  .side-nav a{min-height:44px;padding:10px 2px}
  .body > article{padding:24px 0}
  .foot{padding:38px 20px 20px}
  .foot-cols{grid-template-columns:1fr 1fr;gap:20px}
}

@media (max-width:540px){
  .foot-cols{grid-template-columns:1fr}
  .side-nav li{width:100%}
  .hero-copy h1{font-size:29px}
  .foot-base{font-size:14px}
}

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