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

:root{
  --pink:#FF4D6D;
  --ink:#1B1B3A;
  --yellow:#FFD166;
  --paper:#FFF6F1;
  --tint:#FFE7ED;
  --white:#ffffff;
  --muted:#5B5B7A;
  --line:2px solid var(--ink);
  --radius:4px;
  --head:"Space Grotesk","DM Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --body:"DM Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}

*,*::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:var(--body);
  font-size:17px;
  line-height:1.7;
  padding-bottom:104px;
  overflow-x:hidden;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--ink);text-decoration:none;transition:color .18s ease,background-color .18s ease,border-color .18s ease}
a:hover{color:var(--pink)}
:focus-visible{outline:3px solid var(--pink);outline-offset:2px}

h1,h2,h3,h4{
  font-family:var(--head);
  font-weight:700;
  letter-spacing:-.01em;
  line-height:1.22;
  margin:0;
}

/* ---------- 布局骨架 ---------- */

.page{
  display:grid;
  grid-template-columns:minmax(0,1fr) 296px;
  column-gap:34px;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

/* ---------- 头图 ---------- */

.hero{
  grid-column:1 / -1;
  position:relative;
  margin:0 -24px 38px;
  min-height:70vh;
  display:grid;
  place-items:center;
  background:var(--ink);
  color:var(--white);
  overflow:hidden;
  clip-path:polygon(0 0,100% 0,100% 93%,0 100%);
  border-bottom:4px solid var(--ink);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:var(--ink);
  opacity:.5;
  pointer-events:none;
}

.heroFig{
  position:absolute;
  inset:0;
  margin:0;
  z-index:0;
}

.heroImg{
  width:100%;
  height:100%;
  object-fit:cover;
}

.heroBlob{
  position:absolute;
  width:56%;
  padding-top:56%;
  border-radius:50%;
  background:var(--pink);
  opacity:.55;
  top:-14%;
  left:-10%;
}

.heroBlobB{
  width:42%;
  padding-top:42%;
  border-radius:0;
  background:var(--yellow);
  opacity:.4;
  top:auto;
  left:auto;
  bottom:-12%;
  right:-6%;
  transform:rotate(24deg);
}

.heroCopy{
  position:relative;
  z-index:2;
  max-width:720px;
  padding:72px 24px 84px;
  text-align:center;
}

.heroBadge{
  display:inline-block;
  margin-bottom:20px;
  padding:5px 16px;
  background:var(--yellow);
  color:var(--ink);
  border:var(--line);
  border-radius:999px;
  font-family:var(--head);
  font-weight:700;
  font-size:15px;
  letter-spacing:.06em;
  transform:rotate(-3deg);
  animation:bob 5s ease-in-out infinite;
}

.hero h1{
  font-size:clamp(31px,6vw,56px);
  color:var(--white);
  letter-spacing:-.02em;
  margin-bottom:16px;
}

.heroLede{
  margin:0 auto;
  max-width:560px;
  font-size:17px;
  line-height:1.65;
  color:#F3F1FA;
}

/* ---------- 正文区块 ---------- */

.body{grid-column:1;min-width:0}

.body > article{
  position:relative;
  background:var(--white);
  border:var(--line);
  border-radius:var(--radius);
  padding:26px 24px 30px;
  margin-bottom:22px;
  box-shadow:0 4px 0 var(--ink);
  scroll-margin-top:26px;
  animation:rise .46s ease both;
}

.body > article:nth-child(even){background:var(--tint)}
.body > article:nth-child(2){animation-delay:.04s}
.body > article:nth-child(3){animation-delay:.08s}
.body > article:nth-child(4){animation-delay:.12s}
.body > article:nth-child(5){animation-delay:.16s}
.body > article:nth-child(6){animation-delay:.2s}
.body > article:nth-child(7){animation-delay:.24s}

.body h2{
  display:flex;
  align-items:center;
  gap:11px;
  font-size:clamp(21px,2.7vw,28px);
  margin:0 0 16px;
}

.body h2::before{
  content:"";
  flex:none;
  width:13px;
  height:13px;
  background:var(--pink);
  border:var(--line);
  border-radius:2px;
  transform:rotate(45deg);
}

.body h2 > span{
  display:inline-block;
  padding-bottom:2px;
  border-bottom:4px solid var(--yellow);
}

.body h3{
  font-size:19px;
  margin:24px 0 8px;
}

.body p{margin:0 0 14px}
.body p:last-child{margin-bottom:0}

.body ul,.body ol{
  margin:0 0 16px;
  padding-left:22px;
}

.body li{margin-bottom:6px}
.body ul li::marker{color:var(--pink)}

.body img{
  border:var(--line);
  border-radius:var(--radius);
  margin:6px 0 16px;
}

.body blockquote{
  margin:0 0 16px;
  padding:12px 18px;
  background:var(--yellow);
  border-left:6px solid var(--ink);
  border-radius:0 var(--radius) var(--radius) 0;
}

.body blockquote p:last-child{margin-bottom:0}

.body figure{margin:0 0 16px}
.body code{
  font-family:"Space Grotesk",ui-monospace,monospace;
  background:var(--tint);
  border:1px solid #F2B9C8;
  border-radius:2px;
  padding:1px 5px;
  font-size:.94em;
}

/* ---------- 右侧栏 ---------- */

.rail{
  grid-column:2;
  grid-row:2;
  align-self:start;
  position:sticky;
  top:26px;
  min-width:0;
}

.railCard{
  background:var(--ink);
  border:var(--line);
  border-radius:var(--radius);
  padding:20px 16px 18px;
  box-shadow:0 4px 0 var(--pink);
}

.railCard h2{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:16px;
  letter-spacing:.14em;
  color:var(--yellow);
  margin:0 0 12px;
}

.railCard h2::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--yellow);
}

.railList{
  list-style:none;
  margin:0 0 16px;
  padding:0;
}

.railList a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 4px;
  color:var(--white);
  font-size:16px;
  border-bottom:1px solid rgba(255,255,255,.18);
}

.railList li:last-child a{border-bottom:0}
.railList a:hover{color:var(--yellow)}

.railTop{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border:2px solid var(--yellow);
  border-radius:999px;
  color:var(--yellow);
  font-family:var(--head);
  font-weight:700;
  font-size:15px;
}

.railTop:hover{background:var(--yellow);color:var(--ink)}

/* ---------- 页脚 ---------- */

.foot{
  max-width:1180px;
  margin:18px auto 0;
  padding:32px 24px 46px;
  text-align:center;
  border-top:3px solid var(--ink);
}

.foot p{
  margin:0 0 8px;
  font-family:var(--head);
  font-weight:700;
  font-size:19px;
  letter-spacing:.05em;
}

.foot small{
  display:block;
  font-size:15px;
  line-height:1.7;
  color:var(--muted);
}

.footDesc{max-width:620px;margin:0 auto}

/* ---------- 底部固定导航 ---------- */

.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 20px;
  background:var(--ink);
  border-top:3px solid var(--yellow);
}

.brand{
  display:flex;
  align-items:center;
  gap:9px;
  flex:none;
  color:var(--white);
}

.brandMark{
  width:20px;
  height:20px;
  background:var(--pink);
  border:2px solid var(--yellow);
  border-radius:3px;
  transform:rotate(12deg);
}

.brandName{
  font-family:var(--head);
  font-weight:700;
  font-size:17px;
  letter-spacing:.04em;
  color:var(--white);
}

.dockList{
  display:flex;
  align-items:center;
  gap:8px;
  list-style:none;
  margin:0;
  padding:2px;
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}

.dockList::-webkit-scrollbar{display:none}

.dockList a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 15px;
  border:2px solid rgba(255,255,255,.38);
  border-radius:999px;
  color:var(--white);
  font-family:var(--head);
  font-weight:600;
  font-size:15px;
  white-space:nowrap;
}

.dockList a:hover{border-color:var(--yellow);color:var(--yellow)}

.dockList a.is-active{
  background:var(--yellow);
  border-color:var(--yellow);
  color:var(--ink);
}

.dockSearch{
  display:flex;
  align-items:center;
  gap:6px;
  flex:none;
}

.dockSearch input{
  width:150px;
  min-height:40px;
  padding:0 14px;
  font-family:var(--body);
  font-size:16px;
  color:var(--ink);
  background:var(--white);
  border:2px solid var(--yellow);
  border-radius:999px;
}

.dockSearch input::placeholder{color:#8B8BA6}

.dockSearch button{
  min-height:40px;
  padding:0 14px;
  font-family:var(--head);
  font-size:15px;
  font-weight:700;
  color:var(--ink);
  background:var(--yellow);
  border:2px solid var(--yellow);
  border-radius:999px;
  cursor:pointer;
}

.dockSearch button:hover{background:var(--pink);border-color:var(--pink);color:var(--white)}

/* ---------- 动效 ---------- */

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

@keyframes bob{
  0%,100%{transform:rotate(-3deg) translateY(0)}
  50%{transform:rotate(-3deg) translateY(-5px)}
}

/* ---------- 断点 ---------- */

@media (max-width:1000px){
  .page{grid-template-columns:minmax(0,1fr) 250px;column-gap:24px}
  .dockSearch input{width:120px}
}

@media (max-width:860px){
  .page{grid-template-columns:minmax(0,1fr)}
  .hero{margin:0 -16px 28px;min-height:64vh}
  .heroCopy{padding:60px 18px 70px}
  .body{grid-column:1}
  .rail{
    grid-column:1;
    grid-row:auto;
    position:static;
    margin-bottom:24px;
    order:3;
  }
  .railList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
  .page{padding:0 16px}
}

@media (max-width:700px){
  body{font-size:16px;padding-bottom:132px}
  .dock{flex-wrap:wrap;gap:8px;padding:8px 12px 10px}
  .brand{order:1}
  .brandName{font-size:16px}
  .dockSearch{order:2;margin-left:auto;flex:1 1 auto;justify-content:flex-end;max-width:170px}
  .dockSearch input{width:100%;min-width:96px}
  .dockList{order:3;flex:1 0 100%;gap:6px}
  .dockList a{padding:0 13px;font-size:15px}
  .hero{clip-path:polygon(0 0,100% 0,100% 95%,0 100%)}
  .body > article{padding:22px 18px 26px}
  .foot{padding:26px 16px 34px}
}

@media (max-width:420px){
  .railList{grid-template-columns:minmax(0,1fr)}
  .hero h1{font-size:30px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
  }
}

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