* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body,
html {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #E6F4FF 0%, #B3D9F2 100%);
}

img {
    pointer-events: none;
    -webkit-user-drag: none;
}

.background-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 600px;
    background: url('/assets/img/background-image.png') no-repeat center center;
    background-size: cover;
}

.content-box {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    padding: 10px;
    text-align: center;
    color: #333;
}

.text-container {
    margin-bottom: 12px;
    position: relative;
}

.text-container p {
    margin: 5px 0;
    line-height: 1.5;
    font-size: 13px;
    color: #413f3f;
    text-align: center;
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
    padding: 0 15px 0 5px;
}

.highlight-image {
    position: absolute;
    width: 80px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -55%);
    z-index: 2;
}

.highlight-container {
    position: relative;
    margin: 10px auto;
    text-align: center;
    z-index: 1;
}

.highlight-box {
    background-color: #d9e3f5;
    border-radius: 20px;
    display: inline-block;
    padding: 5px 10px;
}

.highlight-text {
    font-weight: bold;
    color: #333;
    margin: -20px;
    padding: 0;
}

.highlight-box-large {
    width: 75%;
    height: 15px;
    margin-bottom: 0;
}

.highlight-box-small {
    width: 50%;
    height: 15px;
}

.highlight-text-large {
    font-size: 16px;
    line-height: 30px;
}

.highlight-text-small {
    font-size: 15px;
    line-height: 30px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.input-field,
.submit-button {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    font-size: 14px;
    text-align: center;
}

.input-field {
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

.submit-button {
    background-color: #2785f0;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.heart-image {
    width: 15px;
    height: 15px;
    margin: 5px;
}

.heart-container {
    margin: 5px 0;
}

.image-container {
    text-align: center;
    margin: 1px 0; 
}

.certificate-image {
    max-width: 100%;
    max-height: 275px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #ddd;
}

.result-interface {
    display: none;
}

.result-title {
    font-size: 80px;
    font-weight: bold;
    margin: 0 auto 10px;
    line-height: 1;
    width: fit-content;
}

.result-valid {
    color: #3f5382;
}

.result-invalid {
    color: #f43d39;
}

.divider-dashed {
    width: 180px;
    height: 2px;
    border-bottom: 3px dashed #ccc;
    margin: 0 auto 15px;
}

.status-icon,
.icon {
    width: 60px;
    margin: 10px auto;
    display: block;
}

.description-text {
    font-size: 12px;
    color: #b3b2b2;
    margin-bottom: 15px;
    line-height: 1.5;
}

.info-text {
    font-weight: 700;
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.8;
}

.description-text .info-text {
    font-size: 12px;
    color: #b3b2b2;
}

.warning-text .info-text {
    color: #333;
    font-weight: 700;
    font-size: 14px;
}

.warning-text {
    color: red;
    font-weight: 700;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.8;
}

.footer-text {
    color: red;
    font-size: 14px;
    margin-top: 15px;
}

.back-button {
    background: #2785f0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 5px;
}

.certificate-result {
    text-align: center;
    padding: 10px 0;
}

.certificate-info-text {
    font-weight: 600;
    font-size: 13px;
    margin: 5px 0 15px 0; 
    line-height: 1.3;
    color: #333;
}

.input-with-tooltip {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #005051;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, bottom 0.2s ease; 
    z-index: 100;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #005051;
}

.input-field:focus {
    border-color: #005051;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 80, 81, 0.2);
}

.input-field:focus + .tooltip {
    visibility: visible;
    opacity: 1;
    bottom: calc(100% + 12px);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

/* 提示框样式 */
.layui-layer-fine {
  border-radius: 12px;
  background-color: #f8f9fa;
  border: none;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.layui-layer-fine .layui-layer-content {
  color: #333;
  font-size: 14px;
  padding: 10px 18px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 6px;
}

.layui-layer-fine .layui-layer-content::before {
  content: "💡";
  font-size: 18px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .content-box {
        width: 90%;
    }

    .highlight-image {
        width: 70px;
        transform: translate(-55%, -55%);
    }

    .highlight-text-large {
        font-size: 14px;
    }

    .heart-image {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 360px) {
    .highlight-image {
        width: 65px;
        transform: translate(-40%, -55%);
    }
}