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

:root{
  --ink:#172623;
  --ink-soft:#26352f;
  --teal:#5cc6b0;
  --teal-deep:#2f8f80;
  --sand:#d4c4a8;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --paper:#f7f0e4;
  --paper-2:#efe3d0;
  --r:10px;
  --shadow:0 16px 34px -22px rgba(23,38,35,.7);
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:'Epilogue',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.72;
  background-image:
    radial-gradient(110% 55% at 88% -8%,rgba(92,198,176,.30),transparent 62%),
    radial-gradient(90% 45% at 2% 104%,rgba(198,123,92,.20),transparent 60%);
}

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

img{display:block;max-width:100%;height:auto}

h1,h2,h3,h4{
  font-family:'Anton','Epilogue',system-ui,'PingFang SC','Microsoft YaHei',sans-serif;
  font-weight:700;
  letter-spacing:.012em;
  line-height:1.14;
}

a{color:inherit}

/* ---------- 顶栏 ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--ink);
  color:var(--sand);
  border-bottom:3px solid var(--teal);
  transition:box-shadow .3s ease-out;
}

.topbar.is-stuck{box-shadow:0 12px 26px -18px rgba(0,0,0,.9)}

.bar{
  display:flex;
  align-items:center;
  gap:10px;
  max-width:1180px;
  margin:0 auto;
  padding:6px 14px;
}

.mark{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 8px;
  border-radius:999px;
  text-decoration:none;
  color:var(--paper);
  font-weight:700;
  letter-spacing:.05em;
  flex:none;
}

.mark-glyph{
  width:18px;
  height:18px;
  border-radius:50% 50% 50% 2px;
  background:linear-gradient(140deg,var(--teal) 0 52%,var(--clay) 52% 100%);
  box-shadow:0 0 0 3px rgba(92,198,176,.14);
}

.nav{margin-left:auto;min-width:0}

.nav ul{
  display:flex;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}

.nav ul::-webkit-scrollbar{display:none}

.nav a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:0 11px;
  border-radius:999px;
  color:var(--sand);
  text-decoration:none;
  font-size:16px;
  white-space:nowrap;
  transition:background .2s ease-out,color .2s ease-out;
}

.nav a svg{
  width:16px;
  height:16px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.75;
}

.nav a:hover,.nav a:focus-visible{background:rgba(92,198,176,.18);color:#fff}

.cta{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:none;
  min-height:44px;
  padding:0 15px;
  border-radius:999px;
  background:var(--teal);
  color:var(--ink);
  font-weight:700;
  font-size:16px;
  text-decoration:none;
  transition:transform .2s ease-out,background .2s ease-out;
}

.cta svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linejoin:round;
}

.cta:hover,.cta:focus-visible{background:var(--sand);transform:translateY(-1px)}

/* ---------- 主视觉 ---------- */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:46vh;
  padding:0;
  background:var(--ink);
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% 90%,0 100%);
}

.hero--bare{
  background:linear-gradient(145deg,var(--teal) 0%,var(--teal-deep) 42%,var(--ink) 100%);
}

.hero-media{
  position:absolute;
  inset:-12% 0 -12% 0;
  z-index:0;
  will-change:transform;
}

.hero-media .hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.92) contrast(1.02);
}

.hero::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(255deg,rgba(23,38,35,.92) 6%,rgba(23,38,35,.42) 52%,rgba(23,38,35,.16) 100%);
}

.hero-copy{
  position:relative;
  z-index:2;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:78px 20px 46px;
  text-align:right;
}

.hero-title{
  margin:0 0 0 auto;
  max-width:19ch;
  font-size:clamp(2.1rem,7.2vw,4.1rem);
  line-height:1.04;
  color:var(--paper);
  text-shadow:0 10px 24px rgba(0,0,0,.42);
  letter-spacing:.02em;
}

.hero-title::after{
  content:'';
  display:block;
  width:88px;
  height:8px;
  margin:16px 0 0 auto;
  border-radius:6px;
  background:linear-gradient(90deg,var(--teal),var(--clay));
}

/* ---------- 正文骨架 ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
}

.stage{
  display:block;
  padding:clamp(26px,4vw,52px) 0 70px;
}

.body{
  max-width:74ch;
  margin:0;
}

.body section{
  padding:clamp(26px,4vw,44px) 0;
  border-top:1px dashed rgba(198,123,92,.55);
  scroll-margin-top:112px;
}

.body section:first-child{
  padding-top:4px;
  border-top:0;
}

.body h2{
  margin:.2em 0 .7em;
  font-size:clamp(1.5rem,4.2vw,2.05rem);
  color:var(--ink);
}

.body h2 span{
  position:relative;
  display:inline-block;
  padding-bottom:7px;
}

.body h2 span::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:7px;
  border-radius:6px;
  background:linear-gradient(90deg,var(--teal) 0%,rgba(92,198,176,0) 96%);
}

.body h3{
  margin:1.6em 0 .5em;
  font-size:1.18rem;
  color:var(--ink-soft);
}

.body p{
  margin:0 0 1.05em;
  color:var(--ink-soft);
  line-height:1.82;
}

.body ul,.body ol{
  margin:0 0 1.1em;
  padding-left:1.35em;
  color:var(--ink-soft);
}

.body li{margin:.35em 0}

.body a{
  color:var(--teal-deep);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.body a:hover{color:var(--clay)}

.body strong{color:var(--ink)}

.body blockquote{
  margin:1.3em 0;
  padding:14px 18px;
  background:var(--paper-2);
  border-left:5px solid var(--teal);
  border-radius:0 var(--r) var(--r) 0;
  color:var(--ink);
}

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

.body table{
  width:100%;
  border-collapse:collapse;
  margin:1.1em 0;
  font-size:16px;
  display:block;
  overflow-x:auto;
  white-space:nowrap;
}

.body th,.body td{
  padding:10px 12px;
  border-bottom:1px solid rgba(23,38,35,.16);
  text-align:left;
}

.body th{background:var(--paper-2);font-weight:700}

.body figure{margin:1.3em 0}

.body figcaption{
  margin-top:8px;
  font-size:15px;
  color:#54635d;
}

.body img{border-radius:var(--r);box-shadow:var(--shadow)}

/* ---------- 回到顶部 ---------- */
.totop{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:30;
  min-height:44px;
  padding:0 14px;
  border:0;
  border-radius:var(--r);
  background:var(--teal);
  color:var(--ink);
  font:inherit;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  box-shadow:var(--shadow);
  transition:opacity .25s ease-out,transform .25s ease-out;
  transform:translateY(8px);
}

.totop.on{opacity:1;pointer-events:auto;transform:none}

/* ---------- 页脚 ---------- */
.foot{
  background:var(--ink);
  color:var(--sand);
  border-top:6px solid var(--teal);
}

.foot-in{
  max-width:1180px;
  margin:0 auto;
  padding:42px 20px 24px;
  display:grid;
  gap:30px;
  grid-template-columns:minmax(0,1fr);
}

.mark--foot{color:var(--paper);padding:0;margin-bottom:6px}

.foot-brand p{
  margin:.5em 0 0;
  max-width:36ch;
  font-size:15.5px;
  line-height:1.7;
  color:rgba(212,196,168,.82);
}

.foot-cols{
  display:grid;
  gap:22px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.foot-cols dl{margin:0}

.foot-cols dt{
  font-size:14px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--teal);
}

.foot-cols dd{margin:6px 0 0}

.foot-cols dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:var(--sand);
  text-decoration:none;
  font-size:16px;
  border-bottom:1px solid transparent;
}

.foot-cols dd a:hover,.foot-cols dd a:focus-visible{
  color:#fff;
  border-bottom-color:var(--teal);
}

.copy{
  max-width:1180px;
  margin:0 auto;
  padding:14px 20px 26px;
  font-size:15px;
  color:rgba(212,196,168,.7);
  border-top:1px solid rgba(212,196,168,.18);
}

/* ---------- 动效 ---------- */
@keyframes rise{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

.js .nav li{
  opacity:0;
  animation:rise .5s ease-out forwards;
  animation-delay:calc(var(--i,0) * 55ms);
}

.js .body section{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .55s ease-out,transform .55s ease-out;
}

.js .body section.in{opacity:1;transform:none}

/* ---------- 断点 ---------- */
@media (max-width:640px){
  .bar{gap:8px;padding:6px 10px}
  .mark-name{font-size:16px}
  .nav a span{font-size:15px}
  .cta span{display:none}
  .cta{padding:0 12px}
  .hero{min-height:54vh;clip-path:polygon(0 0,100% 0,100% 93%,0 100%)}
  .hero-copy{padding:70px 16px 40px}
  .wrap{padding:0 16px}
  .foot-cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .body section{scroll-margin-top:96px}
}

@media (min-width:760px){
  .foot-in{grid-template-columns:1.05fr 2fr;align-items:start}
}

@media (min-width:900px){
  .hero-copy{padding:96px 20px 54px}
  .body{padding-left:4px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .nav li{animation:none;opacity:1}
  .js .body section{opacity:1;transform:none;transition:none}
  .hero-media{transform:none !important}
  .cta:hover{transform:none}
}

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