*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;background:#f6f7fb;color:#1e293b;line-height:1.7}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
a{color:inherit;text-decoration:none}
.site-header{background:#fff;border-bottom:1px solid #e2e8f0;position:sticky;top:0;z-index:10}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:56px}
.logo{font-weight:800;font-size:19px;color:#7c5cff}
.site-header nav a{margin-left:18px;color:#475569;font-size:14px}
.site-header nav a.active,.site-header nav a:hover{color:#7c5cff}
.hero{text-align:center;padding:52px 0 20px}
.hero h1{font-size:32px;margin-bottom:10px}
.hero p{color:#64748b;margin-bottom:22px}
.searchbox input{width:min(520px,90%);padding:12px 20px;border:2px solid #e2e8f0;border-radius:999px;font-size:15px;outline:none}
.searchbox input:focus{border-color:#7c5cff}
.hot-tags{margin-top:14px}
.hot-tags a{display:inline-block;margin:4px;padding:4px 14px;border-radius:999px;background:#eef2ff;color:#7c5cff;font-size:13px}
.sec{margin:34px 0}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px;border-bottom:2px solid #e2e8f0;padding-bottom:8px}
.sec-head h2{font-size:20px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.card{background:#fff;border-radius:12px;border:1px solid #e2e8f0;overflow:hidden;transition:.15s}
.card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(100,116,139,.15)}
.card-body{padding:16px}
.card-tags{margin-bottom:8px}
.tag{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;color:#fff;background:var(--c,#64748b);margin-right:6px}
.card h3{font-size:16px;line-height:1.45;margin-bottom:8px}
.card h3 a:hover{color:#7c5cff}
.card-summary{color:#64748b;font-size:13.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-meta{margin-top:10px;color:#94a3b8;font-size:12px;display:flex;justify-content:space-between}
.cat-head{display:flex;align-items:baseline;gap:12px;padding:30px 0 18px;border-bottom:2px solid #e2e8f0;margin-bottom:20px}
.cat-head h1{font-size:26px}
.breadcrumb{padding:18px 0 6px;color:#94a3b8;font-size:13px}
.post{background:#fff;border-radius:14px;border:1px solid #e2e8f0;padding:34px 38px;margin:10px 0 34px}
.post h1{font-size:28px;line-height:1.4;margin-bottom:12px}
.post-meta{color:#94a3b8;font-size:13px;margin-bottom:20px;display:flex;gap:10px;align-items:center}
.src-link{color:#7c5cff;margin-left:auto}
.lead{font-size:16.5px;color:#475569;background:#f8fafc;border-left:4px solid #7c5cff;padding:12px 16px;border-radius:6px;margin-bottom:22px}
.post h2{font-size:21px;margin:30px 0 12px;padding-bottom:8px;border-bottom:1px solid #eef2f7}
.post h3{font-size:17px;margin:22px 0 10px}
.post p{margin:10px 0}
.post ul,.post ol{margin:10px 0 10px 24px}
.post li{margin:5px 0}
.post code{background:#f1f5f9;padding:2px 7px;border-radius:5px;font-size:13.5px}
.post pre{background:#0f172a;color:#e2e8f0;padding:16px;border-radius:10px;overflow-x:auto;margin:14px 0}
.post pre code{background:none;color:inherit;padding:0}
.hero-img{margin:16px 0}
.hero-img img{width:100%;border-radius:10px;border:1px solid #e2e8f0}
.gallery{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.gallery img{width:100%;border-radius:8px;border:1px solid #e2e8f0}
.links-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;padding:16px 20px;margin-top:26px}
.links-box h2{margin-top:0;border:none;font-size:17px}
.links-box a{color:#7c5cff;font-weight:600}
.site-footer{background:#fff;border-top:1px solid #e2e8f0;padding:26px 0;margin-top:40px;color:#94a3b8;font-size:13px}
.foot-note{margin-top:6px;color:#cbd5e1}
@media(max-width:640px){.post{padding:22px 18px}.gallery{grid-template-columns:1fr}}
