/*
文件名称：zhiye_zhengshu.css
文件职责：只负责师傅详情页“职业证书与资质展示”模块样式。
维护要求：本文件不维护视频、评价、服务明细等其他模块；新增类名必须使用简洁汉语拼音。
*/

.zhiye-zhengshu-kapian {
    padding: 0;
}

.zhiye-zhengshu-kapian.shi-wuzhengshu {
    padding: 18px 22px;
}

.zhiye-zhengshu-kapian.shi-wuzhengshu .gonggong-biaotou {
    align-items: center;
    margin-bottom: 0;
}

.zhiye-zhengshu-kapian.shi-wuzhengshu .gonggong-biaotou h2 {
    font-size: 17px;
}

.zhiye-zhengshu-kapian.shi-wuzhengshu .gonggong-biaotou p {
    margin-top: 2px;
    font-size: 12px;
}

.zhiye-zhengshu-tishi {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 20px 20px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff8f1;
    border: 1px solid #f9ebd6;
    color: #9b5b24;
    font-size: 12px;
    line-height: 1.5;
}

.zhiye-zhengshu-kongtai {
    display: none;
    align-items: center;
    gap: 14px;
    margin-top: 2px;
    padding: 14px;
    border: 1px solid #f0dfc8;
    border-radius: 18px;
    background: linear-gradient(135deg, #fffdf9 0%, #fff8ef 58%, #fff3e1 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 10px 24px rgba(126, 83, 42, 0.05);
    text-align: left;
}

.zhiye-zhengshu-kapian.shi-wuzhengshu .zhiye-zhengshu-wangge {
    display: none;
}

.zhiye-zhengshu-kapian.shi-wuzhengshu .zhiye-zhengshu-kongtai {
    display: flex;
}

.zhiye-zhengshu-kapian > .overflow-hidden {
    overflow: visible;
}

.zhiye-zhengshu-wangge {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 14px;
    scrollbar-color: #d9b98f #fff7ec;
    scrollbar-width: thin;
}

.zhiye-zhengshu-wangge::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.zhiye-zhengshu-wangge::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #fff7ec;
}

.zhiye-zhengshu-wangge::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d9b98f;
}

.zhiye-zhengshu-wangge > article {
    min-height: 208px;
}

.zhiye-zhengshu-kongtai-tubiao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #fff1dc;
    color: #b86829;
    flex-shrink: 0;
}

.zhiye-zhengshu-kongtai-wenzi strong {
    display: block;
    margin-bottom: 3px;
    color: #35281f;
    font-size: 14px;
}

.zhiye-zhengshu-kongtai-wenzi span {
    display: block;
    max-width: 500px;
    color: #7c6b5a;
    font-size: 12px;
    line-height: 1.65;
}

.zhiye-zhengshu-kongtai-caozuo {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.zhiye-zhengshu-kongtai-caozuo a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #ead8c0;
    color: #8f5e32;
    font-size: 11px;
    font-weight: 800;
}

.zhiye-zhengshu-zhanwei-ka {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    width: 140px;
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid #efdfc8;
    background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
}

.zhiye-zhengshu-zhanwei-fengmian {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.78), transparent 38%),
        linear-gradient(135deg, #fbf1e4 0%, #f7e7d0 54%, #f2dcc0 100%);
    border: 1px solid #efdfc8;
}

.zhiye-zhengshu-zhanwei-zhuangtai {
    position: absolute;
    left: 8px;
    top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #9b5b24;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(126, 83, 42, 0.08);
}

.zhiye-zhengshu-zhanwei-zhongxin {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8f5e32;
}

.zhiye-zhengshu-zhanwei-zhongxin > span:last-child {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.zhiye-zhengshu-zhanwei-tubiao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.92);
}

.zhiye-zhengshu-zhanwei-jiaobiao {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.84);
    color: #8a6d54;
    font-size: 9px;
    font-weight: 700;
}

.zhiye-zhengshu-zhanwei-ka strong {
    color: #1f2937;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.zhiye-zhengshu-zhanwei-ka p,
.zhiye-zhengshu-zhanwei-ka > span {
    margin: 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.zhiye-zhengshu-zhanwei-ka p {
    flex-grow: 1;
}

.zhiye-zhengshu-zhanwei-biaoqian {
    display: flex;
    justify-content: center;
}

.zhiye-zhengshu-zhanwei-biaoqian em {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff7ec;
    border: 1px solid #efddc5;
    color: #8a6d54;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.zhiye-zhengshu-tanchuang-tu::after {
    content: '\5929\8695\5230\5BB6\6838\9A8C\20\20\4EC5\4F9B\8BC1\4E66\771F\4F2A\67E5\770B';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-24deg);
    color: rgba(186, 113, 52, 0.18);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
    pointer-events: none;
}

.zhiye-zhengshu-tanchuang-xinxi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.zhiye-zhengshu-tanchuang-xinxi span {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff7ec;
    color: #765c43;
    font-size: 11px;
    line-height: 1.5;
}

.zhiye-zhengshu-tanchuang {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 80;
}

.zhiye-zhengshu-tanchuang.shi-dakai {
    display: flex;
}

.zhiye-zhengshu-zhezhao {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(22, 16, 10, 0.48);
}

.zhiye-zhengshu-duihua {
    position: relative;
    z-index: 1;
    width: min(90vw, 860px);
    padding: 14px;
    border-radius: 20px;
    background: #fffdf9;
    border: 1px solid rgba(226, 210, 189, 0.9);
    box-shadow: 0 24px 70px rgba(25, 18, 11, 0.22);
}

.zhiye-zhengshu-duihua-tou {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.zhiye-zhengshu-duihua-tou strong {
    font-size: 14px;
    font-weight: 700;
    color: #46382b;
}

.zhiye-zhengshu-guanbi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: #fff7ec;
    color: #8f5e32;
}

.zhiye-zhengshu-tanchuang-tu {
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(228, 206, 177, 0.9);
    padding: 10px;
    overflow: hidden;
}

.zhiye-zhengshu-tanchuang-tu img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.zhiye-zhengshu-tanchuang-tishi {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    color: #7d6a58;
}

@media (max-width: 1024px) {
    .zhiye-zhengshu-wangge {
        grid-template-columns: 1fr;
    }

    .zhiye-zhengshu-tanchuang-xinxi {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .zhiye-zhengshu-kapian {
        padding: 16px;
    }

    .zhiye-zhengshu-fankui {
        grid-template-columns: 1fr;
    }

    .zhiye-zhengshu-tanchuang {
        padding: 16px;
    }

    .zhiye-zhengshu-duihua {
        width: 100%;
        padding: 12px;
    }

    .zhiye-zhengshu-kapian.shi-wuzhengshu {
        padding: 16px;
    }

    .zhiye-zhengshu-kapian.shi-wuzhengshu .zhiye-zhengshu-kongtai {
        align-items: flex-start;
        flex-direction: column;
    }

    .zhiye-zhengshu-kongtai-caozuo {
        justify-content: flex-start;
        margin-left: 0;
    }
}
