// ============================================================================== // 肝纯片 v2 · Ch1 肝纯片自身画像(会议 req A · 全新) // ============================================================================== // 1.1 肝纯片自身 VOC · 用户画像 // 1.2 满意 vs 不满意 · 双面分析 // 1.3 藤茶 DMY 认知度 · 用户感知 // ============================================================================== const LA = require('./liver-analyze.js'); const C = require('./liver-components.js'); const { BRAND, esc, renderSectionHead, renderVocCard, renderVocGrid, renderStatStrip, renderBarChart, renderCompareTable, renderInsightHero, renderFindingCard, renderDecisionList, LIVER_CONTEXT_RE } = C; // ============================================================ // 1.1 自身 VOC · 用户画像 // ============================================================ function renderSub1({ chapter: c, subIdx, sub, slideNum, slideTotal, data, meta }) { const items = data?.items || []; // 筛选肝纯片自身 VOC(仅中文平台,排除 Amazon DHM 产品评论) const selfItems = items.filter(it => { if (it.platform === 'amazon') return false; // Amazon 上的 DHM 评论不是肝纯片产品 const txt = `${it.keyword || ''} ${it.product || ''} ${it.content || ''}`.toLowerCase(); return /肝纯|江中.*肝|藤茶.*片|肝片|护肝片/i.test(txt); }); // 平台分布 const selfPlatforms = {}; selfItems.forEach(it => { const p = it.platform || 'unknown'; selfPlatforms[p] = (selfPlatforms[p] || 0) + 1; }); // 情感分布 const selfSentiments = {}; selfItems.forEach(it => { const s = it.sentiment || 'neutral'; selfSentiments[s] = (selfSentiments[s] || 0) + 1; }); // 用户画像标签 const personas = [ { name: '应酬打工人', re: /应酬|酒局|喝酒|打工人|加班/i, color: BRAND.WINE_RED, icon: '🍻' }, { name: '脂肪肝患者', re: /脂肪肝|转氨酶|体检|肝功/i, color: BRAND.WARM_ORANGE, icon: '📊' }, { name: '熬夜族', re: /熬夜|通宵|晚睡|加班/i, color: BRAND.PURPLE, icon: '🌙' }, { name: '孝心子女', re: /送|父母|爸|妈|长辈|孝心|礼/i, color: BRAND.GOLD, icon: '🎁' }, { name: '成分党/科学控', re: /成分|配方|水飞蓟|DMY|藤茶|研究|论文/i, color: BRAND.TECH_BLUE, icon: '🔬' }, ]; const personaStats = personas.map(p => ({ ...p, count: selfItems.filter(it => p.re.test(it.content || '')).length, })).sort((a, b) => b.count - a.count); // 内容本身必须提到护肝产品/成分/症状,排除帖子下的无关闲聊 const SELF_CONTENT_RE = /护肝|肝片|肝纯|转氨酶|脂肪肝|解酒|保肝|水飞蓟|藤茶|总黄酮|DMY|江中|养肝|肝功|肝损|肝不好/i; const selfEvidence = LA.getEvidence(selfItems, { top: 4, seed: 51, minChars: 20, contentMatch: SELF_CONTENT_RE }); return `
${renderSectionHead({ eyebrow: `${c.num}.${subIdx} · SELF PORTRAIT`, title: sub, subtitle: '江旭要求:"漏掉了我们自己产品的分析。肝纯片已经在抖音上卖了好几年了。"', color: c.color, })} ${renderStatStrip([ { num: selfItems.length, label: '肝纯片自身 VOC', color: c.color }, { num: selfSentiments.positive || 0, label: '好评', color: BRAND.JIANG_GREEN }, { num: selfSentiments.negative || 0, label: '差评', color: BRAND.CORAL }, { num: Object.keys(selfPlatforms).length, label: '平台覆盖', color: BRAND.TECH_BLUE }, ])}
用户画像 · 谁在买肝纯片?
${personaStats.map(p => `
${p.icon}
${p.count}
${esc(p.name)}
`).join('')}
肝纯片用户原声
${renderVocGrid(selfEvidence, { columns: 2, accent: c.color })}
${renderFindingCard({ icon: '🪞', title: '自身画像核心发现', body: '肝纯片用户以应酬打工人脂肪肝患者为主——这两类人群的需求最迫切。孝心子女是高价值但低频人群(礼品场景)。最大盲区:成分党/科学控对"藤茶 DMY"几乎没有认知,这是认知建设的核心任务。', accent: c.color, })}
`; } // ============================================================ // 1.2 满意 vs 不满意 // ============================================================ function renderSub2({ chapter: c, subIdx, sub, slideNum, slideTotal, data, meta }) { const items = data?.items || []; const selfItems = items.filter(it => { if (it.platform === 'amazon') return false; // Amazon DHM 评论不是肝纯片产品 const txt = `${it.keyword || ''} ${it.product || ''} ${it.content || ''}`.toLowerCase(); return /肝纯|江中.*肝|藤茶.*片|肝片|护肝片/i.test(txt); }); // 用内容 regex 判断正负面(sentiment 字段推断不可靠) const selfPosRe = /有效|管用|好转|降了|见效|推荐|不错|靠谱|信赖|放心|有用的|真有用|确实有用|效果好|改善|缓解|值得/i; const selfNegRe = /没有?用(?!过)|没效|没感觉|智商税|骗|副作用|拉肚子|胃不舒服|难吃|不好用|效果不好|差评|头晕|不推荐|难受|不怎么管用|不太好用|进ICU|不降反升|伤肝|别吃/i; const posItems = selfItems.filter(it => { const c = it.content || ''; return selfPosRe.test(c) && !selfNegRe.test(c); }); const negItems = selfItems.filter(it => selfNegRe.test(it.content || '')); // 好评维度 const posDims = [ { dim: '效果可感知', re: /有效|管用|见效|好转|转氨酶降/i, icon: '✅' }, { dim: '天然/安全', re: /天然|安全|无副作用|放心|植物/i, icon: '🌿' }, { dim: '品牌信任', re: /江中|大牌|老牌|信任|品牌/i, icon: '🏷️' }, { dim: '送礼有面子', re: /送|礼|面子|好看|包装/i, icon: '🎁' }, ]; const posDimStats = posDims.map(d => ({ ...d, count: posItems.filter(it => d.re.test(it.content || '')).length, })); // 差评维度 const negDims = [ { dim: '效果存疑', re: /没用|没效|没感觉|智商税|不确定/i, icon: '❓' }, { dim: '价格偏高', re: /贵|价格|不值|性价比/i, icon: '💰' }, { dim: '包装/剂型', re: /包装|药盒|片剂|难吃|不好吞/i, icon: '📦' }, { dim: '认知模糊', re: /不知道|没听过|藤茶是什么|DMY/i, icon: '🤷' }, ]; const negDimStats = negDims.map(d => ({ ...d, count: negItems.filter(it => d.re.test(it.content || '')).length, })); const SELF_CONTENT_RE2 = /护肝|肝片|肝纯|转氨酶|脂肪肝|解酒|保肝|水飞蓟|藤茶|江中|养肝|肝功|肝损|肝不好/i; const posEvidence = LA.getEvidence(posItems, { top: 3, seed: 52, minChars: 20, contentMatch: SELF_CONTENT_RE2 }); const negEvidence = LA.getEvidence(negItems, { top: 3, seed: 53, minChars: 20, contentMatch: SELF_CONTENT_RE2 }); return `
${renderSectionHead({ eyebrow: `${c.num}.${subIdx} · SATISFACTION ANALYSIS`, title: sub, subtitle: '肝纯片用户"满意什么"和"不满意什么"——双面分析,不回避问题。', color: c.color, })}
✅ 满意维度(${posItems.length} 条好评)
${posDimStats.map(d => `
${d.icon}
${esc(d.dim)} ${d.count}
`).join('')} ${posEvidence.length > 0 ? `
${renderVocGrid(posEvidence, { columns: 1, accent: BRAND.JIANG_GREEN, compact: true })}
` : ''}
❌ 不满意维度(${negItems.length} 条差评)
${negDimStats.map(d => `
${d.icon}
${esc(d.dim)} ${d.count}
`).join('')} ${negEvidence.length > 0 ? `
${renderVocGrid(negEvidence, { columns: 1, accent: BRAND.CORAL, compact: true })}
` : ''}
${renderDecisionList([ '最强满意点:"效果可感知" + "天然安全"——这是核心卖点,必须放大', '最大不满:"效果存疑/智商税"——认知教育是第一优先级', '隐藏机会:"送礼有面子"好评比例高——礼品场景值得加大投入', '改进方向:包装去药盒感 + 价格感知优化(vs Swisse 便宜但用户不知道)', ], { accent: c.color, title: 'ACTION ITEMS · 自身画像启示' })}
`; } // ============================================================ // 1.3 藤茶 DMY 认知度 // ============================================================ function renderSub3({ chapter: c, subIdx, sub, slideNum, slideTotal, data, meta }) { const items = data?.items || []; // DMY/藤茶认知 const dmyItems = items.filter(it => /DMY|二氢杨梅素|藤茶|显齿蛇葡萄/i.test(it.content || '')); const silymItems = items.filter(it => /水飞蓟|奶蓟|milk thistle|silymarin/i.test(it.content || '')); const dmyEvidence = LA.getEvidence(dmyItems, { top: 3, seed: 55, minChars: 15, contentMatch: /DMY|二氢杨梅素|藤茶|显齿蛇葡萄/i }); const silymEvidence = LA.getEvidence(silymItems, { top: 3, seed: 56, minChars: 15, contentMatch: /水飞蓟|奶蓟|milk.?thistle|silymarin/i }); return `
${renderSectionHead({ eyebrow: `${c.num}.${subIdx} · DMY AWARENESS`, title: sub, subtitle: 'DMY 总黄酮 98% 是真实科学力——但用户完全不知道。', color: c.color, })}
🌿 藤茶 / DMY 认知
${dmyItems.length}
条 VOC 提及
现状:"藤茶"在用户心智中 = 一种茶饮,不是护肝成分
"DMY":几乎零认知,用户搜不到也念不出
机会:"千年食饮史"可做安全感锚点
${dmyEvidence.length > 0 ? `
${renderVocGrid(dmyEvidence, { columns: 1, accent: BRAND.TENGCHA_GREEN, compact: true })}
` : ''}
vs
🔴 水飞蓟 / Milk Thistle
${silymItems.length}
条 VOC 提及
现状:认知度高但差评多
痛点:"吸收差 / no effect / 胃不舒服"
教训:高认知 ≠ 高满意度
${silymEvidence.length > 0 ? `
${renderVocGrid(silymEvidence, { columns: 1, accent: BRAND.CORAL, compact: true })}
` : ''}
${renderInsightHero({ eyebrow: 'AWARENESS GAP', title: 'DMY 认知度近零——但这恰恰是品类创新的机会', subtitle: `水飞蓟认知高但口碑差 → 用户正在寻找替代方案。藤茶 DMY"千年食饮史 + 总黄酮 98%"的故事如果讲好,可以直接占据"天然护肝"的心智空位——这是特劳特说的"差异化 + 聚焦"。`, color: BRAND.TENGCHA_GREEN, })}
`; } module.exports = { renderSub1, renderSub2, renderSub3 };