/* ========================================================
   小蜜蜂机场 · Honey Atelier 文章与内容专页样式表
   Domain: xmfvpn.mom | High-Readability Editorial Layout
   ======================================================== */

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

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

.breadcrumb-nav a {
  color: var(--text-sub);
}

.breadcrumb-nav a:hover {
  color: var(--honey-hover);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--border-light);
}

.breadcrumb-current {
  color: var(--text-muted);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Main Content Box */
.article-main {
  background: var(--bg-pure);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}

.article-category-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--honey-light);
  color: var(--honey-hover);
  border: 1px solid var(--honey-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.article-main-title {
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

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

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-main);
}

.author-chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--honey-light);
  border: 1px solid var(--honey-border);
}

/* Article Body Typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #38332E;
}

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

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--honey-primary);
  position: relative;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 750;
  color: var(--text-main);
  margin: 32px 0 14px;
}

.article-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px;
}

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

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.article-body strong {
  font-weight: 700;
  color: var(--text-main);
}

.article-body a {
  color: var(--honey-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.article-body a:hover {
  color: var(--sakura-deep);
}

/* Callout Boxes */
.callout {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.callout-info {
  background: var(--honey-soft);
  border-left: 4px solid var(--honey-primary);
  color: #78350F;
}

.callout-tip {
  background: var(--sakura-light);
  border-left: 4px solid var(--sakura-primary);
  color: #881337;
}

.callout-title {
  font-weight: 750;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* In-article Table */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.article-table th {
  background: var(--honey-soft);
  color: var(--text-main);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--honey-border);
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-sub);
}

.article-table tr:nth-child(even) td {
  background: #FCFAF6;
}

/* Code Snippet */
.code-block {
  background: #1E1E24;
  color: #F8F8F2;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 24px 0;
}

.inline-code {
  background: #F3EFE6;
  color: #C2410C;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

/* In-Article Promotion CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, #FFFDF8 0%, #FFF5E6 50%, #FFEBF0 100%);
  border: 1.5px solid var(--honey-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.article-cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
}

.article-cta-box p {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}

/* Article Author Bio */
.author-bio-card {
  margin-top: 48px;
  padding: 24px;
  background: var(--bg-cream-soft);
  border: 1px dashed var(--honey-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-bio-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--honey-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  object-position: center 26%;
}

.sidebar-mascot-img {
  width: 80px;
  height: auto;
  border-radius: 14px;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-sm);
}

.author-bio-info h4 {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 4px;
}

.author-bio-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Related Articles Grid */
.related-posts-section {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}

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

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

.related-card {
  background: var(--bg-cream-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.related-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 10px;
}

.related-card:hover h5 {
  color: var(--honey-hover);
}

.related-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.sidebar-widget {
  background: var(--bg-pure);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--honey-primary);
}

.sidebar-cta-widget {
  background: linear-gradient(145deg, #FFFDF8 0%, #FFF4E5 100%);
  border: 1.5px solid var(--honey-border);
  text-align: center;
}

.sidebar-cta-widget h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.sidebar-cta-widget p {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.sidebar-post-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sidebar-post-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--honey-soft);
  color: var(--honey-hover);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-post-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.4;
  transition: var(--transition-fast);
}

.sidebar-post-item:hover .sidebar-post-title {
  color: var(--honey-hover);
}

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

@media (max-width: 768px) {
  .article-main {
    padding: 24px 18px;
  }
  .article-main-title {
    font-size: 1.65rem;
  }
  .article-body {
    font-size: 0.98rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
