* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #eef4ff, #f7f9fc);
    min-height: 100vh;
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

h1 {
    margin: 0;
    font-size: 26px;
    color: #1f2937;
    text-align: center;
}

.desc {
    text-align: center;
    color: #6b7280;
    margin-bottom: 28px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1d4ed8;
}

button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.loading {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    text-align: center;
}

.result {
    margin-top: 22px;
    padding: 18px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
}

.result h3 {
    margin-top: 0;
}

.result.success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}

.result.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.code {
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    color: #059669;
    letter-spacing: 2px;
    margin-left: 6px;
}

pre {
    white-space: pre-wrap;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 8px;
}
