/* 产品策略、灵感池（app/f_product.py）。只用 tokens.css 的变量。 */
.fprod-warn { margin: 0 0 12px; padding: 8px 12px; background: var(--gray-soft); color: var(--mute); border-radius: var(--radius-ctl); font-size: 12px; line-height: 1.7; }
.fprod-warn b { color: var(--ink); font-weight: 600; }
.fprod-ck { display: inline-flex; align-items: center; gap: 6px; justify-content: center; cursor: pointer; }

.fprod-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.fprod-card { scroll-margin-top: 12px; }
.fprod-card h3 > span { display: inline-flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.fprod-card h3 .t { font-weight: 500; }
.fprod-top { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 16px; align-items: end; padding-bottom: 12px; }
.fprod-top p { margin: 4px 0 0; font-size: 13px; color: var(--weak); line-height: 1.6; }
.fprod-big { font-family: var(--num); font-size: 30px; font-weight: 700; letter-spacing: -.8px; }
.fprod-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 92px; }
.fprod-bars > div { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; }
.fprod-bars i { grid-row: 1; align-self: end; display: block; min-height: 2px; background: var(--line); border-radius: 4px 4px 0 0; }
.fprod-bars i.now { background: var(--pop); }
.fprod-bars span { font-size: 13px; color: var(--weak); text-align: center; line-height: 1.35; white-space: nowrap; }
.fprod-bars span b { color: var(--ink); font-weight: 600; font-size: 13px; }
.fprod-pl { margin: 2px 0 10px; }
.fprod-m { color: var(--mute); }
.fprod-up { color: var(--green); font-weight: 600; }
.fprod-dn { color: var(--red); font-weight: 600; }
.fprod-dl { margin: 0; display: grid; gap: 6px; font-size: 12.5px; }
.fprod-dl > div { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
.fprod-dl dt { color: var(--weak); font-size: 13px; padding-top: 1px; }
.fprod-dl dd { margin: 0; line-height: 1.65; overflow-wrap: anywhere; }
.fprod-dl dd s { text-decoration: none; color: var(--weak); }
.fprod-dl > div.bad dd { color: var(--red); }
.fprod-dl > div.bad dd s { color: var(--mute); }
.fprod-card .pc-f { margin-top: 12px; }
.fprod-card .pc-f > span:first-child { flex: 1 1 260px; }
.fprod-kinds { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }
.fprod-kinds b { padding: 9px 11px; text-align: center; }
.fprod-kinds input:checked + b { background: var(--pop-soft); color: var(--pop-ink); border-radius: 9px; }

@container main (max-width: 1000px) {
  .fprod-grid { grid-template-columns: minmax(0, 1fr); }
}
@container main (max-width: 640px) {
  .fprod-acts details.cant[open] { flex-basis: 100%; }
  .fprod-acts details.cant form.closef { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
  .fprod-top { grid-template-columns: minmax(0, 1fr); }
  .fprod-bars { height: 76px; }
  .fprod-pl { display: table; }
  .fprod-pl th, .fprod-pl td { padding: 6px 7px; }
  .fprod-pl th { white-space: normal; }
  .fprod-pl th:last-child, .fprod-pl td:last-child { display: none; }
}

/* 11/16 搬家：灵感池下一步、各品利润、竞品补词、活动提报的前后对比和促销建议（promo.html 也用这几条） */
.fprod-step { margin-top: 4px; }
.fprod-drop { margin-top: 14px; }
.fpp-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; margin-bottom: 4px; }
.fpp-sum > div { padding: 12px 14px; border-left: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.fpp-sum > div:first-child { border-left: 0; }
.fpp-sum span { font-size: 13px; color: var(--mute); }
.fpp-sum b { font-family: var(--num); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.fpp-sum small { font-size: 13px; color: var(--weak); }
.fpp-list { padding: 4px 14px; }
.fpp-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12.5px; align-items: baseline; }
.fpp-row:first-child { border-top: 0; }
.fpp-row b { font-weight: 600; overflow-wrap: anywhere; }
.fpp-row span { color: var(--mute); font-family: var(--num); }
.fcmp-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.fcmp-act form { margin: 0; }
.pm-tip { margin-top: 10px; padding: 10px 12px; background: var(--gray-soft); border-radius: var(--radius-ctl); font-size: 12.5px; line-height: 1.65; }
.pm-tip small { margin-left: 8px; color: var(--weak); font-size: 13px; }
.pm-tip ul { margin: 4px 0 0; padding-left: 18px; }
.pm-tip li { overflow-wrap: anywhere; }
.pm-after { overflow-wrap: anywhere; }

@container main (max-width: 640px) {
  .fpp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fpp-sum > div:nth-child(3) { border-left: 0; }
  .fpp-sum > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fpp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fpp-row b { grid-column: 1 / -1; }
  .fcmp-act details.cant[open] { flex-basis: 100%; }
  .fcmp-act details.cant form.closef { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
}

/* ---------- 11/17 商品中心（C7）：图、品卡、手册卡 ---------- */
.pimg { display: block; object-fit: cover; border-radius: 8px; background: var(--gray-soft); border: 1px solid var(--line); flex: none; }
.pimg.big { width: 220px; height: 220px; border-radius: 10px; }
.tbl td .pimg { width: 48px; height: 48px; }
.tbl tr.mute td { color: var(--mute); }
.nothing.miss { color: var(--mute); font-size: 15px; padding: 8px 0; margin: 0; }
.fprod-card { display: grid; gap: 12px; }
.fprod-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.fprod-sys { margin: 0; padding: 10px 12px; background: var(--gray-soft); border-radius: var(--radius-ctl); font-size: 15px; line-height: 1.6; }
.fprod-sub { margin: 4px 0 8px; font-size: 15px; font-weight: 600; }
.fprod-sub small { color: var(--mute); font-weight: 400; font-size: 13px; margin-left: 6px; }
.fprod-ideas { margin: 0; padding-left: 18px; line-height: 1.8; font-size: 15px; }
.fprod-detail { display: block; color: var(--mute); font-size: 13px; font-weight: 400; margin-top: 2px; }
.fprod-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fprod-f .in { min-width: 120px; }
.fman-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; align-content: start; }
.fman-h { display: flex; gap: 12px; align-items: flex-start; }
.fman-h h4 { margin: 0; font-size: 16px; font-weight: 600; }
.fman-h p { margin: 2px 0 0; color: var(--mute); font-size: 13px; }
.fman-chain { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fman-diff { margin: 0; padding: 8px 10px; background: var(--amber-soft, #fdf2df); color: var(--amber, #a35c00); border-radius: var(--radius-ctl); font-size: 14px; }
.fman-tbl td.k { white-space: nowrap; color: var(--mute); width: 90px; }
.fman-sell { margin: 0; padding-left: 18px; line-height: 1.65; }
@media (max-width: 640px) { .pimg.big { width: 100%; height: auto; aspect-ratio: 1; } .fprod-top { flex-direction: column; } }
.fprod-cards td { white-space: nowrap; vertical-align: middle; }
.fprod-cards td.why { white-space: normal; min-width: 280px; max-width: 460px; }

/* 11/17 视觉（逐页版面「产品策略」）：「在投诊断」是红点清单，前三个也是红点（不吃排行前三的橙底编号） */
.fprod-ranks .rank.diag li .rank-i { background: var(--red); color: transparent; }
.fprod-ranks .blk { margin-bottom: 0; }
/* 11/17 修：品卡表「系统建议」「小宇定」挪到品名后面；「为什么」成了品名下面的灰字第二行（不用横滑就看得到）；外面卖得怎样和灵感并成一列 */
.fprod-cards td.fprod-k { white-space: normal; min-width: 240px; max-width: 380px; }
.fprod-cards .fprod-why { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--mute); font-weight: 400; }
.fprod-cards td.fprod-out { white-space: normal; min-width: 150px; max-width: 220px; }
.fprod-cards td.fprod-out small { display: block; font-size: 13px; color: var(--mute); }
.fprod-cards thead th { white-space: normal; }
.fprod-cards td:nth-child(7), .fprod-cards td:nth-child(10), .fprod-cards td:nth-child(11) { white-space: normal; min-width: 110px; max-width: 170px; }
.fprod-cards thead th { white-space: normal !important; }
.fprod-cards thead th { min-width: 4.8em; }
.fprod-cards thead th:first-child { min-width: 0; }
