@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root{
  --rose:#F26B8A;
  --rose-dk:#C4456A;
  --navy:#14304A;
  --cream:#FBF3E4;
  --paper:#FFFFFF;
  --sand:#EFE2CD;
  --rail:250px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
  background:var(--cream);
}

body{
  margin:0;
  overflow-x:hidden;
  background:var(--cream);
  color:var(--navy);
  font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px;
  line-height:1.75;
}

img{max-width:100%;display:block}
a{color:var(--navy)}
:focus-visible{outline:3px solid var(--rose-dk);outline-offset:2px}

h1,h2,h3{
  font-family:'Press Start 2P',"PingFang SC","Microsoft YaHei",sans-serif;
  font-weight:700;
  line-height:1.55;
  margin:0 0 12px;
  letter-spacing:.5px;
}
h1{font-size:clamp(26px,3.6vw,46px);line-height:1.4}
h2{font-size:clamp(19px,2vw,25px)}
h3{font-size:18px}
p{margin:0 0 14px}

small{
  display:block;
  font-family:'VT323',"PingFang SC",sans-serif;
  font-size:15px;
  line-height:1.5;
  font-weight:700;
  letter-spacing:.24em;
  color:var(--rose-dk);
  margin-bottom:4px;
}

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

.skip{
  position:fixed;
  left:10px;
  top:10px;
  z-index:130;
  background:var(--rose);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  padding:10px 16px;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  border:3px solid var(--navy);
  transform:translateY(-180%);
  transition:transform .18s ease;
}
.skip:focus{transform:none}

/* 左侧固定竖排导航 */
.rail{
  position:fixed;
  left:0;top:0;bottom:0;
  width:var(--rail);
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:18px 14px;
  background:var(--navy);
  color:var(--cream);
  border-right:5px solid var(--rose);
  overflow-y:auto;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:8px 10px;
  border:2px solid var(--rose);
  color:var(--cream);
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  line-height:1.35;
  letter-spacing:.04em;
}
.brand img{width:34px;height:34px;object-fit:cover;border:2px solid var(--cream)}
.brand:hover{background:var(--rose);color:#fff}

.nav-set{display:block}

.nav-set summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:44px;
  padding:8px 12px;
  background:var(--rose);
  color:#fff;
  font-weight:700;
  letter-spacing:.14em;
  border:2px solid var(--rose);
}
.nav-set summary::-webkit-details-marker{display:none}
.nav-set summary::after{
  content:"+";
  font-family:'Press Start 2P',monospace;
  font-size:12px;
}
.nav-set[open] summary::after{content:"\2212"}
.nav-set summary:hover{background:var(--rose-dk)}

.nav-list{
  margin-top:6px;
  display:grid;
  gap:2px;
  border-left:2px solid var(--rose);
}
.nav-list li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 12px;
  margin-left:-2px;
  border-left:4px solid transparent;
  color:var(--cream);
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
}
.nav-list li a:hover{background:var(--rose);color:#fff;border-left-color:var(--cream)}

.cta{
  position:fixed;
  right:18px;
  bottom:20px;
  z-index:100;
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:10px 20px;
  background:var(--rose);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.06em;
  border:3px solid var(--navy);
  transition:background-color .15s ease,color .15s ease;
}
.cta:hover{background:var(--navy);color:var(--cream);border-color:var(--rose)}

/* 版心 */
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 30px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 276px;
  gap:0 40px;
  align-items:start;
}

/* 首屏 */
.hero{
  grid-column:1 / -1;
  position:relative;
  overflow:hidden;
  min-height:70vh;
  display:flex;
  align-items:center;
  padding:56px 0 48px;
  border-bottom:5px solid var(--navy);
}

.hero-bg{
  position:absolute;
  right:-8px;
  bottom:-26px;
  z-index:0;
  font-family:'Press Start 2P',"PingFang SC",sans-serif;
  font-size:clamp(52px,10vw,148px);
  line-height:1;
  letter-spacing:-2px;
  color:var(--sand);
  pointer-events:none;
  user-select:none;
  animation:drift 3.4s ease-in-out infinite alternate;
}
@keyframes drift{
  from{transform:translateY(0)}
  to{transform:translateY(-12px)}
}

.hero-body{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:36px;
  flex-wrap:wrap;
  width:100%;
}
.hero-text{flex:1 1 340px;min-width:0}
.hero h1{max-width:20ch}
.lead{font-size:18px;max-width:46ch;color:#2B4A66;margin-bottom:0}

.hero-fig{
  flex:0 0 230px;
  margin:0;
  position:relative;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border:3px solid var(--navy);
  background:var(--rose);
}
.hero-fig img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-fig.multi img{opacity:0;animation:heroSlide 12s linear infinite}
@keyframes heroSlide{
  0%{opacity:1}
  32%{opacity:1}
  36%{opacity:0}
  100%{opacity:0}
}

.hero-icon{
  flex:0 0 176px;
  display:grid;
  place-items:center;
  padding:16px;
  border:3px solid var(--navy);
  background:var(--rose);
}
.hero-icon svg{
  width:100%;
  height:auto;
  fill:none;
  stroke:var(--cream);
  stroke-width:3;
  stroke-linejoin:miter;
}

/* 正文 */
.body{
  grid-column:1;
  min-width:0;
  padding:38px 0 64px;
}

.body section > article{
  border-top:2px solid rgba(20,48,74,.22);
  padding:28px 0;
  scroll-margin-top:88px;
}
.body section > article:first-child{border-top:0;padding-top:0}
.body section > article:last-child{padding-bottom:0}

.body section h2{margin-bottom:10px}
.body section h3{margin:22px 0 8px}
.body section p,
.body section li{max-width:64ch}
.body section ul,
.body section ol{padding-left:22px;margin:0 0 16px}
.body section li{margin-bottom:8px}
.body section img{
  border:3px solid var(--navy);
  margin:16px 0;
  background:var(--sand);
  height:auto;
}
.body section blockquote{
  margin:18px 0;
  padding:14px 18px;
  background:var(--paper);
  border:2px solid var(--navy);
  border-left:8px solid var(--rose);
}
.body section blockquote p:last-child{margin-bottom:0}
.body section table{
  width:100%;
  border-collapse:collapse;
  margin:16px 0;
  font-size:16px;
  line-height:1.6;
}
.body section th,
.body section td{border:2px solid var(--navy);padding:9px 10px;text-align:left}
.body section th{background:var(--sand)}
.body section a{color:var(--rose-dk);text-decoration:underline;text-underline-offset:3px}

/* 右侧栏 */
.side{
  grid-column:2;
  position:sticky;
  top:24px;
  margin:38px 0 64px;
  padding:18px 16px;
  border:3px solid var(--navy);
  background:var(--paper);
  min-width:0;
}
.side h2{font-size:17px;margin-bottom:12px}
.side-list{margin-bottom:12px}
.side-list li{border-bottom:2px dotted rgba(20,48,74,.32)}
.side-list li:last-child{border-bottom:0}
.side-list li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 2px;
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
}
.side-list li a:hover{color:var(--rose-dk)}
.top-link{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 0;
  margin-top:4px;
  border-top:2px solid var(--navy);
  color:var(--rose-dk);
  font-weight:700;
  text-decoration:none;
}
.top-link:hover{color:var(--navy)}

/* 页脚 */
footer{
  background:var(--navy);
  color:var(--cream);
  border-top:6px solid var(--rose);
  padding:44px max(30px, calc((100% - 1120px) / 2)) 96px;
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:32px 40px;
}
footer article{min-width:0}
footer a{color:var(--cream)}
footer small{color:var(--rose)}

.foot-cta{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:26px 24px;
  background:var(--rose);
  color:#10283d;
  border:3px solid var(--cream);
}
.foot-cta small{color:#10283d;letter-spacing:.24em}
.foot-cta h2{margin:0;color:#10283d;font-size:clamp(19px,2.8vw,30px)}
.btn{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:10px 22px;
  background:var(--navy);
  color:var(--cream);
  text-decoration:none;
  font-weight:700;
  border:3px solid var(--cream);
  transition:background-color .15s ease;
}
.btn:hover{background:var(--cream);color:var(--navy)}

.foot-brand h3{color:var(--cream);margin-bottom:8px}
.foot-desc{font-size:16px;color:#C3D1DD;max-width:42ch;margin:0}

.foot-menu{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:2px;
  margin-top:6px;
}
.foot-menu li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 5px;
  text-decoration:none;
  font-size:16px;
  line-height:1.4;
  border-bottom:2px solid rgba(251,243,228,.22);
}
.foot-menu li a:hover{color:var(--rose)}

.foot-base{
  grid-column:1 / -1;
  border-top:2px solid rgba(251,243,228,.28);
  padding-top:14px;
  font-size:15px;
  color:#B9C8D6;
}
.foot-base p{margin:0}

/* 滚动出现 */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .45s ease,transform .45s ease}
.reveal.in{opacity:1;transform:none}

@media (max-width:900px){
  body{padding-top:66px}
  .rail{
    right:0;
    left:0;
    top:0;
    bottom:auto;
    width:auto;
    flex-direction:row;
    align-items:center;
    gap:10px;
    padding:8px 12px;
    border-right:0;
    border-bottom:5px solid var(--rose);
    overflow:visible;
  }
  .brand{flex:1 1 auto;min-height:44px;font-size:15px;padding:6px 10px}
  .brand img{width:28px;height:28px}
  .nav-set{position:relative}
  .nav-set summary{padding:6px 14px}
  .nav-list{
    position:absolute;
    right:0;
    top:calc(100% + 8px);
    width:min(76vw,260px);
    margin-top:0;
    padding:6px;
    background:var(--navy);
    border:2px solid var(--rose);
    border-left:2px solid var(--rose);
  }
  .wrap{grid-template-columns:minmax(0,1fr);padding:0 18px;gap:0}
  .hero{min-height:0;padding:30px 0 32px}
  .hero-body{flex-direction:column;align-items:flex-start;gap:22px}
  .hero-text{flex:0 0 auto;width:100%}
  .hero h1{max-width:100%}
  .hero-fig{flex:0 0 auto;width:100%;max-width:280px}
  .hero-icon{flex:0 0 auto;width:150px}
  .hero-bg{font-size:clamp(42px,15vw,84px);bottom:-14px}
  .body{grid-column:1;padding:24px 0 44px}
  .body section > article{scroll-margin-top:84px}
  .side{grid-column:1;position:static;margin:0 0 44px}
  footer{grid-template-columns:1fr;padding:32px 18px 104px;gap:26px}
  .foot-cta{padding:20px 16px}
  .foot-cta h2{font-size:20px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .hero-bg{animation:none}
  .hero-fig.multi img{animation:none;opacity:0}
  .hero-fig.multi img:first-child{opacity:1}
  .reveal{opacity:1;transform:none;transition:none}
  .skip{transition:none}
}

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