/* ==========================================================================
   文章页专用样式
   ========================================================================== */

.article-page { padding: 2rem 0 5rem; }
.article-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(139, 90, 43, 0.1);
}
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.article-meta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.article-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.article-meta .meta-sep { color: var(--color-text-light); }

.article-cover {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text);
}
.article-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  position: relative;
  padding-left: 0.8rem;
  border-left: 4px solid var(--color-primary);
}
.article-body h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-primary-dark);
}
.article-body p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  line-height: 1.9;
}
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 0.5rem;
  padding-left: 1rem;
}
.article-body ul li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  list-style: none;
  line-height: 1.8;
}
.article-body ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.6rem;
  color: var(--color-gold);
  font-size: 0.6rem;
}
.article-body ol {
  counter-reset: item;
  list-style: none;
  padding-left: 0;
}
.article-body ol li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  counter-increment: item;
  line-height: 1.8;
}
.article-body ol li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-number);
  font-weight: 600;
}
.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--color-bg-section);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-style: italic;
}
.article-body blockquote p { margin-bottom: 0; }
.article-body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.article-body figure { margin: 1.5rem 0; }
.article-body figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-body th, .article-body td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(139, 90, 43, 0.1);
  text-align: left;
}
.article-body th {
  background: var(--color-bg-section);
  color: var(--color-primary);
  font-weight: 600;
}
.article-body a {
  color: var(--color-primary);
  border-bottom: 1px dashed var(--color-primary-light);
}
.article-body a:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.article-body strong { color: var(--color-primary-dark); font-weight: 600; }
.article-body code {
  background: var(--color-bg-section);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--color-accent);
  font-family: 'Courier New', monospace;
}

/* 文章 CTA (文末引导购买) */
.article-cta {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.article-cta p { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; }
.article-cta .btn { margin: 0 0.5rem; }

/* 相关文章 */
.related-articles {
  max-width: 720px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(139, 90, 43, 0.1);
}
.related-articles h3 { font-size: 1.3rem; margin-bottom: 1.25rem; text-align: center; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.related-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--color-bg-section);
}
.related-card-body { padding: 0.85rem 1rem; }
.related-card h4 { font-size: 0.95rem; line-height: 1.4; margin-bottom: 0.3rem; }
.related-card small { font-size: 0.75rem; color: var(--color-text-muted); }

/* 文章分页 */
.article-pager {
  max-width: 720px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.article-pager a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
  flex: 1;
  max-width: 320px;
}
.article-pager a:hover { background: var(--color-primary); color: #fff; }
.article-pager .next { text-align: right; justify-content: flex-end; }
.article-pager .label { display: block; font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 0.15rem; }
.article-pager a:hover .label { color: rgba(255, 255, 255, 0.8); }
