/* ==========================================================================
   Honey Jar · 攻略文章与内容页专用样式 (css/article.css)
   ========================================================================== */

.article-page-main {
  padding: 40px 0 80px;
}

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--tea-brown);
  font-weight: 600;
}

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

.breadcrumb-sep {
  color: rgba(113, 75, 44, 0.35);
}

.breadcrumb-current {
  color: var(--honey-deep);
  font-weight: 700;
}

/* Article Layout Grid */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.article-content-wrapper {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-gold);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 32px;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 24px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 166, 35, 0.15);
  color: var(--honey-deep);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--title-brown);
  line-height: 1.35;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Direct Answer Lead Paragraph (GEO Optimization) */
.article-lead {
  background: linear-gradient(135deg, rgba(255, 249, 236, 0.95) 0%, rgba(255, 227, 163, 0.35) 100%);
  border-left: 4px solid var(--honey-orange);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.05rem;
  color: var(--title-brown);
  line-height: 1.75;
  margin-bottom: 32px;
  font-weight: 600;
}

/* Table of Contents (TOC) */
.article-toc {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px dashed var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--title-brown);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-item {
  font-size: 0.92rem;
}

.toc-link {
  color: var(--tea-brown);
  font-weight: 600;
}

.toc-link:hover {
  color: var(--honey-deep);
  text-decoration: underline;
}

/* Article Body Typography */
.article-body {
  font-size: 1rem;
  color: var(--title-brown);
  line-height: 1.85;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--title-brown);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(245, 166, 35, 0.25);
  position: relative;
}

.article-body h2::before {
  content: '🍯';
  margin-right: 8px;
  font-size: 1.2rem;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--tea-brown);
  margin: 28px 0 12px;
}

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

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

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

.article-body strong {
  color: var(--honey-deep);
}

/* Internal links inside body */
.article-body a {
  color: var(--honey-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.article-body a:hover {
  color: var(--honey-orange);
}

/* Article Data Tables */
.article-table-wrapper {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  background: #FFF;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.article-table th {
  background: #FFE3A3;
  color: var(--title-brown);
  padding: 12px 16px;
  font-weight: 800;
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(113, 75, 44, 0.08);
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:hover td {
  background: rgba(255, 249, 236, 0.5);
}

/* In-article Alert Boxes */
.article-alert {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.article-alert-tip {
  background: rgba(255, 249, 236, 0.9);
  border-left: 4px solid var(--honey-orange);
  color: var(--tea-brown);
}

.article-alert-note {
  background: rgba(224, 242, 254, 0.6);
  border-left: 4px solid #0284C7;
  color: #0369A1;
}

/* CTA Banners inside Article */
.article-cta-box {
  background: linear-gradient(135deg, rgba(255, 249, 236, 0.95) 0%, rgba(255, 227, 163, 0.5) 100%);
  border: 2px solid var(--honey-orange);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-cta-content h4 {
  font-size: 1.2rem;
  color: var(--title-brown);
  margin-bottom: 6px;
}

.article-cta-content p {
  font-size: 0.88rem;
  color: var(--tea-brown);
  margin: 0;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-gold);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--title-brown);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid var(--border-light);
  padding-bottom: 10px;
}

.sidebar-pkg-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-pkg-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.sidebar-pkg-item strong {
  color: var(--title-brown);
}

.sidebar-pkg-item span {
  color: var(--honey-deep);
  font-weight: 700;
}

/* Related Articles Grid at Bottom */
.related-articles-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1.5px solid var(--border-light);
}

.related-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--title-brown);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  background: #FFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.related-card:hover {
  border-color: var(--honey-orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.related-card-title {
  font-size: 1.02rem;
  font-weight: 750;
  color: var(--title-brown);
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-card-title a {
  color: var(--title-brown);
}

.related-card-title a:hover {
  color: var(--honey-deep);
}

.related-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-content-wrapper {
    padding: 28px 20px;
  }
  .article-title {
    font-size: 1.65rem;
  }
  .article-cta-box {
    flex-direction: column;
    text-align: center;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
