@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

:root{
  --ink:#1f1f1f;
  --ink-2:#2c2c2c;
  --paper:#ffffff;
  --ash:#f5f5f5;
  --soft:rgba(255,255,255,.14);
  --r:4px;
  --w:1240px;
  --sans:"Public Sans",system-ui,-apple-system,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --disp:"Lexend Mega","Public Sans",system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  background:var(--ash);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

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

a{color:inherit}

a:focus-visible,
label:focus-visible,
input:focus-visible{
  outline:2px solid currentColor;
  outline-offset:3px;
}

.navToggle{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

/* ---------- 顶部细条 ---------- */
.strip{
  background:var(--ink);
  color:#fff;
  padding:8px 16px;
  text-align:center;
}
.strip p{
  margin:0;
  font-size:16px;
  line-height:1.5;
  letter-spacing:.2em;
  font-family:var(--disp);
}

/* ---------- 页头 ---------- */
header.site{
  position:sticky;
  top:0;
  z-index:30;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  min-height:64px;
  padding:8px 20px;
  background:var(--paper);
}

.head-left{display:flex;align-items:center;gap:6px;min-width:0}
.head-right{display:flex;justify-content:flex-end;min-width:0}

.burger,
.close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:8px 14px;
  border-radius:var(--r);
  background:var(--ink);
  color:#fff;
  font-size:16px;
  line-height:1.4;
  cursor:pointer;
  user-select:none;
}

.nav p{
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  margin:0;
}
.nav a{
  display:inline-block;
  padding:11px 9px;
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
  border-radius:var(--r);
  white-space:nowrap;
}
.nav a:hover{background:var(--ash)}

.brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  justify-self:center;
  text-decoration:none;
  font-family:var(--disp);
  font-weight:800;
  font-size:20px;
  letter-spacing:-.01em;
  line-height:1.3;
  padding:8px 4px;
  min-height:44px;
}
.brand-mark{border-radius:var(--r)}

/* ---------- 全屏遮罩菜单 ---------- */
.overlay{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  flex-direction:column;
  padding:20px clamp(18px,6vw,64px) 40px;
  background:var(--ink);
  color:#fff;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease,visibility .25s ease;
  overflow-y:auto;
}
.navToggle:checked ~ .overlay{
  opacity:1;
  visibility:visible;
}

.overlay-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.overlay-brand{
  font-family:var(--disp);
  font-size:18px;
  letter-spacing:.02em;
}
.overlay .close{
  background:#fff;
  color:var(--ink);
}

.overlay-nav{margin-top:26px}
.overlay-nav p{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin:0;
}
.overlay-nav a{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:12px 2px;
  font-family:var(--disp);
  font-size:clamp(21px,3.6vw,32px);
  line-height:1.3;
  text-decoration:none;
  border-bottom:1px solid var(--soft);
}
.overlay-nav a:hover{color:#cfcfcf}

/* ---------- 版面骨架 ---------- */
.shell{
  max-width:var(--w);
  margin:0 auto;
  padding:20px 20px 0;
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:16px;
  align-items:start;
}

main{min-width:0}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:88px;
  background:var(--ink);
  color:#fff;
  border-radius:var(--r);
  padding:20px 16px;
}
.rail-h{
  margin:0 0 4px;
  font-family:var(--disp);
  font-size:18px;
  line-height:1.3;
  letter-spacing:.02em;
}
.rail-sub{
  margin:0 0 14px;
  color:#bfbfbf;
  font-size:16px;
}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 8px;
  border-radius:var(--r);
  color:#ececec;
  font-size:16px;
  line-height:1.5;
  text-decoration:none;
}
.rail-list a:hover{background:var(--soft);color:#fff}

/* ---------- 便当网格 ---------- */
section{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-flow:dense;
  gap:16px;
  min-width:0;
}

section > article:not(.hero){
  grid-column:span 2;
  min-width:0;
  background:var(--paper);
  border-radius:var(--r);
  padding:clamp(18px,2.4vw,32px);
  scroll-margin-top:96px;
}

section > article:not(.hero):nth-of-type(4n){grid-column:span 1}
section > article:not(.hero):nth-of-type(4n+1){grid-column:span 3}
section > article:not(.hero):nth-of-type(3n){
  background:var(--ink);
  color:#fff;
}
section > article:not(.hero):nth-of-type(3n) a{color:#fff}

/* ---------- 首屏 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.25fr .95fr;
  align-items:center;
  gap:clamp(16px,3vw,32px);
  min-height:45vh;
  padding:clamp(22px,3vw,42px);
  background:var(--paper);
  border-radius:var(--r);
}
.hero::after{
  content:"";
  position:absolute;
  left:-4%;
  right:-4%;
  bottom:-2px;
  height:10px;
  background:var(--ink);
  transform:skewY(-1.4deg);
}
.hero-h1{
  margin:0 0 14px;
  font-family:var(--disp);
  font-weight:800;
  font-size:clamp(28px,4.4vw,52px);
  line-height:1.12;
  letter-spacing:-.02em;
}
.lead{
  margin:0;
  max-width:48ch;
  color:#3d3d3d;
}
.hero-art{
  margin:0;
  min-height:220px;
  height:100%;
  background:var(--ink);
  border-radius:var(--r);
  overflow:hidden;
}
.hero-art img{width:100%;height:100%;object-fit:cover}

/* ---------- 正文排版 ---------- */
section h2{
  margin:0 0 12px;
  font-family:var(--disp);
  font-weight:800;
  font-size:clamp(21px,2.5vw,29px);
  line-height:1.22;
  letter-spacing:-.01em;
}
section h3{
  margin:20px 0 8px;
  font-family:var(--disp);
  font-size:18px;
  line-height:1.35;
}
.subtitle{
  margin:0 0 14px;
  color:#5c5c5c;
  font-size:16px;
}
section > article:nth-of-type(3n):not(.hero) .subtitle{color:#c6c6c6}
section p{margin:0 0 14px}
section p:last-child{margin-bottom:0}
section ul,
section ol{margin:0 0 14px;padding-left:1.25em}
section li{margin:4px 0}
section img{border-radius:var(--r);margin:12px 0;height:auto}
section blockquote{
  margin:16px 0;
  padding:12px 16px;
  background:var(--ash);
  border-radius:var(--r);
}
section > article:nth-of-type(3n):not(.hero) blockquote{background:var(--soft)}
section strong{font-weight:700}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:32px;
  padding:clamp(26px,4vw,54px) 20px 22px;
  background:var(--ink);
  color:#fff;
}
.foot > *{
  max-width:var(--w);
  margin-left:auto;
  margin-right:auto;
}
.cta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:clamp(22px,4vw,46px);
  background:var(--ink-2);
  border-radius:var(--r);
}
.cta-h{
  margin:0;
  font-family:var(--disp);
  font-weight:800;
  font-size:clamp(25px,4.2vw,44px);
  line-height:1.14;
  letter-spacing:-.02em;
}
.cta-btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:12px 22px;
  border-radius:var(--r);
  background:var(--paper);
  color:var(--ink);
  font-weight:700;
  text-decoration:none;
}

.foot-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  margin-top:28px;
}
.foot-grid dl{margin:0}
.foot-grid dt{
  margin-bottom:6px;
  font-family:var(--disp);
  font-size:16px;
  letter-spacing:.1em;
  color:#a7a7a7;
}
.foot-grid dd{margin:0}
.foot-grid a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 0;
  color:#e8e8e8;
  text-decoration:none;
}
.foot-grid a:hover{color:#fff;text-decoration:underline}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:26px;
  padding-top:14px;
  border-top:1px solid var(--soft);
}
.foot-base p{margin:0}
.foot-base a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  color:#e8e8e8;
  text-decoration:none;
}
.foot-base a:hover{color:#fff;text-decoration:underline}

/* ---------- 滚动显现 ---------- */
.js section > article{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease,transform .5s ease;
}
.js section > article.in{
  opacity:1;
  transform:none;
}

/* ---------- 断点 ---------- */
@media (max-width:1180px){
  .nav a{padding:11px 6px;font-size:16px}
}

@media (max-width:980px){
  .nav-l,
  .nav-r{display:none}
  header.site{grid-template-columns:auto 1fr auto}
  .head-left{grid-column:1}
  .brand{grid-column:2}
  .head-right{grid-column:3}
  .shell{
    display:flex;
    flex-direction:column;
    gap:16px;
    padding-top:16px;
  }
  main{order:1;width:100%}
  .rail{order:2;position:static;width:100%}
  .rail-list{flex-direction:row;flex-wrap:wrap}
  .rail-list a{min-height:44px;padding:9px 12px}
  section{grid-template-columns:repeat(2,minmax(0,1fr))}
  section > article:not(.hero),
  section > article:not(.hero):nth-of-type(4n),
  section > article:not(.hero):nth-of-type(4n+1){grid-column:span 2}
  section > article:not(.hero){scroll-margin-top:84px}
}

@media (max-width:640px){
  body{font-size:17px}
  .hero{
    grid-template-columns:1fr;
    min-height:0;
    padding:22px 18px 26px;
  }
  .hero-h1{font-size:clamp(26px,7.4vw,34px)}
  .hero-art{order:2;min-height:0;height:180px}
  section{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr;gap:10px}
  .cta{flex-direction:column;align-items:flex-start}
  .strip p{letter-spacing:.14em}
}

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

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