@charset "utf-8";

:root{
  --sand:#efe7db;
  --sand-2:#e5dacb;
  --sand-3:#dbcdba;
  --clay:#c67b5c;
  --sage:#6b7b3c;
  --turq:#5cc6b0;
  --ink:#172623;
  --ink-soft:#3c504a;
  --paper:#faf6ef;
  --line:rgba(23,38,35,.14);
}

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

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

body{
  margin:0;
  background:var(--sand);
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.78;
  letter-spacing:.012em;
  -webkit-font-smoothing:antialiased;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:.16;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E");
}

img{max-width:100%}
p{margin:0 0 1.05em}
a{color:#2c7a6b}

h1,h2,h3,h4{letter-spacing:-.012em}

hr{
  border:0;
  height:1px;
  margin:14px 0 26px;
  background:linear-gradient(90deg,rgba(198,123,92,.62),rgba(198,123,92,0));
}

.jump{
  position:absolute;
  left:8px;
  top:-72px;
  z-index:20;
  padding:12px 20px;
  min-height:44px;
  background:var(--ink);
  color:var(--paper);
  text-decoration:none;
  font-size:15px;
  transition:top .2s ease-out;
}
.jump:focus{top:8px}

.frame{
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  align-items:start;
}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
  z-index:5;
  display:flex;
  flex-direction:column;
  padding:26px 20px 30px;
  background:linear-gradient(184deg,#eae0d1 0%,var(--sand-2) 56%,var(--sand-3) 100%);
  border-right:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:48px;
  text-decoration:none;
  color:var(--ink);
  font-weight:600;
  font-size:17px;
  letter-spacing:.05em;
}
.brand-txt{
  border-bottom:2px solid transparent;
  padding-bottom:2px;
}
.brand:hover .brand-txt,
.brand:focus .brand-txt{border-bottom-color:var(--clay)}

.mark{
  width:34px;
  height:34px;
  object-fit:cover;
  border-radius:10px 4px 10px 4px;
  flex:0 0 auto;
}
.mark-dot{
  width:32px;
  height:32px;
  flex:0 0 auto;
  background:var(--turq);
  clip-path:polygon(0 12%,74% 0,100% 62%,56% 100%,6% 84%);
}

.rail-title{
  margin:26px 0 8px;
  font-size:13px;
  font-weight:500;
  letter-spacing:.32em;
  color:var(--sage);
  text-transform:none;
}

.rail-rule{
  width:40px;
  height:3px;
  margin:0 0 14px;
  border-radius:1px;
  background:var(--clay);
}

.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
}

.rail-nav a{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:9px 12px;
  color:var(--ink);
  text-decoration:none;
  font-size:16px;
  line-height:1.5;
  border-left:3px solid transparent;
  transition:border-color .18s ease-out,background-color .18s ease-out,padding-left .18s ease-out;
}
.rail-nav a:hover,
.rail-nav a:focus-visible{
  border-left-color:var(--turq);
  background:rgba(92,198,176,.2);
  padding-left:16px;
}

/* ---------- 主区 ---------- */
.stage{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:42px;
  padding:0 clamp(16px,3vw,40px);
  background:var(--ink);
  color:var(--sand);
}
.strip-brand{
  font-size:12px;
  letter-spacing:.4em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.strip-dot{
  width:64px;
  height:6px;
  flex:0 0 auto;
  background:linear-gradient(90deg,var(--turq),var(--clay));
}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  min-height:70vh;
  background:var(--paper);
}

.hero-art{
  position:relative;
  margin:0;
  overflow:hidden;
  background:linear-gradient(160deg,var(--sand-2),var(--clay));
  clip-path:polygon(0 0,100% 0,100% 90%,0 100%);
}

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

.hero-plate{
  position:absolute;
  inset:0;
  background:linear-gradient(158deg,#d9c6aa 0%,var(--clay) 58%,var(--sage) 100%);
}
.hero-plate span{
  position:absolute;
  border:1px solid rgba(250,246,239,.55);
  border-radius:50%;
}
.hero-plate span:nth-child(1){width:60%;padding-top:60%;right:-10%;top:10%}
.hero-plate span:nth-child(2){width:38%;padding-top:38%;left:6%;bottom:-12%}
.hero-plate span:nth-child(3){width:20%;padding-top:20%;left:28%;top:22%;background:rgba(92,198,176,.35)}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-end;
  text-align:right;
  padding:48px clamp(24px,4vw,56px) 56px 12px;
}

.hero-h1{
  margin:0 0 18px;
  font-size:clamp(29px,3.6vw,52px);
  line-height:1.1;
  font-weight:600;
  letter-spacing:-.025em;
  max-width:14ch;
}

.hero-desc{
  max-width:33ch;
  font-size:16px;
  font-weight:300;
  color:var(--ink-soft);
  margin:0;
}

.hero-band{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:6px;
  background:linear-gradient(90deg,var(--turq),var(--clay) 62%,var(--sage));
}

/* ---------- 正文 ---------- */
.sheet{
  padding:0 clamp(18px,4vw,56px);
  background:var(--paper);
}

.prose{
  max-width:800px;
  margin:0 auto;
  padding:54px 0 76px;
  font-size:17px;
}

.prose [id]{scroll-margin-top:78px}

.prose div{
  padding-bottom:12px;
}

.prose div + div{
  border-top:1px solid var(--line);
  padding-top:34px;
  margin-top:34px;
}

.prose h2{
  font-size:clamp(22px,2.6vw,30px);
  line-height:1.28;
  font-weight:600;
  margin:8px 0 6px;
  padding-left:14px;
  border-left:5px solid var(--clay);
  scroll-margin-top:78px;
}

.prose h3{
  font-size:19px;
  line-height:1.4;
  font-weight:600;
  margin:30px 0 4px;
  color:var(--ink);
}

.prose h4{
  font-size:17px;
  margin:22px 0 4px;
  color:var(--ink-soft);
}

.prose ul,
.prose ol{
  padding-left:1.25em;
  margin:0 0 1.1em;
}
.prose li{margin:.34em 0}
.prose li::marker{color:var(--clay)}

.prose a{
  color:#26695c;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
}
.prose a:hover{background:rgba(92,198,176,.24)}

.prose strong{color:#10201c;font-weight:600}

.prose blockquote{
  margin:24px 0;
  padding:14px 20px;
  background:#efe7d8;
  border-left:4px solid var(--sage);
  color:var(--ink-soft);
}
.prose blockquote p:last-child{margin-bottom:0}

.prose figure{
  margin:24px 0;
}
.prose figure img{width:100%;height:auto;display:block}
.prose figcaption{
  font-size:14px;
  color:var(--ink-soft);
  padding-top:8px;
}

.prose img{
  display:block;
  width:100%;
  height:auto;
  margin:22px 0;
  clip-path:polygon(0 0,100% 0,100% 96%,0 100%);
}

.prose table{
  width:100%;
  border-collapse:collapse;
  margin:22px 0;
  font-size:15.5px;
}
.prose th,.prose td{
  border-bottom:1px solid var(--line);
  padding:10px 8px;
  text-align:left;
  vertical-align:top;
}
.prose th{background:#efe7d8;font-weight:600}

.prose code{
  font-size:.9em;
  background:#e9e0d1;
  padding:1px 5px;
}

.prose > div{
  animation:rise .62s ease-out both;
}
.prose > div:nth-child(2){animation-delay:.05s}
.prose > div:nth-child(3){animation-delay:.1s}
.prose > div:nth-child(4){animation-delay:.15s}
.prose > div:nth-child(5){animation-delay:.2s}
.prose > div:nth-child(6){animation-delay:.25s}
.prose > div:nth-child(7){animation-delay:.3s}

@keyframes rise{
  from{opacity:0;transform:translateY(16px)}
  to{opacity:1;transform:none}
}

/* ---------- 页脚 ---------- */
.foot{
  background:var(--ink);
  color:#e7ded0;
  padding:56px clamp(18px,4vw,56px) 26px;
  margin-top:auto;
}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(22px,4vw,54px);
  max-width:1000px;
  margin:0 auto;
}

.foot-col{margin:0}

.foot dt{
  font-size:12px;
  letter-spacing:.32em;
  color:var(--turq);
  margin-bottom:14px;
}

.foot dd{margin:0}

.foot-nav{
  list-style:none;
  margin:0;
  padding:0;
  columns:2;
  column-gap:18px;
}
.foot-nav li{break-inside:avoid}
.foot-nav a{
  display:block;
  min-height:42px;
  padding:9px 0;
  color:#e7ded0;
  text-decoration:none;
  font-size:16px;
  line-height:1.5;
  border-bottom:1px solid transparent;
}
.foot-nav a:hover,
.foot-nav a:focus-visible{
  color:var(--turq);
  border-bottom-color:rgba(92,198,176,.5);
}

.foot-about{
  font-size:15.5px;
  line-height:1.8;
  color:rgba(231,222,208,.82);
  max-width:34ch;
}

.sub{display:flex;flex-direction:column;gap:6px;max-width:260px}

.sub-label{
  font-size:13px;
  letter-spacing:.18em;
  color:rgba(231,222,208,.6);
}

.sub-in{
  min-height:44px;
  padding:10px 2px;
  font:inherit;
  font-size:16px;
  color:#f4ece0;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(231,222,208,.35);
}
.sub-in::placeholder{color:rgba(231,222,208,.42)}
.sub-in:focus{outline:0;border-bottom-color:var(--turq)}

.sub-btn{
  align-self:flex-start;
  margin-top:8px;
  min-height:44px;
  padding:11px 26px;
  font:inherit;
  font-size:15px;
  font-weight:600;
  letter-spacing:.16em;
  color:var(--ink);
  background:var(--turq);
  border:0;
  cursor:pointer;
  transition:background-color .18s ease-out,color .18s ease-out;
}
.sub-btn:hover,.sub-btn:focus-visible{
  background:var(--paper);
  color:var(--ink);
}

.foot-base{
  max-width:1000px;
  margin:38px auto 0;
  padding-top:18px;
  border-top:1px solid rgba(231,222,208,.2);
  text-align:center;
  font-size:14px;
  color:rgba(231,222,208,.62);
}
.foot-base p{margin:0}

/* ---------- 断点 ---------- */
@media (max-width:1040px){
  .frame{grid-template-columns:236px minmax(0,1fr)}
  .hero{grid-template-columns:minmax(0,1fr) minmax(280px,.9fr)}
}

@media (max-width:880px){
  .frame{grid-template-columns:minmax(0,1fr)}
  .rail{
    position:static;
    height:auto;
    overflow:visible;
    padding:14px 16px 10px;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  .rail-title{
    margin:14px 0 6px;
    font-size:12px;
  }
  .rail-rule{margin-bottom:10px}
  .rail-nav ul{
    display:flex;
    gap:2px;
    overflow-x:auto;
    padding-bottom:4px;
    -webkit-overflow-scrolling:touch;
  }
  .rail-nav li{flex:0 0 auto}
  .rail-nav a{
    min-height:44px;
    padding:10px 12px;
    white-space:nowrap;
    border-left:0;
    border-bottom:3px solid transparent;
  }
  .rail-nav a:hover,
  .rail-nav a:focus-visible{
    padding-left:12px;
    border-left-color:transparent;
    border-bottom-color:var(--turq);
  }

  .hero{
    grid-template-columns:minmax(0,1fr);
    min-height:0;
  }
  .hero-art{
    height:34vh;
    min-height:190px;
    clip-path:polygon(0 0,100% 0,100% 92%,0 100%);
  }
  .hero-copy{
    align-items:flex-start;
    text-align:left;
    padding:26px 20px 32px;
  }
  .hero-h1{
    max-width:20ch;
    font-size:clamp(26px,7vw,36px);
  }
  .hero-band{height:5px}

  .sheet{padding:0 18px}
  .prose{padding:30px 0 58px;font-size:16.5px}
  .prose div + div{margin-top:26px;padding-top:26px}

  .foot-cols{grid-template-columns:minmax(0,1fr);gap:30px}
  .foot-nav{columns:2}
  .foot-about{max-width:none}
  .sub{max-width:100%}
}

@media (max-width:560px){
  body{font-size:16.5px}
  .strip{min-height:38px}
  .strip-brand{letter-spacing:.3em;font-size:11px}
  .strip-dot{width:42px}
  .hero-desc{font-size:15.5px}
  .foot-nav{columns:1}
  .prose h2{font-size:22px;padding-left:11px;border-left-width:4px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .prose > div,
  .rail-nav a,
  .sub-btn,
  .jump{animation:none;transition:none}
  .hero-img{transform:none !important}
}

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