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

:root{
  --sky:#3bb1ff;
  --coral:#ff5252;
  --ink:#000;
  --paper:#edf2f7;
  --white:#fff;
  --bd:3px solid #000;
  --sh:8px 8px 0 #000;
  --sh-sm:5px 5px 0 #000;
  --r:28px;
}

*,*::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:'Inter',system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  font-weight:400;
}

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

.frame{
  max-width:1200px;
  margin:0 auto;
  padding:20px 18px 44px;
}

/* ---------- 页头 ---------- */
.masthead{
  background:var(--white);
  border:var(--bd);
  border-radius:var(--r);
  box-shadow:var(--sh);
  overflow:hidden;
  margin-bottom:26px;
}

.brandrow{
  display:flex;
  align-items:center;
  padding:14px 18px;
  background:var(--sky);
  border-bottom:var(--bd);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  text-decoration:none;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.02em;
}

.brandmark{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  background:var(--ink);
  color:var(--sky);
  border:var(--bd);
  border-radius:9px;
  font-size:18px;
  font-weight:700;
  line-height:1;
}

img.brandmark{object-fit:cover;background:var(--ink)}

.menuline{
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.menuline::-webkit-scrollbar{display:none}

.menuline ul{
  display:flex;
  margin:0;
  padding:0;
  list-style:none;
  min-width:max-content;
}

.menuline li{
  border-right:2px solid #000;
  animation:rise .4s ease both;
}
.menuline li:last-child{border-right:0}
.menuline li:nth-child(1){animation-delay:.02s}
.menuline li:nth-child(2){animation-delay:.05s}
.menuline li:nth-child(3){animation-delay:.08s}
.menuline li:nth-child(4){animation-delay:.11s}
.menuline li:nth-child(5){animation-delay:.14s}
.menuline li:nth-child(6){animation-delay:.17s}
.menuline li:nth-child(7){animation-delay:.2s}

.menuline a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:0 16px;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  text-decoration:none;
  transition:background .15s ease,color .15s ease;
}

.menuline a:hover,
.menuline a:focus-visible{background:var(--coral);color:#fff}

.menuline a.is-current{background:var(--ink);color:#fff}

.nav-ico{
  display:block;
  flex:0 0 10px;
  width:10px;
  height:10px;
  background:var(--coral);
  border:2px solid #000;
}

.menuline a.is-current .nav-ico{background:var(--sky);border-color:#fff}

/* ---------- 主区骨架 ---------- */
main{
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:26px;
  align-items:start;
}

main > article{grid-column:2;grid-row:1;min-width:0}
main > aside{grid-column:1;grid-row:1;min-width:0}

/* ---------- 头图 ---------- */
.hero{
  display:grid;
  grid-template-columns:minmax(170px,34%) minmax(0,1fr);
  min-height:min(45vh,400px);
  background:var(--white);
  border:var(--bd);
  border-radius:var(--r);
  box-shadow:var(--sh);
  overflow:hidden;
}

.hero-art{
  position:relative;
  overflow:hidden;
  min-height:180px;
  background:var(--sky);
  border-right:var(--bd);
}

.hero-art::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--coral);
  clip-path:polygon(0 58%,100% 22%,100% 100%,0 100%);
  z-index:0;
}

.hero-img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  text-align:center;
  padding:32px clamp(18px,3vw,40px);
  animation:rise .5s ease both;
}

.hero-copy h1{
  margin:0 0 16px;
  font-size:clamp(27px,4.2vw,44px);
  line-height:1.14;
  font-weight:700;
  letter-spacing:-.035em;
  text-decoration:underline;
  text-decoration-color:var(--coral);
  text-decoration-thickness:6px;
  text-underline-offset:8px;
}

.lede{
  margin:0;
  font-size:17px;
  line-height:1.75;
  color:#111;
}

.slash{
  height:18px;
  margin:22px -4px 0;
  background:var(--coral);
  border-top:var(--bd);
  border-bottom:var(--bd);
  transform:skewY(-1.4deg);
}

/* ---------- 正文 ---------- */
.prose{
  margin-top:26px;
  padding:30px clamp(16px,3.4vw,44px) 46px;
  background:var(--white);
  border:var(--bd);
  border-radius:var(--r);
  box-shadow:var(--sh);
  overflow-wrap:break-word;
}

.prose section{scroll-margin-top:140px}
.prose section + section{
  margin-top:34px;
  padding-top:30px;
  border-top:3px dashed #000;
}

.prose h2{
  margin:34px 0 10px;
  padding-left:14px;
  border-left:10px solid var(--coral);
  font-size:clamp(21px,2.4vw,29px);
  line-height:1.3;
  font-weight:700;
  letter-spacing:-.02em;
}

.prose section > h2:first-child{margin-top:0}

.prose h3{
  margin:26px 0 8px;
  font-size:19px;
  font-weight:700;
  line-height:1.4;
}

.prose hr{
  border:0;
  border-top:3px solid #000;
  margin:0 0 18px;
}

.prose p{margin:0 0 18px}

.prose ul,
.prose ol{margin:0 0 18px;padding-left:22px}
.prose li{margin-bottom:9px}

.prose a{
  color:#0a5f9e;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}

.prose strong{
  font-weight:700;
  background:#ffe9a8;
  padding:0 2px;
}

.prose blockquote{
  margin:0 0 18px;
  padding:14px 18px;
  background:#f2f8ff;
  border:var(--bd);
  border-left-width:10px;
  border-left-color:var(--coral);
  border-radius:0 18px 18px 0;
  font-weight:500;
}

.prose table{
  width:100%;
  margin:0 0 18px;
  border-collapse:collapse;
  font-size:16px;
}

.prose th,
.prose td{
  border:2px solid #000;
  padding:8px 10px;
  text-align:left;
}

.prose img{
  margin:0 0 18px;
  border:var(--bd);
  border-radius:18px;
}

/* ---------- 侧栏 ---------- */
.side{
  padding:18px 16px 20px;
  background:var(--white);
  border:var(--bd);
  border-radius:var(--r);
  box-shadow:var(--sh-sm);
}

.side-title{
  margin:0 0 10px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
}

.side hr{
  border:0;
  border-top:3px solid #000;
  margin:0 0 12px;
}

.side-list{
  margin:0;
  padding:0;
  list-style:none;
}

.side-list li + li{border-top:2px solid #000}

.side-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:8px 2px;
  font-size:16px;
  font-weight:600;
  line-height:1.35;
  text-decoration:none;
  transition:color .15s ease,transform .15s ease;
}

.side-list a:hover{color:#0a5f9e;transform:translateX(2px)}
.side-list li{animation:rise .4s ease both}
.side-list li:nth-child(1){animation-delay:.04s}
.side-list li:nth-child(2){animation-delay:.07s}
.side-list li:nth-child(3){animation-delay:.1s}
.side-list li:nth-child(4){animation-delay:.13s}
.side-list li:nth-child(5){animation-delay:.16s}
.side-list li:nth-child(6){animation-delay:.19s}
.side-list li:nth-child(7){animation-delay:.22s}

.num{
  flex:0 0 26px;
  height:24px;
  display:grid;
  place-items:center;
  background:var(--sky);
  border:2px solid #000;
  border-radius:6px;
  font-size:13px;
  font-weight:700;
  line-height:1;
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:44px;
  padding:26px clamp(16px,3vw,32px) 10px;
  background:var(--ink);
  color:#fff;
  border:var(--bd);
  border-radius:var(--r);
  box-shadow:var(--sh);
}

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

.foot-col{min-width:0}

.foot address{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-style:normal;
  font-size:17px;
  font-weight:700;
  line-height:1.5;
}

.foot-host{
  color:var(--sky);
  font-weight:500;
  word-break:break-all;
}

.foot-nav dl{margin:0}

.foot-nav dt{
  margin:0;
  font-size:13px;
  font-weight:600;
  letter-spacing:.12em;
  color:#9fd9ff;
}

.foot-nav dd{margin:2px 0 10px}

.foot-nav a,
.foot-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 2px;
  font-size:16px;
  font-weight:600;
  color:#fff;
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:color .15s ease,border-color .15s ease;
}

.foot-nav a:hover,
.foot-list a:hover{color:var(--coral);border-bottom-color:var(--coral)}

.foot-list{
  margin:0;
  padding:0;
  list-style:none;
}

.foot-list li + li{margin-top:4px}

.copy{
  margin:22px 0 0;
  padding:14px 0;
  border-top:2px solid #fff;
  font-size:16px;
  font-weight:500;
}

/* ---------- 动效 ---------- */
@keyframes rise{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}

/* ---------- 断点 ---------- */
@media (min-width:900px){
  .masthead{position:sticky;top:14px;z-index:40}
  .side{position:sticky;top:150px}
}

@media (max-width:899px){
  main{display:flex;flex-direction:column;gap:22px}
  main > article{order:1}
  main > aside{order:2}
}

@media (max-width:760px){
  body{font-size:16px}
  .frame{padding:14px 14px 34px}
  :root{--sh:5px 5px 0 #000;--sh-sm:4px 4px 0 #000}
  .hero{grid-template-columns:1fr;min-height:0}
  .hero-copy{order:1;padding:24px 18px 8px}
  .hero-art{order:2;min-height:150px;border-right:0;border-top:var(--bd)}
  .slash{height:14px;margin-top:16px}
  .foot-cols{grid-template-columns:1fr;gap:16px}
  .prose{padding:24px 16px 34px}
}

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

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