/* articles/index.html 专用 — 列表美化 (LOCKED 6-12) */

.article-card {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-soft);
  transition: all 180ms ease;
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  opacity: 0.7;
  border-radius: 10px 0 0 10px;
}
.article-card[data-tag="orange"]::before { background: #fb923c; }
.article-card[data-tag="red"]::before    { background: #f87171; }
.article-card[data-tag="green"]::before  { background: #4ade80; }
.article-card[data-tag="blue"]::before   { background: #818cf8; }
.article-card[data-tag="purple"]::before { background: #c084fc; }

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
  border-color: rgba(255,255,255,0.08);
}

.card-content {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
}

.article-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--color-text);
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.card-time {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.card-new {
  background: var(--color-accent, #fb923c);
  color: var(--color-bg, #0d0d0d);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
  display: inline-block;
}

.article-card-author {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2px;
}

/* 卡片间软分隔 */
.grid-2 > .article-card,
.grid-wrap > .article-card {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.grid-2 > .article-card:last-child,
.grid-wrap > .article-card:last-child {
  border-bottom: none;
}

/* 响应 */
@media (max-width: 640px) {
  .article-card { padding: 16px 14px; gap: 12px; }
  .article-card h3 { font-size: 18px; }
  .card-content { padding-left: 4px; }
}
