* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 45%, #ecfdf5 100%);
    color: #1e293b;
    min-height: 100vh;
}

.page {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 13px;
    color: #64748b;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card h2 {
    font-size: 16px;
    margin-bottom: 14px;
}

.desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin: 10px 0 6px;
}

input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.btn {
    margin-top: 14px;
    padding: 11px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.btn.primary {
    background: #2563eb;
    color: #fff;
    width: 100%;
}

.btn.ghost {
    background: #f1f5f9;
    color: #334155;
    width: 100%;
}

.btn.full {
    width: 100%;
}

.params {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.params div {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
}

.params span {
    color: #64748b;
}

.qrcode-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 12px 0 16px;
}

#qrcode, #previewQrcode {
    border: 8px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.hint {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.link-box input {
    margin-bottom: 8px;
}

.loading-box {
    text-align: center;
    padding: 24px 0;
}

.spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.launch-weapp {
    display: block;
    width: 100%;
    margin: 12px 0;
}

.warn {
    font-size: 12px;
    color: #b45309;
    line-height: 1.5;
    margin-top: 10px;
}

.error-box {
    margin-top: 12px;
    padding: 12px;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}
