/* 联系站长 / 工具许愿池 样式 */
.feedback-float-btn {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    background: #ffffff;
    color: var(--brand, #2563eb);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.18);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] .feedback-float-btn {
    background: #1e293b;
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.feedback-float-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--brand, #2563eb);
    color: #ffffff;
    border-color: var(--brand, #2563eb);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

html[data-theme="dark"] .feedback-float-btn:hover {
    background: #3b82f6;
    color: #ffffff;
}

.feedback-float-btn i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.feedback-float-btn:hover i {
    transform: rotate(15deg);
}

/* 弹窗 Overlay */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.feedback-modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.feedback-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"] .feedback-modal {
    background: #1e293b;
    color: #f8fafc;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

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

.feedback-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-soft, #f1f5f9);
}

html[data-theme="dark"] .feedback-modal__head {
    border-color: #334155;
}

.feedback-modal__title h3 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
}

html[data-theme="dark"] .feedback-modal__title h3 {
    color: #f8fafc;
}

.feedback-modal__title p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted, #64748b);
}

.feedback-modal__close {
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.feedback-modal__close:hover {
    color: #ef4444;
}

.feedback-modal__body {
    padding: 20px 24px 24px;
}

.feedback-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feedback-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid var(--border-main, #e2e8f0);
    border-radius: 999px;
    background: var(--page-bg-muted, #f8fafc);
    color: var(--text-sub, #475569);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

html[data-theme="dark"] .feedback-type-chip {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

.feedback-type-chip.is-active,
.feedback-type-chip:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand, #2563eb);
}

html[data-theme="dark"] .feedback-type-chip.is-active,
html[data-theme="dark"] .feedback-type-chip:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: #3b82f6;
}

.feedback-field {
    margin-bottom: 14px;
}

.feedback-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main, #334155);
}

html[data-theme="dark"] .feedback-field label {
    color: #e2e8f0;
}

.feedback-field textarea,
.feedback-field input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-main, #cbd5e1);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-main, #0f172a);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .feedback-field textarea,
html[data-theme="dark"] .feedback-field input[type="text"] {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.feedback-field textarea:focus,
.feedback-field input[type="text"]:focus {
    border-color: var(--brand, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.feedback-submit-btn {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: var(--brand, #2563eb);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.feedback-submit-btn:hover {
    background: #1d4ed8;
}

.feedback-submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .feedback-float-btn {
        right: 16px;
        bottom: 20px;
        padding: 8px 14px;
        font-size: 13px;
    }
}
