@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root{
  --indigo:#1B2A41;
  --red:#E4572E;
  --cream:#F2E8CF;
  --edge:2px solid #1B2A41;
  --soft:rgba(27,42,65,.32);
  --glass:rgba(255,255,255,.52);
}

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

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

body{
  margin:0;
  background:var(--cream);
  color:var(--indigo);
  font-family:'Libre Baskerville',Georgia,'Songti SC','Noto Serif SC',serif;
  font-size:17px;
  line-height:1.75;
  overflow-x:clip;
}

h1,h2,h3,.brand,.hero-kicker,.foot-h{
  font-family:'Cormorant Garamond',Georgia,'Songti SC',serif;
  font-weight:700;
}

img{max-width:100%;height:auto;display:block;}
a{color:var(--red);text-underline-offset:3px;}
button,input{font:inherit;}

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

/* ---------- 顶栏 ---------- */
.top{
  position:sticky;top:0;z-index:30;
  background:var(--indigo);
  border-bottom:5px solid var(--red);
}

.top-bar{
  display:flex;align-items:center;gap:6px;
  max-width:1200px;margin:0 auto;padding:4px 14px;
}

.top-nav{display:flex;flex:1 1 0;gap:0;min-width:0;}
.top-nav-b{justify-content:flex-end;}

.top-link{
  display:inline-flex;align-items:center;gap:6px;
  min-height:44px;padding:6px 8px;
  color:var(--cream);text-decoration:none;
  font-size:16px;letter-spacing:.02em;
  transition:color .16s ease;
}
.top-link:hover,.top-link:focus-visible{color:var(--red);}

.dot{
  width:7px;height:7px;background:var(--red);
  display:inline-block;flex:0 0 auto;
  transition:background .16s ease,transform .16s ease;
}
.top-link:hover .dot{background:var(--cream);transform:rotate(45deg);}

.brand{
  display:inline-flex;align-items:center;gap:9px;
  padding:4px 10px;min-height:44px;
  color:var(--cream);text-decoration:none;
  font-size:22px;letter-spacing:.06em;white-space:nowrap;
}
.brand-mark{
  width:16px;height:16px;flex:0 0 auto;
  background:var(--red);
  clip-path:polygon(0 0,100% 0,0 100%);
}
.brand:hover{color:var(--red);}

.call{
  display:inline-flex;align-items:center;gap:5px;
  min-height:44px;padding:6px 12px;margin-left:4px;
  background:var(--red);color:var(--cream);
  text-decoration:none;font-size:16px;
  transition:background .16s ease,color .16s ease;
}
.call:hover{background:var(--cream);color:var(--indigo);}

/* ---------- 二级锚点条 ---------- */
.strip{
  background:var(--red);
  border-top:1px solid rgba(242,232,207,.45);
}
.strip-list{
  display:flex;gap:2px;list-style:none;
  margin:0 auto;padding:0 10px;
  max-width:1200px;
  overflow-x:auto;scrollbar-width:none;
}
.strip-list::-webkit-scrollbar{display:none;}
.strip-list a{
  display:inline-flex;align-items:center;
  min-height:42px;padding:4px 11px;
  color:var(--cream);text-decoration:none;
  font-size:16px;white-space:nowrap;
  border-bottom:3px solid transparent;
  transition:border-color .16s ease,background .16s ease;
}
.strip-list a:hover,.strip-list a.is-on{
  border-bottom-color:var(--cream);
  background:rgba(27,42,65,.25);
}

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:45vh;
  padding:64px 18px 58px;
  display:flex;flex-direction:column;
  align-items:flex-end;justify-content:flex-end;
  text-align:right;
  background:var(--indigo);color:var(--cream);
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% 100%,0 calc(100% - 56px));
}
.hero-media{position:absolute;inset:0;z-index:0;}
.hero-media img{width:100%;height:100%;object-fit:cover;opacity:.5;}
.hero-kicker{
  position:relative;z-index:1;
  margin:0 0 8px;padding:0 2px;
  color:var(--red);font-size:17px;
  letter-spacing:.22em;
}
.hero h1{
  position:relative;z-index:1;
  margin:0;max-width:20ch;
  font-size:clamp(30px,6.4vw,62px);
  line-height:1.1;letter-spacing:.01em;
  text-shadow:none;
}
.hero-band{
  position:absolute;left:0;bottom:0;z-index:1;
  width:38%;height:14px;background:var(--red);
}

/* ---------- 主体 ---------- */
main{display:block;}
main article[id]{scroll-margin-top:112px;}

.board{
  display:grid;
  grid-template-columns:262px minmax(0,1fr);
  grid-template-rows:auto auto;
  gap:22px 28px;
  align-items:start;
  max-width:1200px;
  margin:0 auto;
  padding:30px 16px 46px;
}

.rail{
  grid-column:1;grid-row:1;
  position:sticky;top:112px;
  background:var(--glass);
  backdrop-filter:blur(6px);
  border:var(--edge);
  border-left:8px solid var(--red);
  border-radius:4px;
  padding:14px 14px 16px;
}
.rail-title{
  margin:0 0 10px;font-size:20px;
  letter-spacing:.14em;
  border-bottom:2px solid var(--indigo);
  padding-bottom:6px;
}
.rail-list{list-style:none;margin:0;padding:0;}
.rail-list a{
  display:flex;align-items:center;
  min-height:40px;padding:3px 0;
  color:var(--indigo);text-decoration:none;
  font-size:16px;line-height:1.4;
  border-bottom:1px dashed var(--soft);
  transition:color .16s ease,padding-left .16s ease;
}
.rail-list li:last-child a{border-bottom:0;}
.rail-list a:hover{color:var(--red);padding-left:6px;}

.board-fig{
  grid-column:1;grid-row:2;
  margin:0;border:var(--edge);
  background:var(--indigo);
  border-radius:4px;overflow:hidden;
}
.board-fig img{width:100%;height:auto;filter:saturate(1.05);}
.fig-block{display:block;width:100%;height:130px;background:var(--red);
  clip-path:polygon(0 0,100% 0,100% 72%,0 100%);}
.board-fig figcaption{
  padding:8px 10px;color:var(--cream);
  font-size:16px;letter-spacing:.1em;
  border-top:2px solid var(--red);
}

.col{grid-column:2;grid-row:1 / span 2;min-width:0;}

.col > * + *{margin-top:20px;}

.col article{
  background:var(--glass);
  backdrop-filter:blur(4px);
  border:1px solid var(--soft);
  border-radius:4px;
  padding:18px 20px 24px;
  animation:rise .42s ease both;
}
.col article:nth-child(1){animation-delay:.02s;}
.col article:nth-child(2){animation-delay:.06s;}
.col article:nth-child(3){animation-delay:.1s;}
.col article:nth-child(4){animation-delay:.14s;}
.col article:nth-child(5){animation-delay:.18s;}
.col article:nth-child(6){animation-delay:.22s;}
.col article:nth-child(7){animation-delay:.26s;}
.col article:nth-child(8){animation-delay:.3s;}

@keyframes rise{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:none;}
}

.col h2{
  margin:0 0 12px;
  font-size:clamp(22px,3vw,30px);
  line-height:1.28;
  padding-bottom:8px;
  border-bottom:4px solid var(--red);
  display:inline-block;
}
.col h2 > span{display:inline-block;}
.col h3{
  margin:22px 0 8px;font-size:20px;line-height:1.4;
}
.col h3 > span{
  border-left:6px solid var(--red);padding-left:9px;display:inline-block;
}
.col p{margin:0 0 15px;}
.col p:last-child{margin-bottom:0;}
.col ul,.col ol{margin:0 0 15px;padding-left:1.35em;}
.col li{margin:7px 0;}
.col li::marker{color:var(--red);}
.col a{color:var(--red);}
.col strong{color:var(--indigo);background:rgba(228,87,46,.16);padding:0 3px;}
.col blockquote{
  margin:18px 0;padding:10px 0 10px 16px;
  border-left:7px solid var(--red);
  font-style:italic;
}
.col figure{margin:18px 0;}
.col figure img{border:2px solid var(--indigo);border-radius:4px;}
.col figcaption{font-size:16px;opacity:.8;padding-top:6px;}
.col table{width:100%;border-collapse:collapse;font-size:16px;}
.col th,.col td{border:1px solid var(--soft);padding:8px 10px;text-align:left;}
.col th{background:rgba(27,42,65,.08);}
.col hr{border:0;border-top:2px dashed var(--soft);margin:22px 0;}

/* ---------- 页脚 ---------- */
.foot{
  background:var(--indigo);color:var(--cream);
  border-top:8px solid var(--red);
  margin-top:26px;
}
.foot-top{
  display:flex;flex-wrap:wrap;align-items:center;gap:14px;
  max-width:1200px;margin:0 auto;
  padding:22px 16px;
  border-bottom:1px solid rgba(242,232,207,.28);
}
.foot-h{margin:0;font-size:22px;letter-spacing:.16em;flex:1 1 auto;}
.sub{display:flex;gap:8px;flex-wrap:wrap;}
.sub input{
  min-height:44px;padding:0 12px;
  background:transparent;color:var(--cream);
  border:2px solid var(--cream);border-radius:0;
  font-size:16px;
}
.sub input::placeholder{color:rgba(242,232,207,.65);}
.sub button{
  min-height:44px;padding:0 18px;
  background:var(--red);color:var(--cream);
  border:2px solid var(--red);border-radius:0;
  font-size:16px;cursor:pointer;
  transition:background .16s ease,color .16s ease;
}
.sub button:hover{background:var(--cream);color:var(--indigo);border-color:var(--cream);}
.totop{
  display:inline-flex;align-items:center;min-height:44px;padding:0 12px;
  color:var(--cream);text-decoration:none;font-size:16px;
  border:2px solid rgba(242,232,207,.5);
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}
.totop:hover{background:var(--cream);color:var(--indigo);border-color:var(--cream);}

.foot-row{
  display:flex;flex-wrap:wrap;gap:20px 30px;
  align-items:flex-start;justify-content:space-between;
  max-width:1200px;margin:0 auto;
  padding:22px 16px 30px;
}
.foot-brand{
  flex:0 0 auto;
  color:var(--cream);text-decoration:none;
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:22px;letter-spacing:.06em;
  border-left:8px solid var(--red);padding-left:10px;
}
.foot-brand:hover{color:var(--red);}
.foot-nav{flex:1 1 340px;min-width:0;}
.foot-nav dl{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:2px 26px;margin:0;
}
.foot-nav dt{margin:0;}
.foot-nav dd{
  margin:0 0 8px;font-size:16px;line-height:1.5;
  color:rgba(242,232,207,.72);
  overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:1;-webkit-box-orient:vertical;
}
.foot-nav a{
  display:inline-flex;align-items:center;min-height:40px;
  color:var(--cream);text-decoration:none;font-size:16px;
  border-bottom:2px solid transparent;
  transition:color .16s ease,border-color .16s ease;
}
.foot-nav a:hover{color:var(--red);border-bottom-color:var(--red);}
.copy{
  margin:0;flex:0 0 auto;font-size:16px;
  color:rgba(242,232,207,.72);
  align-self:center;
}

/* ---------- 响应式 ---------- */
@media (max-width:960px){
  .top-nav{display:none;}
  .top-bar{padding:2px 12px;}
  .brand{flex:1 1 auto;justify-content:center;font-size:21px;}
  .call{flex:0 0 auto;margin-left:0;}
  .board{grid-template-columns:minmax(0,1fr);gap:20px;padding:22px 14px 36px;}
  .rail{
    grid-column:1;grid-row:1;position:static;
    border-left:2px solid var(--indigo);border-top:8px solid var(--red);
    padding:12px 14px;
  }
  .rail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px;}
  .rail-list a{border-bottom:1px dashed var(--soft);}
  .board-fig{grid-column:1;grid-row:3;}
  .fig-block{height:96px;}
  .col{grid-column:1;grid-row:2;}
  .col article{padding:16px 15px 20px;}
  main article[id]{scroll-margin-top:104px;}
  .foot-nav dl{grid-template-columns:minmax(0,1fr);}
  .foot-row{gap:14px;}
}

@media (max-width:560px){
  .hero{min-height:44vh;padding:40px 14px 52px;
    clip-path:polygon(0 0,100% 0,100% 100%,0 calc(100% - 40px));}
  .hero-band{height:10px;width:52%;}
  .hero h1{font-size:clamp(27px,8.6vw,40px);}
  .foot-top{padding:18px 14px;}
  .strip-list a{min-height:44px;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-delay:0ms !important;
    transition-duration:.001ms !important;
  }
}

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