:root {
    --wx-green: #07c160;
    --wx-green-dark: #06ad56;
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #1f2328;
    --muted: #7a8189;
    --line: #ebedf0;
    --red: #e64340;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: radial-gradient(circle at 20% 0%, #e8f8ef 0%, var(--bg) 46%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page { width: 100%; max-width: 520px; }

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 4px 14px;
}

.brand h1 { font-size: 18px; margin: 0; font-weight: 600; letter-spacing: .3px; }

.brand .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--wx-green);
    box-shadow: 0 0 0 4px rgba(7, 193, 96, .15);
}

.brand .dot.error { background: var(--red); box-shadow: 0 0 0 4px rgba(230, 67, 64, .15); }

.tag { font-size: 12px; color: var(--muted); margin-left: auto; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

.card.center { text-align: center; }

.qr-placeholder {
    width: 96px; height: 96px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    color: var(--wx-green);
    background: linear-gradient(145deg, #eafaf1, #f6fffa);
    border: 1px solid #d8f3e4;
}

.card h2 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }

.desc { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0 0 22px; }

.desc code, .hint code, .foot code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    background: #f2f4f6;
    border-radius: 4px;
    padding: 2px 5px;
    color: #4b5563;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn.primary { color: #fff; background: var(--wx-green); }
.btn.primary:hover { background: var(--wx-green-dark); }

.btn.ghost { color: var(--muted); border: 1px solid var(--line); background: #fff; }
.btn.ghost:hover { color: var(--red); border-color: #f3c9c8; }

.hint {
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #9aa1a9;
}

.user-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.avatar {
    width: 62px; height: 62px;
    border-radius: 50%;
    object-fit: cover;
    background: #f2f4f6;
    border: 1px solid var(--line);
}

.nickname { font-size: 18px; font-weight: 600; margin-bottom: 4px; }

.ok { font-size: 13px; color: var(--wx-green); }

.info { width: 100%; border-collapse: collapse; margin-top: 8px; }

.info th, .info td {
    text-align: left;
    padding: 11px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed var(--line);
    vertical-align: top;
}

.info th { width: 92px; color: var(--muted); font-weight: 500; }

.info td {
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: #333a42;
}

.card .btn.ghost { margin-top: 22px; width: 100%; }

.err-title { color: var(--red); font-size: 18px; margin: 0 0 12px; }

.raw {
    margin: 18px 0 0;
    padding: 14px;
    max-height: 220px;
    overflow: auto;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: #5b6470;
    white-space: pre-wrap;
    word-break: break-all;
}

.foot { margin-top: 16px; text-align: center; font-size: 11.5px; color: #a6adb5; }
