body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    text-align: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.btn {
    background-color: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    width: 100%;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1rem;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.hidden {
    display: none;
}

.error {
    color: #e74c3c;
    margin-top: 1rem;
}

/* Certificate Container */
#certificate-container {
    margin: 2rem 0;
    padding: 0;
    background: #fff;
    display: flex;
    justify-content: center;
}

/* 证书图片显示 */
.certificate-image-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.actions .btn {
    width: auto;
}

.mobile-tip {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

.query-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* 结果列表样式 */
.results-container {
    text-align: left;
    max-height: 60vh;
    overflow-y: auto;
}

.results-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.result-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-item:hover {
    background: #e9ecef;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-item .donor-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.result-item .donor-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.result-item .info-item {
    display: flex;
    flex-direction: column;
}

.result-item .info-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.2rem;
}

.result-item .info-value {
    color: #6c757d;
}

.no-results {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
    font-style: italic;
}

@media (max-width: 600px) {
    .result-item .donor-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}