/* 库库电竞 · zblog 主题样式（移动优先，零框架） */
:root {
  --accent: #4338ca;
  --accent-soft: #eef2ff;
  --text: #1f2937;
  --text-2: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f8fafc;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.75;
  font-size: 16px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px); z-index: 10;
}
header.site .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
.logo { font-size: 19px; font-weight: 800; color: var(--accent); text-decoration: none; white-space: nowrap; }
.logo small { display: block; font-size: 11px; font-weight: 400; color: var(--text-2); line-height: 1.2; }
nav.main { margin-left: auto; display: flex; gap: 4px; overflow-x: auto; }
nav.main a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
nav.main a:hover, nav.main a.on { color: var(--accent); background: var(--accent-soft); }

.hero { background: linear-gradient(180deg, var(--accent-soft), #fff); padding: 36px 0 28px; }
.hero h1 { font-size: 22px; line-height: 1.5; margin-bottom: 10px; }
.hero p.def { color: var(--text-2); font-size: 14.5px; margin-bottom: 18px; }
.search { display: flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; max-width: 520px; }
.search input { flex: 1; border: 0; outline: 0; padding: 11px 18px; font-size: 15px; }
.search button { border: 0; background: var(--accent); color: #fff; padding: 0 22px; font-size: 15px; cursor: pointer; }

section.block { padding: 26px 0 6px; }
.block-title { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.block-title::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }

.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 10px; text-decoration: none; color: inherit; }
.cat-card:hover { border-color: var(--accent); }
.cat-card h3 { font-size: 15.5px; margin-bottom: 4px; color: var(--text); }
.cat-card p { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.cat-card ul { list-style: none; }
.cat-card li { font-size: 13px; color: var(--accent); padding: 3px 0; }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } }

.post-list { list-style: none; }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 13px 2px; text-decoration: none; color: var(--text); }
.post-list a:hover h4 { color: var(--accent); }
.post-list h4 { font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.post-list .meta { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.post-list a { display: flex; gap: 12px; align-items: flex-start; padding: 13px 2px; text-decoration: none; color: var(--text); }
.post-list .thumb { flex: 0 0 108px; width: 108px; height: 61px; object-fit: cover; border-radius: 8px; margin-top: 2px; background: var(--accent-soft); }
.post-list h4 { flex: 1; }
@media (max-width: 560px) { .post-list .thumb { flex-basis: 88px; width: 88px; height: 50px; } }
img.cover { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 18px; display: block; background: var(--accent-soft); }
.tag { display: inline-block; font-size: 11.5px; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 1px 8px; margin-right: 6px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 13px 2px; font-size: 15px; font-weight: 600; list-style: none; }
.faq summary::before { content: "问"; color: var(--accent); margin-right: 8px; font-size: 13px; }
.faq details p { padding: 0 2px 14px 27px; font-size: 14px; color: var(--text-2); }

.crumbs { font-size: 13px; color: var(--text-2); padding: 14px 0; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

article.post h1.title { font-size: 23px; line-height: 1.5; margin-bottom: 10px; }
.post-meta { font-size: 13px; color: var(--text-2); margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.post-meta .author { color: var(--accent); font-weight: 600; }

article.post h2 { font-size: 19px; margin: 26px 0 10px; }
article.post h3 { font-size: 16.5px; margin: 18px 0 8px; }
article.post p { margin-bottom: 12px; font-size: 15.5px; }
article.post ul, article.post ol { margin: 0 0 12px 22px; font-size: 15.5px; }
article.post li { margin-bottom: 4px; }
article.post img { max-width: 100%; height: auto; border-radius: 8px; }
article.post blockquote { font-size: 13px; color: var(--text-2); border-left: 3px solid var(--line); padding-left: 12px; margin: 0 0 12px; }
article.post table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 18px; display: block; overflow-x: auto; }
article.post th, article.post td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; white-space: nowrap; }
article.post th { background: var(--bg-soft); font-weight: 600; }

.pagebar { margin: 18px 0; font-size: 14px; }
.pagebar a, .pagebar span { display: inline-block; padding: 5px 12px; margin-right: 6px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.pagebar span.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 22px 0; background: var(--bg-soft); }
.card h3 { font-size: 15px; margin-bottom: 6px; color: var(--accent); }
.card p { font-size: 14px; color: var(--text-2); margin-bottom: 8px; }
.card .btn { display: inline-block; background: var(--accent); color: #fff; font-size: 14px; text-decoration: none; padding: 8px 18px; border-radius: 999px; margin-right: 8px; }
.card .btn.ghost { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.kuku-ad img { display: block; max-width: 320px; width: 100%; border-radius: 8px; margin: 6px 0 10px; }

.author-card { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; }
.author-card .avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.author-card b { font-size: 14.5px; }
.author-card p { font-size: 12.5px; color: var(--text-2); margin: 2px 0 0; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; font-size: 13px; color: var(--text-2); background: var(--bg-soft); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; margin-bottom: 16px; }
footer.site h4 { font-size: 14px; color: var(--text); margin-bottom: 8px; }
footer.site a { color: var(--text-2); text-decoration: none; display: block; padding: 2px 0; }
footer.site a:hover { color: var(--accent); }
footer.site .beian { border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; }
footer.site .qw { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
footer.site .qw img { width: 104px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 4px; }
footer.site .qw p { font-size: 12px; line-height: 1.7; padding-top: 6px; }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }
