const UI = {
  zh: {
    nav: {
      overview: '首页',
      conditions: '适合咨询吗',
      hospitals: '医院介绍',
      services: '服务怎么做',
      checklist: '需要准备什么',
      intake: '提交情况',
      ops: '内部后台'
    },
    heroEyebrow: '海外入口 · 专家二次诊疗 · 来华就医服务',
    heroTitle: '海外家庭来华就医，从看懂路径开始。',
    heroText: '面对异常报告、复杂诊疗选择或高端体检需求，华医畅帮助海外家庭整理资料、理解中国医疗体系，并在符合医疗指征和正式流程的前提下推进专家二次诊疗与来华就医安排。',
    primaryCta: '咨询我的来华路径',
    sectionConditions: '服务场景',
    sectionServices: '华医畅能帮你完成哪些步骤？',
    sectionChecklist: '先看看需要准备哪些资料',
    sectionIntake: '咨询表单',
    sectionLeads: '内部线索工作台',
    suitable: '适合人群',
    documents: '需要资料',
    nextStep: '推荐下一步',
    chooseCondition: '选择病种',
    selected: '已选择',
    select: '选择',
    serviceFee: '服务费',
    deliverables: '交付内容',
    boundary: '服务边界',
    prepared: '已准备',
    missing: '缺失',
    exportCsv: '导出 CSV',
    addDemo: '添加测试线索',
    riskNotice: '风险告知',
    close: '关闭',
    submit: '提交咨询',
    reset: '重置',
    formRequired: '请补全必填项后再提交。',
    leadSaved: '资料已提交成功。华医畅服务团队将在 24 小时内完成初步查看，并通过你预留的联系方式沟通下一步。',
    language: '语言',
    chinese: '中文',
    english: 'English'
  },
  en: {
    nav: {
      overview: 'Home',
      conditions: 'Is It Suitable',
      hospitals: 'Hospitals',
      services: 'How It Works',
      checklist: 'Prepare Records',
      intake: 'Submit Case',
      ops: 'Ops Admin'
    },
    heroEyebrow: 'Overseas entry · Specialist second opinion · China care service',
    heroTitle: 'China care starts with a clear path.',
    heroText: 'For abnormal reports, complex care decisions, or premium checkups, HuaMed helps overseas families organize records, understand China’s medical system, and coordinate specialist second opinions or China visits through formal medical pathways.',
    primaryCta: 'Consult My China Pathway',
    sectionConditions: 'Service Scenarios',
    sectionServices: 'What steps can HuaMed coordinate?',
    sectionChecklist: 'See which records to prepare first',
    sectionIntake: 'Consultation Form',
    sectionLeads: 'Internal Lead Desk',
    suitable: 'Best fit',
    documents: 'Documents needed',
    nextStep: 'Suggested next step',
    chooseCondition: 'Choose condition',
    selected: 'Selected',
    select: 'Select',
    serviceFee: 'Service fee',
    deliverables: 'Deliverables',
    boundary: 'Boundaries',
    prepared: 'Ready',
    missing: 'Missing',
    exportCsv: 'Export CSV',
    addDemo: 'Add Test Lead',
    riskNotice: 'Risk Notice',
    close: 'Close',
    submit: 'Submit Consultation',
    reset: 'Reset',
    formRequired: 'Please complete required fields before submitting.',
    leadSaved: 'Your materials were submitted successfully. The HuaMed service team will complete an initial review within 24 hours and contact you through the details provided.',
    language: 'Language',
    chinese: '中文',
    english: 'English'
  }
};

const CONDITIONS = [
  {
    id: 'lung',
    icon: 'scan-search',
    priority: 'S',
    tone: 'gold',
    name: { zh: '肺结节 / 早期肺癌', en: 'Lung nodules / early lung cancer' },
    short: {
      zh: 'CT 发现肺结节，不确定随访、穿刺还是手术评估。',
      en: 'CT found a lung nodule and the family is unsure about follow-up, biopsy, or surgery review.'
    },
    suitable: {
      zh: ['已有 CT 报告或 DICOM 原片', '本地医生建议随访、穿刺或手术', '希望获得中国胸外科专家二诊'],
      en: ['CT report or DICOM images available', 'Local doctor suggested follow-up, biopsy, or surgery', 'Needs a China thoracic specialist second opinion']
    },
    docs: [
      { zh: 'CT 报告', en: 'CT report' },
      { zh: 'CT 原片 / DICOM', en: 'CT images / DICOM' },
      { zh: '既往 CT 对比', en: 'Prior CT for comparison' },
      { zh: '吸烟史、家族史', en: 'Smoking and family history' },
      { zh: '本地医生建议', en: 'Local doctor recommendation' }
    ],
    next: {
      zh: '资料完整后进入中国胸外科二诊预评估。',
      en: 'Proceed to China thoracic specialist pre-assessment once records are complete.'
    }
  },
  {
    id: 'thyroid',
    icon: 'activity',
    priority: 'S',
    tone: 'sea',
    name: { zh: '甲状腺结节 / 甲状腺癌', en: 'Thyroid nodule / thyroid cancer' },
    short: {
      zh: '超声发现结节，不确定是否穿刺、手术或继续观察。',
      en: 'Ultrasound found a thyroid nodule and the family needs help deciding FNA, surgery, or surveillance.'
    },
    suitable: {
      zh: ['有超声和 TI-RADS 分级', '担心过度治疗或延误治疗', '希望明确穿刺/手术必要性'],
      en: ['Ultrasound and TI-RADS available', 'Concerned about overtreatment or delay', 'Needs clarity on FNA or surgery necessity']
    },
    docs: [
      { zh: '甲状腺超声报告', en: 'Thyroid ultrasound report' },
      { zh: 'TI-RADS 分级', en: 'TI-RADS category' },
      { zh: '甲功检查', en: 'Thyroid function tests' },
      { zh: '穿刺病理，如有', en: 'FNA pathology if available' }
    ],
    next: {
      zh: '先做路径咨询或甲状腺专科二诊。',
      en: 'Start with pathway consultation or thyroid specialist second opinion.'
    }
  },
  {
    id: 'breast',
    icon: 'ribbon',
    priority: 'S',
    tone: 'gold',
    name: { zh: '乳腺结节 / 早期乳腺癌', en: 'Breast nodule / early breast cancer' },
    short: {
      zh: 'BI-RADS 4 类、穿刺结果或治疗方案不清楚，需要家庭共同决策。',
      en: 'BI-RADS 4, pathology, or treatment plan is unclear and family decision support is needed.'
    },
    suitable: {
      zh: ['影像提示 BI-RADS 4 或以上', '已有穿刺/病理或准备手术', '需要比较保乳、切除、重建等路径'],
      en: ['BI-RADS 4 or above', 'Pathology available or surgery being considered', 'Needs comparison of lumpectomy, mastectomy, reconstruction paths']
    },
    docs: [
      { zh: '乳腺超声 / 钼靶 / MRI', en: 'Breast ultrasound / mammogram / MRI' },
      { zh: 'BI-RADS 分级', en: 'BI-RADS category' },
      { zh: '穿刺病理，如有', en: 'Biopsy pathology if available' },
      { zh: '免疫组化，如有', en: 'IHC markers if available' }
    ],
    next: {
      zh: '影像和病理整理后进入乳腺专科二诊。',
      en: 'Organize imaging and pathology before breast specialist second opinion.'
    }
  },
  {
    id: 'colorectal',
    icon: 'scan-search',
    priority: 'S',
    tone: 'sea',
    name: { zh: '结直肠息肉 / 早期结直肠癌', en: 'Colorectal polyps / early colorectal cancer' },
    short: {
      zh: '肠镜发现较大息肉、早癌或高级别病变，不确定内镜切除还是外科手术。',
      en: 'Colonoscopy found large polyps, early cancer, or high-grade lesion and the family is unsure about endoscopic removal or surgery.'
    },
    suitable: {
      zh: ['有肠镜报告和图片', '病理提示高级别病变或早癌', '需要判断 EMR/ESD、外科手术或 MDT'],
      en: ['Colonoscopy report and images available', 'Pathology suggests high-grade lesion or early cancer', 'Needs EMR/ESD, surgery, or MDT pathway review']
    },
    docs: [
      { zh: '肠镜报告', en: 'Colonoscopy report' },
      { zh: '内镜图片', en: 'Endoscopy images' },
      { zh: '病理报告', en: 'Pathology report' },
      { zh: '既往切除记录', en: 'Prior resection record' }
    ],
    next: {
      zh: '先判断是否适合消化内镜二诊、外科路径评估或 MDT 讨论。',
      en: 'First clarify whether GI endoscopy second opinion, surgical pathway review, or MDT discussion is suitable.'
    }
  },
  {
    id: 'stomach',
    icon: 'microscope',
    priority: 'S',
    tone: 'gold',
    name: { zh: '胃息肉 / 早期胃癌 / 高级别病变', en: 'Gastric polyps / early gastric cancer / high-grade lesion' },
    short: {
      zh: '胃镜或病理提示高级别病变、早癌或复杂息肉，需要判断 ESD、手术或继续观察。',
      en: 'Gastroscopy or pathology suggests high-grade lesion, early cancer, or complex polyps and needs ESD, surgery, or surveillance review.'
    },
    suitable: {
      zh: ['有胃镜报告和图片', '病理提示高级别病变或早癌', '希望判断 ESD/EMR、外科手术或观察'],
      en: ['Gastroscopy report and images available', 'Pathology suggests high-grade lesion or early cancer', 'Needs ESD/EMR, surgery, or surveillance review']
    },
    docs: [
      { zh: '胃镜报告', en: 'Gastroscopy report' },
      { zh: '内镜图片', en: 'Endoscopy images' },
      { zh: '病理报告', en: 'Pathology report' },
      { zh: '幽门螺杆菌和既往治疗记录', en: 'H. pylori and prior treatment record' }
    ],
    next: {
      zh: '资料整理后，先做消化内镜或胃肿瘤方向路径判断。',
      en: 'After records are organized, start with GI endoscopy or gastric oncology pathway review.'
    }
  },
  {
    id: 'liver',
    icon: 'circle-dot',
    priority: 'A',
    tone: 'marble',
    name: { zh: '肝胆胰肿瘤 / 肝结节', en: 'Liver, biliary, pancreatic lesions' },
    short: {
      zh: '影像提示肝结节、胆道或胰腺病变，治疗路径复杂。',
      en: 'Imaging suggests liver, biliary, or pancreatic lesion with complex treatment options.'
    },
    suitable: {
      zh: ['已有增强 CT/MRI', '治疗方式涉及手术、消融、介入或系统治疗', '希望比较多种路径'],
      en: ['Enhanced CT/MRI available', 'Options may include surgery, ablation, intervention, or systemic treatment', 'Needs comparison of complex paths']
    },
    docs: [
      { zh: '增强 CT / MRI', en: 'Enhanced CT / MRI' },
      { zh: '肝炎史和 AFP', en: 'Hepatitis history and AFP' },
      { zh: '肝功能', en: 'Liver function tests' },
      { zh: '既往治疗记录', en: 'Prior treatment record' }
    ],
    next: {
      zh: '先做影像二诊，再判断是否需要来华面诊。',
      en: 'Start with imaging second opinion before deciding on China visit.'
    }
  },
  {
    id: 'nasopharyngeal',
    icon: 'ear',
    priority: 'A',
    tone: 'sea',
    name: { zh: '鼻咽癌 / 鼻咽部异常', en: 'Nasopharyngeal cancer / nasopharyngeal lesion' },
    short: {
      zh: '鼻咽镜、MRI/CT 或病理异常，需要复核分期、放化疗或来华路径。',
      en: 'Nasopharyngoscopy, MRI/CT, or pathology abnormality needs staging, chemoradiotherapy, or China pathway review.'
    },
    suitable: {
      zh: ['已有鼻咽镜、MRI/CT 或病理', '需要复核放化疗方案', '担心副作用和长期随访安排'],
      en: ['Nasopharyngoscopy, MRI/CT, or pathology available', 'Needs chemoradiotherapy plan review', 'Concerned about side effects and follow-up']
    },
    docs: [
      { zh: '鼻咽镜报告', en: 'Nasopharyngoscopy report' },
      { zh: 'MRI / CT 影像', en: 'MRI / CT images' },
      { zh: '病理报告', en: 'Pathology report' },
      { zh: 'EBV 指标', en: 'EBV markers' }
    ],
    next: {
      zh: '先做影像和病理资料整理，再判断肿瘤专科二诊方向。',
      en: 'Organize imaging and pathology first, then decide oncology second-opinion direction.'
    }
  },
  {
    id: 'prostate',
    icon: 'activity',
    priority: 'A',
    tone: 'marble',
    name: { zh: '前列腺疾病 / 前列腺癌', en: 'Prostate disease / prostate cancer' },
    short: {
      zh: 'PSA、前列腺 MRI 或病理异常，不确定穿刺、手术、放疗或观察。',
      en: 'Abnormal PSA, prostate MRI, or pathology with uncertainty around biopsy, surgery, radiotherapy, or surveillance.'
    },
    suitable: {
      zh: ['已有 PSA 或前列腺 MRI', '本地建议穿刺、手术或放疗', '希望判断主动监测或治疗路径'],
      en: ['PSA or prostate MRI available', 'Local doctor suggested biopsy, surgery, or radiotherapy', 'Needs active surveillance or treatment pathway review']
    },
    docs: [
      { zh: 'PSA / fPSA', en: 'PSA / fPSA' },
      { zh: '前列腺 MRI', en: 'Prostate MRI' },
      { zh: '穿刺病理，如有', en: 'Biopsy pathology if available' },
      { zh: '既往用药和症状', en: 'Medication and symptom history' }
    ],
    next: {
      zh: '根据 PSA、MRI 和病理判断是否适合泌尿专科二诊。',
      en: 'Use PSA, MRI, and pathology to decide if urology second opinion is suitable.'
    }
  },
  {
    id: 'kidney_stone',
    icon: 'droplets',
    priority: 'A',
    tone: 'sea',
    name: { zh: '肾结石 / 输尿管结石', en: 'Kidney stones / ureteral stones' },
    short: {
      zh: '反复结石、疼痛或积水，本地费用高或等待久，希望判断微创取石路径。',
      en: 'Recurrent stones, pain, or hydronephrosis with high local cost or wait; needs minimally invasive stone pathway review.'
    },
    suitable: {
      zh: ['有 CT/KUB 或超声', '反复发作或合并积水', '希望比较碎石、软镜、经皮肾镜等路径'],
      en: ['CT/KUB or ultrasound available', 'Recurrent attacks or hydronephrosis', 'Needs comparison of lithotripsy, flexible ureteroscopy, PCNL, and other paths']
    },
    docs: [
      { zh: 'CT / KUB / 超声', en: 'CT / KUB / ultrasound' },
      { zh: '尿检和肾功能', en: 'Urine test and kidney function' },
      { zh: '既往碎石或手术记录', en: 'Prior lithotripsy or surgery record' },
      { zh: '疼痛和发作时间线', en: 'Pain and episode timeline' }
    ],
    next: {
      zh: '根据结石位置、大小和肾功能判断是否适合来华微创路径评估。',
      en: 'Use stone location, size, and kidney function to decide if China minimally invasive pathway review is suitable.'
    }
  },
  {
    id: 'knee',
    icon: 'bone',
    priority: 'A',
    tone: 'gold',
    name: { zh: '膝关节置换 / 骨关节炎', en: 'Knee replacement / osteoarthritis' },
    short: {
      zh: '膝关节疼痛多年、影像提示退变，不确定是否需要置换或还能保守治疗。',
      en: 'Long-term knee pain and degenerative imaging findings; unsure whether replacement or conservative care is appropriate.'
    },
    suitable: {
      zh: ['X 光提示骨关节炎或力线异常', '本地建议置换', '希望判断手术必要性和康复路径'],
      en: ['X-ray suggests osteoarthritis or alignment issue', 'Local doctor suggested replacement', 'Needs surgery necessity and rehab path review']
    },
    docs: [
      { zh: 'X 光 / MRI / CT', en: 'X-ray / MRI / CT' },
      { zh: '疼痛时间和功能受限描述', en: 'Pain duration and functional limitation' },
      { zh: '既往治疗记录', en: 'Prior treatment record' },
      { zh: '本地医生建议', en: 'Local doctor recommendation' }
    ],
    next: {
      zh: '进入关节外科影像二诊和置换必要性评估。',
      en: 'Proceed to joint surgery imaging review and replacement necessity assessment.'
    }
  },
  {
    id: 'sports',
    icon: 'dumbbell',
    priority: 'A',
    tone: 'gold',
    name: { zh: '半月板 / ACL / 肩袖运动损伤', en: 'Meniscus / ACL / rotator cuff sports injury' },
    short: {
      zh: 'MRI 提示半月板、前叉韧带或肩袖损伤，不确定保守、关节镜或康复路径。',
      en: 'MRI suggests meniscus, ACL, or rotator cuff injury and the family is unsure about conservative care, arthroscopy, or rehab.'
    },
    suitable: {
      zh: ['MRI 已完成', '影响运动或日常功能', '希望明确是否需要关节镜和术后康复路径'],
      en: ['MRI completed', 'Sports or daily function affected', 'Needs arthroscopy necessity and rehab path review']
    },
    docs: [
      { zh: 'MRI 报告和影像', en: 'MRI report and images' },
      { zh: '受伤时间和机制', en: 'Injury timing and mechanism' },
      { zh: '疼痛和活动受限描述', en: 'Pain and mobility limitation' },
      { zh: '既往治疗和康复记录', en: 'Prior treatment and rehab record' }
    ],
    next: {
      zh: '进入运动医学影像二诊和关节镜必要性评估。',
      en: 'Proceed to sports medicine imaging review and arthroscopy necessity assessment.'
    }
  },
  {
    id: 'gyne',
    icon: 'flower-2',
    priority: 'A',
    tone: 'marble',
    name: { zh: '妇科肿瘤 / 肌瘤 / 卵巢囊肿', en: 'Gynecology tumors / fibroids / ovarian cysts' },
    short: {
      zh: '妇科影像异常，担心恶变、生育影响或手术方式。',
      en: 'Gynecological imaging abnormality with concern about malignancy, fertility, or surgical approach.'
    },
    suitable: {
      zh: ['有超声或 MRI', '涉及保留生育功能或微创手术选择', '需要妇瘤或妇科微创二诊'],
      en: ['Ultrasound or MRI available', 'Fertility preservation or minimally invasive surgery being considered', 'Needs gynecology or gynecologic oncology review']
    },
    docs: [
      { zh: '妇科超声 / MRI', en: 'Gynecology ultrasound / MRI' },
      { zh: '肿瘤标志物', en: 'Tumor markers' },
      { zh: '宫腔镜 / 病理，如有', en: 'Hysteroscopy / pathology if available' },
      { zh: '生育计划说明', en: 'Fertility plan note' }
    ],
    next: {
      zh: '先整理影像和生育诉求，再匹配妇科方向。',
      en: 'Organize imaging and fertility priorities before specialist matching.'
    }
  },
  {
    id: 'cardio',
    icon: 'heart-pulse',
    priority: 'B',
    tone: 'marble',
    name: { zh: '心血管二诊 / 支架 / 搭桥', en: 'Cardiology second opinion / stent / bypass' },
    short: {
      zh: '造影或 CTA 后不确定支架、搭桥、药物治疗选择。',
      en: 'After angiography or CTA, unsure about stent, bypass, or medical therapy choices.'
    },
    suitable: {
      zh: ['已有冠脉 CTA 或造影', '本地建议支架或搭桥', '希望复核是否必要和可选路径'],
      en: ['Coronary CTA or angiography available', 'Local doctor suggested stent or bypass', 'Needs review of necessity and alternatives']
    },
    docs: [
      { zh: '冠脉 CTA / 造影资料', en: 'Coronary CTA / angiography' },
      { zh: '心电图和心超', en: 'ECG and echocardiogram' },
      { zh: '既往用药', en: 'Current and prior medications' },
      { zh: '症状和运动耐量', en: 'Symptoms and exercise tolerance' }
    ],
    next: {
      zh: '稳定择期问题可做二诊；急性胸痛应立即本地急诊。',
      en: 'Stable elective cases can be reviewed; acute chest pain requires local emergency care.'
    }
  },
  {
    id: 'eye',
    icon: 'eye',
    priority: 'B',
    tone: 'marble',
    name: { zh: '复杂眼科 / 眼底与眼肿瘤', en: 'Complex ophthalmology / retina and ocular tumors' },
    short: {
      zh: '普通白内障不主推；复杂眼底、眼肿瘤或疑难眼科可先做资料初评。',
      en: 'Routine cataract is not a focus; complex retina, ocular tumors, or difficult ophthalmology cases can be screened first.'
    },
    suitable: {
      zh: ['已有眼底照片、OCT 或影像', '本地方案不清楚或复杂', '希望确认是否值得来华专科评估'],
      en: ['Fundus photos, OCT, or imaging available', 'Local plan is unclear or complex', 'Needs clarity on China specialist review value']
    },
    docs: [
      { zh: '眼科检查报告', en: 'Ophthalmology report' },
      { zh: 'OCT / 眼底照片', en: 'OCT / fundus photos' },
      { zh: '影像或病理，如有', en: 'Imaging or pathology if available' },
      { zh: '既往治疗记录', en: 'Prior treatment record' }
    ],
    next: {
      zh: '先筛选是否属于复杂眼科，再决定是否进入专科二诊。',
      en: 'First screen whether the case is complex ophthalmology, then decide specialist review.'
    }
  },
  {
    id: 'pancreatic_biliary',
    icon: 'circle-dot',
    priority: 'B',
    tone: 'marble',
    name: { zh: '胰腺 / 胆道 / 复杂消化道肿瘤', en: 'Pancreatic, biliary, or complex GI tumors' },
    short: {
      zh: '胰腺、胆道或复杂消化道肿瘤路径复杂，首期只接资料完整、高意向客户。',
      en: 'Pancreatic, biliary, or complex GI tumors are high-complexity; v0.1 accepts complete-record, high-intent cases only.'
    },
    suitable: {
      zh: ['已有增强 CT/MRI 和病理', '本地方案复杂或分歧明显', '能理解首期只做谨慎二诊筛选'],
      en: ['Enhanced CT/MRI and pathology available', 'Local plan is complex or divergent', 'Understands v0.1 only offers cautious second-opinion screening']
    },
    docs: [
      { zh: '增强 CT / MRI', en: 'Enhanced CT / MRI' },
      { zh: '病理报告，如有', en: 'Pathology report if available' },
      { zh: '肿瘤标志物', en: 'Tumor markers' },
      { zh: '既往治疗记录', en: 'Prior treatment record' }
    ],
    next: {
      zh: '只建议资料完整者先做二诊筛选，不公开承诺来华治疗。',
      en: 'Only complete-record cases should start with second-opinion screening; no public promise of China treatment.'
    }
  }
];

const FOCUS_CONDITION_IDS = ['lung', 'thyroid', 'breast', 'colorectal', 'stomach'];
const SUPPORT_CONDITION_IDS = ['liver', 'nasopharyngeal', 'prostate', 'gyne', 'kidney_stone', 'knee', 'sports', 'eye', 'cardio', 'pancreatic_biliary'];

const SERVICES = [
  {
    id: 'second-opinion',
    icon: 'stethoscope',
    name: { zh: '中国专家二诊评估服务', en: 'China specialist second opinion service' },
    price: { zh: '550 USD 起', en: 'From 550 USD' },
    description: {
      zh: '适合希望先获得中国三甲专家二次诊疗意见，并判断是否需要来中国进一步就医的用户。',
      en: 'For users who want China tertiary-hospital specialist input before deciding whether further China care is needed.'
    },
    deliverables: {
      zh: ['病例资料初步整理', '中文病例摘要', '关键问题清单', '中国专家二诊评估 1 次', '来华可行性判断和资料补充建议'],
      en: ['Initial record organization', 'Chinese medical case summary', 'Key-question list', 'One China specialist second-opinion review', 'China-travel feasibility review and record-supplement suggestions']
    },
    boundary: {
      zh: '不承诺医院预约、床位、手术安排或治疗效果。',
      en: 'No promise of hospital appointment, bed, surgery arrangement, or outcome.'
    }
  },
  {
    id: 'full-service',
    icon: 'hospital',
    name: { zh: '中国就医全流程服务', en: 'End-to-end China care service' },
    price: { zh: '面议', en: 'By consultation' },
    description: {
      zh: '适合已明确来华就医需求，需要医院预约、专家协调、到院陪同、检查住院衔接、保险沟通和诊后资料整理的用户。',
      en: 'For users with clear China care needs who require appointment coordination, specialist communication, on-site accompaniment, testing/admission linkage, insurance communication, and post-visit record organization.'
    },
    deliverables: {
      zh: ['病例整理与医学翻译', '最多 2 次中国专家二诊评估', '最多 3 个医院 / 科室方向匹配', '最多 3 次专家门诊预约协调尝试', '保险直付 / 预授权沟通协助', '最多 3 个就医日到院双语陪同', '诊后资料整理'],
      en: ['Case organization and medical translation', 'Up to two China specialist second-opinion reviews', 'Up to three hospital / department directions', 'Up to three specialist outpatient appointment coordination attempts', 'Insurance direct-billing / pre-authorization communication support', 'Up to three bilingual on-site accompaniment days', 'Post-visit record organization']
    },
    boundary: {
      zh: '不承诺具体医院最终接诊、专家号源、床位安排、手术排期、保险批准结果或治疗效果。',
      en: 'No promise of final hospital acceptance, specialist appointment slots, bed arrangements, surgery scheduling, insurance approval, or treatment outcomes.'
    }
  }
];

const COUNTRIES = [
  'Malaysia',
  'Singapore',
  'Indonesia',
  'Thailand',
  'Philippines',
  'Vietnam',
  'Brunei',
  'Cambodia',
  'China',
  'Hong Kong',
  'Macau',
  'Other'
];

const SAMPLE_LEADS = [
  {
    id: 'HMD-2604-001',
    createdAt: '2026-04-30 09:12',
    name: 'Ms. Lim',
    country: 'Malaysia',
    city: 'Kuala Lumpur',
    language: '中文',
    conditionId: 'lung',
    hasRecords: 'complete',
    timeframe: '1-3 months',
    acceptsPaid: 'yes',
    score: 86,
    tier: 'High',
    status: 'Triage',
    nextAction: 'Second opinion'
  },
  {
    id: 'HMD-2604-002',
    createdAt: '2026-04-30 09:25',
    name: 'Mr. Tan',
    country: 'Singapore',
    city: 'Singapore',
    language: 'English',
    conditionId: 'colorectal',
    hasRecords: 'partial',
    timeframe: 'Unsure',
    acceptsPaid: 'maybe',
    score: 62,
    tier: 'Medium',
    status: 'New',
    nextAction: 'Pathway consult'
  },
  {
    id: 'HMD-2604-003',
    createdAt: '2026-04-30 09:40',
    name: 'Mrs. Ong',
    country: 'Indonesia',
    city: 'Jakarta',
    language: '中文',
    conditionId: 'breast',
    hasRecords: 'complete',
    timeframe: 'Within 1 month',
    acceptsPaid: 'yes',
    score: 91,
    tier: 'High',
    status: 'Paid',
    nextAction: 'Specialist review'
  }
];

const DOCTOR_PROFILES = [
  {
    id: 'doc-thoracic-pumch-demo',
    isPublished: true,
    accountStatus: 'Demo',
    createdAt: '2026-04-30 14:36',
    status: { zh: '模拟档案', en: 'Demo profile' },
    source: { zh: '运营录入', en: 'Entered by ops' },
    name: { zh: '陈谨川', en: 'Jinchuan Chen' },
    displayName: { zh: '陈谨川 主任医师（演示）', en: 'Dr. Jinchuan Chen (Demo)' },
    hospital: { zh: '北京协和医院（模拟占位）', en: 'Peking Union Medical College Hospital (demo placeholder)' },
    department: { zh: '胸外科', en: 'Thoracic Surgery' },
    title: { zh: '主任医师 / 教授级专家人设', en: 'Chief physician / senior specialist persona' },
    location: { zh: '中国 · 北京', en: 'Beijing, China' },
    languages: { zh: ['中文', '英文资料可读'], en: ['Chinese', 'English records readable'] },
    focus: {
      zh: ['肺结节', '早期肺癌', '胸腔镜微创手术评估', '肺部磨玻璃结节路径判断'],
      en: ['Lung nodules', 'Early lung cancer', 'VATS pathway review', 'Ground-glass nodule assessment']
    },
    suitableCases: {
      zh: [
        '已有薄层 CT 报告和 DICOM 原片的肺结节客户',
        '本地医生建议随访、穿刺或手术，但家庭仍需二诊判断',
        '疑似早期肺癌或磨玻璃结节，需要判断是否适合来华面诊'
      ],
      en: [
        'Lung nodule cases with thin-slice CT report and DICOM images',
        'Families needing second-opinion clarity after local follow-up, biopsy, or surgery advice',
        'Suspected early lung cancer or ground-glass nodules considering China consultation'
      ]
    },
    caseRequirements: {
      zh: ['胸部 CT 报告', 'DICOM 原片', '既往 CT 对比', '本地医生建议', '吸烟史和家族史'],
      en: ['Chest CT report', 'DICOM images', 'Prior CT comparison', 'Local doctor recommendation', 'Smoking and family history']
    },
    reviewScope: {
      zh: ['二诊预评估', '资料缺口提示', '来华门诊必要性判断', '手术路径可行性初步意见'],
      en: ['Second-opinion pre-assessment', 'Record-gap notes', 'China outpatient necessity review', 'Initial surgery-pathway feasibility opinion']
    },
    notAccepted: {
      zh: ['急性胸痛、呼吸困难等急诊情况', '无 CT 影像和报告的空泛咨询', '要求保证专家、床位、手术日期或疗效的需求'],
      en: ['Acute chest pain, dyspnea, or emergency symptoms', 'Unstructured consultation without CT records', 'Requests for guaranteed doctor, bed, surgery date, or outcome']
    },
    accountAccess: {
      zh: ['查看运营整理后的匿名病例包', '查看关键影像和资料缺口', '填写二诊预评估反馈', '不直接获取客户联系方式'],
      en: ['View ops-prepared anonymized case packages', 'Review key imaging and record gaps', 'Submit pre-assessment feedback', 'No direct access to client contact details']
    },
    availability: { zh: '每周 3-5 个病例包预评估名额（模拟）', en: '3-5 case-package pre-assessment slots per week (demo)' },
    note: {
      zh: '此档案为产品演示用模拟资料，不代表真实医生、真实任职信息或真实合作关系。后续应由运营录入真实授权资料后替换。',
      en: 'This is simulated product-demo data. It does not represent a real doctor, appointment, affiliation, or partnership. Replace it with authorized real profile data later.'
    }
  }
];

const RISK_COPY = {
  zh: [
    '华医畅提供的是医疗路径协调、资料整理、专家意见协调和来华就医支持服务。',
    '华医畅不替代医院、医生或线下面诊，不提供最终诊断或治疗决定。',
    '华医畅不承诺疗效、不保证某位专家、不保证床位、手术时间或治疗结果。',
    '医疗费用由客户直接向医院或医疗机构支付，华医畅只收取服务费。',
    '急危重症、急性胸痛、脑卒中、创伤、高热寒战等情况，应立即在当地急诊处理。'
  ],
  en: [
    'HuaMed provides care pathway coordination, medical record organization, specialist opinion coordination, and China visit support.',
    'HuaMed does not replace hospitals, physicians, or in-person consultations, and does not make final diagnosis or treatment decisions.',
    'HuaMed does not guarantee outcomes, a specific doctor, hospital bed, surgery date, or treatment result.',
    'Medical fees are paid directly by clients to hospitals or medical institutions. HuaMed charges service fees only.',
    'Emergency symptoms such as acute chest pain, stroke signs, trauma, high fever, or chills should be handled immediately through local emergency care.'
  ]
};

Object.assign(window, { UI, CONDITIONS, FOCUS_CONDITION_IDS, SUPPORT_CONDITION_IDS, SERVICES, COUNTRIES, SAMPLE_LEADS, DOCTOR_PROFILES, RISK_COPY });
