@charset "UTF-8";

body {
    background-color: #f9f9f9;
    font-family: "Microsoft YaHei", sans-serif;
}

.cer-search-container {
    width: 576px;
    height: 340px;
    padding: 30px;
    background-color: #F3F3F3;
    border-radius: 10px;
    /* 容器居中 */
    margin: 0 auto; 
    /* 使用 Flexbox 内部布局 */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 内部内容垂直居中 (或顶部对齐) */
    align-items: flex-end; /* 内容水平居中 */
    box-sizing: border-box;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
    /* position: relative;  已移除，依赖 wrapper */
}

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

.form-label {
    font-size: 16px;
    color: #333;
    width: 120px; /* 固定宽度以对齐 */
    height: 50px;
    text-align: right;
    margin-right: 15px;
    white-space: nowrap;
    cursor: default;
    line-height: 50px;
}

.form-label.clickable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.idcard-label  {
    background-color: #FFFFFF;
    border-radius: 4px;
    padding-right: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.form-label.clickable::after {
    content: '';
    font-size: 10px;
    margin-left: 4px;
    color: #666;
    background-image: url('../assets/images/arrow_down.png');
    background-size: cover;
    width: 10px;
    height: 10px;
    display: block;
}

/* 输入框 */
.form-input {
    height: 50px;
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.input-large {
    width: 376px;
}

.input-small {
    width: 242px;
}

/* 验证码图片 */
.captcha-img {
    width: 124px;
    height: 50px;
    background-color: #ddd; /* 占位符 */
    margin-left: 10px;
    cursor: pointer;
    border-radius: 4px;
    object-fit: cover;
}

/* 下拉弹窗 */
.dropdown-popup {
    position: absolute;
    top: 55px; /* 标签下方 */
    right: 0;
    width: 120px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
    overflow: hidden;
}

.dropdown-popup.show {
    display: block;
}

.dropdown-item {
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.dropdown-item.active {
    color: #FFFFFF;
    background-color: #B98751;
}

/* 查询按钮 */
.btn-search {
    width: 130px;
    height: 42px;
    background-color: #B98751;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px; /* 距离上一个输入框的间距 */
    align-self: center; /* 如果是列布局则相对于容器居中 */
    margin-right: 64px; /* 调整以与输入框对齐，或移除 align-self */
}

.btn-search:hover {
    background-color: #a07241;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    width: 370px;
    height: 230px;
    background-color: #FFFFFF;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #666;
}

.modal-title {
    font-size: 18px;
    color: #333333;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 30px;
}

.modal-message {
    font-size: 16px;
    color: #734C22;
    font-weight: 400;
    text-align: center;
    margin-bottom: auto; /* 将按钮推到底部 */
}

.modal-confirm-btn {
    width: 130px;
    height: 42px;
    background-color: #B98751;
    color: #FFFFFF;
    font-size: 16px;
    border: none;
    border-radius: 4px; /* 默认按钮圆角通常为 4px，但提示提到“按钮宽度/高度”，假设是标准圆角或与容器相同？用户说容器圆角是 10px。除非另有说明，否则我将保留标准按钮圆角或 4px。等等，用户没有指定按钮圆角，只指定了模态框圆角。我通常会使用 4px 来匹配设计系统，或者是 21px 的圆角胶囊样式。目前我将保持 4px 以匹配搜索按钮。 */
    cursor: pointer;
    margin-bottom: 20px;
}

.modal-confirm-btn:hover {
    background-color: #a07241;
}

/* ---------------------- 查询结果样式 ---------------------- */

.cer-result-container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding-bottom: 60px;
}

/* 左侧图片区域 */
.result-left {
    width: 422px;
    flex-shrink: 0;
}

.gallery-main {
    width: 422px;
    height: 422px;
    margin-bottom: 20px;
    cursor: pointer;
    border: 1px solid #eee;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

/* 证书轮播容器 */
.gallery-thumbs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 422px;
}

.gallery-thumbs-wrapper {
    width: 320px; /* 5 * 52 + 4 * 15 (gap) = 260 + 60 = 320 */
    overflow: hidden;
}

.gallery-thumbs-track {
    display: flex;
    gap: 15px; /* 调整间距以匹配宽度 */
    transition: transform 0.3s ease;
}

.thumb-item {
    width: 52px;
    height: 74px;
    cursor: pointer;
    border: 1px solid #eee; /* 默认边框 */
    box-sizing: border-box;
    transition: all 0.2s;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.thumb-item.active {
    border: 6px solid #F5EBDF;
}

.gallery-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.gallery-btn:hover {
    background: #f5f5f5;
    color: #B98751;
    border-color: #B98751;
}

/* 右侧信息区域 */
.result-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    margin-bottom: 10px;
}

.info-title {
    font-size: 18px;
    color: #B98751;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #B98751;
    line-height: 1;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.6;
}

.info-item .label {
    color: #333;
    width: 80px;
    flex-shrink: 0;
}

.info-item .value {
    color: #333;
    font-weight: 400;
}

/* 培训现场图片轮播 */
.training-photos-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.training-photos-section .label {
    color: #333;
    font-size: 16px;
    width: 115px;
    flex-shrink: 0;
}

.training-carousel-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 500px;
    margin-top: 10px;
}

.training-carousel-wrapper {
    width: 440px;
    overflow: hidden;
}

.training-carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

.training-photo-item {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.training-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.carousel-btn:hover {
    background: #f5f5f5;
    color: #B98751;
    border-color: #B98751;
}

/* 返回按钮 */
.return-btn-container {
    margin-top: auto;
    text-align: right;
    padding-top: 20px;
}

.btn-return {
    width: 120px;
    height: 40px;
    border: none;
    background-color: #B98751;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-return:hover {
    background-color: #B98751;
    color: #fff;
}

/* 大图查看弹窗特别样式 */
.image-modal-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 4px solid #fff;
    border-radius: 4px;
}

.image-close-btn {
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 30px;
    opacity: 0.8;
}

.image-close-btn:hover {
    color: #fff;
    opacity: 1;
}
