/* ============================================================
   91SM v11 · community.css
   SM社区 · 列表页 + 详情页 共享样式
   霓虛電域配色 · 图文+视频深度内容
   ============================================================ */

/* ---------- Page-specific nav highlight ---------- */

.nav-current { color: var(--accent) !important; }

.nav-current::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(1) !important;
  width: 60%;
  height: 1.5px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ============================================================
   IMG FALLBACK (gradient bg if image fails to load)
   ============================================================ */

.cm-img {
  background:
    linear-gradient(135deg, rgba(255, 46, 126, 0.18) 0%, transparent 50%, rgba(157, 78, 221, 0.22) 100%),
    linear-gradient(135deg, #1a0e2e 0%, #08051a 60%, #06030f 100%);
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

/* ============================================================
   HERO
   ============================================================ */

.cm-hero {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 28px;
  height: 220px;           /* 200-240px 区间 */
  display: flex;
  align-items: center;     /* 左右两组共享同一垂直中线 */
  justify-content: space-between;
  gap: 32px;
}

.cm-hero-left {
  flex: 0 0 62%;           /* 左侧 60-65% */
  min-width: 0;
}

.cm-hero-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cm-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.cm-hero-eyebrow .em { color: var(--accent); font-weight: 700; }

.cm-hero-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
  margin: 0;
}

.cm-hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(255, 46, 126, 0.4), 0 0 56px rgba(255, 46, 126, 0.15);
}

.cm-hero-desc {
  margin: 10px 0 0;
  max-width: 760px;        /* 720-800px 区间，超出换行 */
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.cm-hero-stats {
  text-align: right;
  font-family: var(--mono);
  flex-shrink: 0;
}

.cm-stats-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.cm-stats-row .stat-val {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cm-stats-row .stat-val.accent {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 46, 126, 0.4);
}

.cm-stats-row .stat-label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ============================================================
   SUB-CATEGORY TABS (sticky)
   ============================================================ */

/* 分类 tab 栏不再吸顶（产品 7/16：随内容正常滚动），去掉 sticky/top/z-index。 */
.cm-subcat-wrap {
  background: rgba(7, 5, 13, 0.94);
  border-bottom: 1px solid var(--border);
}

.cm-subcat-bar {
  max-width: 1760px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cm-subcat-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

.cm-subcat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.cm-subcat-tab:hover {
  border-color: var(--accent-subtle);
  color: var(--text);
}

.cm-subcat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 46, 126, 0.4);
}

.cm-subcat-tab .tab-count {
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 0.06em;
}

.cm-subcat-tab.active .tab-count { opacity: 0.95; }

.cm-subcat-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cm-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-subtle);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
}

.cm-post-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 46, 126, 0.4);
}

.cm-post-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ============================================================
   FEATURED EDITORIAL (1 big + 2 medium)
   ============================================================ */

.cm-featured-wrap {
  max-width: 1760px;
  margin: 0 auto;
  padding: 22px 28px 8px;
}

.cm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-2);
  position: relative;
}

.cm-section-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* BUG #33227 同类(帖子详情/社区页区块头)：窄屏下英文副标题过长会把中文标题/右侧 meta
   挤成竖排换行 —— 中文恒单行不收缩，让装饰性英文自身收缩+省略号。 */
.cm-section-head-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.cm-section-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.cm-section-en {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.cm-section-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 12px;
}

.cm-featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.cm-featured-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cm-post-card.feat-big,
.cm-post-card.feat-med {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.cm-post-card.feat-big:hover,
.cm-post-card.feat-med:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(255, 46, 126, 0.18);
}

.cm-post-card.feat-big {
  min-height: 500px;
}

.cm-post-card.feat-big .feat-cover {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.cm-post-card.feat-med {
  flex: 1;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
}

.cm-post-card.feat-med .feat-cover {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.feat-cover img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-post-card:hover .feat-cover img,
.cm-post-card:hover .post-cover img { transform: scale(1.04); }

.feat-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 5, 13, 0.85) 100%);
  pointer-events: none;
}

/* video indicator badge */

.cm-vid-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid var(--accent-subtle);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.cm-vid-badge svg { width: 10px; height: 10px; fill: currentColor; }

.cm-pin-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 0 12px rgba(255, 46, 126, 0.55);
}

/* sub-cat badge on cover */

.cm-subcat-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255, 46, 126, 0.12);
  border: 1px solid var(--accent-subtle);
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.cm-post-card .post-body {
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.cm-post-card.feat-big .post-body { padding: 22px 26px 24px; }

.cm-post-card .post-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cm-post-card.feat-big .post-title { font-size: 24px; -webkit-line-clamp: 2; }

.cm-post-card.feat-med .post-title { font-size: 16px; }

.cm-post-card:hover .post-title { color: var(--accent); }

.cm-post-card .post-excerpt {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.cm-post-card.feat-med .post-excerpt { -webkit-line-clamp: 2; font-size: 12px; }

/* meta row */

.post-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-3);
}

.post-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.post-meta .author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-meta .sep { color: var(--text-4); flex-shrink: 0; white-space: nowrap; }

.post-meta > span:nth-child(3) { white-space: nowrap; flex-shrink: 0; }

.post-meta .meta-stats {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}

.post-meta .stat-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-meta .stat-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ============================================================
   POST FEED (masonry-like grid via CSS columns)
   ============================================================ */

.cm-feed-wrap {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 28px 36px;
}

.cm-feed {
  -moz-columns: 3 320px;
       columns: 3 320px;
  -moz-column-gap: 16px;
       column-gap: 16px;
}

.cm-post-card.feed {
  -moz-column-break-inside: avoid;
       break-inside: avoid;
  margin-bottom: 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.cm-post-card.feed:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 46, 126, 0.15);
}

.cm-post-card.feed .post-cover {
  position: relative;
  overflow: hidden;
}

.cm-post-card.feed .post-cover img {
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-post-card.feed .post-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 5, 13, 0.65) 100%);
  pointer-events: none;
}

.cm-post-card.feed .post-title { font-size: 15px; line-height: 1.35; -webkit-line-clamp: 2; }

.cm-post-card.feed .post-excerpt {
  font-size: 12.5px;
  -webkit-line-clamp: 2;
}

/* v0.7 简化：4 种 → 2 种比例（M06 v0.3 决策：仅 2:3 竖图 + 16:9 横图） */

.cm-post-card[data-ratio="landscape"] .post-cover { aspect-ratio: 16 / 9; }

/* 历史 ratio 兜底（square / tall）渲染时均按"竖图 2:3"展示 */

.cm-post-card[data-ratio="square"]    .post-cover { aspect-ratio: 2 / 3; }

.cm-post-card[data-ratio="tall"]      .post-cover { aspect-ratio: 2 / 3; }

/* ---------- Load more ---------- */

.cm-load-more {
  display: block;
  margin: 16px auto 0;
  padding: 14px 36px;
  background: transparent;
  border: 1px solid var(--accent-subtle);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.cm-load-more:hover {
  background: var(--accent-bg);
  letter-spacing: 0.26em;
  box-shadow: 0 0 16px rgba(255, 46, 126, 0.2);
}

/* 传统分页器（页码走 path /archives/cate/{route}/{N}/，取代旧「加载更多」瀑布流）。 */
.cm-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px auto 0;
}
.cm-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.cm-page-btn:hover {
  border-color: var(--accent-subtle);
  color: var(--accent);
}
.cm-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}
.cm-page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.cm-page-ellipsis {
  color: var(--text-3);
  padding: 0 4px;
}

/* ============================================================
   DETAIL · breadcrumb
   ============================================================ */

.cm-crumbs {
  max-width: 1080px;
  margin: 16px auto 0;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cm-crumbs a {
  color: var(--text-3);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s;
}

.cm-crumbs a:hover { color: var(--accent); }

.cm-crumbs .sep { color: var(--text-4); }

.cm-crumbs .curr { color: var(--text); }

/* ============================================================
   DETAIL · article hero
   ============================================================ */

.article-hero {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 28px;
}

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.article-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.article-title {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 14px;
  text-wrap: balance;
}

.article-subtitle {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  max-width: 720px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-3);
  padding: 12px 0 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.article-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.article-meta .author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.article-meta .sep { color: var(--text-4); }

.article-meta .stat-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.article-meta .stat-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.article-meta .meta-spacer { margin-left: auto; display: flex; gap: 14px; }

.article-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.04em;
}

.article-action-btn:hover { color: var(--accent); border-color: var(--accent); }

.article-action-btn.active {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent);
}

.article-action-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ============================================================
   DETAIL · video hero player
   ============================================================ */

.article-video {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 28px;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #06030f;
  border: 1px solid var(--border-2);
  overflow: hidden;
  cursor: pointer;
}

.video-player img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.85;
}

.video-player::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 46, 126, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, transparent 60%, rgba(7, 5, 13, 0.85) 100%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 40px rgba(255, 46, 126, 0.6), 0 0 96px rgba(255, 46, 126, 0.3);
  transition: transform 0.25s;
  animation: videoPulse 2.4s ease-in-out infinite;
}

.video-player:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }

.video-play svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

@keyframes videoPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(255, 46, 126, 0.55), 0 0 96px rgba(255, 46, 126, 0.25); }
  50%      { box-shadow: 0 0 52px rgba(255, 46, 126, 0.85), 0 0 120px rgba(255, 46, 126, 0.4); }
}

.video-meta {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.video-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
}

.video-meta-left .duration {
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-meta-left .quality {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-subtle);
  padding: 4px 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.video-meta-right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   DETAIL · article body (mixed media)
   ============================================================ */

.article-body {
  max-width: 1080px;
  margin: 32px auto 0;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text);
  letter-spacing: 0.015em;
}

.article-body > * + * { margin-top: 18px; }

.article-body p {
  color: var(--text);
  text-wrap: pretty;
}

.article-body p.lead {
  font-size: 17.5px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.65;
}

.article-body p.lead::first-letter {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 800;
  float: left;
  line-height: 1;
  margin: 4px 12px 0 0;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 46, 126, 0.4);
}

.article-body h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: -2px;
  position: relative;
  padding-left: 14px;
}

.article-body h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.article-body em.high {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 46, 126, 0.25);
}

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

/* 正文裸 <img>（富文本内容图，无 .ab-image 包裹）默认块级居中 */
.article-body > img,
.article-body p > img {
  display: block;
  margin: 16px auto;
  max-width: 100%;
  height: auto;
}

/* media: single full image */

.ab-image {
  position: relative;
  margin: 28px 0;
  border: 1px solid var(--border-2);
  overflow: hidden;
}

.ab-image img { width: 100%; display: block; -o-object-fit: cover; object-fit: cover; }

.ab-image-caption {
  padding: 10px 14px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-image-caption::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
}

/* media: 2-up / 3-up galleries */

.ab-gallery {
  display: grid;
  gap: 8px;
  margin: 28px 0;
}

.ab-gallery.g2 { grid-template-columns: 1fr 1fr; }

.ab-gallery.g3 { grid-template-columns: repeat(3, 1fr); }

.ab-gallery figure {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
  margin: 0;
}

.ab-gallery.g2 figure { aspect-ratio: 4 / 5; }

.ab-gallery.g3 figure { aspect-ratio: 3 / 4; }

.ab-gallery img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ab-gallery figure:hover img { transform: scale(1.03); }

.ab-gallery figcaption {
  position: absolute;
  bottom: 6px;
  left: 8px;
  padding: 3px 7px;
  background: rgba(0, 0, 0, 0.6);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  backdrop-filter: blur(6px);
}

/* media: pull quote */

.ab-quote {
  position: relative;
  margin: 36px 0;
  padding: 28px 32px 28px 56px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
}

.ab-quote::before {
  content: '"';
  position: absolute;
  top: 6px;
  left: 18px;
  font-family: var(--display);
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 16px rgba(255, 46, 126, 0.4);
}

.ab-quote-cite {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================================
   DETAIL · tags & author bio
   ============================================================ */

.article-tags {
  max-width: 1080px;
  margin: 32px auto 0;
  padding: 22px 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-tags-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-right: 4px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 12.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
}

.article-tag::before { content: '#'; color: var(--text-3); font-family: var(--mono); }

.article-tag:hover {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.article-tag:hover::before { color: var(--accent); }

.article-author-card {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 22px 28px;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
}

.author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}

.author-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 16px rgba(255, 46, 126, 0.35);
}

.author-info { flex: 1; min-width: 0; }

.author-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-name .vbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--display);
}

.author-stats {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  display: flex;
  gap: 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.author-stats em { font-style: normal; color: var(--text); font-weight: 600; }

.author-bio {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.author-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  text-transform: uppercase;
  font-weight: 600;
}

.author-follow:hover { box-shadow: 0 0 18px rgba(255, 46, 126, 0.5); }

.author-follow.following {
  background: transparent;
  color: var(--accent);
}

/* ============================================================
   DETAIL · related posts row
   ============================================================ */

.cm-related-wrap {
  max-width: 1080px;
  margin: 36px auto 0;
  padding: 0 28px;
}

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

.cm-related-card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.22s;
  display: flex;
  flex-direction: column;
}

.cm-related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 46, 126, 0.16);
}

.cm-related-card .rel-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.cm-related-card .rel-cover img {
  width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cm-related-card:hover .rel-cover img { transform: scale(1.05); }

.cm-related-card .rel-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cm-related-card .rel-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cm-related-card:hover .rel-title { color: var(--accent); }

.cm-related-card .rel-meta {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

/* ============================================================
   DETAIL · comments
   ============================================================ */

.cm-comments {
  max-width: 1080px;
  margin: 40px auto 0;
  padding: 0 28px;
}

.cm-comments-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  position: relative;
}

.cm-comments-head::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.cm-comments-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.cm-comments-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cm-comments-sort {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cm-comments-sort .sort-pill {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.cm-comments-sort .sort-pill.active {
  background: var(--accent-bg);
  color: var(--accent);
  border-color: var(--accent-subtle);
}

/* Comment form */

.cm-comment-form {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.cm-comment-form .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-comment-form .form-body {
  flex: 1;
  position: relative;
}

/* BUG #33190: 对齐 UI —— 输入框圆角、计数移入框内右下角(留出底部内边距)、resize 关闭防计数错位 */
.cm-comment-form .input-wrap {
  position: relative;
}

.cm-comment-form .input-wrap .char-count {
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* BUG #33503: iOS Safari textarea placeholder 不换行 → 用可换行的假占位层替代，
   与 textarea 文字起始位置(padding 12px 14px)/字号/行高完全对齐；
   :placeholder-shown(placeholder=" ")驱动显隐，输入内容即消失，行为等同原生。 */
.cm-comment-form .input-wrap .ta-placeholder {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
}

.cm-comment-form .input-wrap textarea:placeholder-shown ~ .ta-placeholder {
  opacity: 1;
}

.cm-comment-form textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding: 12px 14px 32px;
  resize: none;
  min-height: 96px;
  display: block;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cm-comment-form textarea:focus { border-color: var(--accent); box-shadow: var(--focus-glow); }

.cm-comment-form textarea::-moz-placeholder { color: var(--text-3); }

.cm-comment-form textarea::placeholder { color: var(--text-3); }

.cm-comment-form .form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cm-comment-form .send-btn {
  padding: 9px 26px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}

.cm-comment-form .send-btn:hover { box-shadow: 0 0 16px rgba(255, 46, 126, 0.5); }

.cm-comment-form .send-btn:disabled {
  background: var(--bg-3);
  border-color: var(--border-2);
  color: var(--text-3);
  cursor: not-allowed;
  box-shadow: none;
}

/* Comment list */

.cm-comment-list {
  display: flex;
  flex-direction: column;
}

.cm-comment {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cm-comment:last-child { border-bottom: none; }

.cm-comment .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-comment[data-author="poster"] .avatar {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8eb8 100%);
  box-shadow: 0 0 10px rgba(255, 46, 126, 0.35);
}

.cm-comment-body { flex: 1; min-width: 0; }

.cm-comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  flex-wrap: wrap;
}

.cm-comment-name { color: var(--text); font-weight: 600; }

.cm-comment-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1px 6px;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-subtle);
}

.cm-comment-time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.cm-comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  text-wrap: pretty;
}

.cm-comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.cm-comment-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  padding: 2px 0;
  transition: color 0.15s;
}

.cm-comment-action:hover { color: var(--accent); }

.cm-comment-action svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.cm-comment-action.liked { color: var(--accent); }

.cm-comment-action.liked svg { fill: var(--accent); }

/* nested replies */

.cm-comment-replies {
  margin-top: 14px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cm-comment-replies .cm-comment {
  padding: 8px 0;
  border-bottom: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px) {
  .cm-featured-grid { grid-template-columns: 1.4fr 1fr; }
  .article-title { font-size: 36px; }
}

@media (max-width: 980px) {
  .cm-hero {
    gap: 10px;
    padding: 20px 16px 14px;
  }
  .cm-hero-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cm-hero-title { font-size: 28px; }
  .cm-hero-stats { text-align: left; }
  .cm-stats-row { justify-content: flex-start; }

  .cm-subcat-bar { padding: 10px 16px; gap: 10px; }
  .cm-subcat-actions { display: none; }
  .cm-post-btn { display: none; }

  .cm-featured-wrap, .cm-feed-wrap { padding-left: 16px; padding-right: 16px; }
  .cm-featured-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cm-post-card.feat-big { min-height: auto; }
  .cm-post-card.feat-med { grid-template-columns: 1fr; }
  .cm-post-card.feat-med .feat-cover { aspect-ratio: 16 / 10; min-height: 0; }
  .cm-post-card.feat-big .post-body { padding: 16px 18px 18px; }
  .cm-post-card.feat-big .post-title { font-size: 19px; }

  .cm-feed { -moz-columns: 2 200px; columns: 2 200px; -moz-column-gap: 10px; column-gap: 10px; }
  .cm-post-card.feed { margin-bottom: 10px; }
  .cm-post-card.feed .post-title { font-size: 13.5px; }
  .cm-post-card.feed .post-excerpt { font-size: 11.5px; -webkit-line-clamp: 2; }
  .post-meta { font-size: 11px; gap: 6px; }
  .post-meta .author-avatar { width: 18px; height: 18px; font-size: 9px; }
  .post-meta .meta-stats { font-size: 10px; gap: 8px; }

  .cm-crumbs, .article-hero, .article-video, .article-body,
  .article-tags, .article-author-card, .cm-related-wrap, .cm-comments {
    padding-left: 16px;
    padding-right: 16px;
  }
  .article-title { font-size: 26px; }
  .article-subtitle { font-size: 14px; }
  .article-meta .meta-spacer { width: 100%; margin-left: 0; }
  .article-body { font-size: 14.5px; }
  .article-body p.lead { font-size: 16px; }
  .article-body p.lead::first-letter { font-size: 42px; }
  .article-body h3 { font-size: 19px; }
  .video-play { width: 64px; height: 64px; }
  .video-play svg { width: 22px; height: 22px; }
  .ab-quote { padding: 22px 22px 22px 40px; font-size: 18px; }
  .ab-quote::before { font-size: 48px; left: 12px; }
  .ab-gallery.g3 { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .cm-related-grid { grid-template-columns: repeat(2, 1fr); }
  .author-card { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .author-card .avatar { width: 52px; height: 52px; font-size: 20px; }
  .author-follow { width: 100%; justify-content: center; }
  .cm-comments-sort { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .cm-comment-form { gap: 10px; }
}

@media (max-width: 640px) {
  .cm-feed { -moz-columns: 1; columns: 1; }
  .ab-gallery.g2 { grid-template-columns: 1fr; }
  .ab-gallery.g3 { grid-template-columns: 1fr 1fr; }
  .article-title { font-size: 22px; }
}
