/* ===== 基础重置 ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;background:#f8f9fa;color:#2c3e50;line-height:1.8;-webkit-font-smoothing:antialiased}
a{color:#2b6cb0;text-decoration:none;transition:color .2s}
a:hover{color:#1a4f8a;text-decoration:underline}

/* ===== 布局 ===== */
.container{max-width:800px;margin:0 auto;padding:0 20px}

/* ===== 头部 ===== */
.site-header{background:#fff;border-bottom:1px solid #e9ecef;padding:24px 0;margin-bottom:32px}
.site-header .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.site-title{font-size:1.5rem;font-weight:700;color:#2c3e50}
.site-title a{color:#2c3e50}
.site-title a:hover{text-decoration:none}
.site-nav{display:flex;gap:24px}
.site-nav a{font-size:.95rem;font-weight:500;padding:4px 0;border-bottom:2px solid transparent}
.site-nav a:hover,.site-nav a.active{border-bottom-color:#2b6cb0;text-decoration:none}

/* ===== Banner ===== */
.banner{background:#0f172a;padding:20px 0 8px;text-align:center}
.banner-img{max-width:100%;height:auto;border-radius:6px}

/* ===== 主内容区 ===== */
.main-content{min-height:60vh;padding-bottom:40px}
.page-title{font-size:1.6rem;font-weight:700;margin-bottom:8px;color:#1a202c}
.page-subtitle{color:#718096;font-size:.95rem;margin-bottom:32px}

/* ===== 文章列表 ===== */
.article-list{display:flex;flex-direction:column;gap:28px}
.article-card{background:#fff;border-radius:8px;padding:28px 30px;border:1px solid #e9ecef;transition:box-shadow .2s}
.article-card:hover{box-shadow:0 2px 12px rgba(0,0,0,.06)}
.article-card h2{font-size:1.25rem;margin-bottom:8px}
.article-card h2 a{color:#2c3e50}
.article-card h2 a:hover{color:#2b6cb0;text-decoration:none}
.article-meta{font-size:.85rem;color:#a0aec0;margin-bottom:12px}
.article-meta .tag{display:inline-block;background:#ebf4ff;color:#2b6cb0;padding:1px 10px;border-radius:10px;font-size:.8rem;margin-left:8px}
.article-excerpt{color:#4a5568;font-size:.95rem;line-height:1.75}

/* ===== 文章详情页 ===== */
.article-full{background:#fff;border-radius:8px;padding:36px 30px;border:1px solid #e9ecef}
.article-full h2{font-size:1.3rem;margin:28px 0 12px;color:#1a202c}
.article-full h3{font-size:1.1rem;margin:20px 0 10px;color:#2d3748}
.article-full p{margin-bottom:16px;font-size:.95rem}
.article-full ul,.article-full ol{margin:0 0 16px 24px}
.article-full li{margin-bottom:6px;font-size:.95rem}
.article-full code{background:#edf2f7;color:#c7254e;padding:2px 6px;border-radius:3px;font-size:.88rem;font-family:"SF Mono","Fira Code",Consolas,monospace}
.article-full pre{background:#1a202c;color:#e2e8f0;padding:20px;border-radius:6px;overflow-x:auto;margin-bottom:16px;font-size:.88rem;line-height:1.6}
.article-full pre code{background:transparent;color:#e2e8f0;padding:0;font-size:inherit}
.article-full blockquote{border-left:3px solid #2b6cb0;padding:8px 16px;margin:0 0 16px;color:#4a5568;background:#f7fafc;border-radius:0 4px 4px 0}
.article-full .back-link{margin-top:32px;display:inline-block;font-size:.9rem}

/* ===== 关于页面 ===== */
.about-section{background:#fff;border-radius:8px;padding:36px 30px;border:1px solid #e9ecef}
.about-section p{margin-bottom:16px;font-size:.95rem}
.about-section h2{font-size:1.3rem;margin:28px 0 12px;color:#1a202c}
.about-section ul{margin:0 0 16px 24px}
.about-section li{margin-bottom:6px;font-size:.95rem}

/* ===== 页脚 ===== */
.site-footer{background:#fff;border-top:1px solid #e9ecef;padding:24px 0;text-align:center;margin-top:40px}
.site-footer p{color:#a0aec0;font-size:.8rem}
.site-footer .icp{color:#cbd5e0;font-size:.75rem;margin-top:4px}

/* ===== 响应式 ===== */
@media(max-width:640px){
  .site-header .container{flex-direction:column;align-items:flex-start}
  .site-title{font-size:1.3rem}
  .site-nav{gap:16px}
  .article-card,.article-full,.about-section{padding:20px}
  .page-title{font-size:1.3rem}
  .article-full pre{padding:12px;font-size:.82rem}
}
