*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Noto Sans SC",system-ui,sans-serif;background:#fff;color:#1a1a1a;line-height:1.76;font-size:16px}
a{color:#7c3aed;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

.site-header{background:#fff;border-bottom:2px solid #ede9fe;position:sticky;top:0;z-index:200}
.header-inner{max-width:900px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;position:relative}
.brand{display:flex;align-items:center;gap:10px;color:#1a1a1a;font-weight:500;font-size:.95rem}
.brand em{font-style:normal;color:#6d28d9;font-weight:700}
.site-nav ul{display:flex;gap:18px;list-style:none;flex-wrap:wrap}
.site-nav a{color:#555;font-size:.9rem;padding:18px 0;display:block}
.site-nav a.active,.site-nav a:hover{color:#6d28d9;font-weight:600;text-decoration:none}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px;flex-direction:column;gap:5px}
.nav-toggle span{display:block;width:22px;height:2px;background:#333;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)}

.ads-top-bar{background:#faf5ff;border-bottom:1px solid #ede9fe;padding:10px 0}
.applist-title{font-size:.78rem;color:#888;text-align:center;margin-bottom:6px}
#ads{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}

.cascade-wrap{max-width:900px;margin:0 auto;padding:0 20px 52px}
.cascade-hero{padding:36px 24px;margin-bottom:24px;background:linear-gradient(135deg,#f5f3ff,#fff);border-radius:12px;scroll-margin-top:80px}
.cascade-hero .tag{display:inline-block;font-size:.72rem;color:#6d28d9;border:1px solid #c4b5fd;background:#ede9fe;padding:4px 12px;border-radius:4px;margin-bottom:14px}
.cascade-hero h1{font-size:1.7rem;line-height:1.34;margin-bottom:16px;color:#111}
.cascade-hero .lede{color:#333;text-align:justify}

.cascade-step{padding:28px 24px;margin-bottom:16px;background:#fff;border:1px solid #ddd6fe;border-radius:8px;scroll-margin-top:80px;position:relative}
.cascade-step.step-1{margin-left:0}
.cascade-step.step-2{margin-left:32px}
.cascade-step.step-3{margin-left:64px}
.cascade-step.step-4{margin-left:96px}
.cascade-step.step-5{margin-left:128px}
.cascade-step.step-6{margin-left:160px}
.cascade-step h2{font-size:1.14rem;margin-bottom:14px;color:#5b21b6}
.cascade-step p{margin-bottom:12px;text-align:justify;color:#333;font-size:.97rem}
.cascade-step figure{margin:16px 0;border-radius:8px;overflow:hidden;border:1px solid #ede9fe}
.cascade-step figcaption{font-size:.8rem;color:#666;padding:8px 12px;background:#f5f3ff}
.closing-note{margin-top:20px;padding:18px;background:#f5f3ff;border-radius:8px;border-left:4px solid #7c3aed}
.closing-note h3{font-size:1rem;margin-bottom:8px}
.closing-note p{font-size:.94rem;color:#444}

.site-footer{background:#faf5ff;border-top:1px solid #ede9fe;padding:28px 20px;text-align:center;font-size:.88rem;color:#666}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin-bottom:10px}
.footer-sub{font-size:.8rem;color:#999;margin-top:4px}
.prose-page{max-width:760px;margin:0 auto;padding:32px 20px 48px}
.prose-page h1{font-size:1.45rem;margin-bottom:16px}
.prose-page p{margin-bottom:12px;color:#333}

@media(max-width:640px){
  .cascade-step.step-2,.cascade-step.step-3,.cascade-step.step-4,.cascade-step.step-5,.cascade-step.step-6{margin-left:0}
  .nav-toggle{display:flex}
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #eee;padding:12px 20px;box-shadow:0 4px 12px rgba(0,0,0,.06)}
  .site-nav.is-open{display:block}
  .site-nav ul{flex-direction:column;gap:0}
}
