/* 苓简 · 桌面端适配（≥1200px 生效，手机/平板不受影响） */
@media (min-width:1200px){
  html{font-size:16px;}
  body{font-size:15.5px;line-height:1.65;}
  /* 页面宽度与居中 */
  .jf-wrap,.wrap{max-width:1120px !important;margin-left:auto !important;margin-right:auto !important;padding:30px 24px 70px !important;}
  .jf-card{padding:20px 22px !important;border-radius:14px !important;}
  .jf-card h3{font-size:16.5px !important;}
  .jf-row{padding:15px 0 !important;font-size:15px !important;}
  /* 通用控件放大（桌面鼠标点击更舒适） */
  button,.btn,.jf-btn,input[type=button],input[type=submit],select{min-height:46px !important;font-size:15px !important;padding:10px 16px !important;border-radius:10px !important;}
  a.jf-btn{display:flex;align-items:center;justify-content:center;}
  input,textarea,select{font-size:15px !important;padding:10px 12px !important;}
  textarea{min-height:120px;}
  a{font-size:15px;}
  /* 首页 */
  .jfp-home #jfTop.container{max-width:1280px !important;}
  .jfp-home input,.jfp-home select{height:46px !important;}
  .jfp-home .symptom-row select{height:44px !important;font-size:14px !important;padding:6px 10px !important;}
  .jfp-home .jfbtn{min-height:46px !important;font-size:15px !important;}
  /* 学习中心 */
  .jfp-learn .container{max-width:1120px !important;margin-left:auto !important;margin-right:auto !important;padding:24px 24px 70px !important;}
  .jfp-learn .wrap{width:auto !important;max-width:1120px !important;margin-left:auto !important;margin-right:auto !important;}
  .jfp-learn .top-in{width:auto !important;max-width:1120px !important;margin-left:auto !important;margin-right:auto !important;}
  .jfp-learn .opts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr)) !important;}
  .jfp-learn .opt{min-height:50px !important;font-size:15px !important;padding:10px 16px !important;}
  /* 医案检索 */
  .jfp-cases .container,.jfp-cases .wrap{width:auto !important;max-width:1200px !important;margin-left:auto !important;margin-right:auto !important;padding-top:78px !important;}
  .jfp-cases input,.jfp-cases select,.jfp-cases button{height:48px !important;}
  /* 我的：两列卡片 */
  .jfp-my .jf-wrap{display:grid !important;grid-template-columns:1fr 1fr;gap:18px 20px;max-width:1120px !important;}
  .jfp-my .jf-wrap > h1{grid-column:1/-1;margin-bottom:0 !important;}
  .jfp-my .jf-card{margin-bottom:0 !important;}
  /* 下载/反馈/关于/协议 */
  .jfp-simple .jf-wrap,.jfp-simple .wrap{max-width:920px !important;}
  /* 机构入口 */
  .jfp-org .box{width:480px !important;padding:30px 28px !important;}
  .jfp-org button{min-height:48px !important;font-size:15px !important;}
}
@media (min-width:1600px){
  body{font-size:16px;}
  .jf-wrap,.wrap{max-width:1200px !important;}
  button,.btn,.jf-btn{min-height:50px !important;font-size:15.5px !important;}
  .jfp-my .jf-wrap{max-width:1200px !important;}
  .jfp-learn .container{max-width:1200px !important;}
  .jfp-learn .wrap,.jfp-learn .top-in{width:1360px !important;max-width:calc(100vw - 48px) !important;}
  .jfp-cases .wrap{width:1360px !important;max-width:calc(100vw - 48px) !important;}
}
/* 防止桌面端概览/说明块过宽 */
@media (min-width:1200px){
  .jf-hint,.jf-tip,.tip{line-height:1.8;}
}

/* 桌面端：脉象/症状行标签与选项对齐，避免标签被挤到边缘或与选项重叠 */
@media (min-width:1200px){
  .jf-tp-she,.jf-tp-mai{display:flex !important;align-items:center !important;flex-wrap:wrap !important;gap:10px !important;}
  .jf-tp-she .jf-tp-label,.jf-tp-mai .jf-tp-label{display:inline-block !important;margin:0 !important;white-space:nowrap !important;min-width:52px;}
  .jf-tp-she .jf-tp-grid,.jf-tp-mai .jf-tp-grid{justify-content:flex-start !important;flex-wrap:wrap !important;gap:8px !important;}
  .jf-tp-grid .jf-guide-chip{font-size:14px !important;padding:7px 14px !important;min-width:44px !important;}
  .jf-chip-row{flex-wrap:wrap !important;align-items:flex-start !important;gap:8px 10px !important;}
  .jf-chip-row > span:first-child{flex:0 0 auto !important;width:auto !important;min-width:104px !important;font-size:14.5px !important;line-height:38px !important;}
  .jf-chip-row > .jf-guide-chip{font-size:14px !important;padding:8px 14px !important;min-height:38px !important;}
}

/* 症状/脉象标签统一左对齐与行距（所有宽度，避免饮食二便这类行单独换行造成空隙） */
.jf-chip-row{display:flex !important;flex-wrap:wrap !important;align-items:center !important;gap:8px 10px !important;padding:5px 0 !important;min-height:44px !important;}
.jf-chip-row > span:first-child{flex:0 0 auto !important;width:auto !important;min-width:96px !important;text-align:left !important;line-height:1.5 !important;margin:0 !important;font-size:15px !important;}
.jf-chip-row > .jf-guide-chip{font-size:14px !important;padding:7px 13px !important;min-height:36px !important;}
.jf-tp-she,.jf-tp-mai{display:flex !important;align-items:center !important;flex-wrap:wrap !important;gap:10px !important;}
.jf-tp-she .jf-tp-label,.jf-tp-mai .jf-tp-label{display:inline-block !important;margin:0 !important;white-space:nowrap !important;min-width:52px !important;text-align:left !important;}
.jf-tp-she .jf-tp-grid,.jf-tp-mai .jf-tp-grid{justify-content:flex-start !important;flex-wrap:wrap !important;gap:8px !important;}
.jf-tp-grid .jf-guide-chip{font-size:14px !important;padding:7px 14px !important;min-width:44px !important;}
.jf-chip-row.jf-wrap{margin-left:0 !important;margin-right:0 !important;padding-left:0 !important;padding-right:0 !important;width:auto !important;}

/* 舌象/脉象选项统一尺寸（桌面端） */
@media (min-width:900px){
  .jf-tp-she .jf-guide-chip,.jf-tp-mai .jf-guide-chip{width:52px !important;min-width:52px !important;height:38px !important;min-height:38px !important;padding:0 !important;font-size:14px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;line-height:1 !important;border-radius:9px !important;}
  .jf-tp-she .jf-tp-grid,.jf-tp-mai .jf-tp-grid{gap:8px !important;}
  .jf-chip-row .jf-guide-chip{height:36px !important;min-height:36px !important;padding:0 14px !important;font-size:14px !important;display:inline-flex !important;align-items:center !important;border-radius:9px !important;}
}

@media (min-width:900px){
  #jfTonguePulseGuide .jf-tp-she .jf-guide-chip,
  #jfTonguePulseGuide .jf-tp-mai .jf-guide-chip{width:52px !important;min-width:52px !important;height:38px !important;min-height:38px !important;padding:0 !important;font-size:14px !important;line-height:1 !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;border-radius:9px !important;}
}

/* 症状选项统一字号/内边距（覆盖页面内后写的 11px 规则） */
@media (min-width:900px){
  #jfSymptomChips .jf-chip-row .jf-guide-chip,
  #jfSymptomChips .jf-chip-row.jf-wrap .jf-guide-chip{font-size:14px !important;padding:0 14px !important;height:36px !important;min-height:36px !important;line-height:1 !important;}
}

/* 症状行：所有宽度统一间距与字号（含饮食二便这行） */
#jfSymptomChips .jf-chip-row.jf-wrap{gap:8px 10px !important;}
#jfSymptomChips .jf-chip-row .jf-guide-chip,
#jfSymptomChips .jf-chip-row.jf-wrap .jf-guide-chip{font-size:14px !important;height:36px !important;min-height:36px !important;padding:0 14px !important;line-height:1 !important;display:inline-flex !important;align-items:center !important;border-radius:9px !important;}

/* 手机/平板（<900px）：保持统一但缩小尺寸并允许换行，避免被截断 */
@media (max-width:899px){
  #jfSymptomChips .jf-chip-row{flex-wrap:wrap !important;overflow:visible !important;}
  #jfSymptomChips .jf-chip-row .jf-guide-chip,
  #jfSymptomChips .jf-chip-row.jf-wrap .jf-guide-chip{font-size:12px !important;height:30px !important;min-height:30px !important;padding:0 10px !important;line-height:1 !important;}
  #jfSymptomChips .jf-chip-row > span:first-child{min-width:80px !important;font-size:13px !important;line-height:30px !important;}
  #jfSymptomChips .jf-chip-row.jf-wrap{gap:6px !important;}
  .jf-tp-she .jf-guide-chip,.jf-tp-mai .jf-guide-chip{width:38px !important;min-width:38px !important;height:34px !important;min-height:34px !important;font-size:12px !important;}
}

/* 症状行：标签绝对定位在左，选项统一从左起排（换行也对齐） */
#jfSymptomChips .jf-chip-row{position:relative !important;padding-left:96px !important;min-height:44px !important;}
#jfSymptomChips .jf-chip-row > span:first-child{position:absolute !important;left:0 !important;top:50% !important;transform:translateY(-50%) !important;width:96px !important;min-width:0 !important;text-align:left !important;line-height:1.4 !important;margin:0 !important;}
@media (max-width:899px){
  #jfSymptomChips .jf-chip-row{padding-left:80px !important;}
  #jfSymptomChips .jf-chip-row > span:first-child{width:80px !important;}
}

/* 手机端：舌象 6 个选项强制一行显示 */
@media (max-width:899px){
  #jfTonguePulseGuide .jf-tp-she,#jfTonguePulseGuide .jf-tp-mai{display:flex !important;align-items:center !important;flex-wrap:nowrap !important;gap:5px !important;width:100% !important;}
  #jfTonguePulseGuide .jf-tp-she .jf-tp-label,#jfTonguePulseGuide .jf-tp-mai .jf-tp-label{display:inline-block !important;flex:0 0 auto !important;min-width:30px !important;margin:0 !important;font-size:13px !important;white-space:nowrap !important;}
  #jfTonguePulseGuide .jf-tp-she .jf-tp-grid,#jfTonguePulseGuide .jf-tp-mai .jf-tp-grid{display:flex !important;flex:1 1 auto !important;flex-wrap:nowrap !important;gap:3px !important;justify-content:flex-start !important;min-width:0 !important;}
  #jfTonguePulseGuide .jf-tp-she .jf-guide-chip,#jfTonguePulseGuide .jf-tp-mai .jf-guide-chip{flex:1 1 0 !important;width:auto !important;min-width:0 !important;height:32px !important;font-size:12.5px !important;padding:0 !important;margin:0 !important;}
}

/* 可访问性：提升浅灰辅助文字对比度 */
#jfTop [style*="color:#7b8794"],#jfTop [style*="color: rgb(154, 165, 174)"],#jfTop [style*="color:#9aa5ae"],#jfTop [style*="color:#8a94a0"],#jfTop [style*="color:#999"],#jfTop [style*="color:#7a8b93"],#jfTop .jf-tp-tip,#jfTop .jf-hint{color:#5a6a62 !important;}
#jfTop [style*="color:#e65100"]{color:#bf360c !important;}
#jfTop [style*="color:#5b7a96"]{color:#46617a !important;}

/* 可访问性：全站辅助文字统一加深（对比度 ≥4.5） */
body .jf-hint, body .hint, body .sub, body .tip, body .os, body .muted, body small,
body [style*="color:#7b8794"], body [style*="color:#8a9791"], body [style*="color:#8a94a0"],
body [style*="color:#9aa5ae"], body [style*="color:#999"], body [style*="color:#7a8b93"],
body [style*="color:#8a94a0"]{color:#55655c !important;}

/* 可访问性：兜底覆盖所有浅灰内联色（含带空格写法） */
body [style*="7b8794"],body [style*="8a9791"],body [style*="8a94a0"],body [style*="9aa5ae"],body [style*="7a8b93"],body [style*="rgb(123, 135, 148)"],body [style*="rgb(138, 151, 145)"],body [style*="rgb(154, 165, 174)"],
body #jfLegalFooter,body #jfSiteFooter,body #jfUniFooterInline,body .jfLegalFooter{color:#3f4f47 !important;}

body .note,body [style*="6b7785"],body [style*="808c85"]{color:#3f4f47 !important;}
body small{color:#2f3f37 !important;}

/* 最后一批对比度修正 */
body [style*="e65100"]{color:#bf360c !important;}
body [style*="d9534f"]{color:#a8362f !important;}
body [style*="b0bac2"]{color:#3f4f47 !important;}
body [style*="138, 148, 160"]{color:#3f4f47 !important;}
body [data-jf-wm]{color:#3f4f47 !important;}
.jfp-learn button.on small{color:#e8f4ee !important;}
.jfp-learn .qn,.jfp-learn .meta,.jfp-learn .tag{color:#4a5a52 !important;}

body [style*="230, 81, 0"],body [style*="77837d"]{color:#a8362f !important;}

.jfp-learn button small{color:#2f3f37 !important;}
.jfp-learn button.on small{color:#e8f4ee !important;}
