/* ============================================
   SuperCue 文章页样式
   适用于：/articles/ 下所有文章页
   ============================================ */

/* --- 文章页变量 --- */
:root {
  --article-primary: #1a56db;
  --article-primary-light: #3b82f6;
  --article-bg: #f5f5f5;
  --article-surface: #ffffff;
  --article-text: #333333;
  --article-text-muted: #666666;
  --article-border: #e5e7eb;
}

/* --- 顶部导航条 --- */
.article-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.article-nav a {
  color: var(--article-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.article-nav a:hover { color: var(--article-primary-light); }
.article-nav .nav-sep { color: #ddd; }
.article-nav .btn-buy {
  color: #FF5000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* --- Breadcrumb --- */
.article-breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 13px;
  color: var(--article-text-muted);
}
.article-breadcrumb a {
  color: var(--article-primary);
  text-decoration: none;
}
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb span { margin: 0 6px; color: #ccc; }
.article-breadcrumb .current { color: var(--article-text); font-weight: 500; }

/* --- Header --- */
.article-header {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: white;
  padding: 40px 20px;
  text-align: center;
}
.article-header h1 { font-size: 28px; margin-bottom: 10px; line-height: 1.3; }
.article-category {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 15px;
}
.article-meta {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

/* --- Content --- */
.article-content-wrap { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.article-body {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.article-body p { margin-bottom: 16px; text-indent: 2em; line-height: 1.9; }
.article-body h2 {
  font-size: 22px;
  color: #1a56db;
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.article-body h3 { font-size: 18px; color: #333; margin: 20px 0 10px; }
.article-body ul, .article-body ol { margin: 15px 0; padding-left: 25px; }
.article-body li { margin-bottom: 10px; line-height: 1.8; }
.article-body strong { color: #1a56db; }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.article-body th {
  background: #1a56db;
  color: white;
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}
.article-body td { padding: 8px 10px; border: 1px solid #ddd; }
.article-body tr:nth-child(even) { background: #f9f9f9; }
.article-body .highlight {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}
.article-body .tips {
  background: #e8f4fd;
  border-left: 4px solid #1a56db;
  padding: 16px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}
.article-body .img-caption {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 20px;
}

/* --- 文章信息栏 --- */
.article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #999;
}

/* --- 相关文章 --- */
.related-articles {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}
.related-articles h3 {
  font-size: 18px;
  color: #1a56db;
  margin-bottom: 16px;
}
.related-articles ul { list-style: none; padding: 0; }
.related-articles li { margin-bottom: 10px; }
.related-articles a {
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-articles a::before {
  content: '→';
  color: #1a56db;
  font-weight: bold;
}
.related-articles a:hover { color: #1a56db; }

/* --- 返回链接 --- */
.article-back-links {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.article-back-links a {
  color: #1677ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.article-back-links a:hover { text-decoration: underline; }

/* --- Footer --- */
.article-footer {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 14px;
  margin-top: 40px;
  border-top: 1px solid #eee;
}
.article-footer a { color: #1677ff; text-decoration: none; }
.article-footer a:hover { text-decoration: underline; }

/* ============================================
   响应式 — 文章页
   ============================================ */
@media (max-width: 768px) {
  .article-header { padding: 24px 16px; }
  .article-header h1 { font-size: 20px; line-height: 1.4; }
  .article-content-wrap { padding: 0 12px; margin: 20px auto; }
  .article-body { padding: 20px 16px; border-radius: 8px; }
  .article-body h2 { font-size: 18px; }
  .article-body h3 { font-size: 16px; }
  .article-body p { font-size: 15px; text-indent: 1.5em; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body th, .article-body td { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
  .article-body .highlight, .article-body .tips { padding: 12px; font-size: 14px; }
  .article-body .highlight ul, .article-body .tips ul { padding-left: 16px; }
  .article-body li { font-size: 14px; }
  .article-back-links a { font-size: 14px; }
  .article-breadcrumb { padding: 12px 12px 0; font-size: 12px; }
}

@media (max-width: 480px) {
  .article-header { padding: 20px 12px; }
  .article-header h1 { font-size: 18px; }
  .article-body { padding: 16px 12px; }
  .article-body h2 { font-size: 16px; }
  .article-body p, .article-body li { font-size: 14px; }
}
