/* ========================================
   Daily Digest — Notion-style Design System
   ======================================== */

:root {
  /* Surfaces */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-warm: #f6f5f4;

  /* Text */
  --text: rgba(0, 0, 0, 0.95);
  --text-secondary: #615d59;
  --text-muted: #a39e98;

  /* Borders & Shadows */
  --border: rgba(0, 0, 0, 0.1);
  --shadow-notion: rgba(0,0,0,0.06) 0px 4px 20px, rgba(0,0,0,0.04) 0px 2px 8px, rgba(0,0,0,0.03) 0px 1px 3px;
  --shadow-notion-hover: rgba(0,0,0,0.08) 0px 8px 28px, rgba(0,0,0,0.05) 0px 4px 12px, rgba(0,0,0,0.03) 0px 1px 4px;

  /* Radius */
  --radius: 12px;
  --radius-sm: 4px;

  /* Spacing */
  --gap: 28px;

  /* Brand Colors */
  --color-entropy: #0075de;
  --color-case: #dfab01;
  --color-model: #7c3aed;
  --color-health: #dd5b00;
  --color-graveyard: #4f46e5;
  --color-idea: #e2711d;
  --color-reflection: #16a34a;
  --color-task: #0d9488;
  --color-archive: #8e8e93;
  --color-zero2idea: #2563eb;
  --color-dedao: #d97706;
  --color-perception: #0f766e;
  --color-watch: #ca8a04;
  --color-evidence: #64748b;
  --color-dual-innovation: #dc2626;

  /* Notion Blue */
  --notion-blue: #0075de;

  --nav-height: 56px;
  --max-width: 760px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--notion-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 导航 ---------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-wrap: wrap;
}

.top-nav .brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.top-nav .nav-links {
  display: flex;
  gap: 4px;
}

.top-nav .nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.top-nav .nav-links a:hover {
  background: var(--surface-warm);
  text-decoration: none;
}

/* ---------- Tab 导航（3 频道切换） ---------- */
.tab-nav { width: 100%; display: flex; flex-wrap: nowrap; gap: 0; padding: 8px 0 0; border-top: 1px solid var(--border); margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav .tab-item { font-size: 0.88rem; font-weight: 500; padding: 8px 16px; color: var(--text-muted); border-radius: 9999px; transition: all 0.15s; }
.tab-nav .tab-item { flex: 0 0 auto; white-space: nowrap; }
.tab-nav .tab-item:hover { color: var(--text); background: var(--surface-warm); text-decoration: none; }
.tab-nav .tab-item.active { color: var(--text); background: var(--surface-warm); font-weight: 600; }

.card-bar.dual-innovation { background: var(--color-dual-innovation); }

/* ---------- 日期切换 ---------- */
.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 12px;
}

.day-nav .day-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  flex: 1;
  color: var(--text);
}

.day-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #0075de;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.15s;
}

.day-nav a:hover {
  background: rgba(0,117,222,0.06);
  border-color: rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* ---------- 首页 ---------- */
.page-header {
  padding: 48px 0 12px;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.page-header p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 首页频道入口 — 纵向大卡片 */
.channel-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 36px;
}

.channel-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-left 0.15s ease;
  box-shadow: var(--shadow-notion);
  text-align: left;
}

.channel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-notion-hover);
  background: #f0efed;
  text-decoration: none;
  border-left: 4px solid #0075de;
}

.channel-card .channel-icon {
  font-size: 2rem;
  margin-right: 16px;
  flex-shrink: 0;
}

.channel-card .channel-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}

.channel-card .channel-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 日期列表 */
.date-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 48px;
}

.date-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-notion);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.date-list li a:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-notion-hover);
  text-decoration: none;
}

.date-list li a .arrow {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-notion);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 32px;
  transition: box-shadow 0.2s ease;
}

/* 色条 */
.card-bar { height: 4px; width: 100%; }
.card-bar.entropy   { background: var(--color-entropy); }
.card-bar.case      { background: var(--color-case); }
.card-bar.model     { background: var(--color-model); }
.card-bar.health    { background: var(--color-health); }
.card-bar.graveyard { background: var(--color-graveyard); }
.card-bar.idea      { background: var(--color-idea); }
.card-bar.reflection{ background: var(--color-reflection); }
.card-bar.task      { background: var(--color-task); }
.card-bar.archive   { background: var(--color-archive); }
.card-bar.zero2idea  { background: var(--color-zero2idea); }
.card-bar.dedao      { background: var(--color-dedao); }
.card-bar.perception { background: var(--color-perception); }
.card-bar.watch      { background: var(--color-watch); }
.card-bar.evidence   { background: var(--color-evidence); }

.attention-note {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  color: #115e59;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* 兼容旧 class */
.card-bar.classic-liangchen { background: var(--color-entropy); }
.card-bar.classic-shengcai  { background: var(--color-case); }
.card-bar.mental-model      { background: var(--color-model); }
.card-bar.handbook          { background: var(--color-reflection); }
.card-bar.scenario          { background: var(--color-idea); }
.card-bar.concept           { background: var(--color-task); }

/* 卡片头 */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-left: 4px solid transparent;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.card-header:hover { background: rgba(0, 0, 0, 0.02); }

.card-header .card-type {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--surface-warm);
}

.card-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  flex: 1;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-header .toggle-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, background 0.15s;
  margin-top: 2px;
}

.card-header .toggle-icon:hover { background: var(--surface-warm); }
.card.collapsed .toggle-icon { transform: rotate(-90deg); }

/* 卡片 body */
.card-body {
  padding: 0 24px 28px;
  animation: fadeIn 0.2s ease;
}
.card.collapsed .card-body { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 卡片内部排版 ---------- */
.card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 10px;
  color: var(--text);
  border-left: 3px solid var(--color-entropy);
  background: #f6f5f4;
  padding: 8px 14px;
  border-radius: 6px;
}

.card-body h3:first-child { margin-top: 0; }

.card-body p {
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.card-body p:last-child { margin-bottom: 0; }

.card-body ul,
.card-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

.card-body li {
  margin-bottom: 12px;
  line-height: 1.8;
  list-style-type: disc;
}

.card-body strong {
  color: var(--text);
  font-weight: 600;
}

.card-body blockquote {
  border-left: 3px solid var(--notion-blue);
  padding: 12px 18px;
  margin: 16px 0;
  background: rgba(0, 117, 222, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.85;
}

.card-body .highlight-box {
  background: #f6f5f4;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  line-height: 1.85;
  border-left: 4px solid #0075de;
}

.card-body .highlight-box p { margin-bottom: 8px; }
.card-body .highlight-box p:last-child { margin-bottom: 0; }

.card-body .red-flag {
  background: rgba(221, 91, 0, 0.04);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
  border-left: 4px solid #dd5b00;
  line-height: 1.85;
}

.card-body .red-flag p { margin-bottom: 8px; }

.card-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.card-body code {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  background: var(--surface-warm);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--text);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  line-height: 1.5;
}

.badge.entropy    { background: rgba(0, 117, 222, 0.08);   color: var(--color-entropy); }
.badge.case       { background: rgba(223, 171, 1, 0.08);   color: #b08d00; }
.badge.model      { background: rgba(124, 58, 237, 0.08);  color: var(--color-model); }
.badge.health     { background: rgba(221, 91, 0, 0.08);    color: var(--color-health); }
.badge.graveyard  { background: rgba(79, 70, 229, 0.08);   color: var(--color-graveyard); }
.badge.idea       { background: rgba(226, 113, 29, 0.08);  color: var(--color-idea); }
.badge.reflection { background: rgba(22, 163, 74, 0.08);   color: var(--color-reflection); }
.badge.task       { background: rgba(13, 148, 136, 0.08);  color: var(--color-task); }
.badge.zero2idea   { background: rgba(37, 99, 235, 0.08);   color: var(--color-zero2idea); }

/* 兼容旧 class */
.badge.classic-liangchen { background: rgba(0, 117, 222, 0.08);  color: var(--color-entropy); }
.badge.classic-shengcai  { background: rgba(223, 171, 1, 0.08);  color: #b08d00; }
.badge.handbook          { background: rgba(22, 163, 74, 0.08);  color: var(--color-reflection); }
.badge.scenario          { background: rgba(226, 113, 29, 0.08); color: var(--color-idea); }
.badge.mental-model      { background: rgba(124, 58, 237, 0.08); color: var(--color-model); }
.badge.concept           { background: rgba(13, 148, 136, 0.08); color: var(--color-task); }
.badge.graveyard         { background: rgba(79, 70, 229, 0.08);  color: var(--color-graveyard); }
.badge.health            { background: rgba(221, 91, 0, 0.08);   color: var(--color-health); }

/* ---------- 步骤列表 ---------- */
.step-list {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
}
.step-list li {
  counter-increment: step-counter;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.step-list li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  background: var(--color-reflection);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}

/* ---------- one-liner ---------- */
.model-one-liner {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  padding: 16px 20px;
  background: rgba(0, 117, 222, 0.04);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border-left: 3px solid var(--notion-blue);
  line-height: 1.8;
}

/* ---------- 墓地区块标题 ---------- */
.graveyard-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.graveyard-section-title:first-child { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 0;
  color: #a39e98;
  font-size: 0.85rem;
}

/* ---------- 机会卡片专属样式 ---------- */
.opp-score {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-zero2idea);
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: 0;
}

.opp-meta-row {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.decision-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 9999px;
  line-height: 1.4;
}
.decision-tag.freeze   { background: rgba(142, 142, 147, 0.1);  color: #6b6b70; }
.decision-tag.validate { background: rgba(223, 171, 1, 0.1);   color: #b08d00; }
.decision-tag.launch   { background: rgba(22, 163, 74, 0.1);   color: #16a34a; }

.opp-evidence-gap {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 14px;
  background: var(--surface-warm);
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

/* 机会卡片：来源标签 */
.opp-source-badge {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* 机会卡片：行内评分 */
.opp-score-inline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-zero2idea);
  margin-left: auto;
}

/* 机会卡片：判断依据区块 */
.opp-reason {
  margin-top: 10px;
}

.opp-reason-list {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}

.opp-reason-list li {
  position: relative;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 6px;
  padding-left: 12px;
}

.opp-reason-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 700;
}

/* 机会卡片：证据缺口区块 */
.opp-gap-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.opp-gap-list {
  margin: 0;
  padding-left: 16px;
}

.opp-gap-list li {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 4px;
  list-style: disc;
}

/* ---------- 得到课程卡片 ---------- */
.dedao-meta-row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dedao-type-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 9999px;
  line-height: 1.4;
}
.dedao-type-tag.ai     { background: rgba(139, 92, 246, 0.1);  color: #7c3aed; }
.dedao-type-tag.biz    { background: rgba(217, 119, 6, 0.1);   color: #b45309; }
.dedao-type-tag.trend  { background: rgba(6, 182, 212, 0.1);   color: #0891b2; }
.dedao-type-tag.model  { background: rgba(34, 197, 94, 0.1);   color: #16a34a; }

.dedao-course-badge {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Mobile first ---------- */
@media (max-width: 640px) {
  html { font-size: 18px; }
  .container { padding: 0 14px; }
  .top-nav { padding: 0 14px; }
  .tab-nav .tab-item { font-size: 0.82rem; padding: 6px 10px; }
  .top-nav .brand { padding: 6px 0; }
  .day-nav { padding: 14px 0; }
  .day-nav a { font-size: 0.85rem; padding: 6px 10px; }
  .day-nav .day-title { font-size: 1.05rem; }
  .card { margin-bottom: 20px; border-radius: 10px; }
  .card-header { padding: 14px 16px 12px; gap: 8px; }
  .card-header h2 { font-size: 1.1rem; }
  .card-header .card-type { font-size: 0.78rem; }
  .card-body { padding: 0 16px 20px; }
  .card-body p { line-height: 1.8; margin-bottom: 10px; font-size: 0.95rem; }
  .opp-score { font-size: 0.68rem; padding: 2px 6px; }
  .channel-card { padding: 16px 18px; }
  .channel-card .channel-icon { font-size: 1.5rem; margin-right: 12px; }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 768px) {
  html { font-size: 20px; }
  .container { padding: 0 40px; }
  .card-header { padding: 24px 28px 18px; }
  .card-body { padding: 0 28px 32px; }
  .channel-grid { gap: 14px; }
  .channel-card { padding: 24px 28px; }
}

/* ---------- Browse 频道专用样式（暗色主题） ---------- */

/* Browse 容器 */
.browse-container {
  background: #1a1a1a;
  min-height: 100vh;
  padding: 20px 0 40px;
}

/* Browse 网格布局 */
.browse-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
}

/* Browse 单个卡片 */
.browse-item {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: all 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.browse-item:hover {
  background: #333333;
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(2px);
  text-decoration: none;
}

/* 根据来源设置左边框颜色 */
.browse-item[data-source="idea"] { border-left-color: #4a9eff; }
.browse-item[data-source="case"] { border-left-color: #f0b429; }
.browse-item[data-source="community"] { border-left-color: #4ecdc4; }
.browse-item[data-source="rss"] { border-left-color: #8b95a5; }

/* Browse 卡片头部 */
.browse-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

/* 来源标签 */
.browse-source-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.browse-source-tag.idea { background: rgba(74, 158, 255, 0.15); color: #4a9eff; }
.browse-source-tag.case { background: rgba(240, 180, 41, 0.15); color: #f0b429; }
.browse-source-tag.community { background: rgba(78, 205, 196, 0.15); color: #4ecdc4; }
.browse-source-tag.rss { background: rgba(139, 149, 165, 0.15); color: #8b95a5; }

/* 日期 */
.browse-date {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

/* 标题 */
.browse-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 6px;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* 摘要 */
.browse-summary {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* 分页容器 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0 16px;
  margin-top: 20px;
}

/* 分页链接 */
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
}

.pagination-link:hover {
  background: #333333;
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.pagination-link.active {
  background: #4a9eff;
  border-color: #4a9eff;
  color: #ffffff;
}

.pagination-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Browse 频道暗色主题适配 */
@media (min-width: 768px) {
  .browse-container { padding: 40px 0 60px; }
  .browse-grid { gap: 14px; }
  .browse-item { padding: 20px 24px; }
}

@media (max-width: 640px) {
  .browse-container { padding: 16px 0 32px; }
  .browse-item { padding: 14px 16px; }
  .browse-title { font-size: 0.95rem; }
  .browse-summary { font-size: 0.85rem; }
  .pagination { gap: 6px; }
  .pagination-link { min-width: 36px; height: 36px; font-size: 0.85rem; padding: 0 10px; }
}

/* ---------- 打印 ---------- */
@media print {
  .top-nav, .day-nav, .tab-nav { display: none; }
  .card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .card.collapsed .card-body { display: block !important; }
  .browse-container { background: #ffffff; }
  .browse-item { background: #ffffff; color: #000000; border: 1px solid #ddd; }
  .browse-title { color: #000000; }
  .browse-summary { color: #666666; }
}

.site-footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: .6rem; }
.site-footer-contact a { color: inherit; }
