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

:root{
  --cream:#F4E7D3;
  --cream-2:#EBD6B8;
  --navy:#1E2A38;
  --navy-2:#111A24;
  --brick:#E4572E;
  --brick-2:#C4441F;
  --ink-soft:#41505F;
  --line:rgba(30,42,56,.16);
  --rail-w:236px;
  --serif:"Newsreader","Songti SC","Source Han Serif SC",Georgia,serif;
  --sans:"Roboto","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
}

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

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

body{
  margin:0;
  background:var(--cream);
  color:var(--navy);
  font:400 16px/1.65 var(--sans);
  overflow-wrap:break-word;
  overflow-x:hidden;
  max-width:100%;
}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  line-height:1.14;
  letter-spacing:-.015em;
  margin:0;
}

p{margin:0 0 1em}
img{max-width:100%;height:auto;display:block;border-radius:10px}
figure{margin:0}
address{font-style:normal}
ul,ol{margin:0;padding:0;list-style:none}

a{
  color:var(--brick-2);
  text-decoration:none;
  transition:color .16s ease,background-color .16s ease;
}
a:hover{color:var(--brick)}

:focus-visible{outline:3px solid var(--brick);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;
}

/* 骨架：左轨 + 正文列 + 通栏页脚 */
.shell{
  display:grid;
  grid-template-columns:var(--rail-w) minmax(0,1fr);
  min-height:100vh;
}

/* 左轨 */
.rail{
  grid-column:1;
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:22px 16px 26px;
  background:var(--navy);
  color:var(--cream);
  border-right:3px solid var(--brick);
  overflow-y:auto;
  overflow-x:hidden;
  min-width:0;
}

.rail-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  background:var(--brick);
  margin-bottom:16px;
  flex:0 0 auto;
}
.rail-logo:hover{background:var(--brick-2)}
.logo-svg{width:27px;height:27px;display:block}

.rail-kicker{
  display:block;
  font:500 12px/1 var(--sans);
  letter-spacing:.24em;
  color:var(--brick);
  margin:0 0 6px;
}
.rail-brand{
  font-size:26px;
  color:var(--cream);
  margin:0 0 20px;
}

.rail-nav{min-width:0}
.rail-nav ul{display:flex;flex-direction:column;gap:2px}
.rail-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:11px 12px;
  font-weight:500;
  font-size:16px;
  color:var(--cream);
  border-left:3px solid transparent;
}
.rail-nav a:hover,
.rail-nav a:focus-visible{
  background:var(--brick);
  color:#fff;
  border-left-color:var(--cream);
}
.dot{
  width:8px;height:8px;
  background:var(--brick);
  flex:0 0 auto;
  transition:background-color .16s ease;
}
.rail-nav a:hover .dot{background:var(--cream)}

/* 正文列 */
.stage{grid-column:2;min-width:0}

.hero{
  position:relative;
  min-height:45vh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:56px clamp(20px,5vw,64px) 44px;
  border-bottom:4px solid var(--navy);
  overflow:hidden;
}
.hero h1{
  position:relative;
  z-index:2;
  font-size:clamp(2.35rem,7vw,5rem);
  max-width:16ch;
  margin:0;
}

.hero-mark{
  position:absolute;
  top:40px;
  right:clamp(20px,5vw,64px);
  width:150px;
  height:150px;
}
.hero-mark span{position:absolute;display:block}
.mark-a{top:0;right:0;width:96px;height:96px;background:var(--brick)}
.mark-b{left:6px;bottom:0;width:64px;height:64px;border-radius:50%;background:var(--navy)}
.mark-c{right:10px;bottom:16px;width:52px;height:52px;background:var(--cream);border:3px solid var(--navy);transform:rotate(45deg)}

/* 正文各节：色块分隔 */
.stage > div{scroll-margin-top:96px}
.stage > div:not(.hero){
  padding:clamp(36px,5vw,64px) clamp(20px,5vw,64px);
  border-bottom:2px solid var(--line);
}
.stage > div:not(.hero) > *{max-width:66ch;margin-right:auto}
.stage > div:not(.hero):nth-of-type(even){
  background:var(--navy);
  color:var(--cream);
}

.stage small{
  display:block;
  font:500 12px/1.4 var(--sans);
  letter-spacing:.2em;
  color:var(--brick);
  margin-bottom:10px;
}

.stage h2{font-size:clamp(1.6rem,3.6vw,2.35rem);margin:0 0 .55em}
.stage h3{font-size:clamp(1.22rem,2.4vw,1.55rem);margin:1.7em 0 .5em}

.stage p{margin:0 0 1.1em}
.stage ul,.stage ol{margin:0 0 1.15em}
.stage li{position:relative;padding-left:22px;margin-bottom:.5em}
.stage li::before{
  content:"";position:absolute;left:0;top:.62em;
  width:9px;height:9px;background:var(--brick);
}

.stage a{
  color:var(--brick-2);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.stage blockquote{
  margin:0 0 1.2em;
  padding:6px 0 6px 18px;
  border-left:4px solid var(--brick);
  border-radius:4px;
  font-family:var(--serif);
  font-size:1.08rem;
}
.stage img{margin:0 0 1em}
.stage figcaption{font-size:15px;color:var(--ink-soft);margin:-.5em 0 1em}
.stage strong{font-weight:700}
.stage pre{max-width:100%;overflow-x:auto}
.stage table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}

.stage > div:not(.hero):nth-of-type(even) small{color:#F4906B}
.stage > div:not(.hero):nth-of-type(even) a{color:#F5AA8A}
.stage > div:not(.hero):nth-of-type(even) a:hover{color:var(--cream)}
.stage > div:not(.hero):nth-of-type(even) blockquote{border-left-color:var(--cream)}
.stage > div:not(.hero):nth-of-type(even) figcaption{color:#C9D3DD}

/* 页脚 */
.foot{
  grid-column:1 / -1;
  background:var(--navy-2);
  color:var(--cream);
  padding:clamp(34px,5vw,56px) clamp(20px,5vw,64px) 22px;
  min-width:0;
}
.foot-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.5fr;
  gap:30px;
  max-width:1120px;
}
.foot-col{min-width:0}
.foot-col small{
  display:block;
  font:500 12px/1 var(--sans);
  letter-spacing:.22em;
  color:var(--brick);
  margin-bottom:9px;
}
.foot-col h3{font-size:20px;color:var(--cream);margin:0 0 12px}
.foot-logo{
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;background:var(--brick);
}
.foot-logo:hover{background:var(--brick-2)}
.foot-brand address{
  display:block;
  margin-top:14px;
  font-family:var(--serif);
  font-size:22px;
  color:var(--cream);
}
.foot-list a{
  display:inline-block;
  padding:10px 0;
  min-height:44px;
  font-size:16px;
  color:var(--cream);
  border-bottom:1px solid rgba(244,231,211,.18);
}
.foot-list a:hover{color:var(--brick)}

.sub-form{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}
.sub-form input{
  flex:1 1 140px;
  min-width:0;
  min-height:44px;
  padding:10px 12px;
  border:2px solid var(--cream);
  border-radius:4px;
  background:transparent;
  color:var(--cream);
  font:400 16px var(--sans);
}
.sub-form input::placeholder{color:rgba(244,231,211,.6)}
.sub-form button{
  min-height:44px;
  padding:10px 20px;
  border:0;
  border-radius:4px;
  background:var(--brick);
  color:#fff;
  font:500 16px var(--sans);
  cursor:pointer;
}
.sub-form button:hover{background:var(--brick-2)}
.sub-form button:disabled{background:var(--ink-soft);cursor:default}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:1120px;
  margin-top:36px;
  padding-top:16px;
  border-top:2px solid rgba(244,231,211,.18);
}
.foot-base p{margin:0;font-size:16px}
.foot-links{display:flex;flex-wrap:wrap;gap:18px}
.foot-links a{
  display:inline-block;
  padding:10px 0;
  min-height:44px;
  font-size:16px;
  color:var(--cream);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.foot-links a:hover{color:var(--brick)}

/* 滚动渐显 */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .38s ease,transform .38s ease}
.reveal.in{opacity:1;transform:none}
.reveal li{opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .3s ease}
.reveal.in li{opacity:1;transform:none}
.reveal.in li:nth-child(2){transition-delay:.05s}
.reveal.in li:nth-child(3){transition-delay:.1s}
.reveal.in li:nth-child(4){transition-delay:.15s}
.reveal.in li:nth-child(5){transition-delay:.2s}
.reveal.in li:nth-child(6){transition-delay:.25s}
.reveal.in li:nth-child(7){transition-delay:.3s}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal,.reveal li{opacity:1;transform:none;transition:none}
}

/* 窄屏：左轨转两行顶条（品牌一行，栏目横向滚动一行） */
@media (max-width:900px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .stage{grid-column:1}
  .foot{grid-column:1}

  .rail{
    position:sticky;
    top:0;
    z-index:30;
    height:auto;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:0 10px;
    padding:8px 12px 0;
    border-right:0;
    border-bottom:3px solid var(--brick);
    overflow:visible;
    max-width:100%;
  }
  .rail-logo{width:40px;height:40px;margin:0}
  .logo-svg{width:23px;height:23px}
  .rail-kicker{display:none}
  .rail-brand{font-size:17px;margin:0;white-space:nowrap;flex:0 0 auto}
  .rail-nav{
    flex:1 0 100%;
    width:100%;
    max-width:100%;
    min-width:0;
    margin:0;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
  }
  .rail-nav ul{flex-direction:row;flex-wrap:nowrap;gap:2px;width:max-content;min-width:100%}
  .rail-nav a{
    padding:10px 12px;
    min-height:44px;
    font-size:16px;
    white-space:nowrap;
    border-left:0;
    border-bottom:3px solid transparent;
  }
  .rail-nav a:hover,
  .rail-nav a:focus-visible{border-left-color:transparent;border-bottom-color:var(--cream)}
  .dot{display:none}

  .stage > div{scroll-margin-top:106px}
  .hero{
    min-height:0;
    padding:30px 20px 34px;
  }
  .hero h1{font-size:clamp(2.1rem,9vw,3rem);max-width:100%}
  .hero-mark{top:14px;right:20px;width:104px;height:84px;z-index:1}
  .mark-a{width:60px;height:60px}
  .mark-b{width:44px;height:44px;left:0}
  .mark-c{width:38px;height:38px;right:10px;bottom:6px;border-width:3px}

  .foot-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
}

@media (max-width:560px){
  .foot-grid{grid-template-columns:minmax(0,1fr)}
  .foot-base{flex-direction:column;align-items:flex-start}
  .rail-brand{font-size:16px}
  .rail-nav a{padding:10px}
}

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