/* ===================================================================
   极夜碧青 / 赛博翡绿流光主题样式 (Cyber Emerald Glow Theme)
   =================================================================== */

:root {
  --bg-primary: #040c0b;
  --bg-secondary: #0a1c1a;
  --bg-card: rgba(10, 28, 26, 0.85);
  --border-card: 1px solid rgba(16, 185, 129, 0.25);
  --card-glow: 0 8px 32px 0 rgba(16, 185, 129, 0.18);
  --card-glow-hover: 0 12px 40px 0 rgba(20, 184, 166, 0.3);

  --accent-emerald: #10b981;
  --accent-teal: #14b8a6;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #34d399 0%, #2dd4bf 100%);

  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% -20%, #0d2825 0%, var(--bg-primary) 60%, #020706 100%);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(600px circle at 80% 20%, rgba(16, 185, 129, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* 磨砂玻璃卡片 */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-card);
  border-radius: 16px;
  box-shadow: var(--card-glow);
  padding: 2rem;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--card-glow-hover);
  transform: translateY(-2px);
}

/* 流光高亮按钮 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #031412;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.65);
  transform: translateY(-2px) scale(1.02);
  color: #01100e;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
}

/* 徽章与标签 */
.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  color: #34d399;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* 文章正文排版 */
.prose {
  color: #e2e8f0;
  font-size: 1.075rem;
}

.prose h1, .prose h2, .prose h3 {
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.prose h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  background: linear-gradient(135deg, #ffffff 40%, #5eead4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose h2 {
  font-size: 1.6rem;
  border-left: 4px solid var(--accent-emerald);
  padding-left: 0.85rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: #cbd5e1;
}

.prose a {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose a:hover {
  color: #5eead4;
}

.prose ul, .prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #cbd5e1;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.5rem;
  }
  .prose h1 {
    font-size: 1.85rem;
  }
}
