:root {
  --bg: #fafafa;
  --card: #fff;
  --text: #1a1a1a;
  --text2: #555;
  --text3: #999;
  --line: #e8e8e8;
  --accent: #2563eb;
  --max: 960px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
header .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.brand { font-size: 18px; font-weight: 700; }
.brand a { color: var(--text); text-decoration: none; }
.brand small { display: block; font-size: 12px; font-weight: 400; color: var(--text3); }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a {
  font-size: 13px;
  color: var(--text2);
  padding: 5px 10px;
  border-radius: 6px;
}
nav a:hover, nav a[aria-current="page"] {
  background: #eff6ff;
  color: var(--accent);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 20px 48px;
}

h1 { font-size: 26px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
h2 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
.intro { color: var(--text2); margin-bottom: 20px; line-height: 1.7; }

.breadcrumb { font-size: 13px; color: var(--text3); margin-bottom: 16px; }
.breadcrumb a { color: var(--text2); }
.breadcrumb span { margin: 0 6px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.cat-card {
  display: block;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.cat-card:hover { border-color: var(--accent); text-decoration: none; }
.cat-icon { font-size: 22px; }
.cat-name { font-weight: 700; font-size: 14px; margin-top: 6px; }
.cat-count { font-size: 12px; color: var(--text3); margin-top: 2px; }

.article-list { display: flex; flex-direction: column; gap: 12px; }
.article-card {
  display: block;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.article-card:hover { border-color: var(--accent); text-decoration: none; }
.article-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.article-card:hover .article-title { color: var(--accent); }
.article-summary { font-size: 14px; color: var(--text2); line-height: 1.55; }
.article-meta { font-size: 12px; color: var(--text3); margin-top: 8px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eff6ff;
  color: var(--accent);
}

.article-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 22px;
  margin-bottom: 24px;
}
.article-detail h1 { font-size: 24px; margin-bottom: 10px; }
.detail-meta { font-size: 13px; color: var(--text3); margin-bottom: 16px; }
.detail-body p { margin-bottom: 14px; color: var(--text2); line-height: 1.75; }

.ad { text-align: center; margin: 20px 0; }
.ad img { width: 66%; max-width: 100%; border-radius: 8px; cursor: pointer; }
@media (max-width: 640px) { .ad img { width: 100%; } }

.about {
  margin-top: 32px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

footer {
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.chigua-hub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.chigua-hub a {
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.chigua-hub a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.crawl-nav {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.section-label { font-size: 13px; color: var(--text3); margin-bottom: 8px; }

.cat-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.section-head h2 { margin: 0; font-size: 17px; }
.section-head h2 a { color: var(--text); text-decoration: none; }
.section-head h2 a:hover { color: var(--accent); }
.more-link { font-size: 13px; color: var(--text3); white-space: nowrap; }
.more-link:hover { color: var(--accent); text-decoration: none; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
  font-size: 14px;
}
.pagination a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; }
.pagination a:hover { border-color: var(--accent); text-decoration: none; }
.page-info { color: var(--text3); font-size: 13px; }

@media (max-width: 640px) {
  header .inner { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
