/* 官网留言反馈（2026-11-17）。全部以 xf- 开头，不覆盖页面原有样式。 */
.xf-fab, .xf-layer, .xf-layer * { box-sizing: border-box; }
.xf-fab, .xf-layer { --xf-a: #6d5df6; --xf-b: #f0569b; --xf-ink: #172033; --xf-muted: #667085; --xf-line: #e4e7ee; --xf-soft: #f6f7fb;
  font-family: inherit; }

/* ---- 右下角按钮 ---- */
/* 右下角原来有一个 40px 的背景音乐按钮（.site-music），留言按钮放在它正上方，互不遮挡。 */
.xf-fab { position: fixed; right: 20px; bottom: 72px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 15px;
  border: 0; border-radius: 23px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--xf-a), var(--xf-b)); box-shadow: 0 8px 22px rgba(109, 93, 246, .36); transition: transform .15s, box-shadow .15s; }
.xf-fab[hidden] { display: none; }
.xf-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(109, 93, 246, .44); }
.xf-fab:focus-visible, .xf-layer button:focus-visible { outline: 3px solid rgba(109, 93, 246, .45); outline-offset: 2px; }
.xf-fab svg, .xf-layer svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xf-fab.xf-has-reply::after { content: ''; position: absolute; top: 2px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
html.xf-open .xf-fab { visibility: hidden; }

/* ---- 面板 ---- */
.xf-layer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: flex-end; padding: 20px; background: rgba(15, 23, 42, .38); }
.xf-layer[hidden] { display: none; }
.xf-panel { display: flex; flex-direction: column; width: 420px; max-width: 100%; max-height: min(640px, 100%); overflow: hidden; border-radius: 18px; background: #fff;
  color: var(--xf-ink); font-size: 14px; line-height: 1.5; box-shadow: 0 24px 60px rgba(15, 23, 42, .32); animation: xf-rise .18s ease-out; }
@keyframes xf-rise { from { opacity: 0; transform: translateY(14px); } }
.xf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 14px 14px 20px; color: #fff; background: linear-gradient(135deg, var(--xf-a), var(--xf-b)); }
.xf-head h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; color: #fff; }
.xf-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.xf-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .2); cursor: pointer; }
.xf-close:hover { background: rgba(255, 255, 255, .34); }
.xf-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--xf-line); background: #fff; }
.xf-tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border: 0; background: none; color: var(--xf-muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.xf-tabs button[aria-selected="true"] { color: var(--xf-a); }
.xf-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--xf-a), var(--xf-b)); }
.xf-tabs i { min-width: 20px; padding: 0 6px; border-radius: 10px; font-style: normal; font-size: 12px; line-height: 20px; text-align: center; color: var(--xf-a); background: #eeecff; }
.xf-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.xf-wait { margin: 28px 0; text-align: center; color: var(--xf-muted); }

/* ---- 写留言 ---- */
.xf-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.xf-chip { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 9px 10px; border: 1.5px solid var(--xf-line); border-radius: 12px; background: #fff; color: var(--xf-ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.xf-chip b { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.xf-chip small { font-size: 12px; line-height: 1.35; color: var(--xf-muted); }
.xf-chip:hover { border-color: #c9cdf6; }
.xf-chip.xf-k-improve[aria-pressed="true"] { border-color: #6d5df6; background: #f1efff; }
.xf-chip.xf-k-improve[aria-pressed="true"] b { color: #4f3fd6; }
.xf-chip.xf-k-wish[aria-pressed="true"] { border-color: #f0569b; background: #fff0f6; }
.xf-chip.xf-k-wish[aria-pressed="true"] b { color: #c8266f; }
.xf-chip.xf-k-other[aria-pressed="true"] { border-color: #0ea5a0; background: #e8f8f6; }
.xf-chip.xf-k-other[aria-pressed="true"] b { color: #0b7c78; }
.xf-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.xf-field > span { font-size: 13px; font-weight: 600; color: var(--xf-ink); }
.xf-field em { margin-left: 6px; font-style: normal; font-weight: 400; color: #98a2b3; }
.xf-field select, .xf-field textarea { width: 100%; border: 1.5px solid var(--xf-line); border-radius: 10px; background: #fff; color: var(--xf-ink); font: inherit; font-size: 14px; line-height: 1.55; }
.xf-field select { height: 40px; padding: 0 10px; }
.xf-field textarea { min-height: 112px; padding: 9px 11px; resize: vertical; }
.xf-field select:focus, .xf-field textarea:focus { outline: none; border-color: var(--xf-a); box-shadow: 0 0 0 3px rgba(109, 93, 246, .16); }
.xf-field textarea::placeholder { color: #a0a8b8; }
.xf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.xf-count { font-size: 12.5px; color: var(--xf-muted); }
.xf-count b { font-weight: 600; color: var(--xf-ink); }
.xf-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 20px; color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--xf-a), var(--xf-b)); box-shadow: 0 6px 16px rgba(109, 93, 246, .28); }
.xf-primary:hover:not(:disabled) { filter: brightness(1.06); }
.xf-primary:disabled { cursor: not-allowed; color: #98a2b3; background: #eceef3; box-shadow: none; }
.xf-note { margin: 0; padding: 8px 11px; border-radius: 10px; font-size: 13px; }
.xf-note.xf-bad { color: #b42318; background: #fef1f0; }

/* ---- 没登录 / 没留言 ---- */
.xf-login, .xf-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 8px 10px; text-align: center; }
.xf-login-art, .xf-empty > svg { display: grid; place-items: center; width: 64px; height: 64px; padding: 15px; border-radius: 50%; color: var(--xf-a); background: linear-gradient(135deg, #eeecff, #ffe9f3); }
.xf-login strong, .xf-empty strong { margin-top: 4px; font-size: 16px; }
.xf-login p, .xf-empty p { margin: 0 0 8px; max-width: 280px; color: var(--xf-muted); font-size: 13.5px; }

/* ---- 我的留言 ---- */
.xf-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.xf-item { padding: 11px 12px; border: 1px solid var(--xf-line); border-radius: 12px; background: #fff; }
.xf-item.xf-fresh { border-color: #b9b1ff; box-shadow: 0 0 0 3px rgba(109, 93, 246, .12); }
.xf-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; font-size: 12.5px; color: var(--xf-muted); }
.xf-meta time { white-space: nowrap; }
.xf-tag, .xf-state { padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.xf-tag.xf-k-improve { color: #4f3fd6; background: #f1efff; }
.xf-tag.xf-k-wish { color: #c8266f; background: #fff0f6; }
.xf-tag.xf-k-other { color: #0b7c78; background: #e8f8f6; }
.xf-app { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--xf-ink); }
.xf-state { margin-left: auto; }
.xf-s-new { color: #475467; background: #eef0f4; }
.xf-s-read { color: #175cd3; background: #e9f2ff; }
.xf-s-planned { color: #b54708; background: #fff3dc; }
.xf-s-done { color: #067647; background: #e3f8ec; }
.xf-s-declined { color: #667085; background: #f2f4f7; }
.xf-text { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--xf-ink); }
.xf-reply { display: flex; gap: 8px; margin-top: 9px; padding: 9px 11px; border-radius: 10px; background: linear-gradient(135deg, #f3f1ff, #fff1f7); color: #4f3fd6; }
.xf-reply svg { margin-top: 3px; }
.xf-reply > div { min-width: 0; }
.xf-reply b { font-size: 12.5px; }
.xf-reply p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--xf-ink); }

/* ---- 手机和窄窗口 ---- */
@media (max-width: 560px) {
  .xf-fab { right: 12px; bottom: 70px; height: 44px; padding: 0 15px 0 13px; font-size: 14px; }
  .xf-layer { padding: 0; align-items: flex-end; }
  .xf-panel { width: 100%; max-height: 92%; border-radius: 18px 18px 0 0; }
  .xf-chip small { display: none; }
  .xf-chip { padding: 9px 6px; text-align: center; align-items: center; }
  .xf-field textarea { min-height: 100px; font-size: 16px; }
  .xf-field select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .xf-panel { animation: none; } .xf-fab { transition: none; } }
/* 选软件：能打字筛的下拉框（2026-11-18） */
.xf-field > label > span { font-size: 13px; font-weight: 600; color: var(--xf-ink); }
.xf-combo { position: relative; display: flex; flex-direction: column; gap: 6px; }
.xf-combo input { width: 100%; height: 40px; padding: 0 36px 0 11px; border: 1.5px solid var(--xf-line); border-radius: 10px; background: #fff; color: var(--xf-ink); font: inherit; font-size: 14px; box-sizing: border-box; }
.xf-combo input::placeholder { color: #a0a8b8; }
.xf-combo input:focus { outline: none; border-color: var(--xf-a); box-shadow: 0 0 0 3px rgba(109, 93, 246, .16); }
.xf-combo-clear { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: #f2f4f7; color: #667085; font: inherit; font-size: 17px; line-height: 28px; cursor: pointer; }
.xf-combo-clear:hover { background: #e4e7ec; color: var(--xf-ink); }
.xf-combo-list { margin: 0; padding: 4px; list-style: none; max-height: 216px; overflow-y: auto; border: 1px solid var(--xf-line); border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(16, 24, 40, .08); }
.xf-opt { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 10px; border-radius: 7px; font-size: 14px; color: var(--xf-ink); cursor: pointer; }
.xf-opt:hover { background: #f6f5ff; }
.xf-opt[aria-selected="true"] { background: #eeecff; color: #3d2fc4; }
.xf-opt-none { color: #667085; }
.xf-opt i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--xf-a); }
.xf-opt-empty { padding: 8px 10px; font-size: 13px; line-height: 1.5; color: #98a2b3; }
@media (max-width: 560px) { .xf-combo input { font-size: 16px; } }