/*
 * 2026-06-25：基于 MiSans 字重平衡版进行局部精调。
 * 仅调整医生头部、出诊时间说明、星期与排班日期：
 * 姓名/学历/职位使用 Normal 350，职称使用 Regular 400；门店名称保持 Demibold 600；
 * 出诊时间说明与星期使用 Normal 350；日期使用 Semibold 650。其他样式保持不变。
 */
:root {
  --misans-weight-light: 300;
  --misans-weight-normal: 350;
  --misans-weight-regular: 400;
  --misans-weight-medium: 500;
  --misans-weight-semibold: 600;
  --misans-weight-semibold-plus: 650;
}

/* 普通管理界面继续维持当前轻量风格，避免全站突然变粗。 */
html,
body,
input,
select,
textarea,
option,
table,
td,
svg text {
  font-weight: var(--misans-weight-light);
  font-synthesis: none;
}

button,
.button,
label,
.eyebrow,
.status,
.soft-badge,
.audit-result,
.directory-admin-button,
.desktop-export-button,
.day-btn::after {
  font-weight: var(--misans-weight-regular);
}

h1,
h2,
h3,
th,
strong,
.dashboard-stats strong,
.doctor-store-heading h3,
.tile-info strong,
.panel h2,
.admin-card-head h2,
.account-card-head h2,
.inner-panel h3,
.create-user-panel h3,
.audit-table th {
  font-weight: var(--misans-weight-medium);
}

.tile-info span,
.tile-info small,
.doctor-store-heading span,
.dashboard p,
.section-title p,
.hint,
.account-card-head p,
.auth-help,
.audit-table td,
.audit-time,
.audit-ip,
.audit-detail {
  font-weight: var(--misans-weight-light);
}

/* 非标准海报模式保持上一版轻量层级。 */
.name-row h2 {
  font-weight: var(--misans-weight-light);
}

.brand,
.sections h3,
.card-head h2 {
  font-weight: var(--misans-weight-medium);
}

#doctorMeta,
#doctorIntro,
.sections ul,
.card-head p,
.week-row {
  font-weight: var(--misans-weight-light);
}

.legend span {
  font-weight: var(--misans-weight-regular);
}

.pill {
  font-weight: var(--misans-weight-medium);
}

/* 标准医生海报：针对用户参考图做中间档回调。 */
.poster-stage.reference-poster-mode .profile-brand {
  font-weight: var(--misans-weight-medium);
}

.poster-stage.reference-poster-mode .profile-brand span {
  font-weight: var(--misans-weight-regular);
}

/* 医生姓名稍微变细：Regular 400 → Normal 350。 */
.poster-stage.reference-poster-mode .profile-name {
  font-weight: var(--misans-weight-normal);
}

/* “主任 / 院长”等职称稍微变细：Medium 500 → Regular 400。 */
.poster-stage.reference-poster-mode .profile-role,
.poster-stage.reference-poster-mode .profile-role-title {
  font-weight: var(--misans-weight-regular);
}

/* 地区、学历和职位稍微变细；医生授证/荣誉正文保持原来的 Regular 400。 */
.poster-stage.reference-poster-mode .profile-region,
.poster-stage.reference-poster-mode .profile-education,
.poster-stage.reference-poster-mode .profile-education-line,
.poster-stage.reference-poster-mode .profile-position-line {
  font-weight: var(--misans-weight-normal);
}

.poster-stage.reference-poster-mode .profile-item {
  font-weight: var(--misans-weight-regular);
}

/* 蓝色章节标题和门店名使用 Demibold，接近参考海报但不使用 700。 */
.poster-stage.reference-poster-mode .profile-section-title,
.poster-stage.reference-poster-mode .card-head h2 {
  font-weight: var(--misans-weight-semibold);
}

/* 班次标签保持原来的 Medium 500。 */
.poster-stage.reference-poster-mode .pill,
.poster-stage.reference-poster-mode .legend span {
  font-weight: var(--misans-weight-medium);
}

/* 门店名称保持原来的 Demibold 600；仅出诊时间说明和星期稍微变细。 */
.poster-stage.reference-poster-mode .card-head p,
.poster-stage.reference-poster-mode .week-row {
  font-weight: var(--misans-weight-normal);
}

/* 排班日期数字稍微加粗：Demibold 600 → Semibold 650。 */
.poster-stage.reference-poster-mode .mini-calendar.clean .day-btn,
.poster-stage.reference-poster-mode .day-btn,
.poster-stage.reference-poster-mode .pill {
  font-weight: var(--misans-weight-semibold-plus);
}

.day-btn::after,
.mini-head {
  font-weight: var(--misans-weight-regular);
}

/* 2026-06-25 v16.12：医生头部光学对齐与介绍正文灰色。
 * 1) 职称首行底部与医生姓名底部对齐；
 * 2) 姓名左侧蓝色竖线与姓名行盒上下边界同步；
 * 3) “医生授证 / 医生荣誉”正文统一改为 #352a25。
 * 仅修改网页显示样式，排班、图片、字号和其他功能保持不变。
 */
.poster-stage.reference-poster-mode .profile-role {
  top: calc(
    var(--name-y)
    + var(--profile-name-size)
    - var(--profile-meta-size)
    - 0.35cqw
  );
}

.poster-stage.reference-poster-mode .profile-name::before {
  top: 0;
  bottom: 0;
  transform: none;
}

.poster-stage.reference-poster-mode .profile-item {
  color: #352a25;
}

/* 2026-06-25 v16.15：顶部医生与月份控件统一使用“导出高清图片”按钮的 MiSans 字体层级。
 * 仅统一字体家族与字重，不改变控件尺寸、位置、颜色和功能。
 */
.topbar #doctorSelect,
.topbar #doctorSelect option,
.topbar .month-picker-display,
.topbar #monthPicker,
.topbar #monthPicker::-webkit-datetime-edit,
.topbar #monthPicker::-webkit-datetime-edit-fields-wrapper,
.topbar #monthPicker::-webkit-datetime-edit-year-field,
.topbar #monthPicker::-webkit-datetime-edit-month-field,
.topbar #monthPicker::-webkit-datetime-edit-day-field {
  font-family: var(--font-misans) !important;
  font-weight: var(--misans-weight-regular) !important;
  font-style: normal;
  font-synthesis: none;
}

/* 2026-07-01 v24：最终覆盖授证荣誉正文小字颜色。 */
.poster-stage.reference-poster-mode .profile-item,
.sections ul {
  color: #352a25;
}
