/* ============================================================
   RedAlert2.online - V2.0 战术系统增强样式 (app_home_v2.css)
   对应设计展示板 D1 与视觉素材库规范
   ============================================================ */

/* 快速行动模块 Quick Actions */
.ra-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 56px;
}
.ra-action-card {
  background: var(--ra-bg-surface, #121820);
  border: 1px solid var(--ra-border, #263545);
  border-left: 3px solid var(--ra-red, #E63946);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.ra-action-card:hover {
  background: var(--ra-bg-card, #18222E);
  border-color: var(--ra-gold, #FFB703);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
.ra-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ra-red, #E63946);
  font-size: 20px;
  flex-shrink: 0;
}
.ra-action-info {
  display: flex;
  flex-direction: column;
}
.ra-action-title {
  color: var(--ra-text-main, #FFFFFF);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ra-action-desc {
  color: var(--ra-text-muted, #8A99AD);
  font-size: 12px;
  margin-top: 3px;
}

/* 6实体内容推荐卡片 (CARD-01~06) */
.ra-content-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.ra-entity-card {
  background: var(--ra-bg-surface, #121820);
  border: 1px solid var(--ra-border, #263545);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.ra-entity-card:hover {
  border-color: var(--ra-red, #E63946);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.ra-entity-cover {
  width: 100%;
  height: 160px;
  position: relative;
  overflow: hidden;
  background: #090D12;
}
.ra-entity-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ra-entity-card:hover .ra-entity-cover img {
  transform: scale(1.04);
}
.ra-entity-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(9, 13, 18, 0.85);
  border: 1px solid var(--ra-border, #263545);
  color: var(--ra-gold, #FFB703);
  font-family: var(--ra-font-hud, monospace);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.ra-entity-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ra-entity-title {
  font-size: 16px;
  color: var(--ra-text-main, #FFFFFF);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}
.ra-entity-desc {
  font-size: 13px;
  color: var(--ra-text-secondary, #C8D1DC);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 14px;
}
.ra-entity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ra-border-subtle, #1A2530);
  padding-top: 12px;
  font-size: 12px;
  color: var(--ra-text-muted, #8A99AD);
  font-family: var(--ra-font-hud, monospace);
}
.ra-entity-meta .author {
  color: var(--ra-text-secondary, #C8D1DC);
}
.ra-entity-meta .stats {
  display: flex;
  gap: 12px;
}

/* 作战专题大卡 (TOPIC-01~03) */
.ra-topics-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.ra-topic-poster {
  position: relative;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--ra-border, #263545);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ra-topic-poster:hover {
  border-color: var(--ra-gold, #FFB703);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.ra-topic-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}
.ra-topic-poster:hover .ra-topic-bg {
  transform: scale(1.06);
}
.ra-topic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 13, 18, 0.95) 0%, rgba(9, 13, 18, 0.5) 50%, rgba(9, 13, 18, 0.2) 100%);
  z-index: 2;
}
.ra-topic-content {
  position: relative;
  z-index: 3;
}
.ra-topic-badge {
  display: inline-block;
  background: var(--ra-red, #E63946);
  color: #fff;
  font-family: var(--ra-font-hud, monospace);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.ra-topic-title {
  font-family: var(--ra-font-title, sans-serif);
  font-size: 24px;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.8px;
}
.ra-topic-summary {
  font-size: 12.5px;
  color: var(--ra-text-secondary, #C8D1DC);
  line-height: 1.5;
  margin-bottom: 12px;
}
.ra-topic-metrics {
  display: flex;
  gap: 16px;
  font-family: var(--ra-font-hud, monospace);
  font-size: 12px;
  color: var(--ra-gold, #FFB703);
}

@media(max-width: 992px) {
  .ra-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  .ra-content-grid-v2, .ra-topics-featured {
    grid-template-columns: 1fr;
  }
}
