/* =========================================================
    门户资讯风格
   ========================================================= */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #162033;
  --muted: #6b7688;
  --line: #e6eaf1;
  --brand: #165dff;
  --brand-dark: #0e42c4;
  --brand-soft: #eef4ff;
  --accent: #ff7d00;
  --accent-soft: #fff4e8;
  --ink: #0d1424;
  --shadow-sm: 0 2px 12px rgba(16, 24, 40, 0.04);
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- 顶栏与主导航 ---------- */
.topbar {
  background: var(--ink);
  color: #a9b4c8;
  font-size: 12px;
  letter-spacing: 0.2px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}
.topbar strong { color: #fff; font-weight: 700; }
.topbar span + span::before { content: '·'; margin: 0 10px; color: #4a5568; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), #6aa7ff);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.28);
}
.brand-name { font-size: 21px; font-weight: 900; letter-spacing: -0.6px; }
.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-top: -6px;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 18px;
  color: #4a5568;
  font-weight: 600;
  border-radius: 8px;
  transition: 0.2s ease;
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.active { color: var(--brand); }
.nav a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active::after { transform: scaleX(1); }

/* 汉堡菜单按钮：桌面隐藏，移动端点击后菜单下滑展开 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
  cursor: pointer;
  transition: 0.2s ease;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span:nth-child(2) { width: 70%; }
.nav-toggle:hover { border-color: var(--brand); background: var(--brand-soft); }
.site-header.menu-open .nav-toggle { border-color: var(--brand); background: var(--brand-soft); }
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9fc;
  transition: 0.2s ease;
}
.search-form:focus-within {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1);
}
.search-form input {
  width: 170px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}
.search-form button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  background: var(--brand);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #c25d00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

/* ---------- 归档列表：双列卡片网格 ---------- */
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.archive-grid .state { grid-column: 1 / -1; }

/* ---------- 首页头版：头条大图 + 深色聚焦面板 ---------- */
.front-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: stretch;
  margin: 26px 0 20px;
  min-height: 460px;
}
.fp-lead {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #16233f, #0d1424);
  box-shadow: var(--shadow);
}
.fp-lead-cover {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
}
.fp-lead-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.fp-lead:hover .fp-lead-cover img { transform: scale(1.04); }
.fp-lead-body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 34px;
  color: #fff;
  background: linear-gradient(transparent, rgba(5, 10, 24, 0.92) 78%);
}
.fp-lead-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fp-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #ff7d00, #ff5400);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.35);
}
.fp-cat {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.fp-cat:hover { background: rgba(255, 255, 255, 0.16); }
.fp-lead-body h2 {
  margin: 14px 0 8px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.6px;
}
.fp-lead-body h2 a:hover { color: #ffd9b0; }
.fp-lead-body p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-lead-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}
.fp-side {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(22, 93, 255, 0.35), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(255, 125, 0, 0.18), transparent 40%),
    linear-gradient(165deg, #14213c, #0a1120);
  box-shadow: var(--shadow);
}
.fp-brand { padding: 26px 26px 20px; }
.fp-kicker {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.fp-brand h1 {
  margin: 14px 0 0;
  font-size: 25px;
  line-height: 1.38;
  letter-spacing: -0.8px;
  color: #fff;
}
.fp-focus {
  flex: 1;
  padding: 4px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fp-focus-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.fp-focus-head::before {
  content: '';
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.fp-focus-item {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  transition: 0.2s ease;
}
.fp-focus-item:hover { background: rgba(255, 255, 255, 0.07); }
.fp-focus-cover {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.fp-focus-cover img { width: 100%; height: 100%; object-fit: cover; }
.fp-focus-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fp-focus-body h3 {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-focus-item:hover h3 { color: #ffd9b0; }
.fp-focus-body small { color: rgba(255, 255, 255, 0.45); font-size: 11px; }
.fp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fp-stats > div { padding: 16px 8px; text-align: center; }
.fp-stats > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.fp-stats strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  color: #7db0ff;
  letter-spacing: -0.5px;
}
.fp-stats span { color: rgba(255, 255, 255, 0.5); font-size: 11px; }

/* ---------- 内容频道条 ---------- */
.channel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.channel-label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.channel-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.channel-scroll {
  display: flex;
  flex: 1;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.channel-scroll::-webkit-scrollbar { display: none; }
.channel-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text);
  background: #f2f5fa;
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s ease;
}
.channel-chip:hover { color: #fff; background: var(--brand); transform: translateY(-1px); }
.channel-chip small { color: inherit; opacity: 0.65; font-size: 11px; }

/* ---------- 首页内容网格 ---------- */
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- 首页两栏 ---------- */
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.home-sidebar { position: sticky; top: 92px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.section-head h2 {
  display: inline-block;
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.4px;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--accent);
}
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.section-head .count { color: var(--muted); font-size: 13px; white-space: nowrap; }

.widget {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.widget h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 16px;
}
.widget h3::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background: var(--brand);
}
.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.hot-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hot-rank {
  flex: 0 0 auto;
  min-width: 30px;
  padding-top: 2px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #c3ccdb;
  font-variant-numeric: tabular-nums;
}
.hot-item:nth-child(1) .hot-rank { color: #ff5400; }
.hot-item:nth-child(2) .hot-rank { color: #ff9500; }
.hot-item:nth-child(3) .hot-rank { color: var(--brand); }
.hot-item a { font-size: 13px; line-height: 1.5; font-weight: 600; }
.hot-item a:hover { color: var(--brand); }
.hot-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

/* ---------- 列表与卡片 ---------- */
.list { display: flex; flex-direction: column; gap: 14px; }
.list-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}
.list-item:hover {
  border-color: #c7d6f5;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.list-item .card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
}
.list-item .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.list-item:hover .card-cover img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 700;
  font-size: 12px;
}
.tag-pill:hover { background: #dfeaff; }
.list-item h3 { margin: 9px 0 6px; font-size: 19px; line-height: 1.4; letter-spacing: -0.2px; }
.list-item h3 a:hover { color: var(--brand); }
.list-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
}
.card-footer .arrow { color: var(--brand); font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #eef2ff);
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-cover img { transform: scale(1.04); }
.card > .card-body { padding: 16px 18px; }
.card h3 { margin: 8px 0 6px; font-size: 17px; line-height: 1.45; }
.card h3 a:hover { color: var(--brand); }
.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-featured { grid-column: span 2; flex-direction: row; }
.card-featured .card-cover { width: 45%; aspect-ratio: auto; }
.card-featured > .card-body { padding: 26px; justify-content: center; }
.card-featured h3 { font-size: 24px; }
.card-featured p { font-size: 14px; -webkit-line-clamp: 3; }

/* ---------- 分类 / 标签页 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a:hover { color: var(--brand); }
/* ---------- 归档页头（分类 / 标签 / 搜索） ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  margin: 22px 0 24px;
  padding: 34px 40px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(22, 93, 255, 0.42), transparent 46%),
    radial-gradient(circle at 8% 100%, rgba(255, 125, 0, 0.16), transparent 40%),
    linear-gradient(150deg, #16233f, #0a1120);
  box-shadow: var(--shadow);
}
.ph-kicker {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.page-hero h1 {
  position: relative;
  margin: 14px 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.8px;
}
.page-hero p {
  position: relative;
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}
.ph-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.ph-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ph-meta span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.ph-mark {
  position: absolute;
  right: 30px;
  bottom: -38px;
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -6px;
  user-select: none;
  pointer-events: none;
}

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  margin-bottom: 50px;
}
.sidebar {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.sidebar h3 {
  margin: 0 0 12px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sidebar h3::before {
  content: '';
  width: 3px;
  height: 15px;
  border-radius: 3px;
  background: var(--accent);
}
.sidebar a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  transition: 0.2s ease;
}
.sidebar a:hover, .sidebar a.active {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #c9dcff;
  font-weight: 700;
}
.sidebar a small {
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.sidebar a.active small { background: var(--brand); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  transition: 0.2s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.chip small { color: var(--muted); font-weight: 500; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.tag-cloud .chip.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.tag-cloud .chip.active small { color: rgba(255, 255, 255, 0.75); }
.widget .tag-cloud { margin-bottom: 0; }

/* ---------- 详情页 ---------- */
.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.1s linear;
}
.article {
  padding: 42px 48px;
  margin: 22px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.article h1 {
  margin: 12px 0 18px;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.35;
  letter-spacing: -1px;
  color: var(--ink);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.article-meta a { color: var(--brand); font-weight: 700; }
.article-cover {
  margin: 26px 0 30px;
  overflow: hidden;
  border-radius: var(--radius);
  max-height: 460px;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.entry-content { font-size: 16px; line-height: 1.95; word-break: break-word; }
.entry-content > p { margin: 18px 0; }
.entry-content h2, .entry-content h3 {
  margin: 34px 0 14px;
  line-height: 1.45;
  color: var(--ink);
}
.entry-content h2 { padding-left: 14px; border-left: 4px solid var(--brand); }
.entry-content img {
  height: auto;
  margin: 22px 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.entry-content blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: #6b4a2f;
}
.entry-content pre {
  overflow: auto;
  padding: 18px;
  border-radius: 12px;
  background: #0d1424;
  color: #dbe4f5;
  font-size: 13px;
}
.entry-content a { color: var(--brand); text-decoration: underline; }
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-tags > span { color: var(--muted); font-size: 13px; }
.section { margin-bottom: 46px; }

/* ---------- 分页 / 状态 / 加载 ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.pagination button {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.pagination button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pagination button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination button:disabled { opacity: 0.45; cursor: not-allowed; }

.skeleton {
  background: linear-gradient(90deg, #e9edf4 25%, #f7f9fc 50%, #e9edf4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: var(--radius);
}
.skeleton-card { height: 190px; }
.skeleton-row { height: 150px; }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.state strong { display: block; margin-bottom: 6px; color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
}
.btn:hover { background: var(--brand-dark); }
.load-more { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 64px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  background: #eef1f6;
  color: var(--muted);
  font-size: 13px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.footer-inner a:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .front-page { grid-template-columns: 1fr; min-height: 0; }
  .fp-lead { min-height: 340px; }
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .home-sidebar .widget { margin-bottom: 0; }
}
@media (max-width: 820px) {
  .header-inner { gap: 12px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 8px 14px 14px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(16, 24, 40, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.25s ease;
  }
  .site-header.menu-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a { padding: 13px 12px; font-size: 15px; border-radius: 10px; }
  .nav a.active { background: var(--brand-soft); }
  .nav a.active::after { display: none; }
  .search-form { margin-left: auto; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-featured { grid-column: span 2; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1200px); }
  .topbar-inner span:not(:first-child) { display: none; }
  .front-page { margin: 18px 0; min-height: 0; }
  .fp-lead { min-height: 300px; }
  .fp-lead-body { padding: 20px; }
  .fp-lead-body h2 { font-size: 22px; }
  .fp-brand { padding: 22px 20px 14px; }
  .fp-brand h1 { font-size: 22px; }
  .channel-bar { border-radius: 18px; }
  .home-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-sidebar { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 1fr; }
  .list-item .card-cover { aspect-ratio: 16 / 9; }
  .grid { grid-template-columns: 1fr; }
  .card-featured { grid-column: span 1; flex-direction: column; }
  .card-featured .card-cover { width: 100%; aspect-ratio: 16 / 9; }
  .article { padding: 26px 20px; }
  .archive-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-hero { padding: 26px 22px; }
  .ph-mark { font-size: 120px; right: 16px; bottom: -26px; }
  .search-form input { width: 110px; }
  .brand-sub { display: none; }
}
