@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root{
  --ink:#172623;
  --ink-soft:#3c574f;
  --jade:#5cc6b0;
  --jade-deep:#2b6d61;
  --sand:#d4c4a8;
  --clay:#c07a5c;
  --paper:#f7f0e6;
  --paper-2:#efe4d3;
  --card:#fbf6ef;
  --line:#d8c9b3;
  --r:28px;
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:20px;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:"Plus Jakarta Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    radial-gradient(circle at 12% 2%, rgba(92,198,176,.18), transparent 46%),
    radial-gradient(circle at 88% 0%, rgba(192,122,92,.15), transparent 42%),
    radial-gradient(rgba(23,38,35,.05) 1px, transparent 1px);
  background-size:auto, auto, 3px 3px;
  background-attachment:scroll;
  overflow-x:hidden;
}

img{max-width:100%;height:auto}
a{color:var(--jade-deep)}
a:focus-visible{outline:3px solid var(--jade);outline-offset:2px;border-radius:6px}

.shell{position:relative;z-index:1}

/* 顶部两行 */
.topbar{
  position:relative;
  z-index:6;
  padding:16px clamp(16px,4vw,44px) 0;
  background:rgba(247,240,230,.92);
  border-bottom:1.5px solid var(--line);
}

.brandrow{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding-bottom:12px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  text-decoration:none;
  color:var(--ink);
}

.mark{
  width:34px;
  height:34px;
  flex:none;
  display:inline-block;
  border-radius:14px 10px 16px 11px;
  background:linear-gradient(140deg,var(--jade),var(--clay));
  border:1.5px solid rgba(23,38,35,.22);
}
img.mark{object-fit:cover}

.brand-name{
  font-weight:800;
  font-size:1.16rem;
  letter-spacing:.14em;
}

.seek{
  margin-left:auto;
  display:flex;
  align-items:center;
  border:1.5px solid var(--line);
  border-radius:999px;
  background:#fdf9f3;
  overflow:hidden;
}
.seek input{
  border:0;
  background:transparent;
  font:inherit;
  font-size:.94rem;
  color:var(--ink);
  padding:0 14px;
  min-height:42px;
  width:150px;
  outline:none;
}
.seek button{
  border:0;
  margin:3px;
  padding:0 16px;
  min-height:40px;
  font:inherit;
  font-weight:700;
  font-size:.92rem;
  color:#0f2a24;
  background:var(--jade);
  border-radius:999px;
  cursor:pointer;
}

/* 菜单 */
.menu{border-top:1.5px dashed var(--line)}
.menu-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px;
}
.menu-list > li{position:relative}
.menu-list > li > a{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 14px;
  font-size:.97rem;
  font-weight:600;
  color:var(--ink);
  text-decoration:none;
  border-bottom:3px solid transparent;
}
.menu-list > li > a:hover,
.menu-list > li > a:focus-visible{
  color:var(--jade-deep);
  border-bottom-color:var(--jade);
}

.has-sub > a::after{
  content:"";
  width:6px;
  height:6px;
  margin-left:8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
}

.sub{
  position:absolute;
  left:0;
  top:100%;
  z-index:20;
  list-style:none;
  margin:0;
  padding:6px;
  min-width:180px;
  display:grid;
  gap:2px;
  background:var(--card);
  border:1.5px solid var(--line);
  border-radius:20px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .18s ease-out,transform .18s ease-out,visibility .18s;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub{opacity:1;visibility:visible;transform:none}
.sub a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:0 12px;
  border-radius:14px;
  text-decoration:none;
  color:var(--ink);
  font-size:.95rem;
}
.sub a:hover{background:var(--paper-2)}

/* 首屏 */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:1.06fr .94fr;
  align-items:stretch;
  min-height:calc(100svh - 152px);
  padding:0 clamp(16px,4vw,44px);
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:46px;
  background:linear-gradient(100deg,var(--jade),var(--sand) 70%,var(--clay));
  clip-path:polygon(0 100%,100% 0,100% 100%);
  pointer-events:none;
  z-index:2;
}

.hero-art{
  position:relative;
  overflow:hidden;
  min-height:320px;
  border-radius:0 0 var(--r) var(--r);
  background:linear-gradient(165deg,#e4d6be,#c9e6dd);
  clip-path:polygon(0 0,100% 0,100% 93%,0 100%);
}
.hero-photo{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  will-change:transform;
}
.hero-blank{
  display:block;
  width:100%;
  height:100%;
  background:
    repeating-linear-gradient(48deg,rgba(23,38,35,.055) 0 9px,transparent 9px 20px),
    linear-gradient(160deg,#e6d8c0,#c8e5dc);
}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:18px;
  padding:56px clamp(8px,3vw,52px);
}
.hero-copy h1{
  margin:0;
  font-size:clamp(2rem,4.6vw,3.5rem);
  line-height:1.18;
  letter-spacing:-.015em;
  font-weight:800;
}
.hero-copy p{
  margin:0;
  max-width:34ch;
  font-size:1rem;
  line-height:1.85;
  color:var(--ink-soft);
}

/* 正文 */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:52px clamp(16px,4vw,44px) 72px;
}
.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  gap:44px;
  align-items:start;
}
.essay{min-width:0}

.essay section{
  padding:26px 0;
  scroll-margin-top:26px;
}
.essay section:first-child{padding-top:0}
.essay section + section{border-top:1.5px dashed var(--line)}

.essay h2{
  margin:0 0 12px;
  font-size:clamp(1.34rem,2.4vw,1.78rem);
  line-height:1.36;
  letter-spacing:-.01em;
}
.essay h2 + hr{
  border:0;
  border-top:3px solid var(--sand);
  width:58px;
  margin:0 0 20px;
}
.essay h3{
  margin:1.6em 0 .6em;
  font-size:1.14rem;
  line-height:1.45;
  color:var(--jade-deep);
}
.essay p{margin:0 0 1.1em}
.essay ul,.essay ol{margin:0 0 1.1em;padding-left:1.4em}
.essay li{margin:0 0 .5em}
.essay a{
  color:var(--jade-deep);
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}
.essay blockquote{
  margin:1.4em 0;
  padding:16px 20px;
  border-left:4px solid var(--jade);
  border-radius:0 18px 18px 0;
  background:rgba(92,198,176,.09);
  color:var(--ink-soft);
}
.essay blockquote p:last-child{margin:0}
.essay img{border-radius:20px;display:block;margin:1.2em 0}
.essay hr{
  border:0;
  border-top:1.5px dashed var(--line);
  margin:1.6em 0;
}
.essay table{width:100%;border-collapse:collapse;font-size:.96rem}
.essay th,.essay td{
  border:1.5px solid var(--line);
  padding:10px 12px;
  text-align:left;
}
.essay th{background:var(--paper-2)}

/* 侧栏 */
.rail{
  position:sticky;
  top:22px;
  border:1.5px solid var(--line);
  border-radius:var(--r);
  background:var(--card);
  padding:20px 20px 14px;
}
.rail h2{
  margin:0 0 10px;
  font-size:.98rem;
  font-weight:700;
  letter-spacing:.18em;
}
.rail hr{
  border:0;
  border-top:3px solid var(--jade);
  width:34px;
  margin:0 0 14px;
}
.rail ol{list-style:none;margin:0;padding:0;counter-reset:toc}
.rail li{counter-increment:toc}
.rail a{
  display:flex;
  gap:10px;
  align-items:baseline;
  min-height:42px;
  padding:8px 0;
  font-size:.95rem;
  line-height:1.5;
  color:var(--ink-soft);
  text-decoration:none;
  border-bottom:1px dashed var(--line);
}
.rail li:last-child a{border-bottom:0}
.rail a::before{
  content:counter(toc,decimal-leading-zero);
  flex:none;
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--clay);
}
.rail a:hover{color:var(--jade-deep)}

/* 页脚 */
footer{
  margin-top:20px;
  background:var(--ink);
  color:#eae3d5;
  border-top:7px solid var(--jade);
}
.foot{
  max-width:1180px;
  margin:0 auto;
  padding:56px clamp(16px,4vw,44px) 30px;
}

.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:28px;
  border:1.5px solid rgba(212,196,168,.42);
  border-radius:var(--r);
  background:rgba(92,198,176,.09);
}
.cta-say h2{
  margin:0 0 12px;
  font-size:clamp(1.6rem,3.2vw,2.4rem);
  letter-spacing:.1em;
  color:#f5efe2;
}
.cta-say hr{
  border:0;
  border-top:3px solid var(--clay);
  width:56px;
  margin:0;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:50px;
  padding:0 26px;
  border-radius:999px;
  background:var(--jade);
  color:#0f2a24;
  font-weight:700;
  text-decoration:none;
  border:1.5px solid rgba(23,38,35,.3);
}
.cta-btn:hover{background:#7ad6c3}

.foot-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  margin-top:38px;
}
address{
  font-style:normal;
  color:#cfe3dd;
  line-height:2;
  word-break:break-all;
}
.foot-cols ul{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:2px;
}
.foot-cols ul a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:#eae3d5;
  text-decoration:none;
  border-bottom:1.5px solid transparent;
}
.foot-cols ul a:hover{color:var(--jade);border-bottom-color:var(--jade)}

.foot-base{
  max-width:1180px;
  margin:0 auto;
  padding:18px 16px 34px;
  text-align:center;
  font-size:.9rem;
  color:#a9bdb5;
  border-top:1.5px solid rgba(212,196,168,.22);
}

.totop{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:30;
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  background:var(--jade);
  color:#0f2a24;
  font-weight:700;
  font-size:.92rem;
  text-decoration:none;
  border:1.5px solid rgba(23,38,35,.28);
}

/* 入场 */
.js .reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .62s ease-out,transform .62s ease-out;
}
.js .reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .reveal{opacity:1;transform:none;transition:none}
}

@media (max-width:960px){
  .stage{grid-template-columns:1fr;gap:32px}
  .rail{position:static;order:2}
  .essay{order:1}
}

@media (max-width:820px){
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-bottom:44px;
  }
  .hero-copy{order:1;padding:34px 4px 26px}
  .hero-art{order:2;height:250px;min-height:0;clip-path:polygon(0 0,100% 0,100% 100%,0 95%)}
  .seek{width:100%;margin-left:0}
  .seek input{flex:1 1 auto;width:auto;min-width:0}
  .menu-list{gap:0}
  .menu-list > li > a{padding:0 12px}
  .sub{
    position:static;
    opacity:1;
    visibility:visible;
    transform:none;
    min-width:0;
    border:0;
    border-radius:0;
    background:transparent;
    padding:0 0 6px 12px;
  }
  .foot-cols{grid-template-columns:1fr;gap:20px}
}

@media (max-width:560px){
  body{font-size:16px}
  .wrap{padding-top:38px;padding-bottom:56px}
  .cta{padding:22px}
  .cta-btn{width:100%;justify-content:center}
  .hero-copy h1{font-size:1.85rem}
}

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