@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

:root{
  --ink:#172623;
  --deep:#1d332c;
  --mint:#5cc6b0;
  --sand:#d4c4a8;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --linen:#f4eee3;
  --paper:#fffaf1;
  --line:rgba(23,38,35,.14);
  --glass:rgba(255,252,245,.62);
  --shadow:0 22px 46px -34px rgba(23,38,35,.6);
  --serif:"EB Garamond","Crimson Text","Songti SC","Noto Serif SC",Georgia,serif;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  overflow-x:clip;
  background:#f2ebdf;
}

body{
  margin:0;
  min-height:100svh;
  overflow-x:clip;
  font-family:"Crimson Text","EB Garamond","Songti SC","Noto Serif SC",Georgia,serif;
  font-size:17px;
  line-height:1.82;
  color:#24352e;
  background:
    radial-gradient(1100px 560px at 84% -8%, rgba(92,198,176,.20), transparent 62%),
    radial-gradient(880px 500px at -12% 22%, rgba(198,123,92,.15), transparent 66%),
    linear-gradient(180deg,#f8f2e7 0%,#efe7d8 52%,#e9dfcd 100%);
  background-attachment:fixed;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.5;
  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='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E");
}

a{color:#2c7a68}
a:focus-visible,button:focus-visible{outline:3px solid var(--mint);outline-offset:3px;border-radius:8px}

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

.shell{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:216px minmax(0,1fr);
  max-width:100%;
  overflow-x:clip;
}

/* 顶部品牌栏 */
.topbar{
  grid-column:1 / -1;
  position:sticky;
  top:0;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:62px;
  max-width:100%;
  padding:8px clamp(14px,4vw,40px);
  background:rgba(248,242,231,.84);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  min-width:0;
  text-decoration:none;
  color:var(--ink);
  font-family:var(--serif);
  font-weight:700;
  font-size:1.12rem;
  letter-spacing:.02em;
}

.brand-dot{
  flex:0 0 auto;
  width:15px;
  height:15px;
  border-radius:52% 38% 58% 42%;
  background:linear-gradient(140deg,var(--mint),var(--olive));
  box-shadow:inset 0 0 0 1px rgba(23,38,35,.22);
}

.brand-mark{
  flex:0 0 auto;
  width:34px;
  height:34px;
  object-fit:cover;
  border-radius:13px 8px 15px 9px;
}

.brand-tag{
  flex:0 1 auto;
  min-width:0;
  max-width:46%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.88rem;
  letter-spacing:.16em;
  color:#5f6f66;
}

/* 左侧粘性胶囊标签条 */
.rail{
  grid-column:1;
  align-self:start;
  position:sticky;
  top:78px;
  min-width:0;
  max-width:100%;
  padding:10px 10px 26px 18px;
}

.rail-nav{min-width:0;max-width:100%}

.rail-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}

.rail-nav li{flex:0 0 auto;min-width:0}

.rail-nav a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 15px;
  border-radius:999px;
  border:1px solid rgba(23,38,35,.16);
  background:rgba(255,252,245,.58);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  color:#243a32;
  font-size:.97rem;
  text-decoration:none;
  transition:background .32s ease-out,border-color .32s ease-out,transform .32s ease-out;
}

.rail-nav a:hover{
  background:rgba(92,198,176,.28);
  border-color:rgba(92,198,176,.62);
  transform:translateX(3px);
}

/* 主区 */
main{grid-column:2;min-width:0;max-width:100%}
.wrap{min-width:0;max-width:100%;padding-left:clamp(0px,1.6vw,24px)}

/* 首屏 */
.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  max-width:100%;
  min-height:calc(100svh - 74px);
  border-radius:0 0 52px 22px;
  background:linear-gradient(155deg,#21443c 0%,#172623 56%,#2b3a22 100%);
}

.hero-media{position:absolute;inset:0;z-index:-3;overflow:hidden}
.hero-media img{width:100%;height:100%;object-fit:cover}

.hero-veil{
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(180deg,rgba(23,38,35,.16) 0%,rgba(23,38,35,.52) 52%,rgba(23,38,35,.9) 100%);
}

.hero-grid{
  position:absolute;
  inset:0;
  z-index:-1;
  opacity:.42;
  background-image:radial-gradient(rgba(212,196,168,.55) 1px,transparent 1.5px);
  background-size:24px 24px;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,transparent 88%);
  mask-image:linear-gradient(180deg,#000 0%,transparent 88%);
}

.hero-in{
  min-width:0;
  max-width:780px;
  padding:clamp(24px,5vw,66px);
}

.hero-title{
  margin:0 0 .45em;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(2rem,5.2vw,3.5rem);
  line-height:1.14;
  letter-spacing:.005em;
  color:#fdf7ea;
  text-shadow:0 2px 26px rgba(0,0,0,.28);
  overflow-wrap:break-word;
}

.hero-sub{
  margin:0 0 1.5em;
  max-width:46ch;
  font-size:clamp(1rem,1.6vw,1.12rem);
  color:rgba(253,247,234,.86);
}

.hero-jump{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 26px;
  border-radius:999px;
  background:linear-gradient(140deg,var(--mint),#7fd4c2);
  color:#10241f;
  font-weight:600;
  font-size:1rem;
  text-decoration:none;
  box-shadow:0 16px 30px -18px rgba(0,0,0,.75);
  transition:transform .3s ease-out,box-shadow .3s ease-out;
}

.hero-jump:hover{transform:translateY(-2px);box-shadow:0 22px 34px -18px rgba(0,0,0,.8)}

/* 正文 */
.doc{min-width:0;max-width:100%;padding:clamp(26px,4vw,58px) clamp(14px,4vw,56px) 8px}
.doc-body{width:100%;min-width:0;max-width:880px;margin:0 auto}

.content{min-width:0;max-width:100%;overflow-wrap:break-word}
.content > *{max-width:100%}
.content img,.content video,.content iframe,.content svg{max-width:100%;height:auto}

.content > article{
  margin:0 0 clamp(22px,4vw,42px);
  padding:clamp(20px,3.6vw,44px);
  border:1px solid rgba(23,38,35,.1);
  border-radius:30px 20px 34px 22px;
  background:linear-gradient(180deg,rgba(255,252,245,.76),rgba(255,249,240,.5));
  -webkit-backdrop-filter:blur(10px) saturate(1.08);
  backdrop-filter:blur(10px) saturate(1.08);
  box-shadow:var(--shadow);
  scroll-margin-top:132px;
}

.content > article:nth-child(even){
  border-radius:20px 34px 22px 30px;
  background:linear-gradient(180deg,rgba(255,251,242,.7),rgba(212,196,168,.24));
}

.content > article:last-child{margin-bottom:0}

.content h2{
  margin:0 0 .7em;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(1.42rem,2.7vw,2rem);
  line-height:1.26;
  color:var(--deep);
  letter-spacing:.01em;
  overflow-wrap:break-word;
}

.content h2 > span{display:inline-block;max-width:100%;border-bottom:2px solid var(--mint);padding-bottom:.1em}

.content h3{
  margin:1.6em 0 .55em;
  font-family:var(--serif);
  font-size:clamp(1.16rem,1.9vw,1.34rem);
  line-height:1.34;
  color:#2a4038;
  overflow-wrap:break-word;
}

.content h3 > span{display:inline-block;max-width:100%;border-bottom:1px dotted var(--clay);padding-bottom:.08em}

.content p{margin:0 0 1.05em}
.content p:last-child{margin-bottom:0}

.content ul,.content ol{margin:0 0 1.1em;padding-left:1.35em}
.content li{margin:0 0 .5em}
.content li::marker{color:var(--olive)}

.content a{color:#24735f;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;overflow-wrap:break-word}

.content blockquote{
  margin:1.3em 0;
  padding:.9em 1.2em;
  border-left:4px solid var(--clay);
  border-radius:0 14px 14px 0;
  background:rgba(212,196,168,.3);
  color:#3a4a41;
}

.content table{
  width:100%;
  max-width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  margin:1.2em 0;
  font-size:.98rem;
}
.content th,.content td{
  border-bottom:1px solid var(--line);
  padding:.6em .5em;
  text-align:left;
  vertical-align:top;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.content th{background:rgba(92,198,176,.18);font-weight:600}

.content pre,.content code{max-width:100%;overflow-wrap:anywhere}
.content pre{overflow-x:auto;padding:.9em 1em;border-radius:14px;background:rgba(23,38,35,.06)}

.content strong{color:#1f322b}

/* 大 CTA */
.cta{
  grid-column:1 / -1;
  max-width:100%;
  padding:clamp(30px,5.5vw,66px) clamp(16px,5vw,52px);
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(92,198,176,.35), transparent 70%),
    linear-gradient(120deg,#e9dcc4,#d4c4a8);
  border-top:1px solid rgba(23,38,35,.1);
}

.cta-in{
  max-width:1080px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1.1rem;
}

.cta-brand{
  margin:0;
  min-width:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(1.6rem,4.2vw,2.7rem);
  line-height:1.2;
  color:var(--ink);
  letter-spacing:.01em;
  overflow-wrap:break-word;
}

.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 28px;
  border-radius:999px;
  background:var(--ink);
  color:#eef6f2;
  font-size:1rem;
  text-decoration:none;
  transition:background .3s ease-out,transform .3s ease-out;
}

.cta-btn:hover{background:#254a41;transform:translateY(-2px)}

/* 页脚 */
.foot{
  grid-column:1 / -1;
  max-width:100%;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.8rem 1.6rem;
  padding:20px clamp(16px,5vw,52px);
  background:var(--ink);
  color:#cbd7d0;
  border-top:1px solid rgba(0,0,0,.2);
}

.foot-id{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:40px;
  font-family:var(--serif);
  font-size:1.02rem;
  color:#eef6f2;
}

.foot-nav{min-width:0;max-width:100%}

.foot-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:.2rem 1rem;
  max-width:100%;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 2px;
  color:#bcd6cc;
  font-size:.94rem;
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:color .28s ease-out,border-color .28s ease-out;
}

.foot-nav a:hover{color:#a9eddc;border-color:rgba(92,198,176,.7)}

.foot-copy{font-size:.86rem;color:#8ea298;letter-spacing:.04em}

/* 滚动揭示 */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .72s ease-out,transform .78s cubic-bezier(.16,.7,.3,1)}
.reveal.is-in{opacity:1;transform:none}

@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr)}
  main,.cta,.foot{grid-column:1}
  .wrap{padding-left:0}

  .rail{
    grid-column:1;
    top:62px;
    z-index:50;
    padding:8px 14px 10px;
    background:rgba(248,242,231,.9);
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(23,38,35,.1);
  }

  .rail-nav ul{
    flex-direction:row;
    flex-wrap:nowrap;
    gap:8px;
    padding-bottom:4px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .rail-nav ul::-webkit-scrollbar{display:none}
  .rail-nav a{white-space:nowrap;min-height:40px;font-size:.94rem;padding:6px 13px}

  .hero{min-height:calc(100svh - 132px);border-radius:0 0 34px 34px}
  .hero-in{padding:24px 18px 30px}
  .doc{padding:22px 14px 6px}
  .content > article{border-radius:22px;scroll-margin-top:128px}
  .content > article:nth-child(even){border-radius:22px}
  .content table{font-size:.94rem}
  .content th,.content td{padding:.5em .4em}

  .cta-in{flex-direction:column;align-items:flex-start}
  .foot{flex-direction:column;align-items:flex-start;gap:.5rem}
}

@media (max-width:420px){
  body{font-size:16px}
  .content > article{padding:18px 16px}
  .hero-sub{max-width:none}
  .rail-nav a{padding:6px 11px}
  .content h2 > span,.content h3 > span{display:inline}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-jump:hover,.cta-btn:hover,.rail-nav a:hover{transform:none}
}

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