.qq-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.qq-auth-modal[hidden] { display: none; }
.qq-auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 18, .55);
    backdrop-filter: blur(8px);
}
.qq-auth-dialog {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--qq-border, #e3e8ef);
    border-radius: 20px;
    box-shadow: 0 28px 70px -24px rgba(15, 23, 42, .45);
    padding: 28px 28px 24px;
    color: var(--qq-text, #0b1220);
    font-family: var(--qq-font, Inter, "PingFang SC", "Microsoft YaHei", sans-serif);
}
.qq-auth-x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    color: #8a97ab;
}
.qq-auth-x:hover { background: #f6f8fa; color: #0b1220; }
.qq-auth-head { margin-bottom: 18px; }
.qq-auth-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.qq-auth-sub { margin-top: 8px; font-size: 14px; color: #64748b; }
.qq-auth-sub[hidden] { display: none; }
.qq-auth-text {
    color: #4d7c0f;
    font-weight: 700;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}
.qq-auth-text:hover { text-decoration: underline; }
.qq-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
    padding: 4px;
    background: #f6f8fa;
    border-radius: 12px;
}
.qq-auth-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}
.qq-auth-tab i { color: inherit; }
.qq-auth-tab.is-on {
    background: #fff;
    color: #4d7c0f;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}
.qq-auth-tab.is-on .fa-weixin { color: #07c160; }
.qq-auth-msg {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}
.qq-auth-msg[hidden] { display: none; }
.qq-auth-msg.is-error { background: #fef2f2; color: #b91c1c; }
.qq-auth-msg.is-ok { background: #f0fdf4; color: #166534; }
.qq-auth-panel[hidden],
.qq-auth-panel:not(.is-on) { display: none; }
.qq-auth-qr {
    min-height: 220px;
    display: grid;
    place-items: center;
    margin: 4px auto 12px;
}
.qq-auth-qr iframe { max-width: 100%; }
.qq-auth-qr img { width: 200px; height: 200px; border-radius: 12px; }
.qq-auth-qr-wait,
.qq-auth-qr-fail {
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}
.qq-auth-qr-wait i,
.qq-auth-qr-fail i { display: block; font-size: 22px; margin-bottom: 8px; }
.qq-auth-hint { text-align: center; font-size: 14px; color: #475569; margin: 0 0 8px; }
.qq-auth-refresh {
    display: block;
    margin: 0 auto 6px;
    border: 1px solid #e3e8ef;
    background: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}
.qq-auth-alt { text-align: center; font-size: 13px; margin: 8px 0 0; }
.qq-auth-alt a { color: #4d7c0f; font-weight: 600; }
.qq-auth-form { display: grid; gap: 14px; }
.qq-auth-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.qq-auth-field input[type="text"],
.qq-auth-field input[type="email"],
.qq-auth-field input[type="password"] {
    width: 100%;
    height: 44px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    font-weight: 500;
    color: #0b1220;
    background: #fff;
}
.qq-auth-field input:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(163, 230, 53, .25);
}
.qq-auth-captcha-row,
.qq-auth-code-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.qq-auth-captcha-row input,
.qq-auth-code-row input { flex: 1; }
.qq-auth-captcha-row img {
    height: 40px;
    width: 120px;
    border-radius: 8px;
    cursor: pointer;
    background: #f6f8fa;
}
.qq-auth-code {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d9f99d;
    background: #f7fee7;
    color: #4d7c0f;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.qq-auth-code:disabled { opacity: .6; cursor: not-allowed; }
.qq-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.qq-auth-row a { color: #4d7c0f; font-weight: 600; }
.qq-auth-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}
.qq-auth-terms { align-items: flex-start; line-height: 1.5; }
.qq-auth-terms a { color: #4d7c0f; font-weight: 700; }
.qq-auth-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #a3e635 0%, #22c55e 100%);
    color: #0a2c05;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 16px 40px -12px rgba(132, 204, 22, .45);
}
.qq-auth-submit:disabled { opacity: .7; cursor: wait; }
body.qq-auth-lock { overflow: hidden; }
@media (max-width: 480px) {
    .qq-auth-dialog { padding: 24px 18px 20px; border-radius: 16px; }
}
