/* ==========================================================================
   极夜琥珀金 / 赛博暗夜青流光主题 - Global Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #040b0e;
  --bg-secondary: #0a1921;
  --bg-card: rgba(10, 25, 33, 0.85);
  --border-card: 1px solid rgba(245, 158, 11, 0.25);
  --shadow-glow: 0 8px 32px 0 rgba(245, 158, 11, 0.18);
  --shadow-glow-cyan: 0 8px 32px 0 rgba(6, 182, 212, 0.2);
  
  --amber-primary: #f59e0b;
  --amber-glow: #fbbf24;
  --cyan-primary: #06b6d4;
  --cyan-glow: #22d3ee;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gradient-btn: linear-gradient(135deg, #f59e0b, #06b6d4);
  --gradient-btn-hover: linear-gradient(135deg, #fbbf24, #22d3ee);
  --gradient-text: linear-gradient(135deg, #f59e0b 0%, #38bdf8 100%);
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #0d2836 0%, #040b0e 75%), var(--bg-primary);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* 链接基础样式 */
a {
  color: var(--cyan-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--amber-glow);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* 容器布局 */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 磨砂玻璃卡片 */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: var(--border-card);
  border-radius: 14px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 36px 0 rgba(6, 182, 212, 0.22);
  transform: translateY(-2px);
}

/* 流光渐变按钮 */
.btn-primary, .btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 9999px;
  color: #040b0e;
  background: var(--gradient-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  position: relative;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary:hover, .btn-glow:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.5);
  color: #040b0e;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 9999px;
  background: rgba(10, 25, 33, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan-primary);
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-glow);
  color: #ffffff;
  box-shadow: var(--shadow-glow-cyan);
}

/* 渐变标题文字 */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 标签 Badge */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-glow);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* 导航头 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 11, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  padding: 16px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 文章排版微调 */
.article-content {
  line-height: 1.8;
  font-size: 1.05rem;
  color: #cbd5e1;
}

.article-content h1, .article-content h2, .article-content h3 {
  color: #ffffff;
  margin: 1.8rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* 底部 Footer */
footer {
  border-top: 1px solid rgba(245, 158, 11, 0.15);
  padding: 40px 0;
  margin-top: 60px;
  color: var(--text-dim);
  font-size: 0.875rem;
  text-align: center;
}
