/* ==========================================================================
   旅行手册文章专栏详情页样式表
   航海边注系统 + 大小标题 + 深度阅读排版 + 内链推荐卡片
   ========================================================================== */

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

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

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

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

.article-breadcrumb-separator {
  color: var(--text-light);
}

.article-hero-banner {
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-subtle);
  background: #EBF4F9;
}

.article-hero-banner img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.article-header-hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(246, 250, 252, 0.95));
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.article-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(196, 222, 237, 0.4);
  border: 1px solid var(--border-line);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  color: var(--text-main);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.article-title-main {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 18px;
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-line);
  padding-top: 16px;
}

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

.article-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--color-blue-deep);
}

/* 文章正文主体双栏 (正文 + 手册边栏边注) */
.article-layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.article-body-content {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-subtle);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-main);
}

.article-body-content h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-body-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--color-blue-deep);
  border-radius: 2px;
}

.article-body-content h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 28px 0 12px;
  color: var(--text-main);
}

.article-body-content p {
  margin-bottom: 1.35rem;
  color: #3d5663;
}

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

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

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

.article-body-content ul > li {
  list-style-type: square;
}

.article-body-content blockquote {
  background: var(--bg-soft);
  border-left: 4px solid var(--color-blue-deep);
  padding: 18px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-body-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
}

.article-body-content th {
  background: var(--bg-soft);
  border: 1px solid var(--border-line);
  padding: 12px 14px;
  text-align: left;
  font-weight: 500;
  color: var(--text-main);
}

.article-body-content td {
  border: 1px solid var(--border-line);
  padding: 12px 14px;
  color: var(--text-main);
}

.article-body-content tr:nth-child(even) td {
  background: rgba(241, 248, 251, 0.4);
}

.article-body-content code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--bg-soft);
  border: 1px solid rgba(196, 222, 237, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--color-coral-deep);
}

.article-body-content pre {
  background: #273842;
  color: #E2EDF3;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 24px 0;
  font-family: SFMono-Regular, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}

.article-body-content pre code {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
}

/* 航行手册边栏 (Sidebar in Article Page) */
.article-sidebar-sticky {
  position: sticky;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-toc-box {
  background: #FFFFFF;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.toc-title {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-main);
  text-transform: uppercase;
}

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

.toc-item a {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
}

.toc-item a:hover {
  color: var(--color-coral-deep);
  padding-left: 4px;
}

.article-cta-box {
  background: linear-gradient(145deg, #F5FAFD, #EBF5F9);
  border: 1.5px solid var(--color-blue);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
}

.article-cta-box h4 {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.article-cta-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* 文章相关内链卡片推荐 */
.article-related-box {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border-line);
}

.related-box-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.related-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.related-card:hover {
  background: #FFFFFF;
  border-color: var(--color-blue-deep);
  transform: translateY(-2px);
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.related-card-excerpt {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .article-layout-grid {
    grid-template-columns: 1fr;
  }
  .article-body-content {
    padding: 28px 20px;
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}
