/* =====================================================================
   LIBRA · account.css
   P10 消息中心 / P11 个人中心与成就 / P12 个人设置与隐私 / P13 帮助与反馈
   仅在此文件补充四个页面的版式，不覆盖 libra.css 的基础设计系统
   ===================================================================== */

/* ------------------------------------------------------------------ 通用 */
.empty .btn { margin-top: 14px; }
.icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.switch:disabled { opacity: 0.6; cursor: progress; }

/* =====================================================================
   P10 · 消息中心
   ===================================================================== */
.msg-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 302px;
  gap: 16px;
  align-items: stretch;
}
.msg-error { border-color: rgba(242, 112, 127, 0.25); }

/* 左：分类 */
.msg-side {
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  min-height: 100%;
}
.msg-side h3 {
  margin: 3px 8px 12px;
  font-size: 14.5px;
  font-weight: 600;
}
.msg-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.msg-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.msg-cat:hover {
  color: var(--text-2);
  background: var(--tint-1);
}
.msg-cat.active {
  color: #e6edff;
  border-color: var(--line-hover);
  background: linear-gradient(180deg, var(--line-hover), var(--line-strong));
  box-shadow: 0 8px 20px rgba(10, 18, 34, 0.45);
}
.msg-cat .badge-count {
  background: var(--chip-bg);
  color: var(--muted);
}
.msg-cat.active .badge-count {
  background: #4a6cf4;
  color: #fff;
  box-shadow: 0 4px 10px rgba(74, 108, 244, 0.35);
}
.msg-setting {
  width: 100%;
  height: 42px;
  margin-top: 18px;
  justify-content: center;
}

/* 中：消息流 */
.msg-flow {
  padding: 18px 18px 20px;
  min-width: 0;
}
.msg-flow .card-head {
  margin-bottom: 14px;
}
.msg-unread-badge {
  font-variant-numeric: tabular-nums;
}
.msg-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  padding-right: 4px;
  overflow-y: auto;
}
.msg-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--input);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.msg-item:not(.is-read) {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--row), var(--card-b));
}
.msg-item:hover {
  border-color: var(--line-hover);
  transform: translateX(2px);
}
.msg-item:focus-visible {
  outline: 2px solid #5b7cfa;
  outline-offset: 2px;
}
.msg-item.is-read {
  background: var(--input);
}
.msg-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex: none;
  background: var(--c, #5b7cfa);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #5b7cfa) 14%, transparent);
}
.msg-item.is-read .msg-dot {
  opacity: 0.55;
  box-shadow: none;
}
.msg-item-body {
  flex: 1;
  min-width: 0;
}
.msg-cat-label {
  color: var(--c, #5b7cfa);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.msg-title {
  margin: 3px 0 2px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--line-hover);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.msg-item.is-read .msg-title {
  color: var(--text-2);
}
.msg-time {
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.msg-act {
  flex: none;
  min-width: 76px;
  border-color: var(--line-strong);
  background: var(--menu-hover);
  color: var(--line-hover);
}
.msg-act:hover {
  border-color: var(--line-hover);
  background: var(--chip-bg);
}
.msg-flow-empty .empty {
  padding: 34px 16px;
}

/* 右：推送渠道 / 提醒时机 */
.msg-right {
  padding: 20px;
  align-self: start;
  position: sticky;
  top: 88px;
}
.msg-right h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.msg-channels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 12px;
  color: var(--text-2);
}
.msg-channel-row b {
  font-weight: 500;
  font-size: 12px;
}
.msg-channel-row b.on { color: #79e3c1; }
.msg-channel-row b.off { color: var(--faint); }
.msg-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--row);
}
.msg-timing {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-timing-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-2);
}
.msg-timing-item i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-hover);
  flex: none;
}
.msg-empty-card {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #453268;
  border-radius: 14px;
  background: radial-gradient(120% 130% at 10% 0%, #332752 0%, #251c3e 60%, #211932 100%);
}
.msg-empty-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c4b1ff;
  font-size: 12px;
  font-weight: 600;
}
.msg-empty-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  color: #e4d9ff;
  background: #4a3670;
  border: 1px solid #6b4fd0;
}
.msg-empty-card p {
  margin: 10px 0 12px;
  color: #ded3f7;
  font-size: 12.5px;
  line-height: 1.75;
}
.msg-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  align-self: flex-start;
  color: #9d8cc4;
  font-size: 11px;
}
.msg-empty-link:hover { color: #c4b1ff; }
.msg-empty-link svg { width: 11px; height: 11px; }

/* =====================================================================
   P11 · 个人中心与成就
   ===================================================================== */
.prof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: stretch;
}
.prof-tower-card {
  display: flex;
  flex-direction: column;
  min-height: 568px;
  padding: 22px 24px;
}
.prof-tower-card .card-head {
  margin-bottom: 8px;
}
.prof-tower {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  width: 100%;
  max-width: 272px;
  margin: 0 auto;
  padding: 18px 0 12px;
}
.prof-bar {
  height: 18px;
  margin: 0 auto;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.1)), var(--bar, #5576f5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
  transition: filter 0.16s, transform 0.16s;
}
.prof-bar:hover {
  filter: brightness(1.12);
  transform: scaleX(1.015);
}
.prof-bar.is-zero {
  opacity: 0.55;
}
.prof-bar i { display: none; }
.prof-tower-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
}
.prof-tower-foot {
  padding-top: 18px;
  text-align: center;
}
.prof-tower-total {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
}
.prof-tower-streak {
  margin-top: 6px;
  font-size: 12px;
  color: #f0b64b;
}
.prof-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.prof-ach-card {
  padding: 22px 24px;
}
.prof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.prof-stat {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--row);
}
.prof-stat label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.prof-stat-value {
  margin-top: 4px;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.prof-stat-value small {
  margin-left: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.prof-stat-value em {
  margin-right: 5px;
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9fe9d2;
  vertical-align: 2px;
}
.prof-stat-value.blue { color: #7d9bff; }
.prof-stat-value.purple { color: #b79bff; }
.prof-stat-value.green { color: #4fe0b4; }
.prof-stat-foot {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.prof-actions .btn {
  height: 44px;
  min-width: 182px;
  padding: 0 26px;
  font-size: 13px;
}
.prof-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.prof-ach-card .prof-badges {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.prof-badges-label {
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}
.prof-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--row);
  color: var(--text-2);
  font-size: 11px;
  white-space: nowrap;
}
.prof-badge svg {
  width: 12px;
  height: 12px;
  color: #b79bff;
}
.prof-share-wrap {
  padding: 22px 24px;
}
.prof-share-wrap .card-head {
  margin-bottom: 14px;
}
.prof-share-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 196px;
  padding: 26px 30px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--chip-bg) 0%, var(--card-b) 52%, var(--row) 100%);
}
.prof-share-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 65%);
  pointer-events: none;
}
.prof-share-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--tint-1) 1px, transparent 1px);
  background-size: 74px 100%;
  pointer-events: none;
}
.prof-share-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.prof-share-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #7d9bff;
}
.prof-share-time.is-hidden { font-size: 18px; color: var(--muted); font-weight: 500; }
.prof-share-time {
  margin: 12px 0 8px;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.prof-share-meta {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.prof-share-cat {
  position: relative;
  z-index: 1;
  flex: none;
  width: 98px;
  height: 98px;
  margin-left: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #e7dcff;
  background: radial-gradient(circle at 34% 28%, #614a9c, #3b2a63 72%);
  box-shadow: 0 0 0 10px rgba(139, 92, 246, 0.06);
}
.prof-share-card.light {
  border-color: #e4dacb;
  background: linear-gradient(135deg, #fbf7ef 0%, #f3eee4 55%, #efe8da 100%);
}
.prof-share-card.light::before {
  background: radial-gradient(circle, rgba(91, 124, 250, 0.13), transparent 65%);
}
.prof-share-card.light::after {
  background-image: linear-gradient(90deg, rgba(23, 32, 46, 0.035) 1px, transparent 1px);
}
.prof-share-card.light .prof-share-kicker { color: #4a6cf4; }
.prof-share-card.light .prof-share-time { color: #10192a; }
.prof-share-card.light .prof-share-meta { color: #5c6a80; }
.prof-share-card.light .prof-share-cat {
  color: #5b3fa8;
  background: radial-gradient(circle at 34% 28%, #f3ebff, #ddccfa 78%);
  box-shadow: 0 0 0 10px rgba(91, 124, 250, 0.07);
}
.prof-share-card.is-flash {
  animation: profFlash 0.85s ease;
}
@keyframes profFlash {
  0% { box-shadow: 0 0 0 0 rgba(91, 124, 250, 0.45); }
  60% { box-shadow: 0 0 0 12px rgba(91, 124, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 124, 250, 0); }
}
.prof-share-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.prof-template {
  display: flex;
  align-items: center;
  gap: 6px;
}
.prof-template > span {
  margin-right: 2px;
  font-size: 11px;
  color: var(--faint);
}
.prof-template .chip {
  height: 30px;
  padding: 0 13px;
  font-size: 11.5px;
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  cursor: pointer;
}
.prof-template .chip.active {
  background: var(--line-strong);
  border-color: var(--line-hover);
  color: var(--text);
}

/* 年度报告弹窗 */
.prof-report {
  max-width: 560px;
}
.prof-report h3 {
  margin-top: 5px;
}
.prof-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.prof-report-cell {
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--row);
}
.prof-report-cell span {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.prof-report-cell b {
  display: block;
  margin-top: 3px;
  font-size: 19px;
  font-weight: 650;
  color: var(--text);
}
.prof-report-ach {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

/* =====================================================================
   P12 · 个人设置与隐私
   ===================================================================== */
.set-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.set-nav {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 540px;
  padding: 14px;
}
.set-nav-item {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  transition: 0.16s;
}
.set-nav-item:hover {
  color: var(--text-2);
  background: var(--tint-1);
}
.set-nav-item.active {
  color: #e2e9ff;
  border-color: var(--line-strong);
  background: var(--chip-bg);
  box-shadow: inset 0 0 0 1px rgba(91, 124, 250, 0.05);
}
.set-panel {
  padding: 26px 30px 28px;
  min-width: 0;
}
.set-sec {
  scroll-margin-top: 92px;
}
.set-sec + .set-sec {
  margin-top: 28px;
}
.set-sec h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}
.set-sub {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.set-desc {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}
.set-account {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.set-avatar-block {
  flex: none;
  width: 96px;
  text-align: center;
}
.set-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border: 0;
  font-size: 22px;
  transition: opacity 0.16s;
}
.set-avatar:hover {
  filter: brightness(1.08);
}
.set-avatar.is-busy {
  opacity: 0.55;
  cursor: progress;
}
.set-avatar-link {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: #8fb0ff;
  font-size: 11.5px;
  cursor: pointer;
}
.set-avatar-link:hover {
  text-decoration: underline;
}
.set-avatar-hint {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--faint);
}
.set-profile {
  flex: 1;
  min-width: 0;
}
.set-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}
.set-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.set-profile-id,
.set-form-tip {
  font-size: 11px;
  color: var(--faint);
}
.set-account-divider {
  height: 1px;
  margin: 20px 0 18px;
  background: var(--line-soft);
}
.set-sub-tight {
  margin-bottom: 12px;
}
.set-password-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.set-form-error {
  margin-top: 12px;
  padding: 9px 12px;
  font-size: 11.5px;
}
.set-id-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}.set-id-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-b);
}
.set-dot {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 50%;
  background: var(--line-strong);
  transition: 0.16s;
}
.set-dot.on {
  background: #5b7cfa;
  box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.14);
}
.set-id-text {
  flex: 1;
  min-width: 0;
}
.set-id-text b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--line-hover);
}
.set-id-text span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--faint);
}
.set-id-right {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}
.set-id-state {
  font-size: 11px;
  color: var(--faint);
  min-width: 24px;
  text-align: right;
}
.set-privacy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.set-privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--chip-bg);
  border-radius: 11px;
  background: var(--row);
}
.set-privacy-text b {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: var(--text);
}
.set-privacy-text span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--faint);
}
.set-privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
}
.set-privacy-note svg {
  flex: none;
  width: 14px;
  height: 14px;
}
.set-channels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.set-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card-b);
  transition: border-color 0.16s, background 0.16s;
}
.set-channel.on {
  border-color: #24443c;
  background: linear-gradient(180deg, rgba(53, 214, 164, 0.07), rgba(19, 28, 42, 0.92));
}
.set-channel.is-offline { opacity: 0.72; }
.set-channel.is-offline .switch { cursor: not-allowed; }
.set-channel-badge {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
  border: 1px solid var(--line);
  background: var(--row);
}
.set-channel-label {
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
}
.set-channel .switch.on,
.set-sec-motion .switch.on {
  background: rgba(53, 214, 164, 0.7);
}
.set-channel .switch.on::after,
.set-sec-motion .switch.on::after {
  background: #eafff7;
}
.set-sec-motion .switch.on {
  background: rgba(244, 114, 182, 0.65);
}
.set-sec-motion .switch.on::after {
  background: #fff;
}
.set-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--faint);
}
.set-hint svg {
  flex: none;
  width: 13px;
  height: 13px;
}
.set-themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
}
.set-theme {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--row);
  color: var(--text-2);
  text-align: left;
  transition: 0.16s;
}
.set-theme:hover {
  border-color: var(--line-hover);
}
.set-theme.active {
  border-color: var(--line-hover);
  background: var(--chip-bg);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.08);
}
.set-theme.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.set-theme.is-disabled:hover {
  border-color: var(--line-strong);
}
.set-theme.is-disabled .set-theme-copy b {
  color: var(--muted);
}
.set-theme.is-disabled .set-theme-swatch {
  filter: grayscale(0.35);
}
.set-theme-badge {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}
.set-theme-swatch {
  width: 42px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.set-theme-swatch.dark {
  background: linear-gradient(135deg, var(--bg-deep), var(--nav-active));
}
.set-theme-swatch.light {
  background: linear-gradient(135deg, #fbf7ef, var(--text));
  border-color: var(--text);
}
.set-theme-copy {
  flex: 1;
  min-width: 0;
}
.set-theme-copy b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--line-hover);
}
.set-theme-copy span {
  display: block;
  font-size: 10.5px;
  color: var(--faint);
}
.set-theme-check {
  display: none;
  color: #8fb0ff;
}
.set-theme.active .set-theme-check {
  display: grid;
  place-items: center;
}
.set-motion-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(242, 112, 180, 0.11), rgba(242, 112, 180, 0.04));
}
.set-motion-text {
  font-size: 12px;
  line-height: 1.7;
  color: #f3b7d3;
}
.set-motion-text b {
  font-weight: 600;
  color: #ffdcea;
}
.set-motion-text span {
  color: #e7a7c5;
}

/* =====================================================================
   P13 · 帮助与反馈
   ===================================================================== */
.help-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.help-side {
  min-height: 500px;
  padding: 18px 14px;
  position: sticky;
  top: 88px;
}
.help-side .card-head {
  padding: 0 6px;
  margin-bottom: 12px;
}
.help-side .card-head h3 {
  font-size: 14.5px;
}
.help-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.help-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
  transition: 0.16s;
}
.help-cat:hover {
  color: var(--text-2);
  background: var(--tint-1);
}
.help-cat.active {
  color: #e6edff;
  border-color: var(--line-hover);
  background: linear-gradient(180deg, var(--line-strong), var(--nav-active));
}
.help-cat .badge-count {
  background: var(--chip-bg);
  color: var(--muted);
}
.help-cat.active .badge-count {
  background: #4a6cf4;
  color: #fff;
}
.help-panel {
  padding: 24px 28px;
  min-width: 0;
}
.help-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.help-panel-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.help-faqs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.help-faq {
  border: 1px solid var(--chip-bg);
  border-radius: 12px;
  background: var(--card-b);
  transition: border-color 0.2s, background 0.2s;
}
.help-faq:hover {
  border-color: var(--line-strong);
}
.help-faq.open {
  border-color: var(--line-hover);
  background: var(--row);
}
.help-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  background: none;
  color: var(--line-hover);
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.5;
  text-align: left;
}
.help-q:focus-visible {
  outline: 2px solid #5b7cfa;
  outline-offset: -2px;
  border-radius: 12px;
}
.help-plus {
  display: grid;
  place-items: center;
  flex: none;
  color: #7d9bff;
  transition: transform 0.25s ease;
}
.help-plus svg {
  width: 18px;
  height: 18px;
}
.help-faq.open .help-plus {
  transform: rotate(45deg);
}
.help-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.help-a > div {
  overflow: hidden;
}
.help-a p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}
.help-faq.open .help-a {
  grid-template-rows: 1fr;
}
.help-ask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--row);
}
.help-ask-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.help-ask-text b {
  margin-right: 4px;
  color: var(--line-hover);
  font-weight: 600;
}
.help-ask .btn {
  height: 38px;
  padding: 0 22px;
  flex: none;
}

/* 申诉弹窗 */
.help-modal {
  max-width: 540px;
  padding: 24px;
}
.help-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.help-modal-head h3 {
  margin: 4px 0 6px;
  font-size: 18px;
}
.help-modal-head p {
  font-size: 12px;
  line-height: 1.7;
}
.help-modal .icon-btn {
  margin-top: -2px;
}
.help-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.help-form .textarea {
  min-height: 118px;
}
.help-form-err {
  padding: 9px 12px;
  font-size: 11.5px;
}

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1180px) {
  .msg-layout { grid-template-columns: 216px minmax(0, 1fr); }
  .msg-right {
    grid-column: 1 / -1;
    position: static;
  }
  .prof-layout { grid-template-columns: 1fr; }
  .prof-tower-card { min-height: 420px; }
  .help-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .help-side { position: static; }
  .set-layout { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .msg-layout,
  .help-layout,
  .set-layout {
    grid-template-columns: 1fr;
  }
  .msg-right,
  .set-nav {
    position: static;
  }
  .msg-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: none;
  }
  .msg-setting { margin-top: 14px; }
  .msg-item { align-items: flex-start; }
  .msg-act { margin-top: 2px; }
  .prof-stats { grid-template-columns: 1fr; }
  .prof-tower-card { min-height: 360px; }
  .prof-share-time { font-size: 34px; }
  .set-nav {
    min-height: 0;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
  }
  .set-nav-item {
    width: auto;
    flex: none;
    white-space: nowrap;
  }
  .set-panel { padding: 20px; }
  .set-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-privacy,
  .set-themes { grid-template-columns: 1fr; }
  .set-id-row { padding: 12px 14px; }
  .help-panel { padding: 20px; }
  .help-side { min-height: 0; padding: 14px 12px; }
  .help-ask {
    flex-direction: column;
    align-items: flex-start;
  }
  .help-ask .btn { width: 100%; }
  .prof-share-card { padding: 22px; }
  .prof-share-cat { width: 76px; height: 76px; font-size: 12px; }
}

@media (max-width: 560px) {
  .set-channels { grid-template-columns: 1fr; }
  .set-account { flex-direction: column; gap: 14px; }
  .set-avatar-block { width: 100%; }
  .set-profile-grid,
  .set-password-grid { grid-template-columns: 1fr; }
  .set-form-actions { flex-wrap: wrap; }
  .prof-share-cat { display: none; }
  .prof-share-time { font-size: 30px; }
  .help-q { padding: 15px 16px; font-size: 13px; }
  .help-a p { padding: 0 16px 15px; }
  .msg-item { gap: 11px; padding: 12px; }
  .msg-act { min-width: 0; padding: 0 10px; }
}

/* 减少动效：仅在用户显式开启时生效 */
html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* 手机端：设置页账号资料改成纵向，输入框占满整行 */
@media (max-width: 560px) {
  .set-account { flex-direction: column !important; align-items: stretch; }
  .set-profile, .set-password { width: 100%; flex: 1 1 auto; }
  .set-profile-grid, .set-password-grid { grid-template-columns: 1fr !important; }
  .set-profile-grid .input, .set-password-grid .input { width: 100%; }
  .set-avatar-block { width: 100%; }
  .set-nav { scrollbar-width: none; }
  .set-nav::-webkit-scrollbar { display: none; }
}
