:root {
  --bg: #0b1020;
  --surface: #121933;
  --surface-2: #1a2444;
  --text: #e8ecf8;
  --muted: #9aa7c7;
  --accent: #5b8cff;
  --accent-2: #7c5cff;
  --ai: #22c997;
  --tech: #ffb020;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(180deg, #070b16 0%, var(--bg) 220px, #0a1020 100%);
  color: var(--text);
  line-height: 1.6;
}

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

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  background: rgba(10, 16, 32, 0.85);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 0.75rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  text-decoration: none;
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mirror-badge,
.primary-badge {
  font-size: 0.78rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.mirror-badge {
  background: rgba(124, 92, 255, 0.15);
  color: #d9cbff;
}

.primary-badge {
  background: rgba(34, 201, 151, 0.12);
  color: #b8f5df;
}

.site-nav {
  border-top: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav a:hover { color: white; }

main.container { padding: 2rem 0 3rem; }

.hero {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.12), rgba(124, 92, 255, 0.08));
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hero-meta,
.hero-note {
  color: var(--muted);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-ai { background: rgba(34, 201, 151, 0.15); color: #7ef0c9; }
.badge-tech { background: rgba(255, 176, 32, 0.15); color: #ffd68a; }

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card h2 a { color: white; text-decoration: none; }
.card h2 a:hover { color: var(--accent); }

.excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.source { color: var(--muted); }
.read-more { font-weight: 600; }

.article-detail,
.page-content {
  max-width: 760px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
}

.article-detail h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.25;
}

.source-box,
.summary-box,
.cta-box,
.copyright-inline {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.summary-box p,
.source-box p,
.page-content p,
.page-content li {
  color: #d6ddf0;
}

.legal-note {
  color: var(--muted) !important;
  font-size: 0.88rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white !important;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none !important;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: #070b16;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid strong { color: white; }

.page-content h2,
.page-content h3 {
  margin-top: 1.75rem;
}

@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .mirror-badge, .primary-badge { white-space: normal; }
}
