/* ==================== weeqq 共享意见建议反馈 UI 样式 ==================== */

/* 建议悬浮按钮 */
.feedback-trigger-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    height: 42px;
    padding: 0 1.1rem;
    border-radius: 21px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5), 0 8px 10px -6px rgba(99, 102, 241, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    z-index: 9998;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-trigger-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.6), 0 10px 10px -5px rgba(99, 102, 241, 0.6);
}

.feedback-trigger-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

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

/* 反馈弹窗遮罩层 */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 18, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.feedback-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* 弹窗主体 */
.feedback-card {
    background: rgba(22, 23, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    color: #ffffff;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.feedback-overlay.show .feedback-card {
    transform: scale(1);
}

/* 头部 */
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feedback-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-header .close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.15s ease;
}

.feedback-header .close-btn:hover {
    color: #ffffff;
}

/* 反馈表单内容 */
.feedback-body {
    padding: 1.5rem;
}

.feedback-body p {
    margin: 0 0 1rem 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
}

.feedback-textarea {
    width: 100%;
    background: rgba(10, 11, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.5;
    resize: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
    margin-bottom: 1.2rem;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(10, 11, 18, 0.7);
}

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.feedback-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn.cancel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.feedback-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.feedback-btn.submit {
    background: #6366f1;
    border: none;
    color: #ffffff;
}

.feedback-btn.submit:hover {
    background: #4f46e5;
}

.feedback-btn.submit:disabled {
    background: rgba(99, 102, 241, 0.4);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* 适配移动端 */
@media (max-width: 640px) {
    .feedback-trigger-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        height: 36px;
        padding: 0 0.9rem;
        border-radius: 18px;
        font-size: 0.72rem;
    }
}
