﻿
/* 顶部 */
.fb-head {
    text-align: center;
    margin-bottom: var(--spacing-8);
}

    .fb-head h1 {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--gray-900);
        margin-bottom: var(--spacing-2);
    }

    .fb-head p {
        font-size: .95rem;
        color: var(--gray-500);
        line-height: 1.6;
    }

/* 面板 */
.fb-panel {
    background: var(--bg-tertiary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    margin-bottom: var(--spacing-4);
}

.fb-section-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: var(--spacing-4);
}

/* 反馈类型 */
.fb-types {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-2);
}

.fb-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-4);
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--gray-200);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    text-align: center;
}

    .fb-type-btn:hover {
        border-color: var(--primary-900);
        background: rgba(108,92,231,.04);
    }

    .fb-type-btn.on {
        border-color: var(--primary-900);
        background: rgba(108,92,231,.07);
    }

.fb-type-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.fb-type-lbl {
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-700);
}

.fb-type-sub {
    font-size: .72rem;
    color: var(--gray-400);
    line-height: 1.4;
}

.fb-type-btn.on .fb-type-lbl {
    color: var(--primary-900);
}

/* 评分 */
.fb-stars {
    display: flex;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-1);
}

.fb-star {
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform .1s;
    line-height: 1;
    filter: grayscale(1) opacity(.4);
}

    .fb-star:hover, .fb-star.on {
        filter: none;
        transform: scale(1.15);
    }

.fb-star-hint {
    font-size: .78rem;
    color: var(--gray-400);
    height: 18px;
    transition: all .15s;
}

/* 表单元素 */
.fb-field {
    margin-bottom: var(--spacing-4);
}

    .fb-field:last-child {
        margin-bottom: 0;
    }

.fb-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--spacing-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fb-label-opt {
    font-size: .72rem;
    font-weight: 400;
    color: var(--gray-400);
}

.fb-input {
    width: 100%;
    box-sizing: border-box;
}

.fb-textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
    font-size: .875rem;
    line-height: 1.7;
}

.fb-char-hint {
    font-size: .72rem;
    color: var(--gray-400);
    text-align: right;
    margin-top: 4px;
}

/* 截图上传 */
.fb-upload {
    border: 1.5px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-5);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-secondary);
    position: relative;
}

    .fb-upload:hover {
        border-color: var(--primary-900);
        background: rgba(108,92,231,.03);
    }

    .fb-upload input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.fb-upload-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-2);
}

.fb-upload-text {
    font-size: .82rem;
    color: var(--gray-500);
}

.fb-upload-hint {
    font-size: .72rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.fb-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin-top: var(--spacing-3);
}

.fb-preview-item {
    position: relative;
    width: 72px;
    height: 72px;
}

    .fb-preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-200);
    }

.fb-preview-rm {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gray-700);
    color: #fff;
    font-size: .65rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* 提交按钮 */
.fb-submit {
    width: 100%;
    height: 52px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: var(--spacing-2);
}

/* 成功态 */
.fb-success {
    display: none;
    text-align: center;
    padding: var(--spacing-12) var(--spacing-6);
}

.fb-success-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-4);
    animation: popIn .4s cubic-bezier(.34,1.56,.64,1);
}

.fb-success h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-3);
}

.fb-success p {
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--spacing-6);
}

@keyframes popIn {
    from {
        transform: scale(.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 历史记录 */
.fb-history-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-3);
    padding: var(--spacing-3) 0;
    border-bottom: 1px solid var(--gray-200);
}

    .fb-history-item:last-child {
        border-bottom: none;
    }

.fb-hist-type {
    font-size: .65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: 2px;
}

.type-bug {
    background: rgba(239,68,68,.1);
    color: #ef4444;
}

.type-feature {
    background: rgba(108,92,231,.1);
    color: var(--primary-900);
}

.type-question {
    background: rgba(59,130,246,.1);
    color: #3b82f6;
}

.type-other {
    background: var(--bg-secondary);
    color: var(--gray-500);
}

.fb-hist-body {
    flex: 1;
    min-width: 0;
}

.fb-hist-text {
    font-size: .85rem;
    color: var(--gray-700);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-hist-meta {
    font-size: .72rem;
    color: var(--gray-400);
    margin-top: 3px;
    display: flex;
    gap: var(--spacing-3);
}

.fb-hist-status {
    font-size: .7rem;
    font-weight: 600;
}

.status-pending {
    color: var(--gray-400);
}

.status-received {
    color: #F59E0B;
}

.status-resolved {
    color: #10B981;
}

/* 响应式 */
@media (max-width:560px) {
    .fb-types {
        grid-template-columns: repeat(2,1fr);
        gap: var(--spacing-2);
    }

    .fb-type-btn {
        padding: var(--spacing-3);
    }

    .fb-type-icon {
        font-size: 1.2rem;
    }

    .fb-head h1 {
        font-size: 1.4rem;
    }
}

