@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root{
  --ink:#12100F;
  --paper:#F5EFE7;
  --red:#E0552F;
  --line:rgba(245,239,231,.16);
  --dim:rgba(245,239,231,.64);
  --rule:rgba(18,16,15,.14);
  --rail:92px;
}

*,*::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(--paper);
  font-family:'DM Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  letter-spacing:.01em;
  overflow-x:hidden;
}

img{max-width:100%;height:auto}
a{color:var(--paper)}

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

/* ---------- 背景视差层 ---------- */
.depth{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.depth i{
  position:absolute;
  inset:-25% -12%;
  display:block;
  will-change:transform;
}
.d1{background:radial-gradient(58% 42% at 72% 10%,rgba(224,85,47,.22),transparent 68%)}
.d2{background:radial-gradient(46% 40% at 16% 62%,rgba(245,239,231,.09),transparent 70%)}
.d3{background:repeating-linear-gradient(180deg,rgba(245,239,231,.055) 0 1px,transparent 1px 46px)}

/* ---------- 左侧固定竖栏 ---------- */
.rail{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--rail);
  z-index:6;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:20px 8px 18px;
  background:rgba(18,16,15,.94);
  border-right:1px solid var(--line);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 4px;
  text-decoration:none;
  color:var(--paper);
}
.brand img{width:40px;height:40px;border-radius:50%;object-fit:cover;display:block}
.brand-mark{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius:50%;
  background:var(--red);
  color:var(--paper);
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:0;
}
.brand-name{
  writing-mode:vertical-rl;
  letter-spacing:.34em;
  font-size:14px;
  line-height:1.2;
  color:var(--dim);
}

.drawer{width:100%;position:relative}
.drawer>summary{
  list-style:none;
  cursor:pointer;
  min-height:44px;
  display:grid;
  place-items:center;
  padding:10px 2px;
  border:1px solid var(--line);
  border-radius:14px;
  font-size:14px;
  letter-spacing:.16em;
  color:var(--paper);
  transition:border-color .25s ease,color .25s ease;
}
.drawer>summary::-webkit-details-marker{display:none}
.drawer>summary::marker{content:''}
.drawer>summary:hover,
.drawer[open]>summary{border-color:var(--red);color:var(--red)}

.drawer>menu{
  position:absolute;
  left:100%;
  top:0;
  margin:0 0 0 12px;
  padding:10px;
  min-width:190px;
  list-style:none;
  display:grid;
  gap:2px;
  background:#1b1815;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:0 18px 40px rgba(0,0,0,.45);
}
.drawer>menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border-radius:12px;
  font-size:16px;
  text-decoration:none;
  color:var(--paper);
  transition:background .2s ease,color .2s ease;
}
.drawer>menu a:hover{background:rgba(245,239,231,.09);color:var(--red)}

.find{
  width:100%;
  margin-top:auto;
  display:grid;
  gap:6px;
}
.find input{
  width:100%;
  min-width:0;
  min-height:44px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:12px;
  background:transparent;
  color:var(--paper);
  font:inherit;
  font-size:14px;
}
.find input::placeholder{color:rgba(245,239,231,.45)}
.find input:focus{outline:2px solid var(--red);outline-offset:1px}
.find button{
  min-height:44px;
  padding:0 6px;
  border:0;
  border-radius:12px;
  background:var(--red);
  color:#fff;
  font:inherit;
  font-size:14px;
  cursor:pointer;
}

/* ---------- 首屏 ---------- */
main{position:relative;z-index:1}

.hero{
  min-height:45vh;
  display:grid;
  place-items:center;
  text-align:center;
  padding:72px 24px 54px;
}
.hero-figure{margin:0;max-width:920px}
h1{
  margin:0 0 16px;
  font-size:clamp(2.5rem,7.6vw,5.4rem);
  line-height:1.05;
  letter-spacing:-.025em;
  font-weight:700;
}
.hero figcaption{
  margin:0 auto;
  max-width:48ch;
  font-size:1rem;
  color:var(--dim);
}

/* ---------- 正文跨页 ---------- */
.spread{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) 268px;
  gap:32px;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px 90px;
}

.spread-body{
  min-width:0;
  padding:clamp(22px,3.6vw,52px);
  background:var(--paper);
  color:var(--ink);
  border:1px solid var(--rule);
  border-radius:28px;
  counter-reset:ch;
  line-height:1.85;
}
.spread-body>article{
  padding:34px 0;
  border-top:1px solid var(--rule);
  scroll-margin-top:96px;
}
.spread-body>article:first-child{border-top:0;padding-top:0}
.spread-body>article::before{
  counter-increment:ch;
  content:counter(ch,decimal-leading-zero);
  display:block;
  margin-bottom:10px;
  font-size:14px;
  font-weight:700;
  letter-spacing:.26em;
  color:var(--red);
}
.spread-body :is(h2,h3){
  color:var(--ink);
  line-height:1.28;
  letter-spacing:-.01em;
}
.spread-body h2{
  margin:0 0 14px;
  font-size:clamp(1.35rem,2.6vw,1.95rem);
}
.spread-body h3{
  margin:26px 0 10px;
  font-size:1.14rem;
}
.spread-body hr{
  width:54px;
  height:2px;
  margin:0 0 18px;
  border:0;
  background:var(--red);
}
.spread-body p{margin:0 0 1em}
.spread-body a{color:var(--red);text-underline-offset:3px}
.spread-body :is(ul,ol){padding-left:1.25em;margin:0 0 1em}
.spread-body li{margin:.25em 0}
.spread-body figure{margin:20px 0}
.spread-body figcaption{font-size:15px;color:rgba(18,16,15,.6)}
.spread-body img{border-radius:18px;display:block}
.spread-body blockquote{
  margin:20px 0;
  padding:2px 0 2px 18px;
  border-left:2px solid var(--red);
  color:rgba(18,16,15,.78);
}

/* ---------- 右侧边栏 ---------- */
.rail-aside{
  position:sticky;
  top:28px;
  align-self:start;
  padding:18px 16px;
  border:1px solid var(--line);
  border-radius:28px;
  background:rgba(27,24,21,.74);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.rail-aside h2{
  margin:0 0 8px;
  font-size:1rem;
  letter-spacing:.16em;
  font-weight:500;
  color:var(--paper);
}
.rail-aside hr{
  width:34px;
  height:2px;
  margin:0 0 12px;
  border:0;
  background:var(--red);
}
.rail-aside ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:1px;
}
.rail-aside a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:2px 8px;
  border-radius:12px;
  font-size:16px;
  line-height:1.4;
  text-decoration:none;
  color:var(--dim);
  transition:color .2s ease,background .2s ease;
}
.rail-aside a:hover{color:var(--paper);background:rgba(245,239,231,.09)}

.spin{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.spin-tag{
  display:block;
  font-size:14px;
  letter-spacing:.2em;
  color:var(--red);
}
.spin-link{
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  font-weight:500;
  text-decoration:none;
  color:var(--paper);
}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  padding:54px 24px 30px;
  border-top:1px solid var(--line);
  background:rgba(18,16,15,.74);
}
.foot-cols{
  display:grid;
  grid-template-columns:1.3fr 1.1fr 1fr 1fr;
  gap:26px;
  max-width:1180px;
  margin:0 auto;
}
.foot-brand{
  margin:0;
  font-size:1.35rem;
  font-weight:700;
  letter-spacing:-.01em;
}
.foot address{
  font-style:normal;
  font-size:16px;
  line-height:1.85;
  color:var(--dim);
  overflow-wrap:anywhere;
}
.foot ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:1px;
}
.foot ul a{
  display:flex;
  align-items:center;
  min-height:44px;
  font-size:16px;
  text-decoration:none;
  color:var(--dim);
  transition:color .2s ease;
}
.foot ul a:hover{color:var(--paper)}

.copy{
  max-width:1180px;
  margin:34px auto 0;
  padding-top:18px;
  border-top:1px solid var(--line);
  text-align:center;
  font-size:15px;
  color:var(--dim);
}

/* ---------- 滚动显现 ---------- */
.has-io .rv{
  opacity:0;
  transform:translate3d(0,22px,0);
  transition:opacity .65s ease,transform .65s ease;
}
.has-io .rv.on{
  opacity:1;
  transform:none;
}

/* ---------- 窄屏 ---------- */
@media (max-width:880px){
  body{padding-left:0}

  .rail{
    position:sticky;
    top:0;
    left:auto;
    right:auto;
    bottom:auto;
    width:100%;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .brand{flex:1;flex-direction:row;padding:4px;min-width:0}
  .brand-mark,.brand img{width:34px;height:34px}
  .brand-name{
    writing-mode:horizontal-tb;
    letter-spacing:.04em;
    font-size:15px;
    color:var(--paper);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .drawer{width:auto;flex:none}
  .drawer>summary{padding:0 14px;border-radius:12px}
  .drawer>menu{
    left:auto;
    right:8px;
    top:calc(100% + 8px);
    margin:0;
  }
  .find{
    width:auto;
    margin-top:0;
    display:flex;
    gap:6px;
    flex:none;
  }
  .find input{width:74px;min-width:0;padding:0 6px}
  .find button{padding:0 12px}

  .hero{padding:44px 16px 34px;min-height:38vh}
  .spread{
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    padding:0 14px 60px;
  }
  .spread-body{padding:22px 18px}
  .spread-body>article{scroll-margin-top:88px}
  .rail-aside{position:static;order:2}

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

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .has-io .rv{opacity:1;transform:none;transition:none}
  .depth i{transform:none !important}
}

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