/* ============================================================
   预约挂号弹窗（可独立引入）
   路径：/cssnew/guahao-popup.css
   配合：/jsnew/guahao-popup.js

   类名前缀 yg-，与站点既有样式完全隔离
   任何页面只需两行引用即可使用：
     <link rel="stylesheet" href="/cssnew/guahao-popup.css?v=1">
     <script src="/jsnew/guahao-popup.js?v=1"></script>
     <a href="javascript:;" onclick="YBGua.open({...})">预约</a>
   ============================================================ */

.yg-mask {
    --yg-green: #c59b73;      /* 主色：品牌金 */
    --yg-green-d: #96703f;    /* 深一档，用于文字/选中 */
    --yg-green-l: #fbf3e8;    /* 浅底，用于选中/图标底 */
    --yg-green-bd: #ecdbc5;   /* 浅边框 */
    --yg-txt: #1f2329;
    --yg-sub: #8b9199;
    --yg-line: #f1f3f5;
    --yg-red: #a2641f;        /* 警示色：琥珀棕，跟随金色主题 */

    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, .5);
    opacity: 0;
    transition: opacity .2s;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
    color: var(--yg-txt);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

.yg-mask.on { opacity: 1; }

.yg-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 500px;
    max-width: calc(100vw - 32px);
    max-height: 90vh;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transform: translateY(12px) scale(.98);
    transition: transform .22s;
}

.yg-mask.on .yg-sheet { transform: none; }

/* ---------- 头部 ---------- */
.yg-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 10px;
    border-bottom: 1px solid var(--yg-line);
}

.yg-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--yg-txt);
    line-height: 1.3;
}

.yg-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9aa0a8;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

.yg-close:active { color: #8b9199; }

/* ---------- 主体滚动区 ---------- */
.yg-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 18px 14px;
}

/* ---------- 预约信息条：一句话说清「正在预约谁」 ---------- */
.yg-info {
    padding: 12px 14px 13px;
    border: 1px solid var(--yg-green-bd);
    border-radius: 13px;
    background: linear-gradient(160deg, #fdf6ee 0%, #fdfaf5 62%, #fff 100%);
}

/* 医生行与机构/日期行：强制同一行，放不下由 JS 逐档缩字号 */
.yg-info-top {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 8px;
}

.yg-info-t {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    gap: 5px;
    line-height: 1.4;
}

.yg-info-t .lb {
    font-size: 13.5px;
    color: #8a6a45;
}

.yg-info-t .nm {
    font-size: 18px;
    font-weight: 600;
    color: var(--yg-green-d);
    letter-spacing: .5px;
}

.yg-info-t .sf {
    font-size: 13.5px;
    color: #8a6a45;
}

.yg-info-m {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    margin-top: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    white-space: nowrap;
}

/* 缩到最小字号仍放不下（机构名超长）：省略机构名尾部，日期完整保留 */
.yg-info-m.is-clip [data-info="org"] {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yg-info-m.is-clip [data-info="date"] { flex: 0 0 auto; }

.yg-info-m .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbbba6;
}

/* 时段切换：始终一行，放不下时由 JS 按 --yg-pd-b / --yg-pd-i 逐档缩小 */
.yg-periods {
    --yg-pd-b: 14px;   /* 上午/下午/晚上 */
    --yg-pd-i: 13px;   /* 时间 */
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

/* 字号已压到最小仍放不下时，才允许横向滑动并右缘渐隐提示 */
.yg-periods.is-scroll {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 16px), rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to right, #000 calc(100% - 16px), rgba(0, 0, 0, 0));
}

.yg-periods::-webkit-scrollbar { display: none; }

.yg-pd {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
    white-space: nowrap;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    background: #fff;
    color: #5b6068;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

/* 主标签（上午/下午/晚上）与时间分两级：主标签保持正常字号，时间略小一号 */
.yg-pd b { font-weight: 400; font-size: var(--yg-pd-b); }
.yg-pd i { font-style: normal; font-size: var(--yg-pd-i); color: #8b9199; }

.yg-pd.on {
    border-color: var(--yg-green);
    background: var(--yg-green-l);
    color: var(--yg-green-d);
}

.yg-pd.on b { font-weight: 500; }
.yg-pd.on i { color: var(--yg-green-d); opacity: .82; }

/* 门店地址：信息卡内最后一行，虚线上分隔，长地址允许两行换行 */
.yg-addr {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed var(--yg-green-bd);
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b6b6b;
    text-align: left;
}

.yg-addr .ic {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 18.75px;          /* 与首行 12.5px×1.5 的行高对齐，图标不顶到字上 */
    color: var(--yg-green);
}

.yg-addr .ic svg { display: block; }

.yg-addr span {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-all;
}

/* ---------- 分区标题 ---------- */
.yg-sec { margin-top: 18px; }

.yg-sec-h {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.yg-sec-h em {
    font-style: normal;
    font-size: 12.5px;
    font-weight: 400;
    color: #a8804a;
}

/* ---------- 口腔问题卡片 ---------- */
.yg-issues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 8px;
}

.yg-is {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 8px;
    row-gap: 4px;
    align-items: center;
    padding: 8px 10px 9px;
    border: 1px solid #eceff2;
    border-radius: 10px;
    background: #fafbfc;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.yg-is:active { background: #f4f6f8; }

.yg-is.on {
    border-color: var(--yg-green);
    background: #fdf7ef;
    box-shadow: 0 0 0 2px rgba(197, 155, 115, .20);
}

/* 第 7 项「其他问题」占整行 */
.yg-issues .yg-is:last-child { grid-column: 1 / -1; }

.yg-is .ic {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: contain;
}

.yg-is b {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--yg-txt);
    line-height: 1.35;
}

.yg-is span {
    grid-column: 1 / -1;
    grid-row: 2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 11.5px;
    line-height: 1.45;
    color: #9aa0a6;
}

.yg-issues.is-err .yg-is { border-color: #e3cbab; }
.yg-issues.is-err .yg-is:hover { border-color: #c59b73; }

/* 口腔问题未选：网格下方的弱提醒框（浅金底 + 描边 + 图标，醒目但不刺眼） */
.yg-is-tip {
    display: none;
    margin-top: 10px;
    padding: 9px 12px;
    background: var(--yg-green-l, #fbf3e8);
    border: 1px solid var(--yg-green-bd, #ecdbc5);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #a2641f;
}

.yg-is-tip.on {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: ygIsTipIn .18s ease-out;
}

.yg-is-tip i {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #c59b73;
    color: #fffdf8;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 16px;
}

@keyframes ygIsTipIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 预约人信息：姓名 + 性别同行，手机号整行 ---------- */
.yg-row-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
}

.yg-row-name .yg-in { flex: 1 1 auto; min-width: 0; }

.yg-in {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    background: #fff;
    color: var(--yg-txt);
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.yg-in-full { margin-top: 10px; }

.yg-in::placeholder { color: #b3b9c0; }

.yg-in:focus {
    outline: 0;
    border-color: var(--yg-green);
    box-shadow: 0 0 0 3px rgba(197, 155, 115, .20);
}

.yg-in.is-err {
    border-color: #d69a54;
    background: #fdf5e9;
}

/* 性别（无文字标签，与姓名输入框同行） */
.yg-gender {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.yg-g {
    min-width: 54px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
}

.yg-g.on {
    border-color: var(--yg-green);
    background: var(--yg-green-l);
    color: var(--yg-green-d);
    font-weight: 500;
}

.yg-gender.is-err .yg-g { border-color: #dfae74; background: #fdf6ec; }

/* ---------- 电话准确性提示 ---------- */
.yg-warn {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 11px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #fdf3e4;
    color: #9a5f1e;
    font-size: 13px;
    line-height: 1.5;
}

.yg-warn i {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    border-radius: 50%;
    background: #c08447;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

/* ---------- 同行人 ---------- */
.yg-comp { margin-top: 12px; }

.yg-comp-tg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed #cfd6dd;
    border-radius: 10px;
    background: #fafbfc;
    color: var(--yg-txt);
    font-family: inherit;
    cursor: pointer;
}

.yg-comp-tg .plus {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 1.5px solid #9aa3ad;
    border-radius: 50%;
    color: #8a939d;
    font-size: 17px;
    font-style: normal;
    line-height: 17px;
    text-align: center;
}

.yg-comp-tg .t {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.yg-comp-tg b {
    font-size: 14px;
    font-weight: 600;
}

.yg-comp-tg em {
    font-style: normal;
    font-size: 12px;
    color: #9aa0a6;
}

.yg-comp-tg.is-full {
    opacity: .55;
    cursor: not-allowed;
}

.yg-comp-form {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #eef1f4;
    border-radius: 10px;
    background: #fafbfc;
}

.yg-comp-form.on { display: block; }

.yg-comp-row {
    display: flex;
    gap: 8px;
}

.yg-comp-row .yg-in {
    height: 42px;
    font-size: 14px;
}

.yg-comp-row .yg-in:first-child { flex: 0 0 38%; }
.yg-comp-row .yg-in:last-child { flex: 1 1 auto; min-width: 0; }

.yg-comp-ok {
    width: 100%;
    height: 40px;
    margin-top: 8px;
    border: 0;
    border-radius: 9px;
    background: var(--yg-green);
    color: #4a3418;
    font-size: 14.5px;
    font-family: inherit;
    cursor: pointer;
}

.yg-comp-ok:active { filter: brightness(.96); }

.yg-comp-list { margin-top: 9px; }

.yg-comp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 1px solid #eddfcb;
    border-radius: 9px;
    background: #fdfaf5;
    font-size: 13.5px;
    line-height: 1.4;
}

.yg-comp-item + .yg-comp-item { margin-top: 6px; }

.yg-comp-item .n {
    font-weight: 600;
    color: var(--yg-txt);
}

.yg-comp-item .p { color: #6b7280; }

.yg-comp-item .del {
    margin-left: auto;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e9eef2;
    color: #7a838d;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
}

/* ---------- 隐私勾选 ---------- */
.yg-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 6px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}

.yg-agree input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 3px 0 0;
    accent-color: var(--yg-green);
    cursor: pointer;
}

.yg-agree a {
    color: var(--yg-green-d);
    text-decoration: underline;
    cursor: pointer;
}

.yg-agree.is-err { color: var(--yg-red); }
.yg-agree.is-err a { color: var(--yg-red); }

/* ---------- 错误提示 ---------- */
.yg-tip {
    display: none;
    margin: 10px 0 0;
    padding: 7px 10px;
    border-radius: 8px;
    background: #fdf3e4;
    color: var(--yg-red);
    font-size: 13px;
    line-height: 1.5;
}

.yg-tip.on { display: block; }

/* ---------- 底部提交 ---------- */
.yg-foot {
    flex: 0 0 auto;
    padding: 10px 18px 12px;
    border-top: 1px solid var(--yg-line);
    background: #fff;
    box-shadow: 0 -6px 14px rgba(17, 24, 39, .04);
}

/* 底部固定区内的间距（警示条 / 勾选 / 提示） */
.yg-foot .yg-tip { margin: 0 0 8px; }
.yg-foot .yg-agree { margin: 0 0 10px; }


.yg-submit {
    display: block;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #d8b48d 0%, #c59b73 52%, #b0844d 100%);
    color: #4a3418;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.yg-submit:active { filter: brightness(.96); }

.yg-submit:disabled {
    opacity: .62;
    cursor: default;
}

/* ---------- 3 天内重复提交提示（按钮下方一行小字） ---------- */
.yg-lock {
    display: none;
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #8a8a8a;
    text-align: center;
}

.yg-lock.on { display: block; }

/* ---------- 成功态 ---------- */
.yg-ok {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 26px;
    background: #fff;
    text-align: center;
}

.yg-ok.on { display: flex; }

/* 成功态：隐藏表单与头部，弹窗按内容收缩，避免大片留白 */
.yg-sheet.is-ok { height: auto; max-height: none; }
.yg-sheet.is-ok .yg-head,
.yg-sheet.is-ok .yg-body,
.yg-sheet.is-ok .yg-foot,
.yg-sheet.is-ok .yg-priv { display: none; }
.yg-sheet.is-ok .yg-ok {
    position: static;
    padding: 42px 26px 34px;
}

.yg-ok-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--yg-green-l);
    color: var(--yg-green-d);
}

.yg-ok h4 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--yg-txt);
    line-height: 1.35;
}

.yg-ok p {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #5b636e;
}

.yg-ok p b { color: var(--yg-green-d); font-weight: 600; }

.yg-ok p.lead { max-width: 300px; }

/* 成功页的预约摘要 */
.yg-ok-info {
    width: 100%;
    max-width: 320px;
    margin: 14px 0 24px;
    padding: 12px 14px;
    border: 1px solid #efe2ce;
    border-radius: 11px;
    background: #fdfaf5;
    color: #3f4550;
    font-size: 13.5px;
    line-height: 1.75;
    text-align: center;
}

.yg-ok-info span { display: block; }

.yg-ok-btn {
    min-width: 168px;
    height: 46px;
    margin-top: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #d8b48d 0%, #c59b73 52%, #b0844d 100%);
    color: #4a3418;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

.yg-ok-btn:active { filter: brightness(.96); }

/* ---------- 隐私协议二级层 ---------- */
.yg-priv {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: none;
    flex-direction: column;
    background: #fff;
}

.yg-priv.on { display: flex; }

.yg-priv-h {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 11px;
    border-bottom: 1px solid var(--yg-line);
}

.yg-priv-h span {
    font-size: 15px;
    font-weight: 600;
}

/* 正文区：内联渲染，可滚动阅读 */
.yg-priv-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px 20px;
    background: #fff;
    color: #3f4550;
    font-size: 13px;
    line-height: 1.78;
    text-align: left;
}

.yg-priv-body .yg-pv-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2329;
    line-height: 1.45;
}

.yg-priv-body .yg-pv-sub {
    margin-top: 3px;
    font-size: 11.5px;
    color: #9aa0a6;
}

.yg-priv-body .yg-pv-lead {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #fdfaf6;
    border-left: 3px solid var(--yg-green);
    color: #4b5563;
    font-size: 12.5px;
    line-height: 1.7;
}

.yg-priv-body h3 {
    position: relative;
    margin: 18px 0 8px;
    padding-left: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2329;
    line-height: 1.5;
}

.yg-priv-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--yg-green);
}

.yg-priv-body p {
    margin: 0 0 8px;
    color: #3f4550;
}

.yg-priv-body ul {
    margin: 0 0 8px 16px;
    padding: 0;
    list-style: disc;
}

.yg-priv-body li {
    margin-bottom: 5px;
    color: #3f4550;
}

.yg-priv-body b {
    font-weight: 600;
    color: #1f2329;
}

.yg-priv-body .yg-pv-foot {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #eef0f3;
    font-size: 11.5px;
    color: #8b9099;
    line-height: 1.85;
}

.yg-priv-f {
    flex: 0 0 auto;
    padding: 10px 18px 12px;
    border-top: 1px solid var(--yg-line);
}

.yg-priv-f .yg-submit { font-size: 15px; }

/* ---------- 移动端：底部弹出 ---------- */
@media (max-width: 640px) {
    .yg-mask { align-items: flex-end; }

    .yg-sheet {
        width: 100%;
        max-width: 100%;
        max-height: 94vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
    }

    .yg-mask.on .yg-sheet { transform: none; }

    .yg-head { padding: 10px 16px 10px; }
    .yg-head h3 { font-size: 17px; }
    .yg-body { padding: 10px 16px 12px; }
    .yg-foot { padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }
    .yg-priv-body { padding: 14px 16px 18px; font-size: 12.8px; }
    .yg-priv-f { padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }

    .yg-info { padding: 10px 10px 11px; }
    .yg-info-t .nm { font-size: 15px; letter-spacing: 0; }
    .yg-info-t .lb, .yg-info-t .sf { font-size: 12.5px; }
    .yg-info-top { column-gap: 10px; }
    .yg-info-m { font-size: 12px; gap: 4px; letter-spacing: -.15px; }
    .yg-periods { gap: 4px; --yg-pd-b: 14px; --yg-pd-i: 12.5px; }
    .yg-pd { height: 32px; padding: 0 5px; gap: 3px; }

    .yg-in { height: 43px; font-size: 14.5px; }
    .yg-in-full { margin-top: 10px; }
    .yg-warn { margin-top: 10px; padding: 8px 10px; font-size: 12.5px; }
    .yg-comp { margin-top: 10px; }
    .yg-comp-tg { padding: 9px 10px; }
    .yg-comp-tg b { font-size: 13.5px; }
    .yg-comp-tg em { font-size: 11.5px; }
    .yg-comp-row .yg-in { height: 41px; font-size: 14px; }
    .yg-sec { margin-top: 12px; }
    .yg-is { padding: 6px 9px 7px; column-gap: 7px; row-gap: 2px; }
    .yg-is .ic { width: 26px; height: 26px; }
    .yg-is b { font-size: 13.5px; }
    .yg-is span { font-size: 11px; line-height: 1.4; }
    .yg-g { min-width: 52px; height: 43px; font-size: 14.5px; padding: 0 10px; }
    .yg-agree { font-size: 12.5px; }
    .yg-foot .yg-agree { margin-bottom: 8px; }
    .yg-submit { height: 46px; font-size: 16px; }
    .yg-ok { padding: 24px 20px; }
    .yg-ok h4 { font-size: 19px; }
    .yg-sheet.is-ok { max-height: none; }
    .yg-sheet.is-ok .yg-ok { padding: 34px 22px 26px; }
}

/* 超窄屏：口腔问题改单列，避免描述被截得只剩半行 */
@media (max-width: 359px) {
    .yg-issues { grid-template-columns: 1fr; }
    .yg-row-name { flex-wrap: wrap; }
    .yg-gender { width: 100%; }
    .yg-g { flex: 1 1 0; }
    .yg-comp-row { flex-wrap: wrap; }
    .yg-comp-row .yg-in:first-child,
    .yg-comp-row .yg-in:last-child { flex: 1 1 100%; }
    .yg-comp-row .yg-in:last-child { margin-top: 8px; }
}
