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

:root{
  --ink:#1F1B16;
  --brand:#FFC53D;
  --cream:#FFF8E7;
  --paper:#FFFDF6;
  --soft:#5A5044;
  --rail:252px;
  --edge:2px solid #1F1B16;
}

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

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

body{
  margin:0;
  padding-left:var(--rail);
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit}
img{max-width:100%;display:block}
p{margin:0 0 1em}
h1,h2,h3{line-height:1.22;letter-spacing:-.01em;margin:0 0 .55em;font-weight:700}
ul,ol{margin:0;padding:0;list-style:none}

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

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:fixed;
  top:0;
  left:0;
  bottom:0;
  width:var(--rail);
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:24px 18px 22px;
  background:var(--cream);
  border-right:var(--edge);
  overflow-y:auto;
  z-index:20;
}

.rail-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:4px 0;
  text-decoration:none;
  font-weight:700;
  font-size:18px;
  letter-spacing:-.02em;
}

.logo-mark{
  flex:none;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  background:var(--brand);
  border:var(--edge);
  font-weight:700;
  font-size:18px;
  line-height:1;
}

.rail-nav ol{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.rail-nav a{
  display:block;
  padding:11px 10px;
  min-height:44px;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
  border-left:3px solid transparent;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible{
  background:var(--brand);
  border-left-color:var(--ink);
}

.rail-cta{
  margin-top:auto;
  display:block;
  text-align:center;
  padding:13px 10px;
  min-height:44px;
  background:var(--ink);
  color:var(--cream);
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  transition:background-color .16s ease,color .16s ease;
}

.rail-cta:hover,
.rail-cta:focus-visible{
  background:var(--brand);
  color:var(--ink);
}

/* ---------- 首屏 ---------- */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  min-height:45vh;
  background-color:var(--cream);
  background-image:radial-gradient(rgba(31,27,22,.18) 1px,transparent 1px);
  background-size:18px 18px;
  border-bottom:var(--edge);
}

.hero-figure{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:240px;
  background:var(--brand);
  border-right:var(--edge);
  overflow:hidden;
}

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

.geo{position:absolute;inset:0}

.geo span{
  position:absolute;
  display:block;
  border:var(--edge);
}

.g1{
  width:88px;
  height:88px;
  left:14%;
  top:18%;
  background:var(--cream);
  animation:turn 6s steps(4) infinite;
}

.g2{
  width:126px;
  height:126px;
  right:10%;
  bottom:12%;
  background:var(--ink);
  border-radius:50%;
}

.g3{
  width:54px;
  height:54px;
  right:32%;
  top:20%;
  background:var(--cream);
}

@keyframes turn{
  to{transform:rotate(360deg)}
}

.hero-text{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  text-align:right;
  padding:clamp(20px,4vw,52px);
}

.hero-text h1{
  margin:0 0 14px;
  font-size:clamp(28px,4vw,50px);
  max-width:17ch;
}

.hero-lead{
  margin:0;
  max-width:35ch;
  font-size:16px;
  color:var(--soft);
}

/* ---------- 主体网格 ---------- */
.wrap{
  display:grid;
  grid-template-columns:216px minmax(0,1fr);
  align-items:stretch;
}

.side{
  background:var(--cream);
  border-right:var(--edge);
  padding:30px 16px 44px;
  min-width:0;
}

.side-title{
  font-size:15px;
  letter-spacing:.18em;
  margin:0 0 4px;
}

.subtitle{
  margin:0 0 16px;
  font-size:13px;
  letter-spacing:.1em;
  color:var(--soft);
}

.side-list{
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:15px;
}

.side-list a{
  display:block;
  padding:9px 0;
  min-height:40px;
  text-decoration:none;
  border-bottom:1px solid rgba(31,27,22,.16);
  transition:background-color .16s ease,padding-left .16s ease;
}

.side-list a:hover,
.side-list a:focus-visible{
  background:var(--brand);
  padding-left:8px;
}

.content{
  min-width:0;
  padding:clamp(22px,3.2vw,46px);
}

.doc{
  max-width:74ch;
}

.doc > div{
  scroll-margin-top:18px;
  padding:28px 0;
  border-top:var(--edge);
  opacity:0;
  transform:translateY(10px);
  animation:rise .48s ease forwards;
}

.doc > div:first-child{
  border-top:0;
  padding-top:0;
}

.doc > div:nth-child(1){animation-delay:.02s}
.doc > div:nth-child(2){animation-delay:.09s}
.doc > div:nth-child(3){animation-delay:.16s}
.doc > div:nth-child(4){animation-delay:.23s}
.doc > div:nth-child(5){animation-delay:.3s}
.doc > div:nth-child(6){animation-delay:.37s}
.doc > div:nth-child(7){animation-delay:.44s}
.doc > div:nth-child(n+8){animation-delay:.5s}

@keyframes rise{
  to{opacity:1;transform:none}
}

.doc h2{
  font-size:clamp(21px,2.4vw,29px);
  border-left:9px solid var(--brand);
  padding-left:13px;
  margin-top:0;
}

.doc h3{
  font-size:19px;
  margin-top:1.4em;
}

.doc a{
  text-decoration:none;
  border-bottom:2px solid var(--brand);
}

.doc a:hover{border-bottom-color:var(--ink)}

.doc ul,.doc ol{
  padding-left:1.2em;
  margin:0 0 1em;
  list-style:revert;
}

.doc li{margin:0 0 .45em}

.doc blockquote{
  margin:0 0 1em;
  padding:14px 18px;
  background:var(--cream);
  border-left:9px solid var(--ink);
}

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

.doc table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1em;
  font-size:16px;
}

.doc th,.doc td{
  border:1px solid rgba(31,27,22,.28);
  padding:9px 11px;
  text-align:left;
}

.doc th{background:var(--cream)}

.doc time{
  display:inline-block;
  font-size:14px;
  color:var(--soft);
}

.doc img{margin:0 0 1em;border:var(--edge)}

/* ---------- 页脚 ---------- */
.foot{
  display:flex;
  flex-wrap:wrap;
  gap:16px 22px;
  align-items:center;
  justify-content:space-between;
  padding:24px clamp(20px,3.2vw,46px);
  background:var(--ink);
  color:var(--cream);
  border-top:var(--edge);
}

.foot a{color:var(--cream);text-decoration:none}
.f-col{min-width:0}

.f-logo{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:4px 0;
  font-weight:600;
  font-size:16px;
}

.f-nav ol{
  display:flex;
  flex-wrap:wrap;
  gap:2px 14px;
}

.f-nav a{
  display:inline-block;
  padding:10px 4px;
  min-height:40px;
  font-size:14px;
  opacity:.88;
  transition:color .16s ease,opacity .16s ease;
}

.f-nav a:hover,
.f-nav a:focus-visible{color:var(--brand);opacity:1}

.f-note p{
  margin:0;
  font-size:13px;
  line-height:1.6;
  opacity:.78;
  max-width:34ch;
}

.f-copy{
  font-size:13px;
  opacity:.78;
  text-align:center;
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  body{padding-left:0;font-size:16px}

  .rail{
    position:static;
    width:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:8px 12px;
    padding:12px 16px;
    border-right:0;
    border-bottom:var(--edge);
    overflow:visible;
  }

  .rail-brand{flex:1 1 auto;min-height:44px;font-size:17px}
  .rail-cta{margin-top:0;padding:12px 14px;flex:none}
  .rail-nav{flex:1 1 100%;order:3}

  .rail-nav ol{
    flex-direction:row;
    flex-wrap:wrap;
    gap:4px 2px;
  }

  .rail-nav a{
    border-left:0;
    border-bottom:3px solid transparent;
    padding:10px 10px;
  }

  .rail-nav a:hover,
  .rail-nav a:focus-visible{border-left-color:transparent;border-bottom-color:var(--ink)}

  .hero{
    grid-template-columns:1fr;
    min-height:0;
  }

  .hero-text{
    order:1;
    padding:24px 18px 26px;
  }

  .hero-text h1{font-size:clamp(26px,7.4vw,36px);max-width:none}

  .hero-figure{
    order:2;
    min-height:170px;
    border-right:0;
    border-top:var(--edge);
  }

  .g1{width:64px;height:64px}
  .g2{width:92px;height:92px}

  .wrap{grid-template-columns:1fr}

  .side{
    border-right:0;
    border-bottom:var(--edge);
    padding:22px 16px 24px;
  }

  .side-list{
    flex-direction:row;
    flex-wrap:wrap;
    gap:2px 14px;
  }

  .side-list a{border-bottom:0;padding:8px 0}
  .side-list a:hover{padding-left:0}

  .content{padding:22px 16px 34px}

  .doc > div{padding:22px 0}

  .foot{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:20px 16px 26px;
  }

  .f-copy{text-align:left;align-self:stretch}
  .f-note p{max-width:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .geo span{animation:none}
  .doc > div{opacity:1;transform:none;animation:none}
  *{transition-duration:.01ms!important}
}

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