*,*::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.78;font-size:16px}
a{color:#2563eb;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;height:auto;display:block}

.site-header{background:#fff;border-bottom:1px solid #dbeafe;position:sticky;top:0;z-index:300}
.header-inner{max-width:1080px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative}
.brand{display:flex;align-items:center;gap:10px;color:#111;font-weight:600;font-size:.95rem}
.brand:hover{text-decoration:none}
.brand img{border-radius:8px}
.brand em{font-style:normal;color:#1d4ed8;font-weight:700}
.site-nav ul{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none}
.site-nav a{color:#555;font-size:.9rem;padding:4px 0}
.site-nav a.active{color:#1d4ed8;font-weight:600;border-bottom:2px solid #2563eb}
.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:.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:#fafafa;border-bottom:1px solid #eee;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}
#ads .caption{font-size:.7rem;color:#666;margin-top:4px;text-align:center;max-width:70px;line-height:1.3}

.page-wrap{max-width:1080px;margin:0 auto;padding:28px 20px 52px}

.hero-band{padding:32px 28px;margin-bottom:28px;background:linear-gradient(120deg,#eff6ff 0%,#fff 65%);border:1px solid #bfdbfe;border-radius:20px}
.hero-band .tag{display:inline-block;background:#2563eb;color:#fff;font-size:.76rem;font-weight:600;padding:5px 14px;border-radius:999px;margin-bottom:12px}
.hero-band h1{font-size:1.74rem;line-height:1.34;margin-bottom:14px;color:#111;max-width:720px}
.hero-band .lead{color:#444;margin-bottom:10px;text-align:justify;max-width:760px}

.anchor-strip{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:36px;padding:12px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px}
.anchor-strip a{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;background:#fff;border:1px solid #e2e8f0;border-radius:999px;font-size:.82rem;color:#555;text-decoration:none}
.anchor-strip a:hover{border-color:#93c5fd;color:#1d4ed8;background:#eff6ff;text-decoration:none}

.zig-offset{position:relative;margin-bottom:44px;padding:28px 30px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 3px 18px rgba(37,99,235,.05)}
.zig-offset:nth-child(odd){margin-left:0;margin-right:56px;transform:translateY(0)}
.zig-offset:nth-child(even){margin-left:56px;margin-right:0;border-top:4px solid #2563eb}
.zig-offset h2{font-size:1.18rem;margin-bottom:12px;color:#1e293b;display:flex;align-items:center;gap:10px}
.zig-offset h2 .idx{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;background:#dbeafe;color:#1d4ed8;font-size:.78rem;font-weight:700;border-radius:8px}
.zig-offset p{margin-bottom:11px;color:#333;text-align:justify}
.zig-offset figure{margin:18px 0;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0}
.zig-offset figcaption{font-size:.82rem;color:#64748b;padding:8px 12px;background:#f8fafc}
.note-box{background:#eff6ff;border-left:4px solid #2563eb;padding:14px 18px;margin:16px 0;border-radius:0 10px 10px 0;font-size:.93rem;color:#334155}

.mosaic-offset{margin:40px 0;padding:26px 24px;background:#f8fafc;border:1px dashed #93c5fd;border-radius:18px}
.mosaic-offset h2{font-size:1.14rem;margin-bottom:6px;color:#1e293b}
.mosaic-offset .sub{font-size:.86rem;color:#64748b;margin-bottom:16px}
.mosaic-grid{display:grid;grid-template-columns:.85fr 1.15fr;grid-template-rows:auto auto;gap:16px}
.mosaic-grid .cell{border-radius:14px;overflow:hidden;border:1px solid #e2e8f0;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.mosaic-grid .cell.wide{grid-column:span 1;grid-row:span 2}
.mosaic-grid .cell img{width:100%;height:100%;object-fit:cover;min-height:130px}
.mosaic-grid .cell .cap{padding:10px 12px;font-size:.82rem;color:#475569;background:#fff}

.end-panel{background:linear-gradient(135deg,#eff6ff,#fff);border:1px solid #bfdbfe;border-radius:18px;padding:28px 26px;margin-top:12px}
.end-panel h2{font-size:1.1rem;margin-bottom:12px;color:#1e293b}
.end-panel p{margin-bottom:10px;color:#334155}

.site-footer{background:#fafafa;border-top:1px solid #eee;padding:28px 20px;text-align:center;font-size:.88rem;color:#666}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 16px;margin-bottom:10px}
.footer-links a{color:#555}
.footer-sub{font-size:.8rem;color:#999;margin-top:4px}

.prose-page{max-width:780px;margin:0 auto;padding:32px 20px 48px}
.prose-page h1{font-size:1.5rem;margin-bottom:16px}
.prose-page p{margin-bottom:12px;color:#333}
.error-page{max-width:520px;margin:80px auto;padding:0 20px;text-align:center}
.error-page h1{font-size:3rem;color:#2563eb;margin-bottom:12px}
.error-page p{color:#666;margin-bottom:20px}

@media(max-width:900px){
  .zig-offset:nth-child(odd),.zig-offset:nth-child(even){margin-left:0;margin-right:0;transform:none}
  .mosaic-grid{grid-template-columns:1fr}
  .mosaic-grid .cell.wide{grid-row:span 1}
}
@media(max-width:768px){
  .nav-toggle{display:flex}
  .site-nav{position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #eee;padding:12px 20px;display:none;box-shadow:0 4px 12px rgba(0,0,0,.08)}
  .site-nav.is-open{display:block}
  .site-nav ul{flex-direction:column;gap:10px}
}
