/* ============================================================
   肽活力 - 文章详情页专属样式
   ============================================================ */

/* ---- 导航栏 ---- */
.navbar.scrolled .navbar__logo { color: var(--navy); }
.navbar.scrolled .navbar__menu a { color: var(--text-mid); }
.navbar.scrolled .navbar__menu a:hover,
.navbar.scrolled .navbar__menu a.active { color: var(--coral); }
.navbar.scrolled .navbar__menu a.active::after { width: 100%; }
.navbar.scrolled .navbar__hamburger span { background: var(--navy); }

/* ---- 顶部阅读进度条 ---- */
.reading-progress {
  position: fixed;
  top: 72px; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), #FF9A8B, var(--mint));
  width: 0%;
  z-index: 999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: var(--transition); }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb i { font-size: .6rem; }
.breadcrumb span { color: rgba(255,255,255,.9); }

/* ============================================================
   ARTICLE HERO
   ============================================================ */
.article-hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
}
.article-hero__bg {
  position: absolute; inset: 0;
}
.article-hero__bg img { object-position: center 35%; }
.article-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(170deg,
    rgba(26,43,74,.88) 0%,
    rgba(26,43,74,.72) 50%,
    rgba(249,123,100,.22) 100%
  );
}
.article-hero__content {
  position: relative; z-index: 2;
  padding: 56px 24px 60px;
  color: #fff;
  max-width: 860px;
}
.article-hero__cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  color: var(--coral); background: rgba(249,123,100,.18);
  border: 1px solid rgba(249,123,100,.4);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}
.article-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900; color: #fff; line-height: 1.25;
  margin-bottom: 18px;
}
.article-hero__summary {
  font-size: 1.05rem; color: rgba(255,255,255,.78);
  line-height: 1.85; max-width: 680px; margin-bottom: 32px;
}
.article-hero__meta {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-author {
  display: flex; align-items: center; gap: 12px;
}
.hero-author img {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
}
.hero-author strong { display: block; font-size: .92rem; color: #fff; }
.hero-author span { font-size: .75rem; color: rgba(255,255,255,.6); }
.hero-meta-items {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.hero-meta-items span {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; color: rgba(255,255,255,.65);
}
.hero-meta-items i { font-size: .72rem; color: var(--coral); }

/* ============================================================
   ARTICLE WRAP / LAYOUT
   ============================================================ */
.article-wrap { background: var(--bg-soft); padding: 56px 0 80px; }
.article-container {
  display: block;
}
.article-main {
  display: grid;
  grid-template-columns: 48px 1fr 300px;
  gap: 0 36px;
  align-items: start;
}

/* ============================================================
   LEFT FLOATING ACTIONS
   ============================================================ */
.article-actions {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  position: sticky; top: 100px;
}
.action-item {
  width: 44px; height: 44px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.action-item:hover {
  border-color: var(--coral); color: var(--coral);
  transform: scale(1.1);
}
.action-like.liked { color: #E84393; border-color: #E84393; background: #FDE8F0; }
.action-item.bookmarked { color: var(--coral); border-color: var(--coral); background: var(--coral-light); }
.action-divider {
  width: 1px; height: 20px;
  background: var(--border); margin: 4px 0;
}
.action-item[data-share="wechat"]:hover { color: #07C160; border-color: #07C160; }
.action-item[data-share="weibo"]:hover  { color: #E6162D; border-color: #E6162D; }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-body {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 52px 56px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* 字体大小变体 */
.article-body.font-lg { font-size: 1.08rem; }
.article-body.font-xl { font-size: 1.18rem; }

/* 导读卡 */
.article-lead-card {
  display: flex; gap: 16px;
  background: var(--coral-light);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px; margin-bottom: 40px;
}
.lead-card__icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--coral); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
}
.article-lead-card strong {
  font-size: .95rem; font-weight: 700;
  color: var(--text-dark); display: block; margin-bottom: 10px;
}
.article-lead-card ul { padding-left: 16px; list-style: disc; }
.article-lead-card ul li {
  font-size: .875rem; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 4px;
}

/* 正文排版 */
.article-body h2 {
  font-size: 1.45rem; font-weight: 800;
  color: var(--text-dark); margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-soft);
  position: relative;
}
.article-body h2::before {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 48px; height: 2px; background: var(--coral);
  border-radius: 2px;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-dark); margin: 28px 0 12px;
}
.article-body p {
  font-size: .97rem; color: var(--text-mid);
  line-height: 1.95; margin-bottom: 18px;
}
.article-body strong { color: var(--text-dark); font-weight: 700; }
.article-body a { color: var(--coral); text-decoration: underline; text-decoration-color: rgba(249,123,100,.35); }
.article-body a:hover { color: var(--coral-dark); }

/* 配图 */
.article-figure {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-figure img {
  width: 100%; height: 340px;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.article-figure:hover img { transform: scale(1.02); }
.article-figure figcaption {
  background: var(--bg-soft); padding: 10px 16px;
  font-size: .78rem; color: var(--text-light);
  text-align: center; border-top: 1px solid var(--border);
}

/* 信息卡片组 */
.info-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 28px 0;
}
.info-card {
  display: flex; gap: 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--border);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-card__icon {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 12px; display: flex;
  align-items: center; justify-content: center;
  font-size: .95rem;
}
.info-card strong { font-size: .88rem; font-weight: 700; color: var(--text-dark); display: block; margin-bottom: 6px; }
.info-card p { font-size: .8rem; color: var(--text-mid); line-height: 1.65; margin: 0; }

/* 步骤流程 */
.article-steps { display: flex; flex-direction: column; gap: 0; margin: 28px 0; }
.article-step {
  display: flex; gap: 20px;
  padding: 24px; background: var(--bg-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition); margin-bottom: 12px;
}
.article-step:hover { border-color: rgba(249,123,100,.3); box-shadow: var(--shadow-sm); }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--coral), #FF9A8B);
  border-radius: 14px; display: flex;
  align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff;
  box-shadow: 0 4px 12px rgba(249,123,100,.3);
}
.step-content h4 {
  font-size: .98rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px;
}
.step-content p { font-size: .875rem; color: var(--text-mid); line-height: 1.75; margin: 0; }

/* 引用块 */
.article-quote {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  margin: 32px 0;
  overflow: hidden;
}
.article-quote::before {
  content: '"';
  position: absolute; top: -10px; left: 20px;
  font-size: 8rem; color: rgba(249,123,100,.2);
  font-family: Georgia, serif; line-height: 1;
  pointer-events: none;
}
.article-quote p {
  font-size: 1rem; color: rgba(255,255,255,.9);
  line-height: 1.85; margin: 0 0 14px; position: relative; z-index: 1;
}
.article-quote p strong { color: var(--coral); }
.article-quote cite {
  font-size: .82rem; color: rgba(255,255,255,.55);
  font-style: normal; position: relative; z-index: 1;
}

/* 数据对比卡 */
.compare-card {
  background: var(--bg-soft); border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--border);
  margin: 28px 0;
}
.compare-card__title {
  font-size: .92rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px;
}
.compare-card__title i { color: var(--coral); }
.compare-rows { display: flex; flex-direction: column; gap: 14px; }
.compare-row {
  display: flex; align-items: center; gap: 14px;
}
.cr-label { font-size: .83rem; color: var(--text-mid); width: 200px; flex-shrink: 0; }
.cr-bar-wrap { flex: 1; background: var(--border); border-radius: 100px; height: 28px; overflow: hidden; }
.cr-bar {
  height: 100%; width: var(--w); background: var(--color);
  border-radius: 100px; display: flex; align-items: center;
  justify-content: flex-end; padding-right: 10px;
  font-size: .75rem; font-weight: 700; color: #fff;
  animation: barGrow .8s ease forwards;
  transform-origin: left;
}
@keyframes barGrow {
  from { width: 0; }
  to   { width: var(--w); }
}
.compare-note { font-size: .72rem; color: var(--text-light); margin: 14px 0 0; }

/* 数据表格 */
.article-table-wrap { overflow-x: auto; margin: 28px 0; border-radius: var(--radius-md); border: 1px solid var(--border); }
.article-table { width: 100%; border-collapse: collapse; }
.article-table th {
  background: var(--navy); color: rgba(255,255,255,.9);
  font-size: .82rem; font-weight: 700; padding: 14px 16px;
  text-align: left; white-space: nowrap;
}
.article-table td {
  font-size: .85rem; color: var(--text-mid);
  padding: 13px 16px; border-bottom: 1px solid var(--bg-soft);
  vertical-align: middle;
}
.article-table tr:last-child td { border-bottom: none; }
.article-table tr:hover td { background: var(--bg-cream); }
.table-badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}

/* 提示框 */
.article-tip {
  display: flex; gap: 14px;
  border-radius: var(--radius-md); padding: 18px 22px; margin: 24px 0;
  border: 1px solid;
}
.article-tip--info {
  background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF;
}
.article-tip--success {
  background: #F0FDF4; border-color: #BBF7D0; color: #166534;
}
.article-tip--warning {
  background: #FFFBEB; border-color: #FDE68A; color: #92400E;
}
.tip-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: 2px; }
.article-tip strong { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 5px; }
.article-tip p { font-size: .85rem; line-height: 1.7; margin: 0; }

/* 文章底部标签 */
.article-tags-footer {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 24px 0; border-top: 1px solid var(--bg-soft);
  margin-top: 36px;
}
.tag-label { font-size: .82rem; color: var(--text-light); }
.atag {
  display: inline-block; padding: 5px 14px;
  background: var(--bg-soft); border-radius: 100px;
  font-size: .78rem; font-weight: 500; color: var(--text-mid);
  border: 1.5px solid var(--border); transition: var(--transition);
}
.atag:hover { background: var(--coral); color: #fff; border-color: var(--coral); }

/* 作者卡片 */
.author-card {
  display: flex; gap: 24px;
  background: var(--bg-soft); border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--border);
  margin: 32px 0; align-items: flex-start;
}
.author-card__avatar {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--coral-light);
  box-shadow: 0 4px 14px rgba(249,123,100,.2);
}
.author-card__info { flex: 1; }
.author-card__top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.author-card__top h4 { font-size: 1.05rem; font-weight: 800; color: var(--text-dark); }
.author-card__top span { font-size: .8rem; color: var(--text-light); display: block; margin-top: 2px; }
.author-card__info p { font-size: .875rem; color: var(--text-mid); line-height: 1.75; margin: 0; }

/* 点赞分享区 */
.article-engage {
  display: flex; flex-direction: column; gap: 16px;
  background: linear-gradient(135deg, var(--coral-light), var(--mint-light));
  border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--border); margin-top: 32px; text-align: center;
}
.engage-like {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 16px 24px;
  background: #fff; border-radius: 100px;
  font-size: .9rem; color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
  border: 2px solid var(--border); font-weight: 500;
}
.engage-like i { font-size: 1.1rem; color: var(--text-light); transition: var(--transition); }
.engage-like strong { font-size: 1.1rem; color: var(--text-dark); font-weight: 800; margin-left: 4px; }
.engage-like:hover, .engage-like.liked {
  border-color: #E84393; color: #E84393; background: #FDE8F0;
}
.engage-like:hover i, .engage-like.liked i { color: #E84393; }
.engage-share {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.engage-share span { font-size: .85rem; color: var(--text-mid); }
.engage-share button {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 100px;
  font-size: .82rem; font-weight: 600;
  background: #fff; border: 1.5px solid var(--border);
  color: var(--text-mid); cursor: pointer;
  transition: var(--transition); font-family: var(--font);
}
.engage-share button:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-2px); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.article-sidebar {
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 88px;
}
.sidebar-widget {
  background: #fff; border-radius: var(--radius-lg);
  padding: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.sidebar-widget__title {
  font-size: .9rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; border-bottom: 2px solid var(--bg-soft);
}
.sidebar-widget__title i { color: var(--coral); font-size: .82rem; }

/* 目录 */
.toc-widget { }
.toc-nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.toc-link {
  display: block; padding: 7px 12px;
  font-size: .82rem; color: var(--text-mid);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: var(--transition); line-height: 1.5;
}
.toc-link:hover { background: var(--bg-soft); color: var(--text-dark); border-left-color: var(--coral); padding-left: 16px; }
.toc-link.active {
  background: var(--coral-light); color: var(--coral);
  font-weight: 600; border-left-color: var(--coral); padding-left: 16px;
}
.toc-progress {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 8px 12px; border: 1px solid var(--border);
}
.toc-progress__bar {
  flex: 1; height: 4px; background: var(--border); border-radius: 100px; overflow: hidden;
}
.toc-progress__bar::after {
  content: ''; display: block; height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--mint));
  width: var(--progress, 0%);
  transition: width .2s ease;
  border-radius: 100px;
}
#tocProgressText { font-size: .72rem; color: var(--text-light); font-weight: 600; white-space: nowrap; }

/* 相关文章 */
.related-list { display: flex; flex-direction: column; gap: 14px; }
.related-item a {
  display: flex; gap: 12px; align-items: center;
  transition: var(--transition);
}
.related-item a:hover .related-info p { color: var(--coral); }
.related-img {
  width: 72px; height: 60px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
}
.related-img img { object-fit: cover; }
.related-info p {
  font-size: .82rem; font-weight: 500; color: var(--text-dark);
  line-height: 1.5; margin-bottom: 5px; transition: var(--transition);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related-info span {
  font-size: .72rem; color: var(--text-light);
  display: flex; align-items: center; gap: 4px;
}

/* 侧边订阅迷你版 */
.sidebar-newsletter-mini {
  background: linear-gradient(135deg, var(--coral), #FF9A8B) !important;
  border-color: transparent !important; text-align: center;
}
.snm-icon {
  width: 46px; height: 46px; background: rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; color: #fff;
  margin: 0 auto 12px;
}
.sidebar-newsletter-mini h4 { font-size: .95rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.sidebar-newsletter-mini p { font-size: .8rem; color: rgba(255,255,255,.78); margin-bottom: 14px; }
#sideNewsForm { display: flex; flex-direction: column; gap: 8px; }
#sideNewsForm input {
  background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: .85rem; color: #fff; font-family: var(--font); outline: none; text-align: center;
}
#sideNewsForm input::placeholder { color: rgba(255,255,255,.55); }
#sideNewsForm .btn { width: 100%; justify-content: center; background: #fff; color: var(--coral); font-weight: 700; }

/* ============================================================
   COMMENTS SECTION
   ============================================================ */
.comments-section {
  background: var(--bg-soft); padding: 64px 0;
  border-top: 1px solid var(--border);
}
.comments-title {
  font-size: 1.3rem; font-weight: 800; color: var(--text-dark);
  margin-bottom: 32px; display: flex; align-items: center; gap: 10px;
}
.comments-title i { color: var(--coral); }
.comments-title span { font-size: 1rem; font-weight: 400; color: var(--text-light); }

/* 评论输入框 */
.comment-form-wrap {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: var(--radius-lg);
  padding: 20px; border: 1px solid var(--border); margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.comment-form-avatar {
  width: 44px; height: 44px; background: var(--bg-soft);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; color: var(--text-light);
  flex-shrink: 0; border: 1px solid var(--border);
}
.comment-form-body { flex: 1; }
.comment-form-body textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: .9rem; font-family: var(--font); color: var(--text-dark);
  resize: none; outline: none; line-height: 1.7;
  transition: var(--transition); background: var(--bg-soft);
}
.comment-form-body textarea:focus { border-color: var(--coral); background: #fff; }
.comment-form-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.char-count { font-size: .75rem; color: var(--text-light); }

/* 评论列表 */
.comments-list { display: flex; flex-direction: column; gap: 0; }
.comment-item {
  display: flex; gap: 14px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-item--reply { padding: 16px 0; }
.comment-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; border: 2px solid var(--border);
}
.comment-avatar--sm { width: 36px; height: 36px; }
.comment-content { flex: 1; }
.comment-header {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.comment-header strong { font-size: .9rem; font-weight: 700; color: var(--text-dark); }
.comment-time { font-size: .75rem; color: var(--text-light); }
.comment-badge {
  font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 100px; background: var(--bg-soft);
  color: var(--text-mid); border: 1px solid var(--border);
}
.comment-badge--author {
  background: var(--coral-light); color: var(--coral); border-color: rgba(249,123,100,.3);
}
.comment-content > p {
  font-size: .88rem; color: var(--text-mid); line-height: 1.8;
}
.comment-actions {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
}
.comment-like, .comment-reply-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--text-light);
  cursor: pointer; transition: var(--transition); font-family: var(--font);
}
.comment-like:hover { color: #E84393; }
.comment-like.liked { color: #E84393; }
.comment-reply-btn:hover { color: var(--coral); }
.comment-replies {
  margin-top: 12px; padding-left: 16px;
  border-left: 2px solid var(--border);
  background: var(--bg-cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.comment-item--reply .comment-content > p { font-size: .85rem; }

/* 加载更多 */
.load-more-comments {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 24px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: .88rem; font-weight: 600;
  color: var(--text-mid); cursor: pointer; transition: var(--transition);
  font-family: var(--font);
}
.load-more-comments:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-light); }

/* 新发布评论动画 */
.comment-item.new-comment {
  animation: slideInComment .4s ease forwards;
}
@keyframes slideInComment {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ARTICLE PREV / NEXT NAV
   ============================================================ */
.article-nav-section {
  background: #fff; padding: 48px 0;
  border-top: 1px solid var(--border);
}
.article-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.article-nav-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-soft); border-radius: var(--radius-lg);
  padding: 20px 24px; border: 1.5px solid var(--border);
  transition: var(--transition); overflow: hidden;
}
.article-nav-card:hover {
  border-color: var(--coral); transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.nav-label {
  font-size: .78rem; font-weight: 700; color: var(--text-light);
  display: flex; align-items: center; gap: 6px; letter-spacing: .06em;
}
.article-nav-card--next .nav-label { justify-content: flex-end; }
.nav-card-inner { display: flex; gap: 14px; align-items: center; }
.article-nav-card--next .nav-card-inner { flex-direction: row-reverse; }
.nav-card-img {
  width: 72px; height: 60px; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
}
.nav-card-img img { object-fit: cover; transition: transform .4s ease; }
.article-nav-card:hover .nav-card-img img { transform: scale(1.08); }
.nav-cat {
  font-size: .72rem; font-weight: 700; color: var(--coral);
  display: block; margin-bottom: 4px;
}
.nav-card-info p {
  font-size: .88rem; font-weight: 600; color: var(--text-dark);
  line-height: 1.5; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-nav-card--next .nav-card-info { text-align: right; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .article-main { grid-template-columns: 48px 1fr 270px; gap: 0 24px; }
  .article-body { padding: 40px 36px; }
  .info-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .article-main { grid-template-columns: 1fr; }
  .article-actions {
    position: fixed; bottom: 100px; right: 16px; top: auto;
    flex-direction: column; z-index: 200;
  }
  .article-sidebar { position: static; }
  .article-body { padding: 28px 24px; }
  .compare-row { flex-direction: column; align-items: flex-start; }
  .cr-label { width: auto; }
  .cr-bar-wrap { width: 100%; }
}

@media (max-width: 768px) {
  .article-hero__content { padding: 36px 24px 44px; }
  .article-hero__meta { gap: 16px; }
  .hero-meta-items { gap: 10px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-body { padding: 22px 18px; }
  .article-quote { padding: 24px 24px; }
  .author-card { flex-direction: column; }
  .author-card__top { flex-direction: column; }
  .article-body h2 { font-size: 1.2rem; }
  .comment-form-wrap { flex-direction: column; }
}

@media (max-width: 480px) {
  .article-hero__title { font-size: 1.7rem; }
  .article-body { padding: 18px 14px; }
  .info-cards { grid-template-columns: 1fr; }
  .engage-share { flex-direction: column; }
}
