:root {
  --bg: #0f172a;
  --bg-alt: #020617;
  --card: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 50%, #000 100%);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

.logo {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--accent);
  background-color: rgba(15, 23, 42, 0.9);
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero .container {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 55%),
              linear-gradient(to bottom right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.8);
}

.hero h2 {
  margin-top: 0;
  font-size: 1.9rem;
  letter-spacing: 0.03em;
}

.hero p {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: 2rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.98));
  border-block: 1px solid rgba(15, 23, 42, 0.9);
}

.section h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.section p,
.section ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section ul {
  padding-left: 1.1rem;
}

.section li + li {
  margin-top: 0.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 2rem;
  background: radial-gradient(circle at bottom, #020617, #020617);
}

.site-footer small {
  color: var(--muted);
}

code {
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
  background-color: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(30, 64, 175, 0.6);
  color: var(--accent);
  font-size: 0.85em;
}

.video-wrap {
  margin-top: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #000;
  max-width: 720px;
}

.video-wrap video {
  display: block;
  max-height: 400px;
}

.video-fallback {
  padding: 1.5rem;
  color: var(--muted);
}

/* ========== Deepress 博客样式 ========== */
.blog-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}
.blog-hero h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.08em;
}
.blog-hero p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-list {
  padding: 1rem 0 2rem;
}
.post-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.post-card:last-of-type {
  border-bottom: none;
}
.post-card time {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.post-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.post-card h2 a:hover {
  color: var(--accent);
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-page {
  padding: 2rem 0 3rem;
}
.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.back-link:hover {
  color: var(--accent);
}
.post header time {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.post header h1 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  line-height: 1.3;
}
.post-body h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}
.post-body p,
.post-body ul {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
}
.post-body ul {
  padding-left: 1.25rem;
}

@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .hero {
    padding: 2.25rem 0 1.5rem;
  }

  .hero .container {
    padding: 1.75rem 1.4rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .nav a {
    margin-left: 0;
    margin-right: 0.5rem;
  }
}

