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

:root{
  --sand:#f7f0e5;
  --sand-2:#efe3d2;
  --sand-3:#e7d9c4;
  --clay:#c67b5c;
  --olive:#6b7b3c;
  --teal:#5cc6b0;
  --teal-d:#2f8d7c;
  --ink:#172623;
  --line:rgba(23,38,35,.16);
  --card:#fffbf4;
  --radius:28px;
}

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

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

body{
  margin:0;
  font-family:"Nunito Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:1.0625rem;
  line-height:1.75;
  color:var(--ink);
  background-color:var(--sand);
  background-image:
    radial-gradient(rgba(23,38,35,.055) 1px, transparent 1px),
    radial-gradient(circle at 10% 2%, rgba(92,198,176,.24), transparent 46%),
    radial-gradient(circle at 90% 8%, rgba(198,123,92,.18), transparent 44%);
  background-size:4px 4px, auto, auto;
  background-attachment:fixed, fixed, fixed;
}

h1,h2,h3,h4{
  font-family:"Varela Round","Nunito Sans","PingFang SC",system-ui,sans-serif;
  font-weight:400;
  line-height:1.28;
  margin:0 0 .6em;
  letter-spacing:.01em;
  overflow-wrap:break-word;
}
h1{font-size:clamp(2.05rem,7vw,4.3rem)}
h2{font-size:clamp(1.35rem,3vw,1.95rem)}
h3{font-size:1.18rem}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}

a{color:var(--teal-d);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
img{max-width:100%;height:auto;display:block}
ul,ol{margin:0 0 1em;padding-left:1.35em}
li{margin:.25em 0}
strong{font-weight:700}
blockquote{
  margin:1.2em 0;
  padding:.8rem 1.1rem;
  border-left:4px solid var(--clay);
  background:var(--sand-2);
  border-radius:0 18px 18px 0;
}
table{width:100%;border-collapse:collapse;margin:1em 0;font-size:1rem}
th,td{border:1px solid var(--line);padding:.5rem .6rem;text-align:left}
th{background:var(--sand-2)}

:focus-visible{outline:3px solid var(--teal-d);outline-offset:2px;border-radius:8px}

.sr-only{
  position:absolute;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.skip{
  position:absolute;left:.6rem;top:-4rem;z-index:80;
  background:var(--ink);color:var(--sand);
  padding:.7rem 1.1rem;border-radius:14px;
  transition:top .18s ease-out;
}
.skip:focus{top:.6rem;text-decoration:none}

/* ---------- 页头 ---------- */
.masthead{
  position:sticky;top:0;z-index:50;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  grid-template-areas:
    "strip strip strip"
    "l brand r";
  align-items:center;
  gap:0 1rem;
  padding:0 clamp(.75rem,3vw,2rem) .4rem;
  background:rgba(247,240,229,.95);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(6px);
}

.strip{
  grid-area:strip;
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;
  padding:.2rem 0;
  border-bottom:1px dashed var(--line);
  font-size:1rem;
}
.strip-brand{
  letter-spacing:.2em;
  text-transform:uppercase;
  font-size:1rem;
  opacity:.8;
  padding:.3rem 0;
}
.strip-contact{
  display:inline-flex;align-items:center;
  min-height:40px;
  padding:.4rem .85rem;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--ink);
  font-size:1rem;
}
.strip-contact:hover{background:var(--teal);border-color:var(--teal-d);text-decoration:none}

.menu{min-width:0}
.menu p{display:flex;align-items:center;gap:.1rem;margin:0}
.menu a{
  display:inline-flex;align-items:center;gap:.4rem;
  min-height:44px;
  padding:.6rem .55rem;
  font-size:1rem;
  color:var(--ink);
  border-radius:999px;
  white-space:nowrap;
}
.menu a:hover{background:var(--sand-2);text-decoration:none}
.menu .dot{
  width:9px;height:9px;flex:0 0 auto;
  border-radius:50%;
  background:var(--teal);
  transition:transform .25s ease-out;
}
.menu a:hover .dot{transform:scale(1.55)}
.menu-l{grid-area:l;justify-self:start}
.menu-r{grid-area:r;justify-self:end}
.menu-l p{justify-content:flex-start}
.menu-r p{justify-content:flex-end}
.menu{scrollbar-width:thin}
.menu::-webkit-scrollbar{height:3px}
.menu::-webkit-scrollbar-thumb{background:var(--sand-3);border-radius:3px}

.brand{
  grid-area:brand;
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.5rem .7rem;
  font-family:"Varela Round","Nunito Sans",system-ui,sans-serif;
  font-size:1.15rem;
  letter-spacing:.08em;
  color:var(--ink);
}
.brand:hover{text-decoration:none}
.brand-mark{
  width:36px;height:36px;
  border-radius:50%;
  border:1px solid var(--line);
  object-fit:cover;
}

/* ---------- 版心 ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 clamp(.9rem,3vw,2rem) 3.5rem;
  display:grid;
  grid-template-columns:minmax(0,1fr) 19rem;
  gap:2rem 2.5rem;
  align-items:start;
}

/* ---------- 首屏 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  margin-top:1.25rem;
  min-height:100svh;
  display:grid;place-items:center;
  overflow:hidden;
  padding:4rem 1rem 6rem;
  text-align:center;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(92,198,176,.32), transparent 52%),
    linear-gradient(162deg,#fcf7ee 0%,#f3e8d7 56%,#eadcc5 100%);
}
.hero-band{
  position:absolute;left:-12%;right:-12%;bottom:-1px;
  height:38%;
  background:linear-gradient(100deg,var(--teal) 0%,#93ddcb 46%,var(--sand-2) 100%);
  clip-path:polygon(0 52%,100% 0,100% 100%,0 100%);
  opacity:.9;
}
.hero-in{position:relative;z-index:1;max-width:20ch}
.hero-in h1{margin:0;text-wrap:balance}
.js .hero-in h1{animation:rise .9s cubic-bezier(.2,.8,.25,1) both}
@keyframes rise{
  from{opacity:0;transform:translateY(28px)}
  to{opacity:1;transform:none}
}

/* ---------- 正文 ---------- */
.content{grid-column:1;min-width:0}
.content div{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:clamp(1.15rem,3vw,2.6rem);
}
div > article{scroll-margin-top:9.5rem}
div > article + article{
  margin-top:2.4rem;
  padding-top:2.4rem;
  border-top:1px dashed var(--line);
}
div h2,div h3{margin-top:1.4rem}
div > article > h2:first-child,div > article > h3:first-child{margin-top:0}
h2 > span,h3 > span{
  display:inline-block;
  padding-bottom:.1em;
  border-bottom:3px solid var(--teal);
}

.js div > article{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s ease-out,transform .7s ease-out;
}
.js div > article.in{opacity:1;transform:none}

/* ---------- 侧栏 ---------- */
.rail{
  grid-column:2;
  position:sticky;
  top:9.5rem;
  display:grid;
  gap:1rem;
}
.rail-box{
  background:var(--sand-2);
  border:1px solid var(--line);
  border-radius:22px;
  padding:1rem 1.1rem;
}
.rail-box h2,.rail-box h3{
  font-size:1rem;
  letter-spacing:.16em;
  margin-bottom:.55rem;
}
.rail-links{display:grid;gap:.1rem;margin:0}
.rail-links a{
  display:flex;align-items:center;
  min-height:40px;
  padding:.4rem .45rem;
  color:var(--ink);
  border-bottom:1px dotted var(--line);
  border-radius:10px;
}
.rail-links a:last-child{border-bottom:0}
.rail-links a:hover{text-decoration:none;background:var(--card)}
.rail-links a.on{background:var(--card);color:var(--teal-d)}
.rail-top a{
  display:inline-flex;align-items:center;
  min-height:40px;
  padding:.4rem .5rem;
  font-size:1rem;
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:2rem;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:1.25rem 2rem;
  padding:2rem clamp(.9rem,3vw,2.5rem);
  border-top:1px solid var(--line);
  background:var(--sand-2);
}
.foot-logo{
  display:inline-flex;align-items:center;
  min-height:44px;
  font-family:"Varela Round","Nunito Sans",system-ui,sans-serif;
  font-size:1.1rem;
  letter-spacing:.06em;
  color:var(--ink);
}
.foot-nav p{display:flex;flex-wrap:wrap;gap:.15rem;margin:0}
.foot-nav a{
  display:inline-flex;align-items:center;
  min-height:44px;
  padding:.5rem .55rem;
  color:var(--ink);
  font-size:1rem;
}
.foot-form form{display:flex;gap:.4rem}
input[type=email]{
  font:inherit;
  font-size:1rem;
  min-height:44px;
  width:11rem;
  min-width:0;
  padding:.55rem .8rem;
  color:var(--ink);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
}
button{
  font:inherit;
  font-size:1rem;
  min-height:44px;
  padding:.55rem 1.1rem;
  color:#0d2b24;
  background:var(--teal);
  border:1px solid var(--teal-d);
  border-radius:14px;
  cursor:pointer;
  transition:background .2s ease-out;
}
button:hover{background:#7ed6c4}
.foot-copy p{margin:0;font-size:1rem}
.foot-copy p + p{opacity:.65}

/* ---------- 断点 ---------- */
@media (max-width:960px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .hero{order:1}
  .content{order:2}
  .rail{
    order:3;
    grid-column:1;
    position:static;
    grid-template-columns:1fr 1fr;
    align-items:start;
  }
}

@media (max-width:780px){
  .masthead{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:
      "strip strip"
      "brand brand"
      "l r";
  }
  .brand{justify-self:center}
  .menu{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .menu-l,.menu-r{justify-self:stretch}
  .menu-l p{justify-content:flex-start}
  .menu-r p{justify-content:flex-end}
  div > article{scroll-margin-top:11.5rem}
  .rail{grid-template-columns:1fr}
  .foot{flex-direction:column;align-items:flex-start}
  .foot-copy{order:5}
  .hero{padding:3rem 1rem 5rem}
}

@media (max-width:420px){
  input[type=email]{width:100%}
  .foot-form form{width:100%}
  .foot-form{width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001s !important;
    animation-iteration-count:1 !important;
    transition-duration:.001s !important;
  }
  .js div > article{opacity:1;transform:none}
}

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