:root {
  --bg: #0a0e14;
  --surface: #121922;
  --text: #e8edf4;
  --muted: #8b9cb0;
  --accent: #7dd3fc;
  --accent2: #a78bfa;
  --maxw: min(1360px, calc(100vw - 2rem));
  --border: #243044;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
header {
  padding: 2rem 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0f1623 0%, var(--bg) 100%);
}
.head-row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(0.75rem, 3vw, 2rem);
  padding-right: clamp(0.75rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.brand h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
  max-width: 28rem;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}
.lang-switch button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.lang-switch button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(125, 211, 252, 0.08);
}
.lang-switch button:hover {
  color: var(--text);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(0.75rem, 3vw, 2rem);
  padding-right: clamp(0.75rem, 3vw, 2rem);
  width: 100%;
}
main {
  padding: 2rem 0 3rem;
}
section {
  margin-bottom: 2.5rem;
}
.page-section-title {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.cat-feed-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: #bae6fd;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
p {
  margin: 0 0 1rem;
  color: #c5d0dc;
}
.locale-zh p {
  letter-spacing: 0.02em;
}
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1rem 1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.card p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.card-jump {
  margin-top: auto;
  padding-top: 0.65rem;
  margin-bottom: 0 !important;
  font-size: 0.82rem;
}
.card-jump a {
  font-weight: 600;
  color: #7dd3fc;
}
.cat-feeds-wrap {
  display: grid;
  gap: 1.25rem 1.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .cat-feeds-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cat-feed {
  scroll-margin-top: 1rem;
  padding: 1rem 1rem 1.15rem;
  background: rgba(18, 25, 34, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.article-list.compact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-list.compact li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid rgba(36, 48, 68, 0.85);
  font-size: 0.86rem;
  line-height: 1.3;
}
.article-list.compact li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.article-list.compact a {
  flex: 1 1 200px;
  color: #d4e8f7;
  font-weight: 500;
}
.article-list.compact a:hover {
  color: var(--accent);
}
.article-list.compact .article-meta {
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.25);
}
.ad-slot {
  background: var(--surface);
  border: 1px dashed #3d4f63;
  border-radius: 10px;
  min-height: 100px;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.ad-slot--live {
  border-style: solid;
  border-color: var(--border);
}
.ad-slot-placeholder {
  margin: 0 0 0.5rem;
  line-height: 1.5;
}
.ad-slot-placeholder:last-child {
  margin-bottom: 0;
}
.ad-slot-placeholder code {
  font-size: 0.8em;
  color: #bae6fd;
}
.ad-slot ins.adsbygoogle {
  display: block;
  min-height: 90px;
}
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.reading-intro {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.reading-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.reading-list li {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.reading-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.reading-list a {
  display: inline;
  font-weight: 500;
  color: #bae6fd;
}
.reading-list a:hover {
  color: var(--accent);
}
.reading-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.locale-en .lang-zh {
  display: none !important;
}
.locale-zh .lang-en {
  display: none !important;
}
