/* 新闻正文页 — 与首页 design tokens 一致 */
body.article-page {
  min-width: var(--home-page-w);
}

.article-main-wrap {
  width: var(--home-page-w);
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 0 32px;
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
/* 左栏无内容时：正文占满原左栏+中栏宽度 */
.article-layout.article-layout--no-left {
  grid-template-columns: minmax(0, 1fr) 280px;
}
.article-layout.article-layout--no-left .article-col-left {
  display: none;
}

/* ========== 左栏 ========== */
.article-col-left {
  position: sticky;
  top: 12px;
}
/* 左栏统一白卡片 */
.article-side-card,
.article-author-card,
.article-side-panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.article-author-card {
  padding: 20px 16px;
  text-align: center;
}
.article-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #d4e4f2, #8fb8d8);
  object-fit: cover;
}
.article-author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.article-author-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.article-btn-follow {
  display: inline-block;
  padding: 6px 20px;
  font-size: 13px;
  color: #fff;
  background: var(--blue-nav);
  border-radius: 20px;
  border: none;
  cursor: pointer;
}
.article-btn-follow:hover { opacity: 0.9; }

.article-share-card {
  padding: 14px 12px 16px;
}
.article-share-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
}
.article-share-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
}
.article-share-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .1s;
}
.article-share-btn i {
  font-size: 18px;
  line-height: 1;
}
.article-share-btn span {
  white-space: nowrap;
}
.article-share-btn:hover {
  transform: translateY(-1px);
  border-color: #c5d0dc;
}
.article-share-btn.wechat { color: #07c160; }
.article-share-btn.wechat:hover { background: #f0faf4; border-color: #07c160; }
.article-share-btn.weibo { color: #e6162d; }
.article-share-btn.weibo:hover { background: #fff5f5; border-color: #e6162d; }
.article-share-btn.link { color: var(--blue-nav); }
.article-share-btn.link:hover { background: #f0f7ff; border-color: var(--blue-nav); }
.article-share-btn.link.is-done { background: #f0f7ff; border-color: var(--blue-nav); }
.article-share-btn.star { color: #f59e0b; }
.article-share-btn.star:hover,
.article-share-btn.star.is-active { background: #fffbeb; border-color: #f59e0b; color: #d97706; }
.article-share-btn.star.is-active i { font-weight: 900; }

.article-side-panel {
  padding: 14px 12px;
}
.article-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.article-side-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}
.article-side-more {
  font-size: 12px;
  color: var(--text-muted);
}
.article-side-more:hover { color: var(--blue-nav); }

.article-related-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.article-related-item:last-child { border-bottom: none; }
.article-related-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #d4e4f2 center/cover no-repeat;
}
.article-related-body { flex: 1; min-width: 0; }
.article-related-title {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-strong);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 6px;
}
.article-related-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
}

/* ========== 中栏正文 ========== */
.article-col-center {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px 28px 32px;
}
.article-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.article-breadcrumb a { color: var(--text-muted); }
.article-breadcrumb a:hover { color: var(--blue-nav); }
.article-breadcrumb ul,
.article-breadcrumb .dreamer-location {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-breadcrumb li::after { content: " / "; color: #ccc; }
.article-breadcrumb li:last-child::after { content: ""; }

.article-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-strong);
  margin-bottom: 14px;
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.article-summary {
  background: #eef6fc;
  border-left: 4px solid var(--blue-nav);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: #444;
}
.article-summary strong {
  color: var(--blue-dark);
  margin-right: 6px;
}

.article-col-center .article-ai-summary {
  display: none;
  position: relative;
  margin: 0 0 24px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(47, 124, 210, 0.14);
  border-left: 4px solid var(--blue-nav, #1a73e8);
  background: linear-gradient(135deg, #edf6ff 0%, #f8fbff 45%, #ffffff 100%);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(26, 115, 232, 0.08);
}
.article-col-center .article-ai-summary.is-visible {
  display: block;
}
.article-col-center:has(.article-ai-summary.is-visible) #articleSummary {
  display: none !important;
}
.article-col-center .article-ai-summary-inner {
  position: relative;
  z-index: 1;
  padding: 18px 20px 20px 20px;
}
.article-col-center .article-ai-summary-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.article-col-center .article-ai-sparkles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #2f7cd2;
  font-size: 14px;
  line-height: 1;
}
.article-col-center .article-ai-sparkles i {
  filter: drop-shadow(0 0 6px rgba(47, 124, 210, 0.35));
}
.article-col-center .article-ai-badge {
  display: inline-block;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(90deg, #3d8fd9 0%, #1a73e8 100%);
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.article-col-center .article-ai-summary-text {
  position: relative;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #333;
  text-align: justify;
  z-index: 0;
}
.article-col-center .article-ai-summary-text::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 72px;
  height: 72px;
  background: url('https://alidcwcdn.hirohida.com/2026/05/18/5cdb7717-0ff9-419c-87d2-c2a6b7197c54.png') no-repeat right bottom / contain;
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
}
.article-col-center .article-ai-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #9aa3ad;
}
.article-col-center .article-ai-disclaimer i {
  margin-top: 2px;
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.85;
}
@media (max-width: 640px) {
  .article-col-center .article-ai-summary-inner {
    padding: 16px 16px 14px;
  }
  .article-col-center .article-ai-summary-text::after {
    width: 56px;
    height: 56px;
    opacity: 0.28;
  }
}

.article-content {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 6px;
}
.article-content p {
  margin-bottom: 18px;
  text-indent: 2em;
}
.article-content h2,
.article-content h3 {
  font-weight: 700;
  color: var(--text-strong);
  margin: 24px 0 12px;
  text-indent: 0;
}
.article-content blockquote {
  margin: 20px 0;
  padding: 12px 16px 12px 20px;
  border-left: 4px solid var(--blue-nav);
  background: #f5f8fc;
  color: #555;
  text-indent: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 20px;
}
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  color: #666;
  background: #f0f2f5;
  border-radius: 14px;
}

.article-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.article-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.article-action-btn:hover { border-color: var(--blue-nav); color: var(--blue-nav); }
.article-action-btn i { font-size: 16px; }

.article-prevnext-wrap {
  margin-bottom: 32px;
}
.article-prevnext-wrap .dreamer-prevnext {
  list-style: none;
  padding: 0;
  margin: 0;
}
.article-prevnext-wrap .dreamer-prevnext li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.article-prevnext-wrap .dreamer-prevnext li:last-child { border-bottom: none; }
.article-prevnext-wrap a { color: var(--blue-nav); }
.article-prevnext-wrap a:hover { text-decoration: underline; }

.article-disclaimer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #888;
  line-height: 1.8;
}
.article-disclaimer-title { color: #e60012; font-weight: 700; }
.article-disclaimer p { margin: 0 0 10px; text-indent: 0; }

/* 评论 */
.article-comments {
  margin-top: 8px;
}
.article-comments-head {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-strong);
}
.article-comments-head em {
  font-style: normal;
  color: var(--blue-nav);
  margin-left: 4px;
}
.article-comment-form textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}
.article-comment-submit {
  margin-top: 10px;
  padding: 8px 24px;
  background: var(--blue-nav);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.article-comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.article-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8f2fa, #b8d4ea);
}
.article-comment-body { flex: 1; min-width: 0; }
.article-comment-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
}
.article-comment-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 400;
}
.article-comment-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
.article-comment-actions {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.article-comment-actions button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  margin-right: 12px;
  padding: 0;
  font-size: 12px;
}
.article-comment-actions button:hover { color: var(--blue-nav); }

/* ========== 右栏 ========== */
.article-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article-widget {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}
.article-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-nav);
}
.article-widget-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}

.article-rec-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.article-rec-item:last-child { border-bottom: none; }
.article-rec-thumb {
  width: 56px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #d4e4f2 center/cover no-repeat;
}
.article-rec-title {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-strong);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.article-rec-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.article-rank-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.article-rank-tabs button {
  flex: 1;
  padding: 8px 4px;
  font-size: 13px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.article-rank-tabs button.is-active {
  color: var(--blue-nav);
  font-weight: 600;
  border-bottom-color: var(--blue-nav);
}
.article-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-rank-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.article-rank-row:last-child { border-bottom: none; }
.article-rank-num {
  flex-shrink: 0;
  width: 20px;
  font-weight: 700;
  color: var(--text-muted);
}
.article-rank-row:nth-child(1) .article-rank-num { color: #e60012; }
.article-rank-row:nth-child(2) .article-rank-num { color: #f59e0b; }
.article-rank-row:nth-child(3) .article-rank-num { color: #eab308; }
a.article-rank-title {
  flex: 1;
  line-height: 1.4;
  color: var(--text-strong);
  text-decoration: none;
}
a.article-rank-title:hover { color: var(--blue-nav); }

.article-live-card {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d4a8f, #1a73e8);
  color: #fff;
  padding: 16px;
  min-height: 100px;
}
.article-live-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  background: #e60012;
  border-radius: 3px;
  margin-bottom: 8px;
}
.article-live-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.article-live-meta {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.85;
}

/* 正文页导航高亮 */
body.article-page .home-nav a.is-active { color: var(--text-muted); font-weight: 400; }
body.article-page .home-nav a[data-nav="news"].is-active {
  color: var(--blue-nav);
  font-weight: 700;
}

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