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

:root{
  --green:#1F3D2B;
  --red:#E4572E;
  --cream:#F5E9D7;
  --ink:#12241A;
  --leaf:#25402F;
  --line:rgba(31,61,43,.18);
  --pad:24px;
}

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

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

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:Karla,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:1rem;
  line-height:1.75;
  font-weight:400;
}

h1,h2,h3{
  font-family:"Playfair Display SC",Georgia,"Songti SC",serif;
  font-weight:700;
  line-height:1.16;
  letter-spacing:.01em;
  color:var(--green);
  margin:0;
}

p{margin:0 0 1em}
p:last-child{margin-bottom:0}
a{color:var(--green);text-decoration:none}
img{max-width:100%}
ul,ol{pargin:0}

hr{
  border:0;
  height:2px;
  background:var(--line);
  margin:14px 0;
}

:focus-visible{
  outline:3px solid var(--red);
  outline-offset:2px;
}

.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:-9999px;
  top:0;
  z-index:99;
  background:var(--red);
  color:#fff;
  font-weight:700;
  padding:12px 18px;
  border-radius:0 0 4px 0;
}
.skip:focus{left:0}

/* 页头：品牌行 + 菜单行 */
.site-head{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--green);
  color:var(--cream);
  border-bottom:5px solid var(--red);
}

.brand-row{
  display:flex;
  align-items:center;
  padding:14px var(--pad) 4px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  color:var(--cream);
  min-height:42px;
}

.brand-logo{
  display:block;
  width:34px;
  height:34px;
  border-radius:4px;
  background:var(--red);
  object-fit:cover;
  flex:0 0 auto;
}

.brand-name{
  font-family:"Playfair Display SC",Georgia,serif;
  font-size:1.28rem;
  letter-spacing:.09em;
  line-height:1.2;
}

.brand:hover .brand-name{color:var(--red)}

.menu{padding:0 var(--pad) 8px}

.menu p{
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
  margin:0;
}

.menu a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  color:var(--cream);
  font-size:.98rem;
  font-weight:600;
  letter-spacing:.02em;
  border-bottom:3px solid transparent;
  border-radius:4px 4px 0 0;
  transition:color .18s ease,border-color .18s ease,background-color .18s ease;
}

.menu a:hover,
.menu a:focus-visible{
  color:#fff;
  background-color:rgba(245,233,215,.1);
  border-bottom-color:var(--red);
}

/* 首屏 */
.hero{
  display:grid;
  grid-template-columns:1.06fr .94fr;
  min-height:70vh;
  border-bottom:5px solid var(--green);
  background:var(--cream);
}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:20px;
  padding:clamp(28px,5vw,76px) var(--pad);
}

.hero-copy h1{
  font-size:clamp(2.05rem,4.6vw,3.5rem);
  color:var(--green);
  text-wrap:balance;
}

.hero-copy p{
  margin:0;
  max-width:34ch;
  color:var(--leaf);
  font-size:1.05rem;
  line-height:1.7;
}

.hero-figure{
  margin:0;
  position:relative;
  min-height:70vh;
  background:var(--red);
  overflow:hidden;
}

.hero-figure img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.06);
  transform-origin:center top;
  will-change:transform;
}

/* 主体：侧栏在左，正文在右 */
.read{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:clamp(24px,4vw,56px);
  max-width:1180px;
  margin:0 auto;
  padding:clamp(32px,5vw,64px) var(--pad);
}

.side{
  align-self:start;
  position:sticky;
  top:158px;
  background:var(--green);
  color:var(--cream);
  border-radius:4px;
  padding:20px 18px 14px;
}

.side h2{
  color:var(--cream);
  font-size:1.12rem;
  letter-spacing:.07em;
}

.side hr{
  height:3px;
  background:var(--red);
  margin:10px 0 12px;
}

.side ul{
  list-style:none;
  margin:0;
  padding:0;
}

.side a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 0;
  color:var(--cream);
  font-size:.95rem;
  font-weight:500;
  border-bottom:1px solid rgba(245,233,215,.25);
  transition:color .18s ease;
}

.side li:last-child a{border-bottom:0}
.side a:hover,.side a:focus-visible{color:var(--red)}

.prose{
  min-width:0;
  max-width:68ch;
}

.prose article{
  border-top:2px solid var(--line);
  padding:38px 0;
  scroll-margin-top:172px;
  opacity:0;
  transform:translateY(16px);
  animation:rise .5s ease forwards;
}

.prose article:first-child{
  border-top:0;
  padding-top:0;
}

.prose article:nth-child(1){animation-delay:.02s}
.prose article:nth-child(2){animation-delay:.08s}
.prose article:nth-child(3){animation-delay:.14s}
.prose article:nth-child(4){animation-delay:.2s}
.prose article:nth-child(5){animation-delay:.26s}
.prose article:nth-child(6){animation-delay:.32s}
.prose article:nth-child(n+7){animation-delay:.38s}

@keyframes rise{
  to{opacity:1;transform:none}
}

.prose h2{
  font-size:clamp(1.5rem,2.7vw,2rem);
  color:var(--green);
}

.prose h2 + hr{
  height:4px;
  width:56px;
  background:var(--red);
  margin:12px 0 20px;
}

.prose h3{
  font-size:1.2rem;
  color:var(--red);
  margin:26px 0 10px;
}

.prose ul,.prose ol{
  padding-left:1.25em;
  margin:0 0 1em;
}

.prose li{margin:.35em 0}

.prose a{
  border-bottom:2px solid var(--red);
  font-weight:600;
}

.prose a:hover{color:var(--red)}

.prose blockquote{
  margin:22px 0;
  padding:14px 18px;
  border-left:6px solid var(--red);
  background:rgba(228,87,46,.09);
}

.prose figure{margin:22px 0}
.prose figcaption{font-size:.95rem;color:var(--leaf);margin-top:8px}

.prose img{border-radius:4px;display:block}

/* 页脚 */
.site-foot{
  display:flex;
  flex-wrap:wrap;
  gap:26px;
  align-items:flex-start;
  justify-content:space-between;
  background:var(--green);
  color:var(--cream);
  border-top:5px solid var(--red);
  padding:36px var(--pad);
}

.foot-brand{flex:1 1 260px;max-width:340px}

.foot-brand .brand-name{font-size:1.15rem}

.foot-desc{
  margin:10px 0 0;
  font-size:.95rem;
  line-height:1.65;
  color:rgba(245,233,215,.82);
}

.foot-nav{flex:1 1 300px}

.foot-nav p{
  display:flex;
  flex-wrap:wrap;
  gap:2px 6px;
  margin:0;
}

.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:6px 10px;
  color:var(--cream);
  font-size:.95rem;
  border-bottom:2px solid transparent;
  transition:color .18s ease,border-color .18s ease;
}

.foot-nav a:hover,
.foot-nav a:focus-visible{
  color:var(--red);
  border-bottom-color:var(--red);
}

.foot-end{
  flex:1 1 260px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
}

.sub-form{
  display:flex;
  gap:8px;
  width:100%;
  max-width:320px;
}

.sub-form input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:10px 12px;
  border:2px solid rgba(245,233,215,.5);
  border-radius:4px;
  background:transparent;
  color:var(--cream);
  font:inherit;
  font-size:.95rem;
}

.sub-form input::placeholder{color:rgba(245,233,215,.72)}

.sub-form button{
  min-height:44px;
  padding:10px 18px;
  border:0;
  border-radius:4px;
  background:var(--red);
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition:background-color .18s ease;
}

.sub-form button:hover{background:#C7441E}

.copy{
  margin:0;
  font-size:.95rem;
  color:rgba(245,233,215,.75);
}

.to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:50;
  min-height:44px;
  padding:10px 16px;
  border:0;
  border-radius:4px;
  background:var(--red);
  color:#fff;
  font:inherit;
  font-size:.95rem;
  font-weight:700;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease,background-color .18s ease;
}

.to-top.is-on{opacity:1;pointer-events:auto}
.to-top:hover{background:#C7441E}

@media (max-width:900px){
  :root{--pad:18px}

  .hero{grid-template-columns:1fr;min-height:0}
  .hero-copy{order:1;padding:28px var(--pad) 26px;gap:14px}
  .hero-figure{order:2;min-height:44vh}
  .hero-figure img{height:100%}

  .read{grid-template-columns:1fr}
  .prose{order:1;max-width:none}
  .side{order:2;position:static}
  .side ul{display:flex;flex-wrap:wrap;gap:0 12px}
  .side li{flex:0 0 auto}
  .side a{border-bottom:0;padding-right:8px}

  .prose article{scroll-margin-top:200px}

  .site-foot{flex-direction:column;gap:18px}
  .foot-brand,.foot-end{max-width:none;width:100%}
  .sub-form{max-width:none}
}

@media (max-width:520px){
  .brand-name{font-size:1.12rem}
  .menu a{padding:8px 9px;font-size:.95rem}
  .hero-copy h1{font-size:1.95rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms;
    transition-duration:.001ms;
  }
  .prose article{opacity:1;transform:none}
  .hero-figure img{transform:none}
}

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