*,*::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:#4f46e5;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

.site-header{background:#fff;border-bottom:2px solid #e0e7ff;position:sticky;top:0;z-index:200}
.header-inner{max-width:960px;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:#4338ca;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:#4338ca;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:#eef2ff;border-bottom:1px solid #e0e7ff;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}

.tab-wrap{max-width:960px;margin:0 auto;padding:0 20px 52px}
.tab-hero{padding:36px 0 24px;scroll-margin-top:80px}
.tab-hero .tag{display:inline-block;font-size:.72rem;color:#4338ca;border:1px solid #a5b4fc;background:#eef2ff;padding:4px 12px;border-radius:6px;margin-bottom:14px}
.tab-hero h1{font-size:1.66rem;line-height:1.34;margin-bottom:16px;color:#111}
.tab-hero .lede{color:#333;text-align:justify}

.tab-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px;border-bottom:2px solid #e0e7ff;padding-bottom:0}
.tab-btn{padding:12px 20px;background:#f8fafc;border:1px solid #e0e7ff;border-bottom:none;border-radius:8px 8px 0 0;font-size:.9rem;font-weight:600;color:#6366f1;cursor:pointer;font-family:inherit;transition:all .15s}
.tab-btn.active{background:#fff;color:#4338ca;border-color:#c7d2fe;box-shadow:0 -2px 0 #4f46e5 inset}
.tab-btn:hover:not(.active){background:#eef2ff}

.tab-panel{display:none;padding:28px 24px;background:#fff;border:1px solid #e0e7ff;border-radius:0 8px 8px 8px;scroll-margin-top:80px}
.tab-panel.active{display:block}
.tab-panel h2{font-size:1.14rem;margin-bottom:14px;color:#3730a3}
.tab-panel p{margin-bottom:12px;text-align:justify;color:#333;font-size:.97rem}
.tab-panel figure{margin:18px 0;border-radius:8px;overflow:hidden;border:1px solid #e0e7ff}
.tab-panel figcaption{font-size:.8rem;color:#666;padding:8px 12px;background:#eef2ff}
.closing-note{margin-top:22px;padding:20px;background:#eef2ff;border-radius:8px;border-left:4px solid #4f46e5}
.closing-note h3{font-size:1rem;margin-bottom:8px}
.closing-note p{font-size:.94rem;color:#444}

.site-footer{background:#eef2ff;border-top:1px solid #e0e7ff;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){
  .tab-nav{overflow-x:auto;flex-wrap:nowrap}
  .tab-btn{white-space:nowrap;flex-shrink: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}
}
