@charset "utf-8";
/* =========================================================================
 * 锁价清单 / 我的收藏
 * 独立文件，加载顺序在 print.css 之后：只覆盖需要改的少量样式，
 * 不改 print.css 里任何既有规则，避免影响原有下单逻辑。
 * ======================================================================= */

/* ---------- 1. 三个按钮一排 ---------- */
.summary-tools {
    gap: 6px;
}

.summary-tools button {
    font-size: 13px;
    padding: 0 4px;
    white-space: nowrap;
    letter-spacing: -.2px;
}

/* 收藏报价下单期间：「粘贴报价总结」视觉降级。
   不设 disabled —— 点了要弹解释（为什么不能再粘），拦截逻辑在 print.js。
   清除内容仍然全亮：它是换报价的唯一出口。 */
body.yy-lk-locked-order #pasteSummaryBtn {
    opacity: .5;
    cursor: not-allowed;
}

body.yy-lk-locked-order #pasteSummaryBtn:hover {
    background: #60C0BD;
}

/* 未粘贴报价总结时常驻灰态，不能点 */
#lockPriceBtn {
    background: #f3f4f6;
    color: #7b7979;
    border: 1px solid #d7d7d7;
    cursor: not-allowed;
}

#lockPriceBtn.is-on {
    /* 底色比原来的 #fdb23b 压深一档，白字才看得清（白字对比度 1.8:1 → 2.4:1） */
    background: #f0930f;
    color: #ffffff;
    border-color: #d9850a;
    /* 与旁边两个按钮完全一致：常规字重、同一字号，只靠底色区分 */
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(150, 95, 0, .22);
}

#lockPriceBtn.is-on:hover {
    background: #e0850a;
}

#lockPriceBtn.is-on:active {
    transform: translateY(1px);
}

/* ---------- 2. 下单栏顶部「我的收藏」 ---------- */
.yy-fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    padding: 0 9px;
    margin-left: 9px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(49, 36, 15, .16);
    color: #31240f;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -1px;
    cursor: pointer;
    user-select: none;
    transition: background .18s ease;
    font-weight: 400;
}

.yy-fav-btn:hover {
    background: #ffffff;
}

.yy-fav-btn:focus-visible {
    outline: 2px solid #31240f;
    outline-offset: 2px;
}

.yy-fav-btn i {
    font-size: 13px;
}

.yy-fav-btn .yy-fav-badge {
    display: none;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #13acb5;
    color: #fff;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    font-style: normal;
    font-weight: 700;
}

.yy-fav-btn.has-items .yy-fav-badge {
    display: inline-block;
}

/* 已收藏过的报价总结，"立即下单"后闪一下，方便用户确认已填入 */
@keyframes yyLkFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(253, 178, 59, .85);
    }

    100% {
        box-shadow: 0 0 0 12px rgba(253, 178, 59, 0);
    }
}

#summary.yy-lk-flash {
    animation: yyLkFlash .8s ease-out 2;
    border-color: #fdb23b !important;
}

/* 收藏单号提示条：只有「从收藏记录下单」时出现在下单栏上方，
   宽度跟随下单栏（.summary-wrap 固定 330px，手机上由外层撑开） */
.yy-lk-lockbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 5px;
    box-sizing: border-box;
    width: 330px;
    max-width: 100%;
    /* 与 .summary-wrap 的 margin:auto 保持一致，两边对齐 */
    margin: 0 auto 6px auto;
    padding: 4px 8px;
    border: 1px solid #bfe6e5;
    border-radius: 6px;
    background: #f3fbfb;
    font-size: 11.5px;
    line-height: 1.5;
    color: #0b6a72;
}

.yy-lk-lockbar .dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #14b8c4;
}

.yy-lk-lockbar b {
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
    letter-spacing: .2px;
    color: #0e7c84;
    word-break: break-all;
}

/* 提示条内不再有任何按钮：从收藏进来的单子必须带号，不提供「移除」入口 */

@media screen and (max-width: 760px) {
    .yy-lk-lockbar {
        width: 100%;
    }
}

/* 打印时绝不能让这条提示出现在纸面上 */
@media print {
    .yy-lk-lockbar {
        display: none !important;
    }
}

/* =========================================================================
 * 3. 遮罩层（锁价清单 / 我的收藏 共用）
 * ======================================================================= */
.yy-lk-mask {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    background: rgba(23, 18, 8, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    padding: 20px;
    box-sizing: border-box;
}

.yy-lk-mask.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.yy-lk-bodylock {
    overflow: hidden;
}

.yy-lk-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 820px;
    max-width: 100%;
    max-height: 100%;
    background: #eceff2;
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
    overflow: hidden;
}

/* 收藏表格列多，弹层单独加宽 */
.yy-lk-shell.is-wide {
    width: 1040px;
}

.yy-lk-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 12px 0 18px;
    background: #31240f;
    color: #fff;
}

.yy-lk-bar-t {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
}

.yy-lk-bar-hint {
    font-size: 12px;
    color: #f3d9a6;
    font-weight: 400;
}

.yy-lk-x {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

.yy-lk-x:hover {
    background: rgba(255, 255, 255, .25);
}

.yy-lk-scroll {
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 22px;
    background: #eceff2;
}

.yy-lk-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid #dfe3e8;
}

.yy-lk-foot button {
    min-width: 116px;
    height: 38px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #d7d7d7;
    background: #f7f8fa;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all .16s ease;
}

.yy-lk-foot button:hover {
    background: #eef1f4;
}

.yy-lk-foot button.primary {
    background: #fdb23b;
    border-color: #eda31c;
    color: #31240f;
    font-weight: 700;
}

.yy-lk-foot button.primary:hover {
    background: #f7a71f;
}

.yy-lk-foot button:disabled {
    opacity: .6;
    cursor: default;
}

/* =========================================================================
 * 4. A4 竖版纸面
 * ======================================================================= */
.yy-lk-paper {
    width: 760px;
    min-height: 1075px;
    /* 760 × 297/210 ≈ 1075，标准 A4 竖版比例 */
    margin: 0 auto 18px auto;
    padding: 38px 46px 32px 46px;
    box-sizing: border-box;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
    color: #1f2328;
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
    page-break-after: always;
}

.yy-lk-paper:last-child {
    margin-bottom: 0;
    page-break-after: auto;
}

/* --- 抬头：只放单据信息，一行排开（公司名在页脚） --- */
.yy-lk-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    padding-bottom: 9px;
    border-bottom: 3px solid #fdb23b;
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.7;
}

.yy-lk-brand span {
    white-space: nowrap;
}

.yy-lk-brand em {
    font-style: normal;
    color: #1f2328;
    font-weight: 600;
    font-family: Consolas, "Courier New", monospace;
}

.yy-lk-title {
    margin: 14px 0 3px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #1f2328;
    text-align: center;
}

.yy-lk-sub {
    text-align: center;
    font-size: 11.5px;
    color: #9aa1a9;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.yy-lk-locked {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px 0;
    padding: 6px 11px;
    border-radius: 6px;
    background: #f0f9f2;
    border: 1px solid #cdebd6;
    color: #1e7b3c;
    font-size: 12px;
}

.yy-lk-locked i {
    font-style: normal;
    font-weight: 700;
}

/* --- 段落标题 --- */
.yy-lk-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 13px 0 6px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #31240f;
}

.yy-lk-h::before {
    content: "";
    width: 4px;
    height: 13px;
    border-radius: 2px;
    background: #fdb23b;
}

.yy-lk-h em {
    font-style: normal;
    font-weight: 400;
    font-size: 11px;
    color: #a8aeb6;
}

/* --- 表格 --- */
.yy-lk-tb {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12.5px;
}

.yy-lk-tb th,
.yy-lk-tb td {
    border: 1px solid #e3e6ea;
    padding: 5px 9px;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.yy-lk-tb thead th {
    background: #fbf6ea;
    color: #5c4a26;
    font-weight: 700;
    text-align: left;
    font-size: 12px;
    letter-spacing: .3px;
}

.yy-lk-tb tbody th {
    width: 96px;
    background: #fafbfc;
    color: #5b6270;
    font-weight: 400;
    text-align: left;
}

.yy-lk-tb td.val {
    color: #1f2328;
    font-weight: 500;
}

.yy-lk-tb td.num {
    text-align: right;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}

.yy-lk-tb th.num-h {
    text-align: right;
}

/* 费用表走「收据」样式：去掉竖线，只留虚线分隔，金额右对齐 */
.yy-lk-cost {
    border: 1px solid #e3e6ea;
}

.yy-lk-cost th,
.yy-lk-cost td {
    border: 0;
    border-bottom: 1px dashed #eceff2;
    padding: 8px 12px;
}

.yy-lk-cost tbody th {
    width: auto !important;
    background: transparent;
    color: #5b6270;
    font-weight: 400;
    font-size: 12.5px;
}

.yy-lk-cost td.num {
    width: 34%;
}

.yy-lk-cost tr.is-sum th,
.yy-lk-cost tr.is-sum td {
    background: #fffaf0;
    border-bottom: 0;
    border-top: 2px solid #fdb23b;
    font-weight: 700;
    color: #8a5a00;
    font-size: 15px;
}

.yy-lk-cost tr.is-sum td.num {
    font-size: 17px;
    color: #c07400;
}

.yy-lk-upper {
    margin-top: 6px;
    font-size: 11.5px;
    color: #6b7280;
    text-align: right;
}

/* --- 工艺小标签 --- */
.yy-lk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yy-lk-chips li {
    padding: 2px 8px;
    border-radius: 4px;
    background: #f4f6f8;
    border: 1px solid #e3e6ea;
    font-size: 11.5px;
    color: #4b5563;
}

/* --- 「其他说明」并入第一项后的补充块 --- */
.yy-lk-extra-box {
    margin-top: 8px;
    padding: 8px 11px;
    border: 1px dashed #e3e6ea;
    border-radius: 5px;
    background: #fafbfc;
}

.yy-lk-extra-box b {
    display: block;
    margin-bottom: 5px;
    font-size: 11.5px;
    font-weight: 400;
    color: #9aa1a9;
    letter-spacing: .5px;
}

.yy-lk-extra-box .yy-lk-chips li {
    background: #fff;
}

/* --- 截稿时点旁的小注解 --- */
.yy-lk-due {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.6;
    color: #9aa1a9;
}

/* --- 锁价说明 --- */
.yy-lk-note {
    margin: 14px 0 0 0;
    padding: 10px 12px;
    border: 1px dashed #e2c98d;
    border-radius: 6px;
    background: #fffdf6;
    font-size: 12px;
    line-height: 1.85;
    color: #6b5a35;
}

.yy-lk-note b {
    color: #8a5a00;
}

/* --- 落款 --- */
.yy-lk-sign {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #eceff2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    font-size: 12px;
    color: #4b5563;
}

.yy-lk-sign-l {
    line-height: 2;
}

.yy-lk-sign-l b {
    display: block;
    font-size: 14px;
    color: #1f2328;
    letter-spacing: .5px;
}

.yy-lk-sign-l span {
    display: block;
    font-size: 11.5px;
    color: #8a9099;
}

.yy-lk-sign-r {
    text-align: right;
    line-height: 1.9;
    white-space: nowrap;
}

.yy-lk-sign-r em {
    font-style: normal;
    font-family: Consolas, "Courier New", monospace;
    color: #1f2328;
    font-weight: 600;
}

/* =========================================================================
 * 5. 我的收藏（表格：下单页弹层 / 用户中心「我的收藏」共用）
 * ======================================================================= */
.yy-ft-box {
    background: #fff;
    border-radius: 8px;
}

/* 弹层里：白底卡片 + 描边；表头不做 sticky（弹层自己的滚动容器带内边距） */
.yy-lk-scroll>.yy-ft-box {
    border: 1px solid #e6eaee;
    overflow: hidden;
}

.yy-lk-scroll>.yy-ft-box thead th {
    position: static;
}

table.yy-ft {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.yy-ft thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 9px 12px;
    background: #f7f9fa;
    border-bottom: 1px solid #e6eaee;
    text-align: left;
    font-size: 12.5px;
    font-weight: 600;
    color: #5b6472;
    white-space: nowrap;
}

.yy-ft thead th.c-cat {
    width: 168px;
}

.yy-ft thead th.c-amt {
    width: 100px;
}

.yy-ft thead th.c-term {
    width: 128px;
}

.yy-ft thead th.c-act {
    width: 100px;
}

.yy-ft tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

.yy-ft tbody tr:last-child td {
    border-bottom: 0;
}

/* 初始统一行高，超出内容裁掉；点行展开才显示完整内容 */
.yy-ft tbody tr.yy-ft-row {
    height: 92px;
    cursor: pointer;
}

.yy-ft tbody tr.yy-ft-row:hover td {
    background: #fbfdfd;
}

.yy-ft tbody tr.yy-ft-row.is-open td {
    background: #fcfdfd;
}

/* 快过期：左边一条琥珀色 */
.yy-ft tbody tr.is-expiring td.c-cat {
    box-shadow: inset 3px 0 0 #f0b45e;
}

/* --- 产品类别 --- */
.yy-ft .c-cat .name {
    display: block;
    font-weight: 600;
    color: #1f2328;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yy-ft .c-cat .meta {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 11.5px;
    color: #9aa1a9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yy-ft .c-cat .meta.warn {
    color: #c07400;
}

/* --- 产品摘要：收起两行，左上角三角提示可展开（用边框画，不依赖字体） --- */
.yy-ft tbody td.c-sum {
    position: relative;
    padding-left: 24px;
}

.yy-ft tbody td.c-sum::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    margin-top: -4px;
    width: 0;
    height: 0;
    border-left: 5px solid #b9c0c8;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform .16s ease, border-left-color .16s ease;
}

.yy-ft tr.is-open td.c-sum::before {
    transform: rotate(90deg);
    border-left-color: #14b8c4;
}

.yy-ft .c-sum .txt {
    display: block;
    color: #4b5563;
    line-height: 1.65;
    word-break: break-word;
    overflow: hidden;
}

.yy-ft tr:not(.is-open) .c-sum .txt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3.3em;
}

/* --- 价格 / 工期 / 操作：表头与内容统一水平居中（表头保持和其他列一样的灰字） --- */
.yy-ft thead th.c-amt,
.yy-ft thead th.c-term,
.yy-ft thead th.c-act,
.yy-ft tbody td.c-amt,
.yy-ft tbody td.c-term,
.yy-ft tbody td.c-act {
    text-align: center;
}

/* --- 价格（只作用于内容单元格，表头不染成橙色） --- */
.yy-ft tbody td.c-amt {
    white-space: nowrap;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    color: #c07400;
}

/* --- 工期 --- */
.yy-ft .c-term b {
    font-size: 14px;
    color: #0e7c84;
}

.yy-ft .c-term i {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: 11.5px;
    line-height: 1.45;
    color: #9aa1a9;
}

.yy-ft .c-term i b {
    font-size: 11.5px;
    color: #c07400;
}

.yy-ft .c-term i.late {
    color: #c07400;
}

.yy-ft .c-term .nb {
    white-space: nowrap;
}

/* 收起时只留第一行副信息，多出来的顺延提示展开再看 */
.yy-ft tr:not(.is-open) td.c-term i.late {
    display: none;
}

/* --- 操作：三个按钮竖排一列，等宽居中，高度压小、间距收紧 --- */
.yy-ft tbody td.c-act {
    white-space: normal;
}

.yy-ft td.c-act .acts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
}

.yy-ft td.c-act button {
    width: 85%;
    height: 23px;
    padding: 0 4px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: .15s;
}

.yy-ft td.c-act .buy {
    border: 1px solid transparent;
    background: linear-gradient(135deg, #74c2be, #14b8c4);
    color: #fff;
    font-weight: 600;
}

.yy-ft td.c-act .buy:hover {
    filter: brightness(1.06);
}

.yy-ft td.c-act .prt {
    border: 1px solid #bfe6e5;
    background: #f3fbfb;
    color: #0e7c84;
}

.yy-ft td.c-act .prt:hover {
    border-color: #14b8c4;
    background: #e8f7f8;
}

.yy-ft td.c-act .del {
    border: 1px solid #e4e8ec;
    background: #fff;
    color: #8a9099;
}

.yy-ft td.c-act .del:hover {
    border-color: #e5a3a3;
    color: #c0392b;
}

/* 展开后允许产品名 / 有效期换行显示全 */
.yy-ft tr.is-open .c-cat .name,
.yy-ft tr.is-open .c-cat .meta {
    white-space: normal;
    overflow: visible;
}

.yy-fav-empty {
    padding: 54px 20px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    color: #9aa1a9;
    font-size: 13px;
    line-height: 2;
}

.yy-fav-empty b {
    display: block;
    font-size: 15px;
    color: #5b6270;
    margin-bottom: 6px;
}

/* ---------- 收藏表格：窄屏 ---------- */
@media screen and (max-width: 760px) {

    /* 产品类别列收起（产品名本来就在摘要第一段），其余四列按比例吃宽度 */
    .yy-ft thead th.c-cat,
    .yy-ft tbody td.c-cat {
        display: none;
    }

    .yy-ft thead th.c-amt {
        width: 66px;
    }

    .yy-ft thead th.c-term {
        width: 80px;
    }

    .yy-ft thead th.c-act {
        width: 92px;
    }

    .yy-ft thead th,
    .yy-ft tbody td {
        padding: 8px 6px;
    }

    .yy-ft tbody tr.yy-ft-row {
        height: 92px;
    }

    .yy-ft tbody td.c-sum {
        padding-left: 18px;
    }

    .yy-ft tbody td.c-sum::before {
        left: 7px;
    }

    /* nowrap 会溢出压住相邻列，窄列必须允许换行（用 normal，不能用 break-all） */
    .yy-ft tbody td.c-term,
    .yy-ft tbody td.c-term i {
        white-space: normal;
        word-break: normal;
    }

    .yy-ft tbody td.c-term b {
        font-size: 13px;
    }

    .yy-ft tbody td.c-amt {
        font-size: 13px;
    }

    /* 操作：竖排一列在窄屏上同样适用，只是字号再小一档 */
    .yy-ft tbody td.c-act button {
        height: 23px;
        padding: 0 2px;
        font-size: 11px;
    }
}

/* ---------- 手机 ---------- */
@media screen and (max-width: 860px) {

    /* 标题栏固定 48px 高，窄屏上标题和提示会互相挤成几行 → 改成标题 + 关闭，
       提示另起一行；否则文字会溢出到栏外 */
    .yy-lk-bar {
        height: auto;
        flex-wrap: wrap;
        gap: 0 8px;
        padding: 9px 10px 9px 14px;
    }

    .yy-lk-bar-t {
        font-size: 14px;
    }

    .yy-lk-bar-hint {
        order: 3;
        flex: 1 0 100%;
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.45;
    }

    .yy-lk-x {
        order: 2;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .yy-lk-mask {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .yy-lk-shell {
        width: 100% !important;
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .yy-lk-scroll {
        padding: 10px;
    }

    .yy-lk-paper {
        width: 100%;
        min-height: 0;
        padding: 22px 16px 26px 16px;
        box-shadow: none;
        font-size: 12.5px;
    }

    .yy-lk-brand {
        gap: 3px 14px;
    }

    .yy-lk-title {
        font-size: 17px;
        margin-top: 14px;
    }

    .yy-lk-tb {
        font-size: 12px;
    }

    .yy-lk-tb tbody th {
        width: 74px;
        padding: 6px 8px;
    }

    .yy-lk-tb th,
    .yy-lk-tb td {
        padding: 6px 8px;
    }

    /* 材料表列多，窄屏上改成「每个部件一张小卡」的堆叠排版，
       不做横向滑动，手机上不用左右拖动也能看全 */
    .yy-lk-scroll-tb {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .yy-lk-foot {
        padding: 10px 12px;
        gap: 8px;
    }

    .yy-lk-foot button {
        min-width: 0;
        flex: 1;
        padding: 0 8px;
    }

    .yy-lk-sign {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .yy-lk-sign-r {
        text-align: left;
        white-space: normal;
    }
}

/* =========================================================================
 * 6. 打印：只输出纸面
 * ======================================================================= */
@media print {
    @page {
        size: A4 portrait;
        margin: 10mm 8mm;
    }

    html.yy-lk-print,
    html.yy-lk-print body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        height: auto !important;
    }

    html.yy-lk-print body>*:not(.yy-lk-mask) {
        display: none !important;
    }

    html.yy-lk-print .yy-lk-mask {
        position: static !important;
        display: block !important;
        padding: 0 !important;
        background: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        inset: auto !important;
    }

    html.yy-lk-print .yy-lk-shell {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        max-height: none !important;
        height: auto !important;
        background: #fff !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    html.yy-lk-print .yy-lk-bar,
    html.yy-lk-print .yy-lk-foot {
        display: none !important;
    }

    html.yy-lk-print .yy-lk-scroll {
        display: block !important;
        overflow: visible !important;
        max-height: none !important;
        padding: 0 !important;
        background: #fff !important;
    }

    html.yy-lk-print .yy-lk-paper {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        font-size: 10px;
        line-height: 1.62;
        /* 浏览器实际排版与模拟测量有 3~5% 出入，整体缩一点保证「一张一页」 */
        zoom: 0.95;
    }

    html.yy-lk-print .yy-lk-scroll-tb {
        overflow: visible !important;
    }

    html.yy-lk-print .yy-lk-scroll-tb .yy-lk-tb {
        min-width: 0 !important;
    }

    /* 单张纸面较高时（带「其他说明」+多个部件），压缩行距塞进一页：
       实测 1105px → 1047px 的 A4 可用高度，收紧约 5% 即可，字号不动 */
    html.yy-lk-print .yy-lk-h {
        margin: 9px 0 5px !important;
        padding-left: 8px;
    }

    html.yy-lk-print .yy-lk-tb th,
    html.yy-lk-print .yy-lk-tb td {
        padding: 4px 8px !important;
    }

    html.yy-lk-print .yy-lk-extra-box {
        margin-top: 6px !important;
        padding: 5px 8px !important;
    }

    html.yy-lk-print .yy-lk-note,
    html.yy-lk-print .yy-lk-sign {
        margin-top: 10px !important;
        padding-top: 8px !important;
    }

    html.yy-lk-print .yy-lk-paper+.yy-lk-paper {
        page-break-before: always;
    }

    html.yy-lk-print .yy-lk-h,
    html.yy-lk-print .yy-lk-tb tr {
        page-break-inside: avoid;
    }
}

/* =========================================================================
 * 7. 窄屏（手机）：材料表改为堆叠卡片，不用左右拖动
 * ======================================================================= */
@media screen and (max-width: 560px) {
    .yy-lk-tb.is-stack thead {
        display: none;
    }

    .yy-lk-tb.is-stack,
    .yy-lk-tb.is-stack tbody,
    .yy-lk-tb.is-stack tr {
        display: block;
        width: 100%;
    }

    .yy-lk-tb.is-stack {
        table-layout: auto;
    }

    .yy-lk-tb.is-stack tr {
        border: 1px solid #e6e9ee;
        border-radius: 6px;
        margin-bottom: 8px;
        padding: 7px 10px;
    }

    .yy-lk-tb.is-stack tr:last-child {
        margin-bottom: 0;
    }

    .yy-lk-tb.is-stack tbody th {
        display: block;
        width: auto !important;
        border: 0;
        background: transparent;
        padding: 0 0 4px 0;
        font-weight: 700;
        color: #31240f;
        font-size: 13px;
    }

    .yy-lk-tb.is-stack td {
        display: flex;
        align-items: baseline;
        border: 0;
        padding: 2px 0;
        font-size: 12px;
        line-height: 1.7;
    }

    .yy-lk-tb.is-stack td::before {
        content: attr(data-label);
        flex: 0 0 44px;
        color: #9aa1a9;
        font-size: 11.5px;
    }
}

/* ---------- 轻提示 toast ---------- */
.yy-lk-toast {
    position: fixed;
    left: 50%;
    bottom: 42px;
    transform: translate(-50%, 12px);
    z-index: 99999;
    max-width: min(560px, 90vw);
    padding: 11px 18px;
    border-radius: 8px;
    background: rgba(33, 27, 15, .94);
    color: #fff;
    font-size: 13px;
    line-height: 1.7;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .28);
    opacity: 0;
    transition: opacity .22s ease, transform .22s ease;
    pointer-events: none;
    text-align: left;
}

.yy-lk-toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media screen and (max-width: 560px) {
    .yy-lk-toast {
        left: 12px;
        right: 12px;
        bottom: 70px;
        max-width: none;
        transform: translate(0, 12px);
    }

    .yy-lk-toast.is-on {
        transform: translate(0, 0);
    }
}