/* feedback.css v1 — 反馈与建议样式 */
.feedback-wrap{max-width:920px;margin:0 auto;padding:24px 28px 64px}
.feedback-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.feedback-title{font-size:22px;font-weight:700;color:#1a3b22;letter-spacing:0.2px}
.feedback-sub{font-size:13px;color:#6e8e72;margin-top:6px;line-height:1.6}
.feedback-admin-link{font-size:12px;color:#5b8f65;text-decoration:none;border:1px solid #b5d7ba;border-radius:14px;padding:4px 12px;white-space:nowrap}
.feedback-admin-link:hover{background:#e9f5ec}

.fb-card{background:#ffffff;border-radius:12px;border:1px solid #e4f0e5;padding:18px 22px;margin-bottom:16px}
.fb-card-title{font-size:14px;color:#1a3b22;font-weight:600;margin-bottom:14px;padding-bottom:10px;border-bottom:1px dashed #e0efe2}

/* 评分行 */
.fb-rating-grid{display:flex;flex-direction:column;gap:10px}
.fb-rating-row{display:flex;align-items:center;gap:18px;padding:10px 14px;border-radius:8px;background:#f7fcf8;border:1px solid #ecf5ed}
.fb-rating-label{min-width:200px}
.fb-rating-name{font-size:14px;color:#1a3b22;font-weight:600}
.fb-rating-desc{font-size:12px;color:#7aa080;margin-top:2px;line-height:1.5}
.fb-stars{display:flex;gap:2px}
.fb-stars .star,.fb-stars .star-readonly{background:none;border:none;padding:0;margin:0;cursor:pointer;font-size:22px;line-height:1;color:#c8d7ca;transition:transform .08s ease}
.fb-stars .star:hover{transform:scale(1.12)}
.fb-stars .star:focus-visible{outline:2px solid #6fa879;outline-offset:2px;border-radius:3px}
.fb-stars .star-1{color:#f25252}
.fb-stars .star-2{color:#f0854a}
.fb-stars .star-3{color:#d9b84a}
.fb-stars .star-4{color:#7fb96a}
.fb-stars .star-5{color:#3fa654}
.fb-stars .star-readonly{cursor:default}
.fb-stars .star-readonly[aria-label]:hover{transform:none}

/* 表单 */
.fb-field{display:block;margin-bottom:16px}
.fb-field>span{display:block;font-size:13px;color:#2a5532;font-weight:600;margin-bottom:6px}
.fb-field>span small{color:#8ba890;font-weight:400;margin-left:6px}
.fb-field input[type=tel],
.fb-field input[type=text]{width:100%;max-width:360px;padding:8px 12px;border:1px solid #cfe2d2;border-radius:8px;font-size:13px;background:#fbfefb;box-sizing:border-box}
.fb-field textarea{width:100%;padding:10px 12px;border:1px solid #cfe2d2;border-radius:8px;font-size:13px;font-family:inherit;background:#fbfefb;resize:vertical;box-sizing:border-box;line-height:1.6}
.fb-field input:focus,.fb-field textarea:focus{outline:none;border-color:#6fa879;box-shadow:0 0 0 3px rgba(111,168,121,0.15)}

.fb-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.fb-chip{border:1px solid #cfe2d2;background:#ffffff;color:#2a5532;font-size:12px;padding:5px 12px;border-radius:16px;cursor:pointer}
.fb-chip.on{background:#3fa654;color:#ffffff;border-color:#3fa654}
.fb-chip:hover{border-color:#6fa879}

.fb-actions{display:flex;align-items:center;gap:14px;margin-top:8px}
.fb-submit{background:linear-gradient(180deg,#4dbf63,#3fa654);color:#ffffff;border:none;border-radius:8px;padding:10px 26px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 1px 2px rgba(63,166,84,0.35)}
.fb-submit:hover:not(:disabled){background:linear-gradient(180deg,#57c76d,#46b05b)}
.fb-submit:disabled{background:#c7d6c8;cursor:not-allowed;box-shadow:none}
.fb-hint{font-size:12px;color:#7aa080}

/* 历史 */
.fb-history-list{display:flex;flex-direction:column;gap:8px}
.fb-history-item{border:1px solid #ecf5ed;border-radius:8px;padding:10px 14px;background:#fbfefb}
.fb-history-top{display:flex;gap:10px;align-items:center;font-size:12px;color:#7aa080;margin-bottom:4px}
.fb-history-id{color:#2a5532;font-weight:600}
.fb-history-avg{margin-left:auto;color:#3fa654}
.fb-history-summary{font-size:13px;color:#1a3b22;line-height:1.6}
.fb-empty{padding:40px;text-align:center;color:#8ba890;font-size:13px}

/* 管理员 */
.fb-admin-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}
.fb-admin-controls input[type=search],
.fb-admin-controls select{padding:7px 10px;border:1px solid #cfe2d2;border-radius:7px;font-size:12px;background:#ffffff}
.fb-a-go,.fb-a-clear{padding:7px 14px;border-radius:7px;font-size:12px;border:1px solid #cfe2d2;background:#fbfefb;cursor:pointer}
.fb-a-go:hover{border-color:#6fa879}
.fb-a-clear{background:#ffffff}
.fb-a-total{margin-left:auto;font-size:12px;color:#7aa080}

.fb-a-item{border:1px solid #ecf5ed;border-radius:8px;margin-bottom:8px;background:#ffffff;overflow:hidden}
.fb-a-summary{list-style:none;display:flex;align-items:center;gap:12px;padding:10px 14px;cursor:pointer;font-size:13px;color:#1a3b22;user-select:none}
.fb-a-summary::-webkit-details-marker{display:none}
.fb-a-summary:hover{background:#f7fcf8}
.fb-a-id{color:#7aa080;font-weight:600;font-family:ui-monospace,Menlo,Consolas,monospace}
.fb-a-name{font-weight:600;color:#2a5532}
.fb-a-phone{color:#6e8e72;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}
.fb-a-time{margin-left:auto;color:#7aa080;font-size:12px}
.fb-a-avg{color:#3fa654;font-weight:600}
.fb-a-toggle{color:#7aa080;font-size:12px}

.fb-a-detail{padding:14px;border-top:1px dashed #e0efe2;background:#fbfefb}
.fb-a-ratings{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:14px}
.fb-a-r-cell{display:flex;flex-direction:column;align-items:center;gap:3px}
.fb-a-r-name{font-size:11px;color:#7aa080}
.fb-a-fields{margin:0;display:flex;flex-direction:column;gap:6px}
.fb-a-fields dt{font-size:12px;color:#7aa080}
.fb-a-fields dd{margin:0;font-size:13px;color:#1a3b22;line-height:1.7}
.fb-a-suggestion{white-space:pre-wrap}
.fb-a-actions{margin-top:14px}
.fb-a-delete{background:#fdf0f0;color:#c0392b;border:1px solid #f5c6c6;border-radius:7px;padding:6px 14px;font-size:12px;cursor:pointer}
.fb-a-delete:hover{background:#fbe3e3}

/* 移动端 */
@media (max-width:780px){
  .feedback-wrap{padding:16px}
  .feedback-head{flex-direction:column}
  .fb-rating-row{flex-direction:column;align-items:flex-start;gap:8px}
  .fb-rating-label{min-width:0}
  .fb-a-summary{flex-wrap:wrap}
  .fb-a-time{margin-left:0}
  .fb-a-ratings{grid-template-columns:repeat(3,1fr)}
}

/* 提交成功弹窗 */
.fb-success-mask{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;background:rgba(18,42,26,.42);backdrop-filter:blur(2px);animation:fbMaskIn .16s ease-out}
.fb-success-card{width:min(380px,88vw);background:#fff;border-radius:16px;padding:28px 26px 22px;text-align:center;box-shadow:0 18px 48px rgba(18,42,26,.22);animation:fbCardIn .22s cubic-bezier(.2,.9,.3,1.2)}
.fb-success-icon{width:56px;height:56px;margin:0 auto 14px;border-radius:50%;background:#e9f5ec;color:#3fa654;font-size:26px;font-weight:700;line-height:56px}
.fb-success-title{font-size:18px;font-weight:700;color:#1a3b22;letter-spacing:.3px}
.fb-success-text{font-size:13px;color:#6e8e72;line-height:1.7;margin-top:8px}
.fb-success-actions{display:flex;gap:10px;justify-content:center;margin-top:20px}
.fb-success-btn{flex:1;max-width:140px;border:none;border-radius:10px;padding:10px 14px;font-size:13px;font-weight:600;color:#fff;background:#3fa654;cursor:pointer;transition:background .15s ease}
.fb-success-btn:hover{background:#348c46}
.fb-success-btn:focus-visible{outline:2px solid #6fa879;outline-offset:2px}
.fb-success-btn.ghost{background:#f2f8f3;color:#3d7a4c;border:1px solid #cfe3d3}
.fb-success-btn.ghost:hover{background:#e6f2e8}
@keyframes fbMaskIn{from{opacity:0}to{opacity:1}}
@keyframes fbCardIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fb-success-mask,.fb-success-card{animation:none}}
