*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --ink:#1c1917;--muted:#57534e;--line:#e7e5e4;
  --rose:#be123c;--rose-soft:#fff1f2;--teal:#0f766e;--teal-soft:#ecfdf5;
  --header-h:58px;--content:780px;
}
html{scroll-behavior:smooth}
body{font-family:"Noto Sans SC",system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.82;font-size:16px}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal);text-decoration:none}
a:hover{text-decoration:underline}

.site-header{position:sticky;top:0;z-index:200;background:#fff;border-bottom:3px solid var(--rose)}
.header-inner{max-width:960px;margin:0 auto;padding:0 1rem;display:flex;align-items:center;justify-content:space-between;min-height:var(--header-h)}
.brand{display:flex;align-items:center;gap:.65rem;color:var(--ink);font-size:.88rem;text-decoration:none}
.brand:hover{text-decoration:none}
.brand em{font-style:normal;font-weight:700;color:var(--rose)}
.brand span{line-height:1.35;max-width:340px}

.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:.5rem;flex-direction:column;gap:5px}
.nav-toggle span{display:block;width:22px;height:2px;background:var(--ink);transition:transform .2s}
.nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.site-nav ul{display:flex;gap:1rem;list-style:none}
.site-nav a{color:var(--muted);font-size:.86rem;text-decoration:none}
.site-nav a:hover,.site-nav a.active{color:var(--rose);font-weight:600}

.ads-top-bar{background:var(--teal-soft);border-bottom:1px solid var(--line);padding:.45rem 0}
#applist{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.applist-title{font-size:.76rem;color:var(--muted);white-space:nowrap}
#ads{display:flex;gap:.7rem;flex-wrap:wrap}
.ads-item figure{margin:0;text-align:center}
.ads-item img{border-radius:6px}
.ads-item .caption{font-size:.66rem;color:var(--muted);margin-top:.18rem;max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.wrap{max-width:var(--content);margin:0 auto;padding:2rem 1.15rem 3.25rem}

.hero-panel{
  background:linear-gradient(135deg,var(--rose-soft) 0%,#fff 55%,var(--teal-soft) 100%);
  border:1px solid var(--line);border-top:4px solid var(--rose);
  padding:1.75rem 1.5rem 1.4rem;margin-bottom:1.85rem;border-radius:0 0 16px 16px;
  box-shadow:0 4px 18px rgba(190,18,60,.07);
}
.hero-tag{display:inline-block;font-size:.72rem;font-weight:700;color:var(--teal);letter-spacing:.03em;margin-bottom:.55rem}
.hero-panel h1{font-size:1.52rem;line-height:1.34;font-weight:700;margin-bottom:.75rem;color:#0c0a09}
.hero-panel .lede{font-size:.97rem;color:var(--muted);margin-bottom:.5rem;text-align:justify}
.hero-tags{display:flex;flex-wrap:wrap;gap:.38rem;margin-top:.95rem}
.hero-tags span{font-size:.72rem;background:#fff;border:1px solid var(--line);color:var(--muted);padding:.18rem .55rem;border-radius:999px}

.accord-stack{display:flex;flex-direction:column;gap:.48rem;counter-reset:accord-num}
.accord-item{
  border:1px solid var(--line);border-radius:12px;background:#fff;
  overflow:hidden;transition:box-shadow .25s,border-color .25s;
}
.accord-item.is-active{border-color:var(--rose);box-shadow:0 10px 32px rgba(190,18,60,.1)}
.accord-head{
  width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.85rem;
  padding:.95rem 1.1rem;background:linear-gradient(90deg,#fafaf9 0%,#fff 100%);
  border:none;cursor:pointer;font:inherit;text-align:left;color:var(--ink);
}
.accord-head::before{
  counter-increment:accord-num;content:counter(accord-num,decimal-leading-zero);
  display:flex;align-items:center;justify-content:center;
  width:2rem;height:2rem;border-radius:8px;background:var(--teal-soft);color:var(--teal);
  font-size:.78rem;font-weight:700;flex-shrink:0;
}
.accord-item.is-active .accord-head::before{background:var(--rose);color:#fff}
.accord-head:hover{background:var(--rose-soft)}
.accord-head .accord-title{font-weight:600;font-size:.94rem;line-height:1.42}
.accord-chev{
  width:9px;height:9px;border-right:2px solid var(--rose);border-bottom:2px solid var(--rose);
  transform:rotate(45deg);transition:transform .28s;flex-shrink:0;margin-top:-3px;
}
.accord-item.is-active .accord-chev{transform:rotate(-135deg);margin-top:3px}
.accord-body{max-height:0;overflow:hidden;transition:max-height .38s ease}
.accord-item.is-active .accord-body{max-height:4200px}
.accord-inner{padding:1rem 1.2rem 1.3rem 1.15rem;border-top:1px dashed var(--line)}
.accord-inner p{margin-bottom:.88rem;text-align:justify;color:#44403c}
.accord-inner h2{font-size:1.02rem;color:var(--rose);margin-bottom:.65rem;font-weight:600}
.accord-inner figure{margin:1.05rem 0;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.accord-inner figcaption{font-size:.8rem;color:var(--muted);padding:.45rem .75rem;background:var(--teal-soft);text-align:center}
.accord-inner ul,.accord-inner ol{margin:.6rem 0 .95rem 1.1rem;color:#44403c}
.accord-inner li{margin-bottom:.38rem}
.note-box{background:var(--teal-soft);border-left:4px solid var(--teal);padding:.7rem .9rem;border-radius:0 8px 8px 0;font-size:.9rem;margin:1rem 0;color:#134e4a}

.foot-links{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.85rem;padding-top:1.25rem;border-top:1px dashed var(--line)}
.foot-links a{font-size:.84rem;color:var(--muted);background:var(--rose-soft);padding:.3rem .75rem;border-radius:6px}
.foot-links a:hover{color:var(--rose);text-decoration:none}

.prose-page{max-width:var(--content);margin:0 auto;padding:2rem 1.15rem 3rem}
.prose-page h1{font-size:1.45rem;margin-bottom:1rem;color:var(--rose)}
.prose-page p{margin-bottom:.9rem}

.error-page{max-width:var(--content);margin:4rem auto;padding:2rem 1.15rem;text-align:center}
.error-page h1{font-size:3rem;color:var(--rose);margin-bottom:.5rem}

.site-footer{background:var(--rose-soft);border-top:2px solid var(--rose);padding:1.45rem 1rem;text-align:center;font-size:.81rem;color:var(--muted)}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.45rem 1rem;margin-bottom:.6rem}
.footer-links a{color:var(--muted)}
.footer-sub{font-size:.75rem;margin-top:.3rem;color:#a8a29e}

@media(max-width:640px){
  .nav-toggle{display:flex}
  .site-nav{position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:.7rem 1rem;display:none;box-shadow:0 4px 14px rgba(0,0,0,.06)}
  .site-nav.is-open{display:block}
  .site-nav ul{flex-direction:column;gap:0}
  .site-nav li{border-bottom:1px solid var(--line)}
  .site-nav a{display:block;padding:.62rem 0}
  .hero-panel h1{font-size:1.26rem}
  .accord-head{padding:.82rem .95rem;gap:.65rem}
}
