/* 文章专用样式表 - 极简优雅高质感阅读排版 */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --bg-dark: #090d16;
  --bg-card: #111827;
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-sub: #9ca3af;
  --text-muted: #6b7280;
  --container-max: 900px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
}

a:hover {
  color: #7dd3fc;
  text-decoration: none;
}

.article-header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-card-border);
  padding: 16px 20px;
}

.article-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.back-home-link:hover {
  color: #38bdf8;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.article-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
  color: #fff;
}

.article-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 40px auto 60px auto;
  padding: 0 20px;
}

.article-hero {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--bg-card-border);
}

.article-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.article-main-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .article-main-title {
    font-size: 1.7rem;
  }
}

.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.article-body {
  font-size: 1.05rem;
  color: #e5e7eb;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 4px solid #3b82f6;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f3f4f6;
  margin-top: 28px;
  margin-bottom: 14px;
}

.article-body p {
  margin-bottom: 20px;
  line-height: 1.85;
}

.article-body ul, .article-body ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  background: rgba(37, 99, 235, 0.08);
  border-left: 4px solid #3b82f6;
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 25px 0;
  color: #93c5fd;
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}

.article-body th, .article-body td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bg-card-border);
}

.article-body th {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
}

.article-callout {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 22px;
  border-radius: 12px;
  margin: 30px 0;
}

.article-callout h4 {
  color: #34d399;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.article-footer-box {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--bg-card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-simple {
  background: #060911;
  border-top: 1px solid var(--bg-card-border);
  padding: 30px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: auto;
}
