@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue:wght@400;500;600;700&display=swap');

:root{
  --paper:#ffffff;
  --ash:#f5f5f5;
  --ink:#1f1f1f;
  --line:#e3e3e3;
  --mid:#6b6b6b;
  --r:18px;
  --r-lg:24px;
  --max:1240px;
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Epilogue',system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:16.5px;
  line-height:1.6;
  letter-spacing:.01em;
  overflow-x:hidden;
}

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

a{color:inherit;text-decoration:none;}

h1,h2,h3{
  font-family:'Anton',system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:400;
  letter-spacing:.02em;
  margin:0;
  line-height:1.1;
}

p{margin:0 0 .9em;}

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

main > article.wrap > div > section > div[id]{
  scroll-margin-top:96px;
}

/* ---------- 顶部 ---------- */
.top{
  background:var(--paper);
  border-bottom:1px solid var(--line);
}

.top-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:.7rem 1.2rem;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:1rem;
}

.menu ul{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.15rem;
}

.menu-left ul{justify-content:flex-start;}
.menu-right ul{justify-content:flex-end;}

.menu a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.5rem .7rem;
  border-radius:12px;
  font-size:.94rem;
  font-weight:500;
  color:var(--ink);
  transition:background .2s ease,color .2s ease;
}

.menu a::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:2px;
  background:var(--ink);
  margin-right:.45rem;
  flex:none;
}

.menu a:hover{background:var(--ash);}

.menu a.cta{
  background:var(--ink);
  color:var(--paper);
  padding:.5rem 1rem;
}

.menu a.cta::before{background:var(--paper);}
.menu a.cta:hover{background:#000;}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:'Anton',system-ui,"PingFang SC",sans-serif;
  font-size:1.35rem;
  letter-spacing:.06em;
  padding:.35rem .4rem;
  min-height:44px;
  white-space:nowrap;
}

.brand img{border-radius:8px;display:block;}

/* ---------- 锚点条 ---------- */
.strip{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}

.strip-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:.4rem 1.2rem;
  overflow-x:auto;
  scrollbar-width:none;
}

.strip-inner::-webkit-scrollbar{display:none;}

.anchors ul{
  display:flex;
  align-items:center;
  gap:.3rem;
  white-space:nowrap;
}

.anchors a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:.4rem .85rem;
  border-radius:999px;
  font-size:.9rem;
  color:var(--mid);
  transition:background .2s ease,color .2s ease;
}

.anchors a:hover{background:var(--ash);color:var(--ink);}
.anchors a.on{background:var(--ink);color:var(--paper);}

/* ---------- Hero ---------- */
.hero{
  max-width:var(--max);
  margin:0 auto;
  padding:1.2rem 1.2rem 1rem;
  min-height:45vh;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:clamp(1rem,3vw,2.4rem);
}

.hero-media{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  align-items:center;
}

.hero-media.is-empty{
  background:var(--ash);
  border-radius:var(--r-lg);
  min-height:200px;
}

.hero-media .shot{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:var(--r);
  background:var(--ash);
  box-shadow:0 4px 6px rgba(0,0,0,.05);
  transition:transform .35s ease;
}

.hero-media .shot:nth-child(1){transform:translateY(-14px);}
.hero-media .shot:nth-child(2){transform:translateY(18px);}
.hero-media .shot:hover{transform:translateY(-22px) scale(1.02);}

.hero-text{text-align:right;}

.hero-text h1{
  font-size:clamp(2.1rem,5.6vw,3.8rem);
  line-height:1.02;
  letter-spacing:.01em;
  word-break:break-word;
}

/* ---------- 正文 + 侧栏 ---------- */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:1rem 1.2rem 3rem;
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  gap:clamp(1rem,2.5vw,2rem);
  align-items:start;
}

.content{min-width:0;}

section{
  display:grid;
  gap:16px;
}

section > div{
  background:var(--ash);
  border-radius:var(--r);
  padding:clamp(1.1rem,2.6vw,2rem);
}

section > div:nth-child(3n+2){background:#f0f0f0;}
section > div:nth-child(3n){background:#ededed;}

section h2{
  font-size:clamp(1.25rem,2.6vw,1.7rem);
}

section h3{
  font-size:clamp(1.05rem,2vw,1.3rem);
  margin-top:.2rem;
}

h2 + hr,
h3 + hr{
  border:0;
  height:3px;
  width:44px;
  background:var(--ink);
  margin:.6rem 0 1rem;
  border-radius:2px;
}

section p,
section li{
  font-size:1rem;
  line-height:1.8;
  color:#2b2b2b;
}

section ul,
section ol{
  padding-left:1.2rem;
  list-style:disc;
  margin:0 0 1rem;
}

section ol{list-style:decimal;}

section blockquote{
  margin:0 0 1rem;
  padding:.2rem 0 .2rem 1rem;
  border-left:4px solid var(--ink);
  color:#3a3a3a;
}

section figure{margin:0 0 1rem;}
section figure img{border-radius:14px;display:block;width:100%;height:auto;}

section a{
  border-bottom:2px solid var(--ink);
  padding-bottom:1px;
}

/* ---------- 侧栏（内容右侧） ---------- */
.side{
  position:sticky;
  top:76px;
  background:var(--ash);
  border-radius:var(--r);
  padding:1rem .9rem;
}

.side h2{
  font-size:.95rem;
  letter-spacing:.14em;
  font-family:'Epilogue',system-ui,sans-serif;
  font-weight:700;
}

.side hr{
  border:0;
  height:2px;
  width:32px;
  background:var(--ink);
  margin:.5rem 0 .7rem;
}

.side a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:.35rem .5rem;
  border-radius:10px;
  font-size:.9rem;
  color:#333;
  transition:background .2s ease;
}

.side a:hover{background:#e6e6e6;color:#000;}

/* ---------- 页脚 ---------- */
.foot{
  background:var(--ink);
  color:var(--paper);
  padding:clamp(1.6rem,4vw,3rem) 1.2rem 1.4rem;
  display:grid;
  grid-template-columns:1.25fr 1fr 1.15fr;
  gap:clamp(1.2rem,3vw,2.4rem);
  max-width:var(--max);
  margin:0 auto;
  border-radius:var(--r-lg) var(--r-lg) 0 0;
}

.foot div{min-width:0;}

.foot h2{
  font-size:.95rem;
  letter-spacing:.14em;
  font-family:'Epilogue',system-ui,sans-serif;
  font-weight:700;
  color:var(--paper);
}

.foot hr{
  border:0;
  height:2px;
  width:32px;
  background:#6d6d6d;
  margin:.55rem 0 .85rem;
}

.brand-lg{
  font-family:'Anton',system-ui,"PingFang SC",sans-serif;
  font-size:1.35rem;
  letter-spacing:.06em;
  margin:0 0 .6rem;
}

.foot-desc{
  font-size:.92rem;
  line-height:1.7;
  color:#c9c9c9;
  max-width:34ch;
}

.f-links ul{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.1rem .6rem;
}

.foot a{
  color:#e2e2e2;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.3rem .1rem;
  font-size:.92rem;
  border-bottom:1px solid transparent;
}

.foot a:hover{color:#fff;border-bottom-color:#6d6d6d;}

.sub-form{
  display:flex;
  gap:.4rem;
  flex-wrap:wrap;
}

.sub-form input{
  flex:1 1 130px;
  min-height:42px;
  padding:.45rem .7rem;
  border:1px solid #4a4a4a;
  border-radius:12px;
  background:#2b2b2b;
  color:#fff;
  font-size:.92rem;
  font-family:inherit;
}

.sub-form input::placeholder{color:#9a9a9a;}

.sub-form button{
  min-height:42px;
  padding:.45rem 1.1rem;
  border:0;
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
  font-family:inherit;
  font-size:.92rem;
  font-weight:600;
  cursor:pointer;
}

.sub-form button:hover{background:#e6e6e6;}

.foot-bottom{
  grid-column:1 / -1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  border-top:1px solid #3a3a3a;
  padding-top:.9rem;
  font-size:.85rem;
  color:#a5a5a5;
}

.foot-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:.1rem .5rem;
}

/* ---------- 入场 ---------- */
html.js .hero-text,
html.js section > div,
html.js .side,
html.js .foot div{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease,transform .5s ease;
}

html.js .hero-text.in,
html.js section > div.in,
html.js .side.in,
html.js .foot div.in{
  opacity:1;
  transform:none;
}

/* ---------- 断点 ---------- */
@media (max-width:900px){
  .wrap{grid-template-columns:minmax(0,1fr) 220px;}
  .foot{grid-template-columns:1fr 1fr;}
  .f-brand{grid-column:1 / -1;}
}

@media (max-width:780px){
  body{font-size:16px;}

  .top-inner{
    grid-template-columns:1fr;
    gap:.2rem;
    padding:.5rem .8rem .6rem;
  }

  .brand{order:-1;justify-self:center;font-size:1.2rem;}
  .menu ul{justify-content:center;}

  .strip-inner{padding:.35rem .8rem;}

  .hero{
    grid-template-columns:1fr;
    min-height:0;
    gap:1rem;
    padding:1rem .8rem .6rem;
  }

  .hero-text{order:-1;text-align:left;}

  .hero-media .shot:nth-child(1),
  .hero-media .shot:nth-child(2){transform:none;}

  .hero-media .shot{aspect-ratio:3/4;}

  .wrap{
    grid-template-columns:1fr;
    padding:1rem .8rem 2.4rem;
  }

  .side{position:static;}

  section > div{border-radius:14px;padding:1rem .9rem;}

  .foot{
    grid-template-columns:1fr;
    border-radius:16px 16px 0 0;
    padding:1.6rem .9rem 1.2rem;
  }

  .f-brand{grid-column:auto;}

  .foot-bottom{flex-direction:column;align-items:flex-start;gap:.4rem;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}

  html.js .hero-text,
  html.js section > div,
  html.js .side,
  html.js .foot div{
    opacity:1;
    transform:none;
    transition:none;
  }

  .hero-media .shot{transition:none;}
  .hero-media .shot:hover{transform:none;}
  .hero-media .shot:nth-child(1),
  .hero-media .shot:nth-child(2){transform:none;}
}
</style>

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