ght: #1E3A5F;
  --accent: #2563EB;        /* 科技蓝 */
  --accent-light: #3B82F6;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --news-color: #DC2626;
  --wiki-color: #2563EB;
  --wechat-color: #059669;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 10px 25px rgba(15,23,42,0.1), 0 4px 8px rgba(15,23,42,0.06);
  --transition: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: #fff; }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* ── 导航栏 ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo svg { width: 20px; height: 20px; fill: #fff; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.navbar-nav a:hover {
  background: var(--bg);
  color: var(--text);
}

.navbar-nav a.active {
  background: var(--primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ── 布局 ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-main {
  padding: 40px 0 80px;
}

/* ── 页面标题区 ── */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ── 筛选栏 ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-btn.news.active   { background: var(--news-color); border-color: var(--news-color); }
.filter-btn.wiki.active   { background: var(--wiki-color); border-color: var(--wiki-color); }
.filter-btn.wechat.active { background: var(--wechat-color); border-color: var(--wechat-color); }

/* ── 子分类标签栏 ── */
.sub-tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  min-height: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.sub-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid transparent;
  transition: var(--transition);
}

.sub-tag:hover {
  background: var(--tag-color);
  color: #fff;
  border-color: var(--tag-color);
}

.sub-tag.all {
  color: var(--text-muted);
  border: 1px dashed var(--border);
}

.sub-tag-count {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
}

/* ── 卡片网格 ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── 文章卡片 ── */
.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-thumb {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-label {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.card-summary {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.source-tag.news   { background: #FEF2F2; color: var(--news-color); }
.source-tag.wiki   { background: #EFF6FF; color: var(--wiki-color); }
.source-tag.wechat { background: #ECFDF5; color: var(--wechat-color); }

/* ── 分类页 ── */
.source-section { margin-bottom: 40px; }

.source-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.source-header.news   { border-left: 4px solid var(--news-color); }
.source-header.wiki   { border-left: 4px solid var(--wiki-color); }
.source-header.wechat { border-left: 4px solid var(--wechat-color); }

.source-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.5rem;
}

.source-header.news .source-icon   { background: #FEF2F2; }
.source-header.wiki .source-icon   { background: #EFF6FF; }
.source-header.wechat .source-icon { background: #ECFDF5; }

.source-info { flex: 1; }

.source-info h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.source-info p { font-size: 0.8125rem; color: var(--text-muted); }

.source-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.source-link:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text-secondary);
}

.sub-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.sub-cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition);
}

.sub-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.sub-cat-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.sub-cat-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-secondary);
}

/* ── 列表页（浅色风格） ── */
.list-header-light {
  padding: 32px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.list-header-light h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.list-header-light p { font-size: 0.9375rem; color: var(--text-secondary); }

.list-header-light .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.list-header-light .breadcrumb a { color: var(--text-muted); }
.list-header-light .breadcrumb a:hover { color: var(--text); }
.list-header-light .breadcrumb .sep { color: var(--border); }
.list-header-light .breadcrumb .current { color: var(--text-secondary); font-weight: 500; }

.article-list { display: flex; flex-direction: column; gap: 16px; }

/* ── 分页 ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(.disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.page-num:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-num.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  cursor: default;
}

.page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
}

.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.list-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.list-card .list-thumb {
  width: 140px;
  height: 100px;
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
}

.list-card .list-content { flex: 1; min-width: 0; }

.list-card .list-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.list-card .list-summary {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.list-card .card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── 详情页（浅色风格） ── */
.detail-header-light {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.detail-header-light .container {
  max-width: 800px;
  margin: 0 auto;
}

.detail-category {
  display: inline-block;
  background: #3B82F6;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.detail-hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.detail-header-light .back-btn {
  position: absolute;
  right: 24px;
  top: 32px;
  margin-top: 0;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.detail-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #64748B;
}

.detail-source {
  font-size: 0.875rem;
  color: #64748B;
}

.detail-source span {
  color: #3B82F6;
}

.detail-intro-box {
  background: #EFF6FF;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 0;
  border-left: 4px solid #3B82F6;
}

.intro-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E40AF;
  margin-bottom: 12px;
}

.intro-desc {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 12px;
}

.intro-source {
  font-size: 0.75rem;
  color: #64748B;
}

.detail-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.detail-content {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.detail-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  letter-spacing: -0.01em;
}

.detail-content p { margin-bottom: 18px; color: #334155; }

.detail-content ul, .detail-content ol {
  margin: 0 0 18px 20px;
  list-style: disc;
}

.detail-content ol { list-style: decimal; }
.detail-content li { margin-bottom: 10px; line-height: 1.7; }
.detail-content strong { color: var(--text); font-weight: 600; }

.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 12px 0;
}

.detail-content code {
  background: #F1F5F9;
  color: #DC2626;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.detail-content pre {
  background: #1E293B;
  color: #E2E8F0;
  padding: 18px 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 18px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.spec-table-wrap { overflow-x: auto; margin-bottom: 18px; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spec-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
}

.spec-table tr:nth-child(even) td { background: #F8FAFC; }

/* 返回按钮 */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.back-btn:hover {
  background: var(--bg);
  border-color: var(--text-secondary);
}

/* ── 页脚 ── */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.footer-copy { font-size: 0.8125rem; }

/* ── 响应式 ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .navbar-inner { height: 56px; padding: 0 20px; }
  .navbar-brand .brand-text { display: none; }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--surface);
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .navbar-nav.open { display: flex; }
  .navbar-nav a { width: 100%; padding: 12px 16px; }
  .nav-toggle { display: flex; }

  .card-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.5rem; }

  .list-header-light h1 { font-size: 1.5rem; }

  .list-card { flex-direction: column; }
  .list-card .list-thumb { width: 100%; height: 180px; }

  .detail-hero-title { font-size: 1.5rem; }
  .detail-content { padding: 24px; }

  .sub-cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; padding: 0 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .sub-cat-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 6px; }
  .filter-btn { padding: 8px 14px; font-size: 0.8125rem; }
}

/* ── 懒加载状态 ── */
.load-more-trigger {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.loading-spinner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.loading-spinner::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.load-end {
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border-light);
  margin-top: 24px;
}

.load-end::before {
  content: '— ';
}

.load-end::after {
  content: ' —';
}

