body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    margin-bottom: 15px;
}

.logo img {
    max-height: 60px;
}

h1 {
    color: #333;
    margin: 0;
    font-size: 24px;
}

.search-form {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    padding: 30px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.captcha-group .captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-container input {
    width: 150px;
    text-transform: uppercase;
}

.captcha-image {
    height: 40px;
    border: 1px solid #ddd;
}

button {
    background-color: #1890ff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

button:hover {
    background-color: #40a9ff;
}

.notice {
    margin-top: 30px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    padding: 20px;
    border-radius: 8px;
}

.notice h3 {
    color: #333;
    margin-top: 0;
}

.notice ol {
    padding-left: 20px;
    color: #666;
}

.notice li {
    margin-bottom: 10px;
}

footer {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

footer p {
    margin: 5px 0;
}

#captchaCanvas {
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.captcha-container::after {
    content: 'Click to refresh';
    position: absolute;
    font-size: 12px;
    color: #999;
    margin-top: 45px;
    margin-left: 160px;
}

/* 结果页面样式 */
.result-card {
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-top: 20px;
}

.result-header {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.valid-badge {
    background-color: #52c41a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.invalid-badge {
    background-color: #ff4d4f;
}

.result-content {
    padding: 20px;
}

.info-group {
    display: flex;
    margin-bottom: 16px;
    border-bottom: 1px dashed #e8e8e8;
    padding-bottom: 12px;
}

.info-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-group label {
    width: 150px;
    color: #666;
    font-weight: normal;
}

.info-group span {
    flex: 1;
    color: #333;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 16px;
}

.back-button {
    background-color: #666;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    flex: 1;
}

.print-button {
    background-color: #1890ff;
    flex: 1;
}

.back-button:hover {
    background-color: #555;
}

/* 打印样式 */
@media print {
    .button-group,
    footer {
        display: none;
    }
    
    .container {
        padding: 0;
    }
    
    .result-card {
        border: none;
    }
} 

/* 证书图片样式 */
.certificate-image {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e8e8e8;
}

.certificate-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e8e8e8;
}

/* 打印模板样式 */
.print-template {
    display: none;
}

@media print {
    /* 隐藏普通视图 */
    .container {
        display: none;
    }

    /* 显示打印模板 */
    .print-template {
        display: block;
        padding: 20px;
    }

    .print-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .print-header img {
        max-height: 60px;
        margin-bottom: 15px;
    }

    .print-header h2 {
        margin: 0;
        color: #333;
        font-size: 24px;
    }

    .print-content {
        margin-top: 20px;
    }

    .print-info {
        margin-bottom: 30px;
    }

    .print-info p {
        margin: 10px 0;
        font-size: 16px;
    }

    .print-image {
        text-align: center;
    }

    .print-image img {
        max-width: 100%;
        height: auto;
        border: 1px solid #e8e8e8;
    }
} 