/* ============ 设计系统 Token ============ */
:root {
  --bg:          #f8f9fa;
  --surface:     #ffffff;
  --surface-alt: #f1f3f5;
  --text:        #111827;
  --text-body:   #374151;
  --text-muted:  #6b7280;
  --text-light:  #7c8594;
  --border:      #e5e7eb;
  --border-alt:  #f3f4f6;

  --accent:      #2563eb;
  --accent-soft: #eff6ff;
  --accent-bg:   #dbeafe;

  --imp-high-bg:  #fef2f2;
  --imp-high-tx:  #b91c1c;
  --imp-med-bg:   #fff7ed;
  --imp-med-tx:   #c2410c;
  --imp-low-tx:   #9ca3af;

  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 14px;
  --fs-md:   15px;
  --fs-lg:   17px;
  --fs-xl:   20px;
  --fs-2xl:  24px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Noto Sans SC', 'PingFang SC', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 960px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center;
  height: 60px; gap: 32px;
}
.logo {
  font-size: var(--fs-lg); font-weight: 600;
  letter-spacing: -0.02em; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.logo-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  font-size: var(--fs-base); color: var(--text-muted);
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: all 0.15s; font-weight: 500;
}
.main-nav a:hover { color: var(--text); background: var(--surface-alt); }
.main-nav a.active { color: var(--accent); background: var(--accent-soft); }
.search-box {
  width: 240px; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { flex-shrink: 0; color: var(--text-light); }
.search-box input {
  border: none; background: transparent; outline: none;
  font-size: var(--fs-sm); color: var(--text);
  width: 100%; font-family: inherit;
}
.search-box input::placeholder { color: var(--text-light); }

/* ============ 主容器 ============ */
.main-container { max-width: 960px; margin: 0 auto; padding: 24px 24px 80px; }

/* ============ 状态条 ============ */
.update-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; margin-bottom: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.update-bar .update-date {
  font-size: var(--fs-md); font-weight: 600; color: var(--text);
  white-space: nowrap;
}
.update-bar .update-meta {
  flex: 1; font-size: var(--fs-sm); color: var(--text-muted);
}

/* ============ 今日总结 ============ */
.highlights {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.highlights-title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.highlights-title .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.digest-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  align-items: flex-start;
}
.digest-item + .digest-item { border-top: 1px solid var(--border-alt); }
.digest-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 0;
  border-radius: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  text-align: center;
  width: 72px;
  line-height: 1.5;
}
.digest-text {
  font-size: var(--fs-base);
  color: var(--text-body);
  line-height: 1.7;
}
.update-bar .update-meta strong { color: var(--text); font-weight: 500; }

/* ============ 期 ============ */
.issue-section { margin-bottom: 36px; }
.issue-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.issue-header .issue-bar {
  width: 3px; height: 20px;
  background: var(--accent); border-radius: 2px;
}
.issue-header .issue-num {
  font-size: var(--fs-xl); font-weight: 600;
  letter-spacing: -0.01em;
}
.issue-header .issue-time {
  font-size: var(--fs-sm); color: var(--text-muted);
}
.issue-header .issue-count {
  margin-left: auto; font-size: var(--fs-xs);
  color: var(--text-muted); background: var(--surface-alt);
  padding: 3px 10px; border-radius: 20px;
}
.expand-hint {
  display: none; font-size: var(--fs-sm); color: var(--accent);
  margin-left: auto; padding: 3px 10px;
}

/* 旧期折叠 */
.issue-collapsed .news-list { display: none; }
.issue-collapsed .expand-hint { display: inline-block; }
.issue-collapsed .issue-count { display: none; }
.issue-collapsed .issue-header { cursor: pointer; }

/* ============ 资讯列表 ============ */
.news-list {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.news-item {
  display: flex; gap: 16px; padding: 22px 24px;
  border-bottom: 1px solid var(--border-alt);
  transition: background 0.15s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: var(--surface-alt); }
.news-item .news-main { flex: 1; min-width: 0; }
.news-item .news-title {
  font-size: var(--fs-lg); font-weight: 600;
  line-height: 1.5; margin-bottom: 8px;
  color: var(--text); letter-spacing: -0.01em;
}
.news-item .news-title a:hover { color: var(--accent); }
.news-item .news-summary {
  font-size: var(--fs-base); line-height: 1.75;
  color: var(--text-body); margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .news-meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; font-size: var(--fs-sm);
  color: var(--text-muted);
}
.imp-badge {
  font-size: var(--fs-xs); font-weight: 600;
  padding: 2px 8px; border-radius: 4px; letter-spacing: 0.02em;
}
.imp-badge.high { background: var(--imp-high-bg); color: var(--imp-high-tx); }
.imp-badge.medium { background: var(--imp-med-bg); color: var(--imp-med-tx); }
.imp-badge.low { color: var(--imp-low-tx); }
.news-source { color: var(--text-body); font-weight: 500; }
.news-time { color: var(--text-light); }
.news-link {
  color: var(--accent); font-weight: 500;
  display: inline-flex; align-items: center; gap: 3px;
}
.news-link:hover { text-decoration: underline; }
.news-keywords { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.kw-tag {
  font-size: var(--fs-xs); color: var(--text-muted);
  background: var(--surface-alt); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 4px;
}
.kw-more { font-size: var(--fs-xs); color: var(--accent); padding: 2px 4px; }

/* ============ 空状态 ============ */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}

/* ============ 页脚 ============ */
.site-footer {
  text-align: center; padding: 40px 24px;
  font-size: var(--fs-sm); color: var(--text-light);
  border-top: 1px solid var(--border); margin-top: 40px;
}

/* ============ 中间断点 ============ */
@media (max-width: 860px) {
  .header-inner { gap: 16px; }
  .search-box { width: 180px; }
  .main-nav a { padding-left: 10px; padding-right: 10px; }
}

/* ============ 移动端 ============ */
@media (max-width: 640px) {
  .header-inner {
    height: auto; padding: 12px 16px;
    flex-wrap: wrap; gap: 12px;
  }
  .logo { font-size: var(--fs-md); }
  .main-nav {
    order: 3; width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; position: relative;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; padding: 6px 12px; }
  .search-box { width: 120px; padding: 6px 10px; margin-left: auto; order: 2; }
  .search-box input { display: block; font-size: 12px; }
  .search-box svg { width: 12px; height: 12px; }
  .main-container { padding: 20px 16px 60px; }
  .update-bar { flex-wrap: wrap; gap: 6px 12px; padding: 12px 16px; }
  .update-bar .update-date { font-size: var(--fs-base); }
  .update-bar .update-meta { font-size: var(--fs-xs); width: 100%; flex: none; }
  .news-item { padding: 18px 16px; gap: 12px; }
  .news-item .news-title { font-size: var(--fs-md); }
  .news-item .news-summary { font-size: var(--fs-base); }
  .news-item .news-link { display: none; }
  .news-item .news-title a::after {
    content: " ↗"; color: var(--accent); font-size: var(--fs-sm);
  }
  .news-keywords .kw-tag { font-size: 11px; padding: 1px 6px; }
}
