/* ============================================================
 * ytzph-light style.css — 零框架轻量样式（纯 CSS，无外部依赖）
 * 文字简洁型：白底黑字、单列排版、移动端自适应
 * ============================================================ */
* { 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", sans-serif;
  font-size: 16px; line-height: 1.7; color: #333; background: #fff;
}
a { color: #0a5fd0; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo a { font-size: 20px; font-weight: 700; color: #222; }
.logo a:hover { text-decoration: none; }
.site-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-nav a { color: #555; font-size: 15px; }
.site-nav a:hover { color: #0a5fd0; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* ---- Hero / 首页 ---- */
.hero { padding: 36px 0 20px; }
.hero h1 { font-size: 26px; color: #222; margin-bottom: 10px; }
.hero p { color: #666; font-size: 15px; }

/* ---- 列表 ---- */
.list { padding: 20px 0 40px; }
.list h1 { font-size: 22px; margin-bottom: 12px; }
.list h2 { font-size: 20px; margin: 24px 0 14px; padding-left: 10px; border-left: 4px solid #0a5fd0; }
.list-desc { color: #666; margin-bottom: 18px; font-size: 14px; }
.list-item { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.list-item h3 { font-size: 17px; margin-bottom: 4px; }
.list-item .intro { color: #666; font-size: 14px; margin-bottom: 4px; }
.list-item .date { color: #999; font-size: 12px; }

/* ---- 文章页 ---- */
.article-wrap { display: flex; gap: 28px; padding: 28px 0 40px; }
.post { flex: 1; min-width: 0; }
.post h1 { font-size: 24px; line-height: 1.5; margin-bottom: 10px; }
.post-meta { color: #999; font-size: 13px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.post-content { font-size: 16px; }
.post-content h2 { font-size: 20px; margin: 28px 0 12px; padding: 8px 12px; background: #f7f9fc; border-left: 4px solid #0a5fd0; }
.post-content h3 { font-size: 18px; margin: 20px 0 10px; }
.post-content p { margin-bottom: 14px; }
.post-content strong { font-weight: 600; }
.post-content img { max-width: 100%; height: auto; display: block; margin: 12px auto; }
.post-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.post-content table th, .post-content table td { border: 1px solid #e0e0e0; padding: 8px 10px; text-align: left; }
.post-content table th { background: #f7f9fc; }
.post-content ol, .post-content ul { margin: 0 0 14px 22px; }
.post-content li { margin-bottom: 6px; }

/* ---- 侧边栏 ---- */
.sidebar { width: 260px; flex-shrink: 0; }
.sidebar .widget { margin-bottom: 24px; }
.sidebar .widget h3 { font-size: 16px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #0a5fd0; }
.sidebar .widget ul { list-style: none; }
.sidebar .widget li { margin-bottom: 8px; font-size: 14px; }

/* ---- 城市页 ---- */
.city-page { padding: 20px 0 40px; }
.city-page h1 { font-size: 24px; margin-bottom: 12px; }
.city-lead { font-size: 16px; color: #333; margin-bottom: 8px; font-weight: 500; }
.city-desc { color: #666; font-size: 14px; margin-bottom: 20px; }
.city-papers, .city-flow, .city-faq { margin-bottom: 28px; }
.city-papers h2, .city-flow h2, .city-faq h2 { font-size: 20px; margin-bottom: 14px; padding-left: 10px; border-left: 4px solid #0a5fd0; }
.paper-item { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.paper-item h3 { font-size: 16px; margin-bottom: 4px; color: #222; }
.paper-item p { color: #666; font-size: 14px; }
.paper-more { margin-top: 14px; color: #555; font-size: 14px; background: #f7f9fc; padding: 10px 14px; border-radius: 4px; }
.city-flow p { color: #555; font-size: 15px; line-height: 1.8; }
.faq-item { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.faq-q { font-size: 15px; margin-bottom: 4px; }
.faq-a { color: #666; font-size: 14px; }

/* ---- 分页 ---- */
.pagebar { margin: 24px 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pagebar a, .pagebar span.page { display: inline-block; padding: 4px 10px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; color: #555; }
.pagebar a:hover { background: #0a5fd0; color: #fff; text-decoration: none; border-color: #0a5fd0; }
.pagebar .now-page { background: #0a5fd0; color: #fff; border-color: #0a5fd0; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid #eee; padding: 24px 0; color: #999; font-size: 13px; text-align: center; }
.site-footer a { color: #999; }
.site-footer p { margin-bottom: 6px; }

/* ---- 移动端 ---- */
@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 16px; border-bottom: 1px solid #eee; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .article-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
  .hero h1 { font-size: 22px; }
  .post h1 { font-size: 20px; }
}
