/* Daily Digest — Clean Chinese News Style */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --primary: #1a73e8;
  --accent: #ff6b35;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --news-color: #1a73e8;
  --radar-color: #f59e0b;
  --radius: 12px;
}

body {
  font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

/* NAV */
nav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 32px;
  height: 56px;
}
nav .logo {
  font-size: 17px; font-weight: 700; color: var(--primary);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
nav .logo span { color: var(--accent); }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--primary); }
nav .spacer { flex: 1; }
nav .tag {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: #e8f0fe; color: var(--primary); font-weight: 500;
}

/* LANG SWITCHER */
.lang-switcher {
  display: flex; gap: 2px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 3px; overflow: hidden;
}
.lang-btn {
  padding: 4px 12px; border: none; background: transparent;
  font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 6px;
  color: var(--muted); font-family: inherit; transition: all 0.15s;
}
.lang-btn.active { background: var(--primary); color: white; }
.lang-btn:hover:not(.active) { color: var(--primary); }

/* BILINGUAL SHOW/HIDE */
[data-lang="en"] .zh { display: none !important; }
[data-lang="zh"] .en { display: none !important; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #1a73e8 0%, #6c47ff 100%);
  color: white; padding: 48px 24px; text-align: center;
}
.hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.hero p { opacity: 0.85; font-size: 15px; }

/* LAYOUT */
.container { max-width: 860px; margin: 0 auto; padding: 32px 16px; }

/* FILTER TABS */
.filter-tabs {
  display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.filter-tabs button {
  padding: 7px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: white; color: var(--muted); cursor: pointer; font-size: 13px;
  font-family: inherit; transition: all 0.15s;
}
.filter-tabs button.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-tabs button:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* CARD GRID */
.cards { display: grid; gap: 16px; }

.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 22px;
  text-decoration: none; color: inherit;
  display: block;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-1px); }

.card-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.card-type {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.card-type.news { background: #e8f0fe; color: var(--news-color); }
.card-type.radar { background: #fef3c7; color: #d97706; }

.card-date { font-size: 12px; color: var(--muted); }
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.5; }
.card p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* POST PAGE */
.post-header {
  background: white; border-bottom: 1px solid var(--border);
  padding: 32px 24px; margin-bottom: 0;
}
.post-header .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.post-header .breadcrumb a { color: var(--primary); text-decoration: none; }
.post-header h1 { font-size: 24px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.post-header .post-meta { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }

.post-body { background: white; margin-top: 1px; padding: 32px 24px; }
.post-body h2 { font-size: 17px; font-weight: 700; margin: 28px 0 12px; padding-left: 12px; border-left: 3px solid var(--primary); }
.post-body h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.post-body p { margin: 10px 0; color: #333; }
.post-body ul, .post-body ol { padding-left: 20px; margin: 10px 0; }
.post-body li { margin: 6px 0; }
.post-body a { color: var(--primary); }
.post-body blockquote { border-left: 3px solid var(--border); padding-left: 16px; color: var(--muted); margin: 16px 0; font-style: italic; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.post-body .highlight { background: #fff9e6; border-radius: 8px; padding: 14px 16px; margin: 16px 0; border-left: 3px solid var(--radar-color); }

.post-nav { display: flex; justify-content: space-between; padding: 20px 0; gap: 16px; }
.post-nav a { color: var(--primary); text-decoration: none; font-size: 14px; }

/* EMPTY STATE */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .icon { font-size: 48px; margin-bottom: 12px; }

/* FOOTER */
footer { text-align: center; padding: 28px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 40px; }

/* SUBSCRIBE */
.subscribe-block {
  background: linear-gradient(135deg, #1a73e8 0%, #6c47ff 100%);
  padding: 28px 24px;
}
.subscribe-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.subscribe-title { font-size: 16px; font-weight: 700; color: white; margin-bottom: 4px; }
.subscribe-desc { font-size: 13px; color: rgba(255,255,255,0.8); }
.subscribe-form {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
  margin-left: auto;
}
.subscribe-form input {
  padding: 9px 14px; border-radius: 8px; border: none;
  font-size: 14px; width: 220px; font-family: inherit;
  outline: none;
}
.subscribe-form button {
  padding: 9px 20px; background: white; color: var(--primary);
  border: none; border-radius: 8px; font-weight: 700;
  cursor: pointer; font-size: 14px; font-family: inherit;
  white-space: nowrap; transition: opacity 0.15s;
}
.subscribe-form button:hover { opacity: 0.9; }

/* FOOTER */
.footer-inner {
  display: flex; flex-direction: column; gap: 4px;
  align-items: center; text-align: center;
}

/* DISCLAIMER */
.disclaimer {
  font-size: 11px; color: #9ca3af; margin-top: 6px;
  max-width: 600px; line-height: 1.5;
}

/* RESPONSIVE */
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) {
  .hero h1 { font-size: 22px; }
  nav { gap: 16px; }
}
