:root {
  color-scheme: light;
  --ink: #17332e;
  --muted: #687873;
  --paper: #f5f7f3;
  --line: #e3e9e5;
  --brand: #176b5c;
  --brand-dark: #0e5145;
  font-family: ui-rounded, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button { font: inherit; }
.app-shell { max-width: 720px; margin: 0 auto; padding: env(safe-area-inset-top, 0) 18px 95px; }
.hero { padding: 27px 4px 20px; }
.eyebrow { margin: 0 0 5px; color: #78a99e; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1 { margin: 0; letter-spacing: -.05em; font-size: 34px; line-height: 1.05; }
.date-label { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.intro { margin: 18px 0 10px; font-size: 16px; }
.privacy-note { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #e4f0ec; color: #397369; font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 3px 0 14px; }
.status { color: var(--muted); font-size: 13px; }
.refresh-button, .icon-button { border: 0; cursor: pointer; color: white; background: var(--brand); transition: transform .16s, background .16s; }
.refresh-button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; font-weight: 700; white-space: nowrap; }
.load-more-button { display: block; width: 100%; margin: 16px 0 4px; padding: 11px 14px; border: 1px solid #b7d4cc; border-radius: 12px; color: var(--brand); background: #fff; cursor: pointer; font-weight: 700; }
.load-more-button:disabled { cursor: wait; opacity: .65; }
.filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.filters input, .filters select { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.source-status { margin: 0 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.source-status h2 { margin: 0 0 10px; font-size: 16px; }.source-status-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; }.source-status-row small { color: var(--muted); text-align: right; }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } }
.refresh-button span { font-size: 19px; line-height: 10px; }
.refresh-button:active, .icon-button:active { transform: scale(.96); background: var(--brand-dark); }
.cards { display: grid; gap: 12px; }
.card { position: relative; display: grid; grid-template-columns: 53px 1fr auto; gap: 12px; align-items: start; padding: 16px 14px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 10px rgba(24, 59, 51, .035); }
.category-image { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 15px; font-size: 27px; }
.category-life { background: #edf4e7; }.category-health { background: #fff0e7; }.category-food { background: #fff7d9; }.category-safety { background: #eaf2fe; }.category-law { background: #f0ebfb; }
.category { margin: 1px 0 5px; color: var(--muted); font-size: 12px; }
.card h2 { margin: 0 25px 5px 0; font-size: 16px; line-height: 1.4; }
.card .body { margin: 0; color: #4e625b; font-size: 14px; line-height: 1.68; }
.source { display: block; margin-top: 8px; color: #8a9792; font-size: 11px; line-height: 1.4; }
.source-link { color: #397369; text-decoration: none; }.source-link:hover { text-decoration: underline; }
.science-details { margin-top: 11px; border-top: 1px solid #edf1ee; padding-top: 9px; }
.science-details summary { color: var(--brand); cursor: pointer; font-size: 13px; font-weight: 700; }
.detail-block { margin-top: 9px; padding: 9px 10px; border-radius: 10px; background: #f4f8f5; }
.detail-block strong { color: #356c60; font-size: 12px; }.detail-block p { margin: 4px 0 0; color: #52665e; font-size: 13px; line-height: 1.65; }
.favorite-button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #9ca9a4; background: transparent; cursor: pointer; font-size: 23px; line-height: 1; }
.favorite-button.selected { color: #db9b29; }
footer { padding: 20px 5px 12px; color: #89948f; font-size: 11px; line-height: 1.6; text-align: center; }
footer p { margin: 0 0 6px; }.text-button { border: 0; padding: 5px; color: var(--brand); background: transparent; cursor: pointer; text-decoration: underline; }
.bottom-nav { position: fixed; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 22px; padding: 9px 18px calc(9px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.nav-button { min-width: 78px; border: 0; padding: 4px 10px; color: #87938e; background: transparent; cursor: pointer; font-size: 12px; }.nav-button span { display: block; margin-bottom: 2px; font-size: 17px; }.nav-button.active { color: var(--brand); font-weight: 800; }
.empty { padding: 54px 0; color: var(--muted); text-align: center; }.empty span { color: #db9b29; font-size: 38px; }.empty p { margin: 8px 0; }
.hidden { display: none !important; }
dialog { width: min(calc(100% - 32px), 480px); border: 0; border-radius: 18px; padding: 20px; color: var(--ink); box-shadow: 0 18px 60px rgba(0,0,0,.22); }dialog::backdrop { background: rgba(12,31,27,.38); }.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }.dialog-head h2 { margin: 0; font-size: 19px; }.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 22px; }dialog p { color: #53655f; font-size: 14px; line-height: 1.75; }
@media (min-width: 760px) { .app-shell { padding-right: 28px; padding-left: 28px; }.cards { grid-template-columns: 1fr 1fr; }.card { min-height: 178px; } }
