/* ========================================
   YouNavi 文章页样式 - Deep Research Report UI
   ======================================== */

/* 文章页面布局 */
.article-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.article-back:hover {
  color: var(--foreground);
}
.article-back svg {
  width: 16px;
  height: 16px;
}

/* 文章头部 */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #101828;
  margin: 0 0 12px;
  font-family: var(--font-sans);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 文章正文 - prose 样式 */
.article-body {
  color: #364153;
  font-size: 16px;
  line-height: 25.6px;
  font-family: var(--font-sans);
}

.article-body h2 {
  margin: 48px 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #101828;
}
.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: #101828;
  position: relative;
  padding-left: 14px;
}
.article-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.1em;
  background-color: var(--brand, #007aff);
  border-radius: 2px;
}

.article-body h4 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: #101828;
}

.article-body p {
  margin: 0.6em 0;
  font-size: 16px;
  line-height: 25.6px;
  color: #364153;
}

.article-body strong {
  font-weight: 600;
  color: #101828;
}

.article-body ul {
  list-style-type: disc;
  margin: 0.5em 0;
  padding-left: 1.75em;
  list-style-position: outside;
}
.article-body ol {
  list-style: none;
  margin: 0.5em 0;
  padding-left: 0;
  counter-reset: ordered-list;
}
.article-body ol > li {
  counter-increment: ordered-list;
  position: relative;
  padding-left: 1.4em;
}
.article-body ol > li::before {
  content: counter(ordered-list) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: #101828;
}
.article-body li {
  margin: 8px 0;
  font-size: 16px;
  line-height: 25.6px;
}
.article-body li::marker {
  color: #d1d5dc;
  font-weight: 500;
}

.article-body blockquote {
  margin: 1em 0;
  padding: 0 16px;
  border-left: 3px solid #d1d5dc;
  font-style: italic;
  color: #364153;
}

/* 表格 - 三线表 */
.article-body .table-wrapper {
  overflow-x: auto;
  margin: 1.5em 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid #1f2328;
  border-bottom: 2px solid #1f2328;
  table-layout: auto;
}
.article-body thead {
  border-bottom: 1.5px solid #1f2328;
}
.article-body th {
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  color: #0f172a;
  text-align: left;
  padding: 12px 16px 12px 8px;
  vertical-align: bottom;
  white-space: nowrap;
}
.article-body td {
  padding: 10px 16px 10px 8px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  line-height: 24px;
  font-size: 14px;
}
.article-body tbody tr:last-child td {
  border-bottom: none;
}

/* 引用来源区域 */
.article-body .references {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-foreground);
}
.article-body .references ul {
  padding-left: 1.5em;
}
.article-body .references li {
  font-size: 13px;
  line-height: 20px;
  margin: 4px 0;
  color: var(--muted-foreground);
}

/* Navi 洞察卡片 */
.navi-insight {
  margin: 1.5em 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
  border-radius: 12px;
  border: 1px solid rgba(0, 122, 255, 0.12);
}
.navi-insight-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand, #007aff);
  margin-bottom: 8px;
}

/* 互链导航 */
.article-crosslink {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-crosslink a {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--brand, #007aff);
  text-decoration: none;
  transition: opacity 0.2s;
}
.article-crosslink a:hover {
  opacity: 0.75;
}

/* 响应式 */
@media (max-width: 768px) {
  .article-page {
    padding: 100px 16px 40px;
  }
  .article-header h1 {
    font-size: 22px;
  }
  .article-body h2 {
    font-size: 20px;
  }
  .article-body h3 {
    font-size: 18px;
  }
  .article-body {
    font-size: 15px;
  }
}
