* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('/static/images/login.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: "Microsoft YaHei", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh; /* 垂直方向占屏幕80%高度 */
    padding: 16px; /* 手机端左右最小留白 */
}

/* 给结果卡片开启定位上下文 */
#resultCard {
    position: relative;
}

/* 半透明底纹图片 */
.watermark {
    position: absolute; /* 相对于父元素(login-container)定位 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%; /* 占卡片宽度的65% */
    max-width: 420px; /* 对应400px卡片宽度的65% */
    opacity: 0.09; /* 稍微提高透明度，让蓝色更明显 */
    z-index: 0;
    pointer-events: none;
    user-select: none;
    /* 用滤镜组合调出淡蓝色 filter: brightness(0.1); 把白色logo变成深灰色，在白色背景上可见 */
    /* filter: brightness(0.6) hue-rotate(215deg) saturate(4.0); */
    /* 先提高对比度，再调色，完美解决发灰问题 */
    filter: contrast(2.5) brightness(0.7) hue-rotate(210deg) saturate(5.0);
}

/* 底纹图片 保持比例 */
.watermark img {
    width: 100%;
    height: auto;
    display: block;
}

/* 底纹图片向下偏移的设置 */
.watermark {
    top: calc(50% - 50px);
}

/* 容器样式同登录页 */
.login-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 400px; /* 固定卡片宽度 */
    position: relative; /* 开启定位上下文配合底纹图片 */
}

.login-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

/* 输入框 */
.form-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 38px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 按钮 */
.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #40a9ff;
}

.error-msg {
    color: #f5222d;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

/* 结果展示区新增样式（匹配整体风格） */
.result-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
    font-weight: bold;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.result-item {
    display: flex;
    margin-bottom: 15px;
    font-size: 14px;
}

.result-label {
    width: 120px;
    color: #666;
    flex-shrink: 0;
}

/* 默认文字效果 */
.result-value {
    color: #333;
    flex: 1;
    word-break: break-all; /* 在任意字符位置强制断行 */
}

/* 在线下单(报检) */
.result-value a {
    color: #1890ff;
    text-decoration: none;
}

/* 显示下划线 underline */
.result-value a:hover {
    text-decoration: none;
}

/* 校验结论 */
.status-valid {
    color: #52c41a;
    font-weight: 600;
}

.status-invalid {
    color: #ff4d4f;
    font-weight: 600;
}

.requery-btn {
    width: 100%;
    padding: 10px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.requery-btn:hover {
    background-color: #5a6268;
}

/* 证书图片相关样式 */
.cert-image-btn {
    width: 80%;
    padding: 10px 10px;
    border: 1px solid #00b42a;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin: 30px auto 10px auto;
    background-color: #f2fff5;
    color: #00b42a;
    display: block;
}

.cert-image-btn:disabled {
    border-color: #d9d9d9;
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* 图片预览遮罩样式 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column; /* 新增：方便排列控制按钮 */
}

.image-modal-content {
    max-width: 90%;
    max-height: 80%; /* 修改：给控制条留空间 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease; /* 新增：平滑缩放 */
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 10001;
}