:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --text: #e8e6e3;
  --text-muted: #8b8a94;
  --accent: #f4a261;
  --accent-soft: rgba(244, 162, 97, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --font-display: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
  --radius: 12px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(244, 162, 97, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(100, 120, 200, 0.05), transparent);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.85;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-left: 64px;
}

.filter-tags {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: rgba(244, 162, 97, 0.3);
}

.tag.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 48px 0 80px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(244, 162, 97, 0.2);
}

.article-card.hidden {
  display: none;
}

.article-card .meta {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-card .category {
  color: var(--accent);
  font-weight: 500;
}

.article-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.article-card h2 a {
  color: inherit;
}

.article-card h2 a:hover {
  color: var(--accent);
  opacity: 1;
}

.article-card .excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 20px;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  align-self: flex-start;
}

.article-header {
  padding: 64px 0 40px;
  max-width: 720px;
  margin: 0 auto;
}

.article-header .back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.article-header .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-header .meta .category {
  color: var(--accent);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.article-body p {
  margin-bottom: 16px;
  color: #c9c7c4;
}

.article-body ul,
.article-body ol {
  margin: 16px 0 16px 24px;
  color: #c9c7c4;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent);
}

.article-body pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.55;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
}

.loading-text {
  color: var(--text-muted);
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .tagline {
    margin-left: 0;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}
