/* X铺子反馈系统 - 前端样式 */
.wpf-container { max-width: 960px; margin: 0 auto; padding: 24px 20px 80px; }

/* Hero */
.wpf-hero { text-align: center; padding: 32px 0 16px; }
.wpf-hero h1 { font-size: 26px; color: #1c2534; margin: 0 0 8px; }
.wpf-hero p { color: #6b7280; margin: 0; }

/* 筛选 */
.wpf-filters {
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px 18px; background: #f7f9fc; border-radius: 10px; margin-bottom: 20px;
}
.wpf-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wpf-label { font-size: 13px; color: #6b7280; font-weight: 500; min-width: 44px; }
.wpf-pill {
    padding: 5px 14px; border: 1px solid #e2e8f0; background: #fff; border-radius: 999px;
    font-size: 13px; color: #475569; cursor: pointer; transition: .15s;
}
.wpf-pill:hover { border-color: #2563eb; color: #2563eb; }
.wpf-pill.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.wpf-sep { width: 1px; height: 20px; background: #e2e8f0; margin: 0 4px; }

/* 列表 */
.wpf-list { display: flex; flex-direction: column; gap: 14px; }
.wpf-loading, .wpf-empty { text-align: center; padding: 60px 0; color: #9ca3af; font-size: 14px; }

/* 卡片 */
.wpf-card {
    background: #fff; border: 1px solid #e8edf3; border-radius: 12px; padding: 18px 22px; transition: .15s;
}
.wpf-card:hover { border-color: #c5d1e2; box-shadow: 0 2px 8px rgba(30,60,114,.05); }
.wpf-card.is-hidden { background: #fafaf9; border-style: dashed; border-color: #e7e5e4; }
.wpf-card.is-hidden .wpf-title { opacity: .7; }

.wpf-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
    padding: 4px 6px; margin-left: -6px; margin-right: -6px; border-radius: 6px; transition: .15s;
}
.wpf-head.clickable { cursor: pointer; }
.wpf-head.clickable:hover { background: #f8fafc; }
.wpf-head.clickable:hover .wpf-title { color: #2563eb; }

.wpf-type { padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.wpf-type.t-issue { background: #fef3f2; color: #b42318; }
.wpf-type.t-suggestion { background: #eff6ff; color: #1d4ed8; }
.wpf-type.t-feature { background: #fef9c3; color: #a16207; }
.wpf-type.t-other { background: #f1f5f9; color: #475569; }
.wpf-platform-badge {
    padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 500;
    background: #ecfdf5; color: #047857; border: 1px solid #d1fae5; white-space: nowrap;
}

.wpf-title { font-size: 16px; font-weight: 600; color: #1c2534; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wpf-head-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.wpf-reply-count { font-size: 12px; color: #64748b; background: #f1f5f9; padding: 2px 8px; border-radius: 10px; }
.wpf-best-tag { font-size: 14px; }
.wpf-chevron { color: #94a3b8; transition: .2s; font-size: 14px; }
.wpf-chevron.open { transform: rotate(180deg); }

.wpf-status { padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.wpf-status.s-open { background: #f1f5f9; color: #475569; }
.wpf-status.s-in_progress { background: #fef3c7; color: #b45309; }
.wpf-status.s-resolved { background: #dcfce7; color: #15803d; }
.wpf-status.s-closed { background: #e5e7eb; color: #6b7280; }

/* 管理员状态下拉 */
.wpf-status-select {
    padding: 3px 10px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 12px; font-weight: 500;
    background: #fff; cursor: pointer; transition: .15s;
}
.wpf-status-select:hover { border-color: #2563eb; }
.wpf-status-select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.15); }

.wpf-desc { color: #4b5563; font-size: 14px; line-height: 1.7; margin: 0 0 12px; white-space: pre-wrap; }
.wpf-desc.clickable { cursor: pointer; transition: .15s; border-radius: 6px; padding: 4px 6px; margin-left: -6px; margin-right: -6px; }
.wpf-desc.clickable:hover { background: #f8fafc; color: #2563eb; }

.wpf-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #9ca3af; align-items: center; }
.wpf-closed-tag { color: #64748b; font-weight: 500; padding: 1px 6px; background: #f1f5f9; border-radius: 4px; }
.wpf-right-zone { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.wpf-toggle-replies { font-size: 12px; color: #2563eb; background: none; border: none; cursor: pointer; padding: 2px 8px; }
.wpf-toggle-replies:hover { text-decoration: underline; }
.wpf-act-btn { font-size: 12px; padding: 3px 10px; border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 6px; cursor: pointer; transition: .15s; }
.wpf-act-btn:hover { border-color: #2563eb; color: #2563eb; }
.wpf-act-btn.danger { border-color: #fecaca; color: #dc2626; }
.wpf-act-btn.danger:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.wpf-hidden-badge { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #fef3c7; color: #b45309; }

/* 回复区 */
.wpf-replies { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e2e8f0; display: flex; flex-direction: column; gap: 10px; }
.wpf-reply-item { padding: 12px 14px; background: #f9fafb; border-radius: 10px; border-left: 3px solid transparent; }
.wpf-reply-item.is-best { background: #fffbeb; border-left-color: #f59e0b; }
.wpf-reply-head { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; align-items: center; margin-bottom: 6px; }
.wpf-r-name { font-weight: 600; color: #1c2534; }
.wpf-r-admin { padding: 1px 6px; background: #2563eb; color: #fff; border-radius: 4px; font-size: 11px; }
.wpf-r-time { color: #9ca3af; }
.wpf-r-best { color: #d97706; font-weight: 600; }
.wpf-mark-best { margin-left: auto; font-size: 12px; padding: 3px 10px; border: 1px solid #f59e0b; background: #fff; color: #d97706; border-radius: 6px; cursor: pointer; }
.wpf-mark-best:hover { background: #fef3c7; }
.wpf-r-content { margin: 0; font-size: 14px; color: #374151; white-space: pre-wrap; }
.wpf-no-replies { text-align: center; color: #9ca3af; font-size: 13px; padding: 12px 0; }

.wpf-reply-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e2e8f0; }
.wpf-reply-form textarea { width: 100%; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; resize: vertical; font-family: inherit; box-sizing: border-box; }
.wpf-reply-login-tip { font-size: 13px; color: #6b7280; padding: 6px 0; }
.wpf-reply-login-tip a { color: #2563eb; }
.wpf-reply-disabled { font-size: 13px; color: #64748b; padding: 10px 14px; background: #f8fafc; border-radius: 8px; border: 1px dashed #cbd5e1; text-align: center; }
.wpf-reply-actions { margin-top: 8px; display: flex; justify-content: flex-end; }
.wpf-btn-submit-reply { padding: 5px 14px; background: #2563eb; color: #fff; border: none; border-radius: 6px; font-size: 13px; cursor: pointer; }
.wpf-btn-submit-reply:disabled { opacity: .6; cursor: not-allowed; }

/* 加载更多 */
.wpf-more { text-align: center; padding: 24px 0; }
.wpf-btn-more { padding: 8px 24px; background: #fff; border: 1px solid #d0d7e3; border-radius: 8px; color: #475569; font-size: 13px; cursor: pointer; }
.wpf-btn-more:hover { border-color: #2563eb; color: #2563eb; }

/* 提交表单 */
.wpf-form-wrap { margin-top: 48px; background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 24px 28px; }
.wpf-form-wrap h2 { margin: 0 0 16px; font-size: 18px; color: #1c2534; }
.wpf-login-tip { padding: 16px; background: #f7f9fc; border-radius: 10px; color: #6b7280; font-size: 14px; }
.wpf-login-tip a { color: #2563eb; }
.wpf-form { display: flex; flex-direction: column; gap: 14px; }
.wpf-row { display: flex; gap: 14px; flex-wrap: wrap; }
.wpf-field { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 6px; }
.wpf-field.wpf-grow { flex: 2; }
.wpf-field label { font-size: 13px; color: #374151; font-weight: 500; }
.wpf-field input, .wpf-field select, .wpf-field textarea {
    padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px;
    font-family: inherit; transition: .15s; background: #fff;
}
.wpf-field input:focus, .wpf-field select:focus, .wpf-field textarea:focus {
    outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.wpf-form-actions { display: flex; align-items: center; gap: 14px; }
.wpf-btn-submit { padding: 10px 24px; background: #2563eb; color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.wpf-btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.wpf-submit-msg { font-size: 13px; }
.wpf-submit-msg.ok { color: #16a34a; }
.wpf-submit-msg.err { color: #dc2626; }

/* 手机端 */
@media (max-width: 768px) {
    .wpf-container { padding-left: 0; padding-right: 0; }
    .wpf-sep { flex-basis: 100%; width: 0; height: 0; margin: 0; background: none; }
    .wpf-card .wpf-type { display: none; }
    .wpf-card { padding: 14px; }
    .wpf-form-wrap { padding: 18px 14px; }
    .wpf-filters { padding: 12px; }
}
