﻿.banquan-license-wrap {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.banquan-license-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 520px;
}

.banquan-label {
    font-weight: 600;
}

.banquan-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.banquan-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.banquan-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.banquan-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.banquan-button {
    align-self: flex-start;
    padding: 10px 18px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.banquan-button:hover {
    background: #000;
}

.banquan-button.is-secondary {
    background: #111;
}

.banquan-button.is-secondary:hover {
    background: #000;
}

.banquan-button.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.banquan-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.banquan-status {
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.banquan-status.is-visible {
    display: flex;
}

.banquan-status.is-loading {
    color: #444;
}

.banquan-status.is-success {
    color: #0a6b2a;
}

.banquan-status.is-timeout {
    color: #c00;
}

.banquan-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #111;
    border-radius: 50%;
    animation: banquan-spin 1s linear infinite;
    display: none;
}

.banquan-status.is-loading .banquan-spinner {
    display: inline-block;
}

@keyframes banquan-spin {
    to {
        transform: rotate(360deg);
    }
}

.banquan-error {
    color: #c00;
    font-weight: 600;
}

.banquan-license-list {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.banquan-license-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.banquan-license-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.banquan-license-list li {
    margin: 6px 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.banquan-license-list a {
    color: #111;
    text-decoration: none;
}

.banquan-license-list.is-forbidden a,
.banquan-license-list.is-forbidden li {
    text-decoration: line-through;
    color: #a00;
}

.banquan-quiz {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.banquan-quiz.is-visible {
    display: flex;
}

.banquan-quiz-dialog {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    border: 1px solid #eee;
    max-height: 90vh;
    overflow: auto;
}

.banquan-quiz-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.banquan-quiz-subtitle {
    color: #666;
    margin-bottom: 18px;
    font-size: 14px;
}

.banquan-quiz-question {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
}

.banquan-quiz-question:first-of-type {
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 0;
}

.banquan-quiz-q {
    font-weight: 600;
}

.banquan-quiz-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.banquan-quiz-option:hover {
    background: #f0f0f0;
}

.banquan-quiz-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.banquan-quiz-submit,
.banquan-quiz-cancel {
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid #111;
    cursor: pointer;
    min-width: 80px;
}

.banquan-quiz-submit {
    background: #111;
    color: #fff;
}

.banquan-quiz-submit:hover {
    background: #000;
}

.banquan-quiz-cancel {
    background: #fff;
    color: #111;
}

.banquan-quiz-cancel:hover {
    background: #f2f2f2;
}

.banquan-quiz-error {
    color: #c00;
    font-weight: 600;
    width: 100%;
    text-align: left;
}

.banquan-quiz-note {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    padding: 10px 12px;
    background: #f7f7f7;
    border-left: 3px solid #111;
    border-radius: 8px;
}
