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

:root{
  --ink:#1B2A4A;
  --orange:#E4572E;
  --cream:#F4F1EA;
  --paper:#FFFFFF;
  --muted:#D8D3C7;
  --deep:#35446B;
  --serif:'Cinzel','Songti SC','Noto Serif SC',Georgia,serif;
  --sans:'Josefin Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
}

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

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

body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.8;
  letter-spacing:.012em;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--ink)}
button{font-family:inherit}
:focus-visible{outline:2px solid var(--orange);outline-offset:3px}

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

/* ---------- 顶栏 ---------- */
.bar{
  position:sticky;top:0;z-index:40;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:6px;
  padding:6px clamp(12px,4vw,40px);
  background:var(--cream);
  border-bottom:2px solid var(--ink);
}
.bar-l,.bar-r{display:flex;align-items:center;gap:2px;min-width:0}
.bar-r{justify-content:flex-end}
.bar-c{justify-self:center}

.bar-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 10px;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
  transition:color .18s ease;
}
.bar-link:hover{color:var(--orange)}

.brand{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 12px;
  font-family:var(--serif);
  font-size:clamp(17px,1.9vw,22px);
  font-weight:600;
  letter-spacing:.2em;
  color:var(--ink);
  text-decoration:none;
  white-space:nowrap;
}
.brand:hover{color:var(--orange)}

.burger{
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:48px;
  height:44px;
  margin-left:8px;
  padding:0 12px;
  background:var(--ink);
  border:2px solid var(--ink);
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease;
}
.burger span{display:block;height:2px;background:var(--cream)}
.burger:hover{background:var(--orange);border-color:var(--orange)}

/* ---------- 遮罩菜单 ---------- */
.veil{
  position:fixed;
  inset:0;
  z-index:80;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:72px clamp(20px,7vw,88px);
  background:var(--ink);
  color:var(--cream);
}
.veil[hidden]{display:none}
.veil-nav{
  display:flex;
  flex-direction:column;
  width:100%;
  max-width:720px;
  margin:0 auto;
}
.veil-link{
  display:flex;
  align-items:center;
  min-height:54px;
  padding:12px 4px;
  font-family:var(--serif);
  font-size:clamp(19px,3.4vw,26px);
  letter-spacing:.04em;
  color:var(--cream);
  text-decoration:none;
  border-bottom:1px solid var(--deep);
  transition:color .18s ease,padding-left .18s ease;
}
.veil-link:hover{color:var(--orange);padding-left:14px}
.veil-x{
  position:absolute;
  top:16px;right:16px;
  width:48px;height:48px;
  background:transparent;
  border:2px solid var(--cream);
  color:var(--cream);
  font-size:26px;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease;
}
.veil-x:hover{background:var(--orange);border-color:var(--orange)}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(20px,4vw,56px);
  min-height:45vh;
  padding:48px clamp(16px,5vw,64px) 72px;
  background:var(--ink);
  color:var(--cream);
  overflow:hidden;
}
.hero-art{
  position:relative;
  flex:0 0 clamp(200px,32vw,340px);
  height:clamp(180px,32vh,300px);
}
.hero-art:empty{display:none}
.shot{
  position:absolute;
  margin:0;
  overflow:hidden;
  border:3px solid var(--cream);
  background:var(--orange);
}
.shot-a{left:0;top:0;width:60%;height:74%}
.shot-b{right:0;bottom:0;width:54%;height:62%;border-color:var(--orange)}
.shot-img{width:100%;height:100%;object-fit:cover}

.hero-copy{
  flex:1 1 auto;
  text-align:right;
  min-width:0;
}
.hero h1{
  margin:0 0 14px;
  font-family:var(--serif);
  font-size:clamp(26px,5vw,54px);
  font-weight:600;
  line-height:1.16;
  letter-spacing:.01em;
  color:var(--cream);
}
.hero-desc{
  max-width:44ch;
  margin:0 0 22px auto;
  color:var(--muted);
  font-size:17px;
  line-height:1.85;
}
.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:0 22px;
  background:var(--orange);
  border:2px solid var(--orange);
  color:var(--paper);
  font-size:16px;
  letter-spacing:.08em;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.hero-cta:hover{background:var(--cream);color:var(--ink);border-color:var(--cream)}

.slash{
  position:absolute;
  left:0;right:0;bottom:0;
  height:28px;
  background:var(--orange);
  clip-path:polygon(0 100%,100% 0,100% 100%);
}

/* ---------- 版面 ---------- */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:56px clamp(16px,4vw,40px) 40px;
}
.cols{
  display:block;
}
.prose{
  counter-reset:sec;
  min-width:0;
}

.prose > article{
  position:relative;
  padding:44px 0 34px;
  border-top:2px solid var(--ink);
  scroll-margin-top:96px;
}
.prose > article:first-of-type{
  border-top:0;
  padding-top:0;
}
.prose > article::before{
  counter-increment:sec;
  content:counter(sec,decimal-leading-zero);
  display:block;
  margin-bottom:8px;
  font-family:var(--serif);
  font-size:13px;
  font-weight:600;
  letter-spacing:.22em;
  color:var(--orange);
}

.prose h2{
  margin:0 0 8px;
  font-family:var(--serif);
  font-size:clamp(21px,2.7vw,30px);
  font-weight:600;
  line-height:1.32;
  letter-spacing:.01em;
}
.prose h3{
  margin:28px 0 6px;
  font-family:var(--serif);
  font-size:clamp(18px,2.1vw,22px);
  font-weight:600;
  line-height:1.4;
}
.prose p{margin:0 0 18px}
.prose ul,.prose ol{margin:0 0 20px;padding-left:1.35em}
.prose li{margin:0 0 8px}
.prose li::marker{color:var(--orange)}
.prose a{color:var(--orange);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.prose a:hover{color:var(--ink)}
.prose strong,.prose b{font-weight:600}
.prose blockquote{
  margin:0 0 20px;
  padding:4px 0 4px 18px;
  border-left:4px solid var(--orange);
  color:var(--deep);
}
.prose figure{margin:0 0 20px}
.prose figcaption{font-size:16px;color:var(--deep);padding-top:6px}
.prose img{width:100%;border:2px solid var(--ink)}
.prose table{
  display:block;
  width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:0 0 20px;
  font-size:16px;
}
.prose th,.prose td{
  border:1px solid var(--ink);
  padding:8px 10px;
  text-align:left;
  white-space:nowrap;
}
.prose th{background:var(--ink);color:var(--cream);font-weight:600}

hr{
  border:0;
  border-top:2px solid var(--orange);
  max-width:68px;
  margin:12px 0 24px;
}
.prose h2 + hr,.prose h3 + hr{max-width:52px;margin:10px 0 20px}

/* ---------- 侧栏 ---------- */
.side{
  margin-top:44px;
  padding:22px 20px 26px;
  background:var(--paper);
  border:2px solid var(--ink);
  align-self:start;
}
.side-h{
  margin:0;
  font-family:var(--serif);
  font-size:17px;
  font-weight:600;
  letter-spacing:.24em;
}
.side-list{list-style:none;margin:0;padding:0}
.side-link{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 0;
  font-size:16px;
  color:var(--ink);
  text-decoration:none;
  border-bottom:1px solid var(--muted);
  transition:color .18s ease,padding-left .18s ease;
}
.side-list li:last-child .side-link{border-bottom:0}
.side-link:hover{color:var(--orange);padding-left:6px}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:56px;
  padding:36px clamp(16px,4vw,40px);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:32px;
  align-items:start;
  background:var(--ink);
  color:var(--cream);
  border-top:6px solid var(--orange);
}
.f-logo{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-family:var(--serif);
  font-size:19px;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--cream);
  text-decoration:none;
}
.f-logo:hover{color:var(--orange)}

.sub{display:flex;margin:14px 0 4px;max-width:320px}
.sub input{
  flex:1 1 auto;
  min-width:0;
  min-height:44px;
  padding:10px 12px;
  background:transparent;
  border:2px solid var(--cream);
  border-right:0;
  color:var(--cream);
  font-family:inherit;
  font-size:16px;
}
.sub input::placeholder{color:var(--muted)}
.sub button{
  min-height:44px;
  padding:10px 16px;
  background:var(--orange);
  border:2px solid var(--orange);
  color:var(--paper);
  font-size:16px;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.sub button:hover{background:var(--cream);border-color:var(--cream);color:var(--ink)}
.sub-msg{
  display:block;
  min-height:1.5em;
  font-size:16px;
  color:var(--orange);
  letter-spacing:.1em;
}

.f-nav dl{
  display:flex;
  flex-wrap:wrap;
  gap:0 20px;
  margin:0;
  max-width:420px;
}
.f-nav dt,.f-nav dd{margin:0}
.f-link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 2px;
  font-size:16px;
  color:var(--cream);
  text-decoration:none;
  transition:color .18s ease;
}
.f-link:hover{color:var(--orange)}

.f-copy{
  justify-self:end;
  text-align:right;
}
.copy{
  margin:0 0 6px;
  font-size:16px;
  letter-spacing:.06em;
  color:var(--muted);
}
.to-top{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 2px;
  font-size:16px;
  color:var(--cream);
  text-decoration:none;
  border-bottom:1px solid var(--deep);
}
.to-top:hover{color:var(--orange)}

/* ---------- 动效 ---------- */
.js .rv,
.js .prose > article{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .55s ease,transform .55s ease;
}
.js .rv.in,
.js .prose > article.in{
  opacity:1;
  transform:none;
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .js .rv,.js .prose > article{opacity:1;transform:none;transition:none}
}

/* ---------- 断点 ---------- */
@media (max-width:1040px){
  .bar-l .bar-link,.bar-r .bar-link{display:none}
}

@media (min-width:960px){
  .cols{
    display:grid;
    grid-template-columns:minmax(0,1fr) 264px;
    gap:56px;
    align-items:start;
  }
  .side{margin-top:0;position:sticky;top:96px}
  .prose > article:first-of-type{padding-top:0}
}

@media (max-width:760px){
  body{font-size:16px}
  .hero{
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    min-height:0;
    padding:28px 18px 56px;
  }
  .hero-art{flex:none;width:100%;height:146px;margin-bottom:6px}
  .hero h1{font-size:clamp(25px,8vw,34px)}
  .hero-desc{margin-left:0;margin-left:auto;font-size:16px}
  .wrap{padding-top:36px}
  .prose > article{padding:34px 0 26px}
  .foot{grid-template-columns:1fr;gap:22px;padding:28px 18px}
  .f-copy{justify-self:start;text-align:left}
  .f-nav dl{max-width:none}
}

@media (max-width:420px){
  .brand{font-size:16px;letter-spacing:.12em;padding:0 8px}
  .burger{margin-left:4px;width:44px;padding:0 10px}
}

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