* { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { height: 100%; }
    body {
        font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
        background: #f5f7fa; color: #2c3e50; min-height: 100vh;
        display: flex; flex-direction: column;
    }
    .wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
    .card {
        width: 100%; max-width: 640px; background: #fff; border-radius: 16px;
        box-shadow: 0 8px 30px rgba(44,62,80,0.10); overflow: hidden;
    }
    .hero {
        display: flex; align-items: center; gap: 14px;
        padding: 22px 24px; background: #2c3e50; color: #fff;
    }
    .hero .icon {
        width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
        background: rgba(255,255,255,0.14); display: flex; align-items: center;
        justify-content: center; font-size: 26px; overflow: hidden;
    }
    .hero .icon img { width: 100%; height: 100%; object-fit: cover; }
    .hero .meta { min-width: 0; }
    .hero .name { font-size: 17px; font-weight: 600; }
    .hero .sub { font-size: 12px; opacity: .75; margin-top: 4px; }

    .body { padding: 24px; }
    .lead { font-size: 14px; color: #5a6c7d; line-height: 1.7; margin-bottom: 20px; }

    .field { margin-bottom: 18px; }
    .field label {
        display: block; font-size: 13px; font-weight: 600;
        color: #2c3e50; margin-bottom: 7px;
    }
    .field .hint { font-weight: 400; color: #95a5a6; font-size: 12px; }
    .field input[type=text], .field input[type=email], .field textarea {
        width: 100%; padding: 11px 13px; border: 1px solid #dfe6ec;
        border-radius: 9px; font-size: 14px; font-family: inherit;
        color: #2c3e50; background: #fbfcfd; transition: border-color .15s, background .15s;
    }
    .field input:focus, .field textarea:focus {
        outline: none; border-color: #e67e22; background: #fff;
    }
    .field textarea { resize: vertical; min-height: 180px; line-height: 1.7; }
    .counter { text-align: right; font-size: 12px; color: #95a5a6; margin-top: 5px; }
    .counter.over { color: #e74c3c; font-weight: 600; }

    .note {
        display: flex; gap: 9px; align-items: flex-start;
        background: #fff8ec; border: 1px solid #f5d9a8; border-radius: 9px;
        padding: 11px 13px; font-size: 12.5px; color: #8a5a10; line-height: 1.65;
        margin-bottom: 18px;
    }
    .note.warn { background: #fdecea; border-color: #f5b7b1; color: #a02c22; }

    #captcha-slot { margin-bottom: 18px; }
    .btn {
        width: 100%; padding: 14px; border: none; border-radius: 10px;
        background: #e67e22; color: #fff; font-size: 15px; font-weight: 600;
        font-family: inherit; cursor: pointer; transition: background .15s;
    }
    .btn:hover:not(:disabled) { background: #d35400; }
    .btn:disabled { background: #cfd6dc; cursor: not-allowed; }
    .btn.ghost {
        display: inline-block; width: auto; padding: 11px 22px;
        background: transparent; color: #2c3e50; border: 1px solid #dfe6ec;
        text-decoration: none; font-weight: 500;
    }
    .btn.ghost:hover { background: #f2f5f8; }

    .state {
        padding: 60px 28px; text-align: center;
    }
    .state .big { font-size: 46px; line-height: 1; margin-bottom: 16px; }
    .state h2 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
    .state p { font-size: 14px; color: #7f8c8d; line-height: 1.75; margin-bottom: 22px; }

    /* 出错时的「粘贴完整链接重试」自救区 */
    .fix {
        text-align: left; background: #f8fafb; border: 1px solid #e3e9ee;
        border-radius: 10px; padding: 14px; margin-bottom: 20px;
    }
    .fix label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
    .fix textarea {
        width: 100%; padding: 10px 12px; border: 1px solid #dfe6ec; border-radius: 8px;
        font-size: 12px; font-family: ui-monospace, Consolas, monospace; line-height: 1.6;
        color: #2c3e50; background: #fff; resize: vertical; min-height: 76px;
        word-break: break-all;
    }
    .fix textarea:focus { outline: none; border-color: #e67e22; }
    .fix .row { display: flex; gap: 8px; margin-top: 10px; }
    .fix .row .btn { flex: 1; padding: 10px 14px; font-size: 13.5px; }
    .diag {
        font-size: 11.5px; color: #b0bcc6; font-family: ui-monospace, Consolas, monospace;
        word-break: break-all; margin-top: 16px;
    }

    .spinner {
        width: 30px; height: 30px; border: 3px solid #e3e9ee; border-top-color: #e67e22;
        border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .toast {
        position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
        background: #2c3e50; color: #fff; font-size: 13.5px;
        padding: 11px 20px; border-radius: 8px; opacity: 0;
        transition: opacity .2s; pointer-events: none; z-index: 50;
    }
    .toast.show { opacity: 1; }

    footer { text-align: center; padding: 18px; font-size: 12px; color: #a6b1bb; }
    footer a { color: #a6b1bb; text-decoration: none; }
    footer a:hover { color: #7f8c8d; }

    @media (max-width: 560px) {
        .body { padding: 20px 18px; }
        .hero { padding: 18px; }
        .field textarea { min-height: 150px; }
    }

/* ---------- 人机验证挂载点（统一封装 /static/js/core/captcha.js） ---------- */
.captcha-slot {
    margin: 0 0 10px;
    min-height: 0;
}

.captcha-hint {
    font-size: 0.82em;
    color: #95a5a6;
    margin-top: 4px;
}

.captcha-hint.error {
    color: #e74c3c;
}
