*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1f2937;
  background: #fff;
}

a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}
.brand:hover { text-decoration: none; }
nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
nav a { color: #6b7280; font-size: 14px; }
nav a:hover { color: #4f46e5; text-decoration: none; }

.cta-btn {
  background: #4f46e5;
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.cta-btn:hover { background: #4338ca; text-decoration: none !important; }

/* Main */
.main-content { padding: 40px 20px; }

/* Page title */
.page-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}
.page-sub {
  color: #6b7280;
  margin-bottom: 36px;
  font-size: 15px;
}

/* Category section */
.cat-section { margin-bottom: 48px; }
.cat-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}
.cat-title a { color: #111827; }
.cat-title a:hover { color: #4f46e5; text-decoration: none; }
.more-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: #4f46e5;
}

/* Article grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.article-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.article-card a {
  display: block;
  padding: 18px;
  color: inherit;
}
.article-card a:hover { text-decoration: none; }
.card-cat {
  font-size: 11px;
  color: #4f46e5;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
  line-height: 1.4;
}
.article-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 10px;
}
.card-date { font-size: 12px; color: #9ca3af; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  font-size: 14px;
}
.pagination a {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

/* Article body */
.article-body { max-width: 740px; }

.breadcrumb {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #4f46e5; }

.article-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 10px;
}
.article-meta {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 32px;
}

/* Article content typography */
.article-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #111827;
}
.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: #374151;
}
.article-content p {
  margin-bottom: 16px;
  color: #374151;
}
.article-content ul, .article-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-content li { margin-bottom: 6px; color: #374151; }
.article-content strong { color: #111827; }
.article-content a { color: #4f46e5; }

/* CTA box */
.article-cta {
  margin: 48px 0 32px;
  background: #f5f3ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.article-cta h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
}
.article-cta p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}
.cta-btn-lg {
  display: inline-block;
  background: #4f46e5;
  color: #fff !important;
  padding: 11px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.cta-btn-lg:hover { background: #4338ca; text-decoration: none !important; }

/* Related articles */
.related-articles {
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
  margin-top: 8px;
}
.related-articles h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #374151;
}
.related-articles ul { list-style: none; padding: 0; }
.related-articles li {
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}
.related-articles li:last-child { border-bottom: none; }
.related-articles a { font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 28px 0;
  text-align: center;
  margin-top: 60px;
}
.site-footer p { font-size: 13px; color: #9ca3af; }
.site-footer a { color: #6b7280; }

/* Mobile */
@media (max-width: 640px) {
  .page-title { font-size: 22px; }
  .article-header h1 { font-size: 22px; }
  .article-grid { grid-template-columns: 1fr; }
  nav { gap: 12px; }
}
