:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #70707a;
  /* 品牌蓝 —— 取自机构 logo 主色 */
  --accent: #1a5dc8;
  --accent-dark: #1454b0;
  --accent-soft: #eaf0fb;
  --accent-glow: rgba(26, 93, 200, 0.08);
  --secondary: #3b8bf5;    /* 浅蓝，用于渐变 */
  --border: #e2e8f0;
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: var(--text);
}
.brand img.logo-icon {
  height: 32px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}
.nav { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 60px;
  text-align: center;
  background:
    radial-gradient(1200px 420px at 50% -10%, var(--accent-glow), transparent 70%);
}
/* 右上角品牌图标角标 —— 大气、不抢视觉中心 */
.hero .logo-corner {
  position: absolute;
  top: 26px;
  right: 32px;
  height: 104px;
  width: auto;
  object-fit: contain;
  opacity: 0.92;
}
.hero .tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Article grid ---------- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 4px; height: 22px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 64px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.pinned { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pin-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e8412f, #f7735a);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(232,65,47,.35);
}
.cover {
  height: 168px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  position: relative;
}
.cover .cat {
  font-size: 12px;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.cover .emoji {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 34px;
  opacity: 0.92;
}
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 18px; line-height: 1.45; margin-bottom: 10px; }
.card .excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.card .meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card .more { color: var(--accent); font-weight: 600; }

/* cover variants —— 全部统一到蓝色系 */
.cover-primary   { background: linear-gradient(135deg, #1558c4, var(--secondary)); }
.cover-deep      { background: linear-gradient(135deg, #113d7a, #1a5dc8); }
.cover-bright    { background: linear-gradient(135deg, var(--secondary), #6ba9ff); }
.cover-warm      { background: linear-gradient(135deg, #0d7bb5, #3dbce8); }

/* ---------- Article page ---------- */
.article-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f4699, var(--accent));
  color: #fff;
  padding: 56px 0 44px;
}
.article-hero .cat {
  font-size: 13px; letter-spacing: 1px;
  background: rgba(255,255,255,0.2);
  padding: 5px 12px; border-radius: 999px;
}
.article-hero h1 { font-size: 34px; line-height: 1.3; margin: 16px 0 12px; max-width: 800px; }
.article-hero .meta { font-size: 14px; opacity: 0.9; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  font-size: 17px;
}
/* 兜底：微信正文容器常带 visibility:hidden/opacity:0（防爬延迟显示），
   我们站点无对应 JS，强制显示以免整页空白 */
#js_content { visibility: visible !important; opacity: 1 !important; }
.article-body h2 { font-size: 23px; margin: 36px 0 14px; color: #0f3a7a; }
.article-body p { margin-bottom: 18px; color: #2c2c30; }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 12px 18px;
  margin: 22px 0;
  color: #1a4080;
  border-radius: 0 8px 8px 0;
}
.article-body ul { padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; }

.back-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 64px;
}
.back-note .box {
  background: var(--accent-soft);
  border: 1px solid #cce0ff;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14px;
  color: #1a4080;
}
.back-note .box a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.site-footer a { color: var(--accent); }
.site-footer .brand-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
}
.site-footer .brand-line img {
  height: 24px; width: auto; object-fit: contain; border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .hero .logo-corner { height: 72px; top: 18px; right: 18px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 26px; }
  .hero .logo-corner { height: 54px; top: 14px; right: 14px; }
  .article-hero h1 { font-size: 26px; }
  .brand img.logo-icon { height: 28px; }
}
