@charset "utf-8";
/**
 * 证书查询功能样式表
 * 包含：查询表单页 + 工作证电子版展示页
 * 配色遵循全站品牌色：
 *   --color-primary-green: #2E4E3E 松墨绿
 *   --color-accent-red:   #B83A2A 朱砂红
 *   --color-green-dark:   #1B3328 深绿
 *   --color-green-light:  #C1D4C0 浅绿
 */

/* ===== 查询表单页 ===== */
.cert-query-wrap {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 15px;
}

.cert-query-card {
    background: #fff;
    border-radius: 10px;
    padding: 50px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.cert-query-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: #C1D4C0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-query-icon .layui-icon {
    font-size: 36px;
    color: #2E4E3E;
}

.cert-query-title {
    font-size: 28px;
    color: #2E4E3E;
    margin: 0 0 10px;
    font-weight: bold;
}

.cert-query-desc {
    font-size: 14px;
    color: #999;
    margin: 0 0 30px;
}

.cert-query-error {
    background: #FFF0EE;
    border: 1px solid #F5C2BA;
    color: #B83A2A;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.cert-query-error .layui-icon {
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
}

.cert-query-form {
    margin-bottom: 30px;
}

.cert-query-input-box {
    display: flex;
    border: 2px solid #2E4E3E;
    border-radius: 6px;
    overflow: hidden;
}

.cert-query-input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.cert-query-btn {
    border: none;
    background: #2E4E3E;
    color: #fff;
    padding: 0 36px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cert-query-btn:hover {
    background: #1B3328;
}

.cert-query-tips {
    text-align: left;
    background: #F8F9FA;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

.cert-query-tips p:first-child {
    color: #2E4E3E;
    font-weight: bold;
    margin-bottom: 4px;
}

/* ===== 工作证电子版展示页 ===== */
.cert-view-wrap {
    max-width: 820px;
    margin: 30px auto;
    padding: 0 15px;
}

/* 工作证卡片 */
.credential-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #E8E8E8;
}

/* 顶部红色标题栏 */
.credential-header {
    background: linear-gradient(135deg, #B83A2A 0%, #8B2A1F 100%);
    color: #fff;
    text-align: center;
    padding: 24px 0;
    position: relative;
}

.credential-header::before,
.credential-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
}

.credential-header::before { left: 30px; }
.credential-header::after { right: 30px; }

.credential-title {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 12px;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.credential-subtitle {
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.9;
    letter-spacing: 2px;
}

/* 主体内容区 */
.credential-body {
    display: flex;
    padding: 40px;
    gap: 40px;
    background: #fff;
}

/* 左侧照片 */
.credential-photo-box {
    flex-shrink: 0;
    width: 132px;
}

.credential-photo-frame {
    width: 132px;
    height: 180px;
    border: 3px solid #2E4E3E;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.credential-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.credential-photo-label {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* 右侧信息区 */
.credential-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.credential-info-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 18px;
    font-size: 18px;
}

.credential-info-row:last-child {
    margin-bottom: 0;
}

.credential-info-label {
    flex-shrink: 0;
    width: 90px;
    color: #666;
    font-size: 15px;
    text-align: justify;
    text-align-last: justify;
}

.credential-info-label::after {
    content: "：";
}

.credential-info-value {
    color: #222;
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px dotted #CCC;
    flex: 1;
    padding-bottom: 2px;
}

/* 底部信息栏 */
.credential-footer {
    background: #FAFAFA;
    border-top: 1px solid #EEE;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.credential-unit {
    font-size: 14px;
    color: #666;
}

.credential-unit strong {
    color: #2E4E3E;
    font-size: 15px;
}

.credential-date {
    font-size: 14px;
    color: #666;
}

/* 操作按钮区 */
.cert-view-actions {
    text-align: center;
    margin-top: 24px;
}

.cert-view-actions a {
    display: inline-block;
    padding: 10px 28px;
    background: #2E4E3E;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.cert-view-actions a:hover {
    background: #1B3328;
}

.cert-view-actions .btn-print {
    background: #fff;
    color: #2E4E3E;
    border: 1px solid #2E4E3E;
    margin-left: 12px;
}

.cert-view-actions .btn-print:hover {
    background: #2E4E3E;
    color: #fff;
}

/* ===== 响应式适配 ===== */
@media (max-width: 768px) {
    .cert-query-wrap {
        margin: 20px auto;
    }

    .cert-query-card {
        padding: 30px 20px;
    }

    .cert-query-title {
        font-size: 22px;
    }

    .cert-query-input-box {
        flex-direction: column;
        border: none;
    }

    .cert-query-input {
        border: 2px solid #2E4E3E;
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .cert-query-btn {
        border-radius: 6px;
        padding: 12px 0;
    }

    /* 工作证电子版响应式 */
    .credential-body {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
        align-items: center;
    }

    .credential-photo-box {
        width: 110px;
    }

    .credential-photo-frame {
        width: 110px;
        height: 150px;
    }

    .credential-info {
        width: 100%;
    }

    .credential-info-row {
        font-size: 16px;
        margin-bottom: 14px;
    }

    .credential-info-label {
        width: 70px;
        font-size: 14px;
    }

    .credential-info-value {
        font-size: 16px;
    }

    .credential-footer {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
        text-align: center;
    }

    .credential-date {
        margin-right: 0;
    }

    .credential-title {
        font-size: 24px;
        letter-spacing: 8px;
    }
}

/* 打印样式 */
@media print {
    .header, .ctx-crumb, .cert-view-actions, .footer { display: none !important; }
    .cert-view-wrap { margin: 0; padding: 0; max-width: none; }
    .credential-card { box-shadow: none; border: none; }
}
