/* 豫教研汇 Typecho 主题 —— 蓝色教研风 */
:root{
  --primary:#1D5CB8; --primary-dark:#154A93; --primary-light:#EAF2FC;
  --accent:#D9542B; --accent-light:#FBE9E3;
  --gold:#E8A33D; --gold-light:#FBF3E4;
  --bg:#F4F8FD; --card:#FFFFFF; --line:#DCE7F3;
  --text:#1F2937; --muted:#667085;
  --radius:10px; --shadow:0 2px 10px rgba(20,60,120,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;color:var(--text);background:var(--bg);line-height:1.75;-webkit-font-smoothing:antialiased}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block;height:auto}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}

/* ===== 顶部 ===== */
.site-header{background:var(--primary);color:#fff;position:sticky;top:0;z-index:50;box-shadow:0 2px 12px rgba(10,40,90,.18)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px}
.brand{display:flex;align-items:center;gap:12px;min-width:0;color:#fff}
.brand:hover{text-decoration:none}
.logo{width:38px;height:38px;flex:0 0 auto;border-radius:8px;object-fit:cover;box-shadow:0 2px 6px rgba(21,74,147,.15)}
.brand-text{display:flex;flex-direction:column;line-height:1.3}
.brand-name{font-size:21px;font-weight:700;letter-spacing:1px}
.brand-slogan{font-size:12px;opacity:.85}
.nav{display:flex;gap:6px;flex-wrap:wrap}
.nav a{color:#fff;font-size:15px;padding:6px 12px;border-radius:6px;transition:background .2s}
.nav a:hover{background:rgba(255,255,255,.16);text-decoration:none}

/* ===== Hero ===== */
.hero{background:linear-gradient(135deg,#1D5CB8 0%,#2A6DC8 55%,#3E7ED6 100%);color:#fff;padding:44px 0 40px}
.hero-mini{padding:26px 0}
.hero-inner{display:flex;align-items:center}
.hero-text{max-width:820px}
.hero h1{font-size:36px;font-weight:700;letter-spacing:2px;margin-bottom:10px}
.hero-sub{font-size:17px;opacity:.95;margin-bottom:10px}
.hero-note{font-size:13px;opacity:.8}

/* ===== 主区 ===== */
.section{padding:28px 0}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px;border-bottom:2px solid var(--line);padding-bottom:8px}
.section-head h2{font-size:22px;color:var(--primary-dark)}
.section-tip{font-size:13px;color:var(--muted)}

/* 文章卡片 */
.post-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:18px}
.post-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px 22px;display:flex;flex-direction:column;gap:8px;transition:transform .18s,box-shadow .18s}
.post-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(20,60,120,.12)}
.post-title{font-size:18px;line-height:1.5}
.post-title a{color:var(--text)}
.post-title a:hover{color:var(--primary)}
.post-meta{font-size:13px;color:var(--muted)}
.post-excerpt{font-size:14px;color:#4B5563;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-more{font-size:14px;font-weight:500}
.empty{color:var(--muted);padding:30px 0;text-align:center}

/* 分页 */
.pager{margin-top:24px;text-align:center}
.page-nav{display:inline-flex;gap:8px;flex-wrap:wrap}
.page-nav a,.page-nav span{display:inline-block;padding:6px 13px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);font-size:14px}
.page-nav .current{background:var(--primary);color:#fff;border-color:var(--primary)}

/* ===== 文章页 ===== */
.article-wrap{padding:28px 0 40px}
.article-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:32px 36px}
.crumb{font-size:13px;color:var(--muted);margin-bottom:12px}
.article-title{font-size:28px;line-height:1.4;color:var(--text);margin-bottom:10px}
.article-card .post-meta{margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.article-content{font-size:16px;color:#2B3440;word-break:break-word}
.article-content h2{font-size:21px;margin:26px 0 12px;padding-left:12px;border-left:4px solid var(--primary);color:var(--primary-dark)}
.article-content h3{font-size:18px;margin:20px 0 10px;color:var(--primary-dark)}
.article-content p{margin:12px 0}
.article-content ul,.article-content ol{margin:12px 0;padding-left:26px}
.article-content li{margin:6px 0}
.article-content table{border-collapse:collapse;width:100%;margin:16px 0;font-size:14px}
.article-content th{background:var(--primary-light);color:var(--primary-dark);border:1px solid var(--line);padding:9px 12px;text-align:left;font-weight:600}
.article-content td{border:1px solid var(--line);padding:9px 12px;vertical-align:top}
.article-content blockquote{border-left:4px solid var(--gold);background:var(--gold-light);padding:12px 16px;margin:14px 0;color:#5B4A24;border-radius:0 6px 6px 0}
.article-content a{word-break:break-all}
.article-tags{margin-top:22px;font-size:14px;color:var(--muted)}
.article-nav{display:flex;justify-content:space-between;gap:16px;margin-top:22px;flex-wrap:wrap}
.nav-item{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:10px 16px;font-size:14px;max-width:48%}
.nav-item a{color:var(--text)}
.nav-item a:hover{color:var(--primary)}

/* ===== 页脚 ===== */
.site-footer{background:#10294D;color:#B9C8DD;margin-top:24px;padding:34px 0 18px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px;padding-bottom:20px}
.footer-col h4{color:#fff;font-size:16px;margin-bottom:10px}
.footer-col p{font-size:13px;line-height:1.8;max-width:380px}
.footer-col a{display:block;color:#B9C8DD;font-size:13px;padding:3px 0}
.footer-col a:hover{color:#fff}
.wechat-note{display:block;font-size:13px;color:#8FA3BD;padding:3px 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:14px;text-align:center;font-size:12px;color:#8FA3BD;line-height:2}

/* ===== Hero（带插画两栏） ===== */
.hero-inner{display:flex;align-items:center;justify-content:space-between;gap:36px}
.hero-text{max-width:640px}
.hero h1{font-size:36px;font-weight:700;letter-spacing:2px;margin-bottom:10px}
.hero-sub{font-size:17px;opacity:.95;margin-bottom:10px}
.hero-note{font-size:13px;opacity:.8;margin-bottom:18px}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap}
.btn-primary{display:inline-block;background:#fff;color:var(--primary);font-weight:600;padding:10px 22px;border-radius:8px;box-shadow:0 3px 10px rgba(0,0,0,.14);transition:transform .15s}
.btn-primary:hover{transform:translateY(-1px);text-decoration:none;color:var(--primary-dark)}
.btn-ghost{display:inline-block;border:1px solid rgba(255,255,255,.65);color:#fff;font-weight:600;padding:10px 22px;border-radius:8px;transition:background .15s}
.btn-ghost:hover{background:rgba(255,255,255,.14);text-decoration:none}
.hero-img{flex:0 0 300px}
.hero-img img{border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.18)}

/* ===== 栏目四卡 ===== */
.cards{display:grid;gap:16px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.entry-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 20px;display:flex;flex-direction:column;gap:8px;transition:transform .18s,box-shadow .18s}
.entry-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(20,60,120,.14);text-decoration:none}
.entry-card h3{font-size:17px;color:var(--text)}
.entry-card p{font-size:13px;color:var(--muted);line-height:1.7;flex:1}
.e-icon{width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:2px}
.e-icon svg{width:22px;height:22px}
.e-blue{background:var(--primary-light);color:var(--primary)}
.e-accent{background:var(--accent-light);color:var(--accent)}
.e-gold{background:var(--gold-light);color:var(--gold)}
.e-more{font-size:13px;font-weight:600;color:var(--primary)}
.see-more{font-size:14px;font-weight:600}

/* ===== 响应式 ===== */
@media (max-width:1000px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:900px){
  .header-inner{flex-direction:column;align-items:flex-start;gap:8px}
  .nav{width:100%;overflow-x:auto;white-space:nowrap;padding-bottom:4px}
  .hero h1{font-size:28px}
  .footer-grid{grid-template-columns:1fr;gap:20px}
  .post-list{grid-template-columns:1fr}
  .article-card{padding:22px 18px}
  .article-title{font-size:22px}
  .nav-item{max-width:100%}
  .hero-inner{flex-direction:column;gap:22px}
  .hero-img{flex:0 0 auto;max-width:340px;margin:0 auto}
}
@media (max-width:480px){
  .hero{padding:30px 0}
  .hero-sub{font-size:15px}
  .article-content{font-size:15px}
  .grid-4{grid-template-columns:1fr!important}
}
