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

:root{
  --ink:#1f1726;
  --ink-2:#241a2e;
  --ink-3:#2c2039;
  --plum:#56228b;
  --plum-soft:rgba(86,34,139,.5);
  --clay:#8b4513;
  --paper:#f4eef7;
  --text:#e7ddef;
  --muted:rgba(231,221,239,.68);
  --line:rgba(231,221,239,.14);
  --serif:"Bodoni Moda","Songti SC","Noto Serif CJK SC","Source Han Serif SC",serif;
  --sans:"Jost","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --rail:152px;
}

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

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

body{
  margin:0;
  padding-left:var(--rail);
  background:var(--ink);
  color:var(--text);
  font-family:var(--sans);
  font-size:17px;
  font-weight:300;
  line-height:1.8;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(38vw 38vw at 8% 6%,rgba(86,34,139,.30),transparent 70%),
    radial-gradient(34vw 34vw at 92% 74%,rgba(139,69,19,.24),transparent 72%);
  opacity:.85;
}

a{color:var(--paper);text-decoration:none;}

img{max-width:100%;}

:focus-visible{
  outline:2px solid var(--clay);
  outline-offset:3px;
}

/* 角落标记 */
.mark{
  position:fixed;
  top:22px;
  left:calc(var(--rail) / 2 - 22px);
  z-index:60;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:linear-gradient(150deg,var(--clay),var(--plum));
  border-radius:52% 46% 58% 44% / 46% 56% 44% 54%;
  transition:border-radius .6s ease,transform .35s ease;
}

.mark:hover{border-radius:44% 58% 44% 56% / 58% 44% 56% 42%;transform:rotate(-6deg);}

.mark-img{width:44px;height:44px;object-fit:cover;display:block;}

.mark-txt{
  font-family:var(--serif);
  font-size:21px;
  font-weight:600;
  color:var(--paper);
  line-height:1;
}

/* 左侧竖排导航栏 */
.rail{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  z-index:50;
  width:var(--rail);
  padding:88px 14px 28px;
  display:flex;
  align-items:flex-start;
  background:rgba(31,23,38,.72);
  border-right:1px solid var(--line);
  backdrop-filter:blur(8px);
}

.rail nav{width:100%;}

.rail nav p{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.rail nav a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 8px;
  border-radius:999px;
  font-size:16px;
  font-weight:400;
  line-height:1.3;
  text-align:center;
  color:var(--muted);
  background:rgba(244,238,247,.05);
  transition:background .3s ease,color .3s ease,transform .3s ease;
}

.rail nav a:hover,
.rail nav a:focus-visible{
  background:var(--plum);
  color:var(--paper);
  transform:translateX(4px);
}

/* 主体 */
main{position:relative;z-index:1;}

.hero{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  align-content:end;
  padding:130px clamp(20px,4vw,52px) 13vw;
  overflow:hidden;
  border-bottom-left-radius:50% 7vw;
  border-bottom-right-radius:50% 7vw;
}

.hero-art{
  position:absolute;
  inset:0;
  margin:0;
  z-index:0;
  background:radial-gradient(120% 90% at 80% 10%,rgba(86,34,139,.75),rgba(31,23,38,.95));
}

.hero-img{width:100%;height:100%;object-fit:cover;display:block;}

.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(31,23,38,.45),rgba(31,23,38,.86) 58%,var(--ink));
}

.hero-ghost{
  position:absolute;
  right:-2vw;
  bottom:2vw;
  z-index:1;
  font-family:var(--serif);
  font-size:clamp(72px,15vw,230px);
  line-height:.86;
  font-weight:600;
  letter-spacing:.02em;
  color:rgba(86,34,139,.55);
  white-space:nowrap;
  pointer-events:none;
}

.hero-copy{position:relative;z-index:2;max-width:44ch;}

.hero h1{
  margin:0 0 20px;
  font-family:var(--serif);
  font-weight:500;
  font-size:clamp(32px,6vw,72px);
  line-height:1.16;
  letter-spacing:-.01em;
  color:var(--paper);
  text-wrap:balance;
}

.lede{
  margin:0;
  max-width:40ch;
  font-size:17px;
  line-height:1.8;
  color:var(--muted);
}

/* 正文 + 侧栏 */
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:clamp(28px,4vw,56px);
  align-items:start;
  max-width:1140px;
  margin:0 auto;
  padding:clamp(48px,6vw,88px) clamp(20px,4vw,48px);
}

.stream{min-width:0;}

.stream > section{
  padding-bottom:22px;
}

.stream > section + section{
  margin-top:38px;
  padding-top:44px;
  border-top:1px solid var(--line);
}

section[id]{scroll-margin-top:88px;}

.stream h2,
.stream h3{
  margin:0 0 14px;
  font-family:var(--serif);
  font-weight:500;
  line-height:1.28;
  letter-spacing:.01em;
  color:var(--paper);
  text-wrap:balance;
}

.stream h2{font-size:clamp(23px,3vw,31px);}
.stream h3{font-size:clamp(19px,2.2vw,23px);}

.stream h2 > span,
.stream h3 > span,
.side-block h2 > span,
.foot-col h3 > span{
  display:inline-flex;
  align-items:baseline;
  gap:10px;
}

.stream h2 > span::before,
.side-block h2 > span::before,
.foot-col h3 > span::before{
  content:"";
  flex:0 0 auto;
  width:9px;
  height:9px;
  border-radius:60% 44% 58% 42%;
  background:var(--clay);
  transform:translateY(-2px);
}

.stream p{margin:0 0 18px;}

.stream ul,
.stream ol{margin:0 0 20px;padding-left:22px;}

.stream li{margin-bottom:8px;}

.stream a{border-bottom:1px solid var(--plum-soft);}

.stream a:hover{border-bottom-color:var(--clay);}

.stream img{
  display:block;
  height:auto;
  margin:24px 0;
  border-radius:26px 22px 28px 20px;
}

.stream blockquote{
  margin:26px 0;
  padding:18px 22px;
  background:var(--ink-2);
  border-left:4px solid var(--plum);
  border-radius:0 22px 22px 0;
  color:var(--muted);
}

.stream blockquote p:last-child{margin-bottom:0;}

/* 右侧边栏 */
.sidebar{
  position:sticky;
  top:28px;
  align-self:start;
  display:grid;
  gap:16px;
}

.side-block{
  padding:22px 20px;
  background:var(--ink-2);
}

.side-block h2{
  margin:0 0 14px;
  font-family:var(--sans);
  font-size:16px;
  font-weight:500;
  letter-spacing:.14em;
  color:var(--paper);
}

.side-list{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:2px;
}

.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:7px 0;
  font-size:16px;
  color:var(--muted);
  border-bottom:1px solid transparent;
  transition:color .3s ease,border-color .3s ease,padding-left .3s ease;
}

.side-list a:hover{
  color:var(--paper);
  border-bottom-color:var(--plum);
  padding-left:6px;
}

.side-brand{
  margin:0;
  font-family:var(--serif);
  font-size:22px;
  color:var(--plum);
  letter-spacing:.04em;
}

/* 页脚 */
.foot{
  position:relative;
  z-index:1;
  margin-top:clamp(48px,6vw,90px);
  padding:clamp(44px,5vw,72px) clamp(20px,4vw,48px) 24px;
  background:var(--ink-3);
  border-top-left-radius:50% 6vw;
  border-top-right-radius:50% 6vw;
}

.foot > *{max-width:1120px;margin-left:auto;margin-right:auto;}

.foot-brand{
  margin:0 auto clamp(28px,3vw,44px);
  font-family:var(--serif);
  font-size:clamp(46px,11vw,140px);
  font-weight:500;
  line-height:.92;
  letter-spacing:.01em;
  color:rgba(244,238,247,.12);
}

.foot-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;
  gap:clamp(18px,3vw,40px);
  padding-bottom:clamp(28px,3vw,44px);
}

.foot-col h3{
  margin:0 0 14px;
  font-family:var(--sans);
  font-size:16px;
  font-weight:400;
  letter-spacing:.14em;
  color:rgba(231,221,239,.55);
}

.foot-col ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:2px;
}

.foot-col li a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 0;
  font-size:16px;
  color:var(--muted);
  transition:color .3s ease,transform .3s ease;
}

.foot-col li a:hover{color:var(--paper);transform:translateX(3px);}

.foot-contact address{
  font-family:var(--serif);
  font-style:normal;
  font-size:20px;
  line-height:1.5;
  color:var(--paper);
}

.to-top{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 16px;
  font-size:16px;
  color:var(--ink);
  background:var(--paper);
  border-radius:999px;
  transition:background .3s ease,color .3s ease;
}

.to-top:hover{background:var(--clay);color:var(--paper);}

.foot-base{
  margin:0 auto;
  padding-top:20px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:16px;
  color:rgba(231,221,239,.5);
}

/* 滚动显现 */
.js .reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);
}

.js .reveal.in{opacity:1;transform:none;}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .js .reveal{opacity:1;transform:none;transition:none;}
  .mark,.rail nav a,.side-list a,.foot-col li a{transition:none;}
}

/* 平板 */
@media (max-width:1040px){
  .stage{grid-template-columns:minmax(0,1fr) 240px;}
  .foot-grid{grid-template-columns:1fr 1fr;}
}

/* 手机 */
@media (max-width:860px){
  :root{--rail:0px;}

  body{padding-left:0;padding-top:64px;font-size:17px;}

  .mark{
    top:10px;
    left:12px;
    width:44px;
    height:44px;
  }

  .mark-img{width:44px;height:44px;}

  .rail{
    top:0;
    bottom:auto;
    right:0;
    width:auto;
    height:64px;
    padding:0 12px 0 68px;
    align-items:center;
    border-right:0;
    border-bottom:1px solid var(--line);
    background:rgba(31,23,38,.9);
    overflow-x:auto;
    overflow-y:hidden;
    scrollbar-width:none;
  }

  .rail::-webkit-scrollbar{display:none;}
  .rail nav{overflow-x:auto;scrollbar-width:none;}
  .rail nav::-webkit-scrollbar{display:none;}

  .rail nav p{
    flex-direction:row;
    gap:6px;
    width:max-content;
  }

  .rail nav a{
    white-space:nowrap;
    padding:10px 14px;
    min-height:42px;
  }

  .rail nav a:hover{transform:translateY(-2px);}

  .hero{
    padding:90px 20px 20vw;
    border-bottom-left-radius:50% 26px;
    border-bottom-right-radius:50% 26px;
  }

  .hero h1{font-size:clamp(30px,9vw,44px);}

  .hero-ghost{bottom:14vw;font-size:clamp(64px,20vw,120px);}

  .stage{grid-template-columns:1fr;padding:44px 20px;}

  .sidebar{position:static;grid-template-columns:1fr 1fr;gap:12px;}

  .side-block{padding:18px 16px;}

  .foot{
    padding:44px 20px 24px;
    border-top-left-radius:50% 26px;
    border-top-right-radius:50% 26px;
  }

  .foot-brand{margin-bottom:26px;}

  .foot-grid{gap:16px;}
}

@media (max-width:480px){
  .sidebar{grid-template-columns:1fr;}

  .foot-grid{grid-template-columns:1fr 1fr;}

  .foot-contact{grid-column:1 / -1;}
}

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