/* 反馈页：公开问题板 + 写反馈 + 我的反馈（只存在本浏览器）。 */

.fb-jump { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.fb-jump .muted { max-width: 30em; }

.fb-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(32px, 5vw, 72px);
  align-items: start; padding-bottom: clamp(80px, 10vw, 140px);
}

/* ---------- 问题板 ---------- */
.board-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.board-filter { display: flex; gap: 8px; }
.board-filter .chip { cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.board-list { display: grid; }
.board-note { padding: 40px 0; color: var(--text-2); }

.issue { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.issue[hidden] { display: none; }
.issue-top { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); }
.issue-top .no { font-variant-numeric: tabular-nums; }
.issue-top time { margin-left: auto; }
.issue h3 { font: 700 clamp(19px, 1.8vw, 22px)/1.45 var(--serif); }
.issue-body { color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.issue-updates { list-style: none; margin: 4px 0 0; display: grid; gap: 0; border-left: 1.5px solid var(--line); padding-left: 18px; }
.issue-updates li { position: relative; padding: 6px 0; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.issue-updates li::before { content: ''; position: absolute; left: -23px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--text-3); }
.issue-updates li:last-child::before { background: var(--accent); border-color: var(--accent); }
.issue-updates time { display: block; font-size: 12px; color: var(--text-3); }
.issue-foot { display: flex; align-items: center; gap: 16px; margin-top: 6px; font-size: 14px; color: var(--text-3); }

/* 状态：已收到 / 处理中 / 已修复 / 暂不处理 */
.st { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 13px; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line); color: var(--text-2); background: var(--surface); }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.st-progress { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.st-progress::before { background: var(--accent); animation: st-pulse 1.8s ease-in-out infinite; }
.st-fixed { color: var(--bg); background: var(--text); border-color: var(--text); }
.st-fixed::before { width: 9px; height: 5px; border-radius: 0; background: none; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-1.5px) rotate(-45deg); }
.st-wontfix { color: var(--text-3); }
@keyframes st-pulse { 50% { opacity: .35; } }

/* 我也遇到了：按下去的时候数字往上翻一格 */
.me-too {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 15px; border-radius: 19px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
  transition: transform var(--d-fast) var(--spring-fast), border-color .2s, background-color .2s, color .2s;
}
.me-too:hover { border-color: var(--text-3); }
.me-too:active { transform: scale(.95); }
.me-too[aria-pressed='true'] { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.me-too .n { position: relative; display: inline-grid; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; overflow: hidden; background: color-mix(in oklab, var(--text) 7%, transparent); font-variant-numeric: tabular-nums; }
.me-too[aria-pressed='true'] .n { background: color-mix(in oklab, var(--accent) 16%, transparent); }
.me-too .n span { grid-area: 1 / 1; display: grid; place-items: center; transition: transform var(--d-std) var(--spring), opacity .25s; }
.me-too .n span.out-up { transform: translateY(-100%); opacity: 0; }
.me-too .n span.out-down { transform: translateY(100%); opacity: 0; }
.me-too .n span.in-up { transform: translateY(100%); opacity: 0; }
.me-too .n span.in-down { transform: translateY(-100%); opacity: 0; }

/* 加载中的骨架 */
.issue.sk i { display: block; height: 14px; border-radius: 7px; background: color-mix(in oklab, var(--text) 7%, transparent); animation: sk 1.4s ease-in-out infinite; }
.issue.sk i:nth-child(1) { width: 18%; }
.issue.sk i:nth-child(2) { width: 62%; height: 20px; }
.issue.sk i:nth-child(3) { width: 88%; }
@keyframes sk { 50% { opacity: .45; } }

/* ---------- 写反馈 ---------- */
.fb-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 28px; scroll-margin-top: calc(var(--header-h) + 24px); }
.fb-form {
  display: grid; gap: 18px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.fb-kind { border: 0; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 14px; background: color-mix(in oklab, var(--text) 5%, transparent); }
.fb-kind label { position: relative; }
.fb-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-kind span { display: grid; place-items: center; height: 38px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.fb-kind input:checked + span { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / .08); }
.fb-kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-field { display: grid; gap: 8px; }
.fb-field > span { font-size: 14px; font-weight: 600; }
.fb-field em { font-style: normal; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.fb-field textarea, .fb-field input {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--raised); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.fb-field textarea { min-height: 150px; line-height: 1.65; }
.fb-field textarea:focus, .fb-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 14%, transparent); }
.fb-field ::placeholder { color: var(--text-3); }
.fb-field small { justify-self: end; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-fine { font-size: 13px; line-height: 1.65; color: var(--text-3); }
.fb-submit { width: 100%; }
.fb-submit[disabled] { opacity: .6; pointer-events: none; }
.fb-msg:empty { display: none; }
.fb-msg { font-size: 14px; color: var(--accent); }

/* 提交成功：表单换成一张回执 */
.fb-done { display: grid; gap: 14px; animation: pop-in var(--d-std) var(--spring) both; }
.fb-done .h3 { display: flex; align-items: center; gap: 12px; }
.fb-done .h3::before { content: ''; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-3px) rotate(-45deg); }
.fb-link { display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); }
.fb-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-2); }

/* ---------- 我的反馈 ---------- */
.mine { display: grid; gap: 10px; }
.mine-list { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
.mine-item { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: 8px; }
.mine-item.fresh { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 10%, transparent); }
.mine-item .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.mine-item .meta .del { margin-left: auto; color: var(--text-3); font-size: 12px; text-decoration: underline; text-underline-offset: .2em; }
.mine-item .body { font-size: 14px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.mine-item .reply { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mine-item .reply b { display: block; font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.mine-item .link { font-size: 13px; }

@media (max-width: 960px) {
  .fb-layout { grid-template-columns: minmax(0, 1fr); }
  .fb-side { position: static; }
}
@media (max-width: 720px) {
  .issue { padding: 22px 0; }
  .issue-top time { display: none; }
  .board-head { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); padding-top: 10px; }
}
