/* 文章专属排版与阅读优化样式表 */
:root {
  --primary: #E03628;
  --primary-hover: #C5291C;
  --primary-light: #FFF0EE;
  --primary-glow: rgba(224, 54, 40, 0.25);
  --dark: #121417;
  --text-main: #1F2429;
  --text-muted: #4A5568;
  --text-light: #718096;
  --bg-page: #FAFBFD;
  --bg-card: #FFFFFF;
  --border-color: rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.article-header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 253, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  color: var(--text-main);
  font-size: 18px;
}

.logo-badge {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-nav-cta {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-nav-cta:hover {
  background: var(--primary-hover);
}

.article-container {
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.article-main-card {
  background: #FFF;
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.post-tag {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}

.post-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.post-intro-box {
  background: #F8FAFC;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 36px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.post-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F1F5F9;
  letter-spacing: -0.3px;
}

.post-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px;
}

.post-content p {
  font-size: 16px;
  color: #2D3748;
  margin-bottom: 20px;
  line-height: 1.85;
}

.post-content ul, .post-content ol {
  margin: 0 0 24px 24px;
  color: #2D3748;
}

.post-content li {
  margin-bottom: 10px;
  font-size: 15px;
}

.post-content strong {
  color: #1A202C;
}

.cta-box-in-article {
  background: linear-gradient(135deg, #FFF5F4 0%, #FFF 100%);
  border: 1px solid rgba(224, 54, 40, 0.2);
  border-radius: var(--radius-md);
  padding: 30px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(224, 54, 40, 0.08);
}

.cta-box-in-article h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.cta-box-in-article p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 20px;
}

.btn-article-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #FFF;
  font-weight: 800;
  font-size: 16px;
  padding: 13px 36px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: var(--transition);
}

.btn-article-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 54, 40, 0.4);
}

.article-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .article-main-card {
    padding: 24px 18px;
  }
  .post-title {
    font-size: 24px;
  }
  .post-content h2 {
    font-size: 20px;
  }
}
