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

:root{
  --coral:#F2545B;
  --yellow:#FFC857;
  --ink:#1F2937;
  --paper:#FFFCF6;
  --line:rgba(31,41,55,.16);
  --body:'Nunito Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  --head:'Rubik','Nunito Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--body);
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  background:var(--paper);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,h4{font-family:var(--head);line-height:1.22;margin:0;letter-spacing:-.01em}
p{margin:0}
ul,ol{margin:0}
button,input{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--coral);outline-offset:2px}

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

/* 顶部细条 */
.announce{
  background:var(--ink);
  color:var(--yellow);
  font-size:16px;
  font-weight:700;
  letter-spacing:.14em;
  text-align:center;
  padding:9px 16px;
  border-bottom:3px solid var(--ink);
}
.announce span::before,
.announce span::after{
  content:"";
  display:inline-block;
  width:8px;height:8px;
  background:var(--coral);
  transform:rotate(45deg);
  vertical-align:middle;
  margin:0 12px 3px;
}

/* 头部 */
.site-head{
  background:#fff;
  border-bottom:3px solid var(--ink);
}
.brand-row{
  max-width:1180px;
  margin:0 auto;
  padding:14px 20px 10px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
}
.mark{
  width:34px;height:34px;
  flex:none;
  background:var(--coral);
  border:2px solid var(--ink);
  border-radius:4px;
  object-fit:cover;
}
.brand-name{
  font-family:var(--head);
  font-size:23px;
  font-weight:700;
  letter-spacing:-.02em;
}
.brand:hover .mark{background:var(--yellow)}

.menu{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
  border-top:2px solid var(--line);
}
.menu-list{
  display:flex;
  flex-wrap:wrap;
  gap:2px;
  list-style:none;
  padding:6px 0;
}
.menu-list a{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 12px;
  font-size:16px;
  font-weight:700;
  border:2px solid transparent;
  border-radius:4px;
}
.dot{
  width:9px;height:9px;
  flex:none;
  background:var(--coral);
  transform:rotate(45deg);
}
.menu-list li:nth-child(3n+2) .dot{background:var(--yellow)}
.menu-list li:nth-child(3n) .dot{background:var(--ink)}
.menu-list a:hover{border-color:var(--ink);background:var(--yellow)}

/* 主体骨架 */
main{
  max-width:1180px;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  column-gap:38px;
  align-items:start;
}
section{min-width:0}

/* hero */
.hero{
  display:grid;
  grid-template-columns:360px minmax(0,1fr);
  gap:28px;
  align-items:center;
  padding:26px 0 30px;
  min-height:45vh;
}
.hero-art{
  position:relative;
  background:var(--coral);
  border:3px solid var(--ink);
  border-radius:18px;
  overflow:hidden;
  min-height:272px;
}
.hero-img{
  width:100%;
  height:100%;
  min-height:272px;
  object-fit:cover;
}
.badge{
  position:absolute;
  left:14px;bottom:14px;
  background:var(--yellow);
  border:2px solid var(--ink);
  border-radius:4px;
  padding:5px 12px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.08em;
}
.hero-text{text-align:right}
.hero-text h1{
  font-size:clamp(28px,4.4vw,44px);
  font-weight:700;
}
.lead{
  margin-top:16px;
  font-size:18px;
  color:#3D4757;
}

/* 正文 */
.doc{padding-bottom:38px}
div[id]{scroll-margin-top:24px}
.doc div{
  padding:28px 0;
  border-top:3px solid var(--line);
}
.doc div:first-of-type{border-top:0}
.doc h2{
  font-size:26px;
  margin:0 0 14px;
  padding-left:14px;
  border-left:8px solid var(--coral);
}
.doc h3{
  font-size:20px;
  margin:24px 0 10px;
  color:var(--coral);
}
.doc p{margin:0 0 14px}
.doc p:last-child{margin-bottom:0}
.doc ul,.doc ol{padding-left:24px;margin:0 0 14px}
.doc li{margin:6px 0}
.doc a{
  color:var(--coral);
  text-decoration:underline;
  text-underline-offset:3px;
}
.doc a:hover{background:var(--yellow);color:var(--ink);text-decoration:none}
.doc blockquote{
  margin:18px 0;
  padding:14px 18px;
  background:#fff;
  border-left:8px solid var(--yellow);
}
.doc table{width:100%;border-collapse:collapse;margin:0 0 16px;font-size:16px}
.doc th,.doc td{border:2px solid var(--line);padding:9px 12px;text-align:left}
.doc th{background:#FFF3D6}
.doc code{
  background:#fff;
  border:2px solid var(--line);
  border-radius:3px;
  padding:1px 5px;
  font-size:15px;
}

/* 右侧栏 */
.side{
  position:sticky;
  top:16px;
  padding:30px 0 24px 22px;
  border-left:3px solid var(--ink);
}
.side-block + .side-block{margin-top:28px}
.side h2,
footer h2{
  font-size:18px;
  font-weight:700;
  margin:0 0 10px;
}
.side h2 span,
footer h2 span{
  display:inline-block;
  padding-bottom:4px;
  border-bottom:4px solid var(--yellow);
}
.side-list{list-style:none;padding:0}
.side-list a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:7px 0;
  font-size:16px;
  font-weight:600;
  border-bottom:2px dashed var(--line);
}
.side-list a:hover{color:var(--coral)}
.host{
  font-size:16px;
  font-weight:600;
  word-break:break-all;
  margin-bottom:10px;
}
.totop{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  background:var(--ink);
  color:#fff;
  font-size:16px;
  font-weight:700;
  border-radius:4px;
}
.totop:hover{background:var(--coral)}

/* 页脚 */
footer{
  margin-top:24px;
  padding:34px 20px 20px;
  background:var(--ink);
  color:#F7F4EC;
}
.foot-lead{
  max-width:1180px;
  margin:0 auto 26px;
  padding-bottom:24px;
  border-bottom:2px solid rgba(255,255,255,.18);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px 26px;
}
footer h2{color:#fff}
.sub{display:flex;flex-wrap:wrap}
.sub input{
  min-height:48px;
  min-width:220px;
  padding:10px 14px;
  background:transparent;
  color:#fff;
  border:2px solid #fff;
  border-right:0;
  border-radius:4px 0 0 4px;
  font-size:16px;
}
.sub input::placeholder{color:rgba(255,255,255,.62)}
.sub button{
  min-height:48px;
  padding:10px 22px;
  background:var(--coral);
  color:#fff;
  border:2px solid #fff;
  border-radius:0 4px 4px 0;
  font-weight:700;
  font-size:16px;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.sub button:hover{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}

.foot-grid{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:26px 22px;
}
.foot-brand .brand-name{color:#fff;font-size:20px}
.foot-grid dl{margin:0}
.foot-grid dt{
  font-family:var(--head);
  font-weight:700;
  color:var(--yellow);
  margin-bottom:8px;
}
.foot-grid dd{margin:0}
.foot-grid dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
}
.foot-grid a:hover{color:var(--yellow);text-decoration:underline;text-underline-offset:3px}

.foot-base{
  max-width:1180px;
  margin:26px auto 0;
  padding-top:16px;
  border-top:2px solid rgba(255,255,255,.18);
  text-align:center;
  font-size:16px;
  color:rgba(255,255,255,.78);
}

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

@media (max-width:900px){
  main{grid-template-columns:1fr}
  .hero{grid-template-columns:1fr;min-height:0;padding-top:22px}
  .hero-art{min-height:212px;order:-1}
  .hero-img{min-height:212px}
  .hero-text{text-align:left}
  .side{
    position:static;
    border-left:0;
    border-top:3px solid var(--ink);
    padding:24px 0 6px;
  }
  .foot-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:560px){
  body{font-size:16px}
  .menu-list a{padding:10px;font-size:16px}
  .hero-text h1{font-size:clamp(26px,8vw,34px)}
  .doc h2{font-size:23px}
  .sub input{min-width:0;flex:1 1 150px}
  .foot-grid{grid-template-columns:1fr}
  .foot-base{text-align:center}
}

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