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

:root{
  --mint:#5cc6b0;
  --sand:#d4c4a8;
  --sand-2:#efe7d6;
  --ink:#172623;
  --paper:#f6f1e6;
  --clay:#c07a5b;
  --olive:#6b7b3c;
  --rule:rgba(23,38,35,.16);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  padding-left:272px;
  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.78;
  overflow-wrap:break-word;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:2;
  pointer-events:none;
  opacity:.28;
  mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23g)' opacity='0.45'/%3E%3C/svg%3E");
}
img{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3{font-family:'Playfair Display',Georgia,'Songti SC',serif;font-weight:600;line-height:1.2;letter-spacing:-.005em}
hr{border:0;height:1px;margin:14px 0 20px;background:linear-gradient(90deg,var(--clay),rgba(192,122,91,0) 82%)}

/* 左侧竖排栏 */
.rail{
  position:fixed;
  top:0;left:0;bottom:0;
  width:272px;
  z-index:40;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:24px 20px;
  background:var(--ink);
  color:#ece4d5;
  border-right:2px solid rgba(92,198,176,.3);
  overflow-y:auto;
}
.brand{margin-bottom:2px}
.brand-link{display:inline-flex;align-items:center;gap:10px;min-height:46px;text-decoration:none}
.brand-logo{width:40px;height:40px;object-fit:cover;border-radius:12px 20px 12px 20px;background:var(--mint)}
.brand-txt{font-family:'Playfair Display',Georgia,serif;font-size:1.3rem;line-height:1.15;letter-spacing:.01em;color:#f8f3e7}

.rail-nav ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.rail-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 12px;
  text-decoration:none;
  font-size:.96rem;
  color:#dde5dd;
  border-left:2px solid transparent;
  border-radius:14px 22px 14px 22px;
  transition:background .32s ease-out,color .32s ease-out,transform .32s ease-out,border-color .32s ease-out;
}
.rail-nav a:hover,.rail-nav a:focus-visible{
  background:rgba(92,198,176,.16);
  color:#fff;
  border-left-color:var(--mint);
  transform:translateX(4px);
}
.rail-nav a:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
.grp{display:grid;grid-template-columns:1fr 42px;align-items:center}
.grp>ol{
  grid-column:1 / -1;
  padding-left:10px;
  margin-left:6px;
  border-left:1px solid rgba(212,196,168,.28);
}
.grp>ol a{font-size:.9rem;min-height:42px}
.grp:not(.open)>ol{display:none}
.grp-t{
  min-height:42px;
  min-width:40px;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#9dafa3;
  font:inherit;
  font-size:.78rem;
  line-height:1;
  cursor:pointer;
  transition:transform .32s ease-out,color .32s ease-out;
}
.grp-t:hover{color:var(--mint)}
.grp-t:focus-visible{outline:2px solid var(--mint);outline-offset:1px}
.grp.open>.grp-t{transform:rotate(180deg);color:var(--mint)}

.search{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(212,196,168,.2);
}
.search label{font-size:.75rem;letter-spacing:.16em;color:#9dafa3}
.search input{
  min-height:44px;
  padding:8px 14px;
  font:inherit;
  font-size:.94rem;
  color:#f3ecdd;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(212,196,168,.3);
  border-radius:16px;
}
.search input:focus{outline:2px solid var(--mint);outline-offset:1px;background:rgba(255,255,255,.13)}
.s-out{list-style:none;margin:2px 0 0;padding:0;display:none;flex-direction:column;gap:6px}
.s-out.on{display:flex}
.s-out li{font-size:.88rem}
.s-out li.s-empty{padding:6px 12px;color:#c4d0c4}
.s-out a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 12px;
  text-decoration:none;
  background:rgba(92,198,176,.14);
  border-radius:14px;
  transition:background .3s ease-out,transform .3s ease-out;
}
.s-out a:hover{background:rgba(92,198,176,.3);transform:translateX(3px)}
.rail-foot{margin:0;font-size:.75rem;letter-spacing:.06em;color:#7f9186}

.menu-btn{
  display:none;
  min-height:44px;
  padding:8px 16px;
  font:inherit;
  font-size:.95rem;
  color:#efe7d7;
  background:transparent;
  border:1px solid rgba(212,196,168,.4);
  border-radius:14px;
  cursor:pointer;
}
.menu-btn:focus-visible{outline:2px solid var(--mint);outline-offset:2px}

/* 主区 */
main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 292px;
  gap:56px;
  max-width:1220px;
  margin:0 auto;
  padding:32px 40px 8px;
}
article{min-width:0}

.hero{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:14px;
  min-height:45vh;
  padding:10px 0 6px;
}
.hero h1{margin:0;font-size:clamp(2rem,4.4vw,3.2rem);color:#183028}
.hero-sub{margin:0;max-width:44ch;color:#4d584c;font-size:1.02rem}
.hero-media{
  width:100%;
  height:clamp(140px,24vh,230px);
  margin-top:6px;
  overflow:hidden;
  border-radius:22px 44px 20px 36px;
  background:var(--sand);
}
.hero-media img{width:100%;height:100%;object-fit:cover}

article>section{padding:36px 0;scroll-margin-top:26px}
article>section:nth-of-type(even){background:var(--sand-2);border-radius:18px;padding:32px 26px}
article h2{margin:0;font-size:clamp(1.55rem,2.6vw,2.05rem);color:#183028}
article h3{margin:26px 0 8px;font-size:1.2rem}
article p{margin:14px 0}
article ul,article ol{padding-left:1.25em}
article li{margin:7px 0}
article a{
  color:#0e6b5b;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:1px;
  transition:background .3s ease-out;
}
article a:hover{background:rgba(92,198,176,.32)}
article blockquote{
  margin:22px 0;
  padding:16px 22px;
  background:rgba(212,196,168,.45);
  border-left:4px solid var(--clay);
  border-radius:18px;
}
article blockquote p:first-child{margin-top:0}
article blockquote p:last-child{margin-bottom:0}
article table{width:100%;border-collapse:collapse;font-size:.94rem;margin:18px 0}
article th,article td{padding:9px 10px;border-bottom:1px solid var(--rule);text-align:left}
article th{background:rgba(212,196,168,.42);font-weight:600}
article img{margin:18px 0;border-radius:18px}
article code{font-size:.9em;padding:1px 5px;border-radius:6px;background:rgba(212,196,168,.5)}
article pre{overflow-x:auto;padding:16px;border-radius:18px;background:#1d2f2a;color:#e7ded0}
article pre code{padding:0;background:none}

/* 右侧栏 */
.side{position:sticky;top:26px;align-self:start;display:flex;flex-direction:column;gap:12px}
.side-t{margin:0;font-size:1.12rem;letter-spacing:.02em}
.side hr{margin:4px 0 8px}
.side-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.side-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 16px;
  background:var(--sand);
  border-radius:18px;
  text-decoration:none;
  font-size:.94rem;
  transition:transform .3s ease-out,background .3s ease-out,color .3s ease-out;
}
.side-list a:hover{transform:translateX(-4px);background:var(--mint);color:#10251f}
.to-top{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  margin-top:4px;
  padding:10px 18px;
  border-radius:18px;
  background:var(--ink);
  color:#f4eee0;
  text-decoration:none;
  font-size:.9rem;
  transition:background .3s ease-out,transform .3s ease-out;
}
.to-top:hover{background:#25423a;transform:translateY(-2px)}

/* 页脚 */
footer{margin-top:44px;padding:34px 40px 24px;background:var(--sand)}
.f-mark{
  margin:0 0 20px;
  text-align:center;
  font-family:'Playfair Display',Georgia,serif;
  font-weight:700;
  font-size:clamp(2.4rem,8.5vw,5.4rem);
  line-height:.96;
  letter-spacing:-.02em;
  color:#22453c;
}
.f-row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:16px;
  padding-top:14px;
  border-top:1px solid rgba(23,38,35,.2);
}
.f-logo{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  text-decoration:none;
  font-family:'Playfair Display',Georgia,serif;
  font-weight:600;
  font-size:.95rem;
}
.f-logo img{width:36px;height:36px;object-fit:cover;border-radius:10px 16px 10px 16px}
footer nav ol{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:0 12px;margin:0;padding:0}
footer nav a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-size:.88rem}
footer nav a:hover{color:#0e6b5b;text-decoration:underline;text-underline-offset:3px}
.f-copy{margin:0;justify-self:end;text-align:center;font-size:.84rem;color:#3d4a3f}

/* 入场 */
section>div,.side-list li{transition:opacity .7s ease-out,transform .7s ease-out}
html.anim section>div,html.anim .side-list li{opacity:0;transform:translateY(18px)}
html.anim section>div.in,html.anim .side-list li.in{opacity:1;transform:none}

@media (max-width:1080px){
  main{grid-template-columns:minmax(0,1fr);gap:36px;padding:26px 28px 8px}
  .side{position:static}
  .side-list{flex-direction:row;flex-wrap:wrap}
  .side-list a{background:var(--sand-2)}
}

@media (max-width:900px){
  body{padding-left:0;padding-top:64px}
  .rail{
    right:0;
    bottom:auto;
    width:100%;
    height:64px;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:10px 16px;
    border-right:0;
    border-bottom:2px solid rgba(92,198,176,.3);
    overflow:visible;
  }
  .menu-btn{display:inline-flex;align-items:center;margin-left:auto}
  .rail-nav{
    position:fixed;
    top:64px;left:0;right:0;
    max-height:calc(100vh - 210px);
    overflow-y:auto;
    display:none;
    flex-direction:column;
    padding:12px 16px;
    background:var(--ink);
    border-bottom:1px solid rgba(212,196,168,.24);
    z-index:39;
  }
  .rail.open .rail-nav{display:flex}
  .search{
    position:fixed;
    left:0;right:0;bottom:0;
    margin:0;
    padding:12px 16px 16px;
    background:var(--ink);
    border-top:1px solid rgba(212,196,168,.24);
    display:none;
    z-index:39;
  }
  .rail.open .search{display:flex}
  .rail-foot{display:none}
  section>div{scroll-margin-top:80px}
  footer{padding:28px 18px 20px}
  .f-row{grid-template-columns:1fr;justify-items:center;gap:6px;text-align:center}
  .f-copy{justify-self:center}
  .f-mark{margin-bottom:14px}
}

@media (max-width:600px){
  body{font-size:16.5px}
  main{padding:18px 16px 4px}
  section>div{padding:28px 0}
  section>div:nth-of-type(even){padding:24px 16px}
  .hero{padding-top:4px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.001ms !important;animation-duration:.001ms !important}
}

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