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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    min-height: calc(100vh - 118px); /* 减去 header 和 footer 的高度 */
    margin-top: 10px; /* 与顶部标题栏的额外间距 */
}

.top-image {
    width: 100%;
    height: auto;
    display: block;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.content {
    padding: 30px 15px 20px 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #1E90FF;
}

.btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    background: #000;
    color: white;
}

.btn:hover {
    background: #333;
    opacity: 1;
}

.btn:active {
    background: #1a1a1a;
    transform: scale(0.99);
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
}

.result-error {
    background: #ffebee;
    color: #c62828;
    border-left: 3px solid #f44336;
}

.result-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.certificate-container {
    margin-top: 20px;
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.certificate-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
}

.certificate-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.info-item {
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
}

.info-label {
    color: #666;
    min-width: 90px;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    flex: 1;
}

.hint {
    margin-top: 15px;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* 移动端优化 */
@media (max-width: 480px) {
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .content {
        padding: 25px 12px 15px 12px;
    }
    
    .form-input {
        font-size: 16px; /* 防止iOS自动缩放 */
        padding: 12px 14px;
    }
    
    .btn {
        font-size: 14px; /* 防止iOS自动缩放 */
        padding: 10px;
        -webkit-appearance: none;
        appearance: none;
    }
}
