:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card-bg: #0b1220;
  --card-border: #1ec8d4;
  --gold: #f5c542;
  --blue-tag: #38bdf8;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 430px;
  margin: 0 auto;
  padding: 16px 18px 40px;
}

.loading, .empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  font-size: 15px;
}

/* 顶部封面卡片 */
.cover-card {
  border: 1px solid rgba(30, 200, 212, 0.55);
  border-radius: 14px;
  background: linear-gradient(180deg, #0d1528 0%, #0a101c 100%);
  padding: 16px 16px 14px;
  box-shadow: 0 0 0 1px rgba(30, 200, 212, 0.08) inset;
}

.cover-image {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
}

.cover-category {
  font-size: 12px;
  color: var(--blue-tag);
  margin-bottom: 12px;
}

.cover-line1 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: #f8fafc;
  margin: 0 0 4px;
}

.cover-line2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--gold);
  margin: 0 0 14px;
}

.cover-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 12px;
  margin-bottom: 10px;
}

.cover-timeline span {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.cover-footer-note {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
}

/* 标题 */
.article-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  margin: 18px 0 16px;
  letter-spacing: -0.02em;
}

/* 作者 */
.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #0f172a;
  flex-shrink: 0;
}

.author-meta {
  min-width: 0;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px;
}

.author-handle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* 正文块 */
.body-block {
  margin-bottom: 16px;
}

.body-text {
  font-size: 16px;
  line-height: 1.75;
  color: #1f2937;
  margin: 0;
  white-space: pre-wrap;
}

.image-figure {
  margin: 0 0 16px;
  display: block;
}

.body-image {
  width: 100%;
  border-radius: 12px;
  display: block;
  vertical-align: top;
}

.image-caption {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  text-align: center;
}

.video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.video-wrap video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #111;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.video-overlay .play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay .play-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #111;
  margin-left: 4px;
}

.video-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-label::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}

/* 页脚元信息 */
.article-meta {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

.article-meta p {
  margin: 0 0 8px;
}

.article-footer {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
