/* ============================================================
   跃山智研台 · 专有组件样式
   通用样式见 alpha-shell.css，此文件只放本 POC 新增的部件
   ============================================================ */

/* === 数据来源 chip（严格分色 · 真 vs 演示）=== */
.data-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid;
}
.data-source-chip.real {
  background: #f6ffed;
  color: #389e0d;
  border-color: #b7eb8f;
}
.data-source-chip.mock {
  background: #fff1f0;
  color: #cf1322;
  border-color: #ffa39e;
}
.data-source-chip.mixed {
  background: #fffbe6;
  color: #d48806;
  border-color: #ffe58f;
}

/* === 方法论版本 chip === */
.methodology-chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
}
.methodology-chip.v2 {
  background: linear-gradient(135deg, #1677ff, #722ed1);
  color: #fff;
}
.methodology-chip.v1 {
  background: #f0f0f0;
  color: #595959;
  border: 1px solid #d9d9d9;
}

/* === 加入我的想定按钮（漏斗诱饵核心组件）=== */
.add-to-idea-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff7a45, #ff4d4f);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(255, 77, 79, 0.25);
}
.add-to-idea-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.4);
}
.add-to-idea-btn:active {
  transform: translateY(0);
}

/* === 卡片块通用头部（标题 + chip 右上角）=== */
.section-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.section-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
}
.section-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2933;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-card-subtitle {
  font-size: 12px;
  color: #8c8c8c;
  font-weight: 400;
}
.section-card-body {
  padding: 16px 18px;
}

/* === 内容洞察卡（mock 帖子 / 真自有素材都用这个）=== */
.content-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-card:hover {
  border-color: #1677ff;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.1);
  transform: translateY(-2px);
}
.content-card .cover {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.content-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-card .cover .platform-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}
.content-card .cover .duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
}
.content-card .title {
  font-size: 13px;
  font-weight: 500;
  color: #1f2933;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #8c8c8c;
}
.content-card .interactions {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #595959;
}
.content-card .interactions span { display: flex; align-items: center; gap: 2px; }

/* 内容卡的浮动 "加入想定" 按钮 */
.content-card .quick-add-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.content-card:hover .quick-add-overlay {
  opacity: 1;
}

/* === 竞品分析卡（v2 / v1）=== */
.competitor-report-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.competitor-report-card:hover {
  border-color: #722ed1;
  background: #fff;
}
.competitor-report-card.v2 {
  border-left: 3px solid #1677ff;
}
.competitor-report-card.v1 {
  border-left: 3px solid #bfbfbf;
  opacity: 0.85;
}
.competitor-report-card .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.competitor-report-card .competitor-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2933;
}
.competitor-report-card .product-name {
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 2px;
}
.competitor-report-card .report-snippet {
  font-size: 12px;
  color: #595959;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

/* === KPI 卡片（首页顶部）=== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 14px 16px;
}
.kpi-card .label {
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 4px;
}
.kpi-card .value {
  font-size: 24px;
  font-weight: 600;
  color: #1f2933;
}
.kpi-card .value .unit {
  font-size: 13px;
  color: #8c8c8c;
  font-weight: 400;
  margin-left: 4px;
}
.kpi-card .sub {
  font-size: 11px;
  color: #8c8c8c;
  margin-top: 4px;
}

/* === 漏斗诱导 banner（在首页醒目位置）=== */
.funnel-banner {
  background: linear-gradient(135deg, #722ed1 0%, #1677ff 100%);
  color: #fff;
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.funnel-banner::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.funnel-banner .copy {
  flex: 1;
}
.funnel-banner .title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.funnel-banner .sub {
  font-size: 13px;
  opacity: 0.85;
}
.funnel-banner .cta {
  background: #fff;
  color: #722ed1;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

/* === 自有素材矩阵格子 === */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.asset-thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid #f0f0f0;
  background: #f5f5f5;
}
.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-thumb .type-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
}
.asset-thumb .name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
}

/* === 标签云（关键词 / 卖点） === */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-cloud .tag {
  padding: 3px 10px;
  background: #f5f5f5;
  border-radius: 12px;
  font-size: 12px;
  color: #595959;
  border: 1px solid #e8e8e8;
}
.tag-cloud .tag.hot {
  background: #fff1f0;
  color: #cf1322;
  border-color: #ffa39e;
}
.tag-cloud .tag.warm {
  background: #fff7e6;
  color: #d46b08;
  border-color: #ffd591;
}

/* === 占位（mock 数据等待中）=== */
.placeholder-card {
  border: 1px dashed #d9d9d9;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: #8c8c8c;
  background: #fafafa;
}
.placeholder-card .icon {
  font-size: 28px;
  margin-bottom: 8px;
}

/* === 双栏布局（首页主区 + 侧栏）=== */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 1280px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }
}

/* === 高亮 v2 当前 vs v1 历史 的演进示意 === */
.methodology-evolution {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e6f4ff 50%, #f0f9ff 100%);
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #595959;
}
.methodology-evolution .arrow {
  color: #1677ff;
  font-weight: 600;
}
