/* 小罗资源网 - 文章作者L币打赏系统样式 */
.xl-reward-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px;
    box-sizing: border-box;
}

.xl-reward-overlay.active {
    opacity: 1;
    visibility: visible;
}

.xl-reward-modal {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.92) translateY(10px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.xl-reward-overlay.active .xl-reward-modal {
    transform: scale(1) translateY(0);
}

.xl-reward-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 24px 20px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #fcd34d;
}

.xl-reward-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 18px;
    line-height: 28px;
    color: #78350f;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xl-reward-close:hover {
    background: rgba(0, 0, 0, 0.12);
    transform: rotate(90deg);
}

.xl-reward-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f59e0b;
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.xl-reward-title {
    font-size: 17px;
    font-weight: 700;
    color: #78350f;
    margin: 0 0 4px;
}

.xl-reward-subtitle {
    font-size: 13px;
    color: #92400e;
    margin: 0;
}

.xl-reward-body {
    padding: 20px;
}

.xl-reward-user-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #475569;
}

.xl-reward-user-balance strong {
    color: #ea580c;
    font-size: 15px;
}

.xl-reward-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.xl-reward-amount-btn {
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.xl-reward-amount-btn span.unit {
    font-size: 11px;
    color: #94a3b8;
    font-weight: normal;
}

.xl-reward-amount-btn:hover {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #d97706;
}

.xl-reward-amount-btn.active {
    border-color: #f59e0b;
    background: #fef3c7;
    color: #b45309;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.xl-reward-amount-btn.active span.unit {
    color: #b45309;
}

.xl-reward-custom-wrap {
    margin-bottom: 16px;
}

.xl-reward-custom-wrap input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.xl-reward-custom-wrap input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.xl-reward-msg-wrap {
    margin-bottom: 20px;
}

.xl-reward-msg-wrap textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 13px;
    height: 60px;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.xl-reward-msg-wrap textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.xl-reward-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.xl-reward-submit-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.xl-reward-submit-btn:active {
    transform: translateY(0);
}

/* 按钮专属黄色高质感 */
.xl-btn-reward {
    color: #b45309 !important;
    border-color: #fde68a !important;
    background: #fffbeb !important;
}
.xl-btn-reward:hover {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
    transform: translateY(-1px) !important;
}
.xl-btn-reward svg {
    color: #f59e0b !important;
}

/* 暗色模式支持 */
html[data-theme-mode="night"] .xl-reward-modal {
    background: #1e293b;
    color: #f1f5f9;
}
html[data-theme-mode="night"] .xl-reward-header {
    background: linear-gradient(135deg, #78350f 0%, #451a03 100%);
    border-color: #92400e;
}
html[data-theme-mode="night"] .xl-reward-title {
    color: #fef3c7;
}
html[data-theme-mode="night"] .xl-reward-subtitle {
    color: #fde68a;
}
html[data-theme-mode="night"] .xl-reward-close {
    color: #fde68a;
    background: rgba(255, 255, 255, 0.1);
}
html[data-theme-mode="night"] .xl-reward-user-balance {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
html[data-theme-mode="night"] .xl-reward-amount-btn {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}
html[data-theme-mode="night"] .xl-reward-amount-btn.active {
    background: #78350f;
    border-color: #f59e0b;
    color: #fef3c7;
}
html[data-theme-mode="night"] .xl-reward-custom-wrap input,
html[data-theme-mode="night"] .xl-reward-msg-wrap textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}


/* Swiss Minimalist Notice Modal (No AI Cliché, AA Contrast, Spring Physics) */
.xl-reward-notice-modal {
    max-width: 380px !important;
    padding: 24px 20px !important;
    border: 1px solid #e4e4e7 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

.xl-notice-header {
    text-align: center !important;
    position: relative !important;
}

.xl-notice-icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
}

.xl-notice-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #09090b !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
}

.xl-notice-desc {
    font-size: 13px !important;
    color: #52525b !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.6 !important;
}

.xl-notice-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.xl-notice-btn {
    flex: 1 !important;
    height: 38px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.xl-notice-btn:active {
    transform: scale(0.985) !important;
}

.xl-notice-btn-cancel {
    background: #ffffff !important;
    color: #52525b !important;
    border: 1px solid #e4e4e7 !important;
}

.xl-notice-btn-cancel:hover {
    background: #f4f4f5 !important;
    color: #09090b !important;
}

.xl-notice-btn-confirm {
    background: #18181b !important;
    color: #ffffff !important;
    border: 1px solid #18181b !important;
}

.xl-notice-btn-confirm:hover {
    background: #27272a !important;
}

/* Dark Mode */
html[data-theme-mode="night"] .xl-reward-notice-modal {
    background: #18181b !important;
    border-color: #27272a !important;
}
html[data-theme-mode="night"] .xl-notice-title {
    color: #fafafa !important;
}
html[data-theme-mode="night"] .xl-notice-desc {
    color: #a1a1aa !important;
}
html[data-theme-mode="night"] .xl-notice-btn-cancel {
    background: #27272a !important;
    color: #d4d4d8 !important;
    border-color: #3f3f46 !important;
}
html[data-theme-mode="night"] .xl-notice-btn-confirm {
    background: #fafafa !important;
    color: #09090b !important;
    border-color: #fafafa !important;
}
