/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #ffe9ef;
  color: #4a3340;
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; outline: none; border: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

.app {
  max-width: 480px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  position: relative;
  background: #fff5f0;
  box-shadow: 0 0 30px rgba(200, 80, 106, 0.15);
  overflow: hidden;
}

.view { position: absolute; inset: 0; display: flex; flex-direction: column; }

/* ===== 登录页 ===== */
.view-login {
  background: linear-gradient(160deg, #ffd6e0 0%, #ffb3c6 45%, #ff9eb5 100%);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 36px 28px 28px;
  box-shadow: 0 12px 40px rgba(200, 80, 106, 0.25);
  text-align: center;
  backdrop-filter: blur(8px);
}
.login-loc {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 8px;
}
.loc-me, .loc-her {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px; color: #fff; letter-spacing: 1px;
}
.loc-me { background: linear-gradient(135deg,#7fb3ff,#5a8dee); }
.loc-her { background: linear-gradient(135deg,#ff9ec2,#f5679a); }
.login-heart { font-size: 34px; color: #c8506a; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%,100%{transform:scale(1);} 50%{transform:scale(1.15);} }
.login-title { font-size: 24px; color: #a83a52; letter-spacing: 2px; margin-bottom: 6px; }
.login-sub { font-size: 12px; color: #b0788a; margin-bottom: 24px; }
.login-form { text-align: left; }
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; color: #b0788a; margin-bottom: 5px; padding-left: 4px; }
.field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  background: #fff0f3;
  border: 1.5px solid #ffd0da;
  font-size: 15px;
  color: #4a3340;
  transition: border-color .2s;
}
.field input:focus { border-color: #c8506a; background: #fff; }
.login-error {
  color: #d33;
  font-size: 13px;
  text-align: center;
  margin: 4px 0 10px;
}
.btn-primary {
  width: 100%;
  padding: 13px;
  border-radius: 24px;
  background: linear-gradient(135deg, #e86a82, #c8506a);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  box-shadow: 0 6px 16px rgba(200, 80, 106, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:active { transform: scale(0.97); }

/* ===== 主壳 / 底部导航 ===== */
.view-main { background: #fff5f0; }
.bottom-nav {
  flex-shrink: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid #ffe0e8;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  color: #b898a4;
  font-size: 11px;
}
.nav-item .nav-ico { font-size: 22px; line-height: 1; }
.nav-item.active { color: #c8506a; font-weight: 600; }

.page { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }

/* ===== 子分类（微信） ===== */
.sub-tabs {
  flex-shrink: 0;
  display: flex;
  background: #fff;
  border-bottom: 1px solid #ffe0e8;
  padding: 0 8px;
}
.sub-tab {
  flex: 1;
  padding: 10px 4px;
  text-align: center;
  font-size: 13px;
  color: #9a7a86;
  position: relative;
  white-space: nowrap;
}
.sub-tab.active { color: #c8506a; font-weight: 600; }
.sub-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 3px;
  border-radius: 2px;
  background: #c8506a;
}

/* 留言板两级子标签（平台行 + 发布/喜欢行） */
.board-sub-tabs { flex-direction: column; padding: 0; }
.board-sub-tabs .bs-plats { display: flex; background: #fff; border-bottom: 1px solid #ffe0e8; }
.board-sub-tabs .bs-types { display: flex; background: #fff6f8; border-bottom: 1px solid #ffe0e8; }
.board-sub-tabs .bs-types .sub-tab { font-size: 12px; padding: 7px 4px; color: #a87a86; }
.board-sub-tabs .bs-types .sub-tab.active { color: #c8506a; }
/* 红点（未读） */
.sub-tab.has-dot::before {
  content: "";
  position: absolute;
  top: 6px; right: calc(50% - 20px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 2px #fff;
}
.sub-tab.active.has-dot::after { bottom: 0; }


/* ===== 封面表头（固定置顶） ===== */
.cover {
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #ffb3c6, #ff8fa8);
  overflow: hidden;
  z-index: 5;
}
.cover-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.cover-inner {
  position: relative;
  padding: 16px 16px 14px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(150, 40, 70, 0.35);
  text-align: center;
}
.cover-en {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  opacity: 0.95;
  margin-bottom: 4px;
}
.cover-title { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.cover-subtitle { font-size: 12px; opacity: 0.92; margin-bottom: 12px; }
.stats-cards { display: flex; gap: 8px; margin-bottom: 10px; }
.stat-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 7px 4px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.stat-card .num { font-size: 17px; font-weight: 700; line-height: 1.1; }
.stat-card .lbl { font-size: 10px; opacity: 0.9; margin-top: 2px; }
.record-summary {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1.7;
}
.record-summary .rs-row { display: flex; justify-content: space-between; }
.record-summary .rs-k { opacity: 0.9; }
.cover-btn {
  position: absolute;
  top: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 17px;
  z-index: 6;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 5px rgba(150,40,70,0.2);
}
.search-entry { left: 12px; }
.settings-entry { right: 12px; }
.refresh-btn { right: 54px; }
.refresh-btn.spinning { animation: refreshSpin 0.7s linear; }
@keyframes refreshSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== 搜索框 ===== */
.chat-search-wrap { flex-shrink: 0; position: relative; z-index: 4; background: #fff; border-bottom: 1px solid #ffe0e8; padding: 8px 12px 0; }
.chat-search-row { display: flex; gap: 8px; align-items: center; }
.chat-search {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 18px;
  background: #fff0f3;
  font-size: 13px;
}
.chat-search-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 18px;
  background: #c8506a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #fff;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 20;
  /* 与搜索框无缝衔接、顶满两侧 */
}
.search-item { padding: 5px 10px; border-bottom: 1px solid #fff0f3; cursor: pointer; transition: background .15s; }
.search-item:hover { background: #fff5f7; }
.search-item:last-child { border-bottom: none; }
.si-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 2px; }
.si-name { font-size: 11px; font-weight: 600; flex-shrink: 0; }
.search-item.si-me .si-name { color: #2b6cb0; }      /* 小狗/我 = 蓝色 */
.search-item.si-other .si-name { color: #c8506a; }   /* 小猪/对方 = 粉色 */
.si-time { font-size: 10px; color: #b0788a; margin-left: auto; flex-shrink: 0; }
.si-text { font-size: 12px; color: #6b4a52; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.si-text mark { background: #ffe08a; color: #a83a52; border-radius: 3px; padding: 0 2px; }
.search-empty { padding: 20px; text-align: center; color: #b0788a; font-size: 13px; }

/* ===== 聊天主体 / 日期折叠 ===== */
.chat-body { flex: 1; overflow-y: auto; background: #fff8f6; }
.date-list { padding: 10px 12px 20px; }
.date-row {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(200, 80, 106, 0.08);
  cursor: pointer;
  transition: transform .15s;
}
.date-row:active { transform: scale(0.995); }
.date-row.open { padding: 0; }
.date-row .dr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}
/* 打开的那一栏日期：滚动时固定在封面下方，顶满两侧 */
.date-row.open .dr-head {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #fff;
  padding: 13px 14px;
  border-radius: 0;
  border-bottom: 1px solid #ffe0e8;
}
.date-row .dr-date { font-size: 14px; color: #a83a52; font-weight: 600; }
.date-row .dr-date .dr-week { font-size: 11px; color: #b0788a; font-weight: 400; margin-left: 4px; }
.date-row .dr-count { font-size: 12px; color: #b0788a; }
.date-row .dr-arrow { color: #c8506a; transition: transform .2s; display: inline-block; }
.date-row.open .dr-arrow { transform: rotate(90deg); }
.date-row .day-msgs { display: none; padding: 10px 14px 4px; }
.date-row.open .day-msgs { display: block; }

/* ===== 留言板日期折叠 ===== */
.board-list { padding: 10px 12px 20px; }
.board-date-row {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
}
.board-date-row .dr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}
.board-date-row .dr-date { font-size: 14px; color: #a83a52; font-weight: 600; }
.board-date-row .dr-date .dr-week { font-size: 11px; color: #b0788a; font-weight: 400; margin-left: 4px; }
.board-date-row .dr-count { font-size: 12px; color: #b0788a; }
.board-date-row .dr-arrow { color: #c8506a; transition: transform .2s; display: inline-block; }
.board-date-row.open .dr-arrow { transform: rotate(90deg); }
.board-date-row .bday-posts { display: none; padding: 10px 2px 4px; }
.board-date-row.open .bday-posts { display: block; }

.messages-wrap { padding: 4px 10px 20px; }
.msg-day-divider { text-align: center; margin: 14px 0 10px; }
.msg-day-divider span {
  font-size: 11px;
  background: #ffd0da;
  color: #a83a52;
  padding: 3px 12px;
  border-radius: 10px;
}

/* ===== 气泡 ===== */
.msg { display: flex; margin-bottom: 14px; align-items: flex-start; }
.msg.me { flex-direction: row-reverse; }
.msg-avatar {
  width: 36px; height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #ffd0da;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #a83a52; font-weight: 600;
  overflow: hidden;
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-main { max-width: 72%; margin: 0 8px; }
.msg-name { font-size: 11px; margin-bottom: 3px; }
.msg.me .msg-name { text-align: right; color: #2b6cb0; }      /* 小狗/我 = 蓝 */
.msg.other .msg-name { color: #c8506a; }                       /* 小猪/对方 = 粉 */
.bubble {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 14px;
  word-break: break-word;
  line-height: 1.5;
}
.msg.other .bubble { background: #ffeeb0; border-top-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.msg.me .bubble { background: #cfe5ff; border-top-right-radius: 4px; }
.msg.highlight .bubble { background: #fff3a0; box-shadow: 0 0 0 2px #f0c040; }
.msg-time { font-size: 10px; color: #c0a0aa; margin-top: 4px; }
.msg.me .msg-time { text-align: right; }
.bubble img, .bubble video { border-radius: 8px; max-width: 220px; margin-top: 4px; }
.bubble .file-item { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bubble .link-item { display: flex; flex-direction: column; gap: 4px; font-size: 13px; border: 1px solid rgba(168,58,82,.25); border-radius: 8px; padding: 8px 10px; background: rgba(255,255,255,.55); }
.bubble .link-item .link-tag { color: #a83a52; font-weight: 600; font-size: 12px; }
.bubble .link-item .link-url { color: #6b4a52; word-break: break-all; }

/* ===== 留言板 ===== */
.page-board .board-body { flex: 1; overflow-y: auto; background: #fff8f6; }
.board-list { padding: 14px 12px 20px; }
.board-post {
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(200, 80, 106, 0.08);
  position: relative;
  max-width: 88%;
}
.board-post.me { background: #cfe5ff; margin-left: auto; }
.board-post.other { background: #ffeeb0; margin-right: auto; }
/* 子分类（她的发布/喜欢）：卡片拉满宽，消除左右空档 */
.board-list.subcat .board-post { max-width: 100%; width: 100%; }
.board-list.subcat .board-post.other { background: #ffeeb0; margin-right: 0; }
/* 待上传提示横幅 */
.board-pending-banner {
  margin: 2px 0 10px; padding: 10px 12px;
  background: #fff3f6; border: 1px dashed #e08aa6; border-radius: 10px;
  font-size: 13px; color: #c8506a; font-weight: 600;
}
.board-pending-banner .pending-line {
  line-height: 1.55;
}
.board-pending-banner .pending-row {
  display: flex; align-items: baseline; gap: 6px;
}
.board-pending-banner .pending-text {
  flex: 1 1 auto; min-width: 0; word-break: break-word;
}
.board-pending-banner .pending-row .bp-reply-toggle {
  flex: 0 0 auto; white-space: nowrap;
}
.board-pending-banner .pending-line + .pending-line {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed #eec3d2;
}
/* 喜欢分类顶部：她的当前 IP 位置提示 */
.board-ip-banner {
  margin: 0 0 10px; padding: 8px 12px;
  background: linear-gradient(135deg, #fff0f5, #ffe4ec); border: 1px solid #f2b7cd;
  border-radius: 10px; font-size: 13px; color: #a83a52; font-weight: 600;
}
.board-post .bp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.board-post.me .bp-head { flex-direction: row-reverse; }
.board-post.me .bp-time { margin-left: 0; margin-right: auto; }
.board-post.other .bp-time { margin-left: auto; margin-right: 0; }
.board-post .bp-avatar {
  width: 28px; height: 28px; border-radius: 6px;
  background: #ffd0da; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #a83a52; font-weight: 600; overflow: hidden;
}
.board-post .bp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.board-post .bp-author { font-size: 13px; font-weight: 600; color: #a83a52; }
.board-post .bp-time { font-size: 11px; color: #b0788a; margin-left: auto; }
.board-post .bp-content { font-size: 14px; color: #4a3340; white-space: pre-wrap; word-break: break-word; }
.board-post .bp-ip { display: inline-block; margin-top: 6px; font-size: 11px; color: #6b8fb0; background: #eef3f8; border: 1px solid #d3e0ec; border-radius: 999px; padding: 1px 9px; }
.board-post .bp-media img, .board-post .bp-media video { border-radius: 10px; margin-top: 8px; max-width: 100%; max-height: 300px; }
.board-post .bp-media audio.bp-audio { width: 100%; margin-top: 8px; border-radius: 8px; }
/* 多图轮播 */
.board-post .bp-carousel { position: relative; margin-top: 8px; border-radius: 10px; overflow: hidden; background: #000; }
.board-post .bp-carousel-track { display: flex; transition: transform .35s ease; }
.board-post .bp-carousel-slide { flex: 0 0 100%; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.board-post .bp-carousel-slide img { width: 100%; max-height: 340px; object-fit: contain; margin: 0; border-radius: 0; }
.board-post .bp-car-prev, .board-post .bp-car-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.board-post .bp-car-prev { left: 6px; }
.board-post .bp-car-next { right: 6px; }
.board-post .bp-car-dots { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.board-post .bp-car-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.board-post .bp-car-dot.active { background: #fff; }
.board-post .bp-del {
  position: absolute; top: 8px; left: 10px;
  font-size: 12px; color: #d33;
  padding: 4px 6px;
  opacity: 0;  transition: opacity .15s;
}
.board-post:hover .bp-del { opacity: 0.85; }
.board-post.other .bp-del { left: auto; right: 10px; }
/* 子分类记录下的"我的想法"评论区 */
.bp-reply { margin-top: 8px; border-top: 1px dashed #eec3d2; padding-top: 8px; }
.bp-reply-toggle {
  font-size: 12px; color: #c8506a; background: #fff3f6;
  border: 1px solid #eec3d2; border-radius: 999px; padding: 3px 10px; cursor: pointer;
}
.bp-reply-box { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.bp-reply-box.hidden { display: none; }
.bp-reply-input {
  flex: 1; min-width: 0; font-size: 13px; color: #4a3340;
  border: 1px solid #e0b6c6; border-radius: 999px; padding: 6px 12px; outline: none;
}
.bp-reply-input:focus { border-color: #c8506a; }
.bp-reply-send {
  font-size: 12px; color: #fff; background: #c8506a;
  border: none; border-radius: 999px; padding: 5px 12px; cursor: pointer;
}
.bp-comment {
  display: flex; gap: 7px; margin-top: 8px; padding-left: 10px;
}
.bp-comment .bp-avatar { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }
.bp-comment .bp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bp-c-body { flex: 1; min-width: 0; }
.bp-c-top { display: flex; align-items: baseline; gap: 8px; }
.bp-comment .bp-author { font-size: 12px; font-weight: 600; color: #4a6fb5; }
.bp-comment .bp-time { font-size: 11px; color: #b0788a; }
.bp-c-text { font-size: 13px; color: #3d3d3d; white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
/* 留言板发布栏：日期输入行（限定在输入栏内，避免覆盖列表日期行的 column 布局） */
.board-input-bar .board-date-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.board-date-label { font-size: 12px; color: #9a7a86; flex-shrink: 0; }
.board-link-row .board-text { flex: 1; }
/* 「她的喜欢」链接卡片 */
.bp-like-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #2b7fff;
  background: #f0f6ff;
  border-radius: 8px;
  padding: 7px 12px;
  text-decoration: none;
  word-break: break-all;
}
.bp-like-link.small { font-size: 12px; padding: 4px 10px; background: #f7f4f6; color: #8a5a6a; }
.bp-like-link.muted { color: #b0a0a8; background: #f6f2f4; }
.bp-like-link:hover { text-decoration: underline; }
.board-date {
  flex: 1;
  font-size: 13px;
  color: #6a4a56;
  border: 1px solid #ffd6e0;
  border-radius: 8px;
  padding: 5px 8px;
  background: #fffafc;
  max-width: 170px;
}
.board-input-bar {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #ffe0e8;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
/* 收起状态：整个发布栏隐藏，仅留左侧 FAB 切换键 */
.board-input-bar.collapsed { display: none; }
/* 左侧悬浮小键：平时收在左下角，点开/收起发布栏 */
.board-fab {
  position: absolute;
  left: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e86a82, #c8506a);
  color: #fff;
  font-size: 20px;
  z-index: 30;
  box-shadow: 0 4px 14px rgba(200, 80, 106, 0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.board-fab:active { transform: scale(0.92); }
.board-input-row { display: flex; align-items: center; gap: 8px; }
.board-text {
  flex: 1;
  padding: 9px 12px;
  border-radius: 18px;
  background: #fff0f3;
  font-size: 14px;
}
.board-icon-btn { font-size: 20px; padding: 4px; }
.board-send {
  padding: 8px 16px;
  border-radius: 18px;
  background: #c8506a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.board-preview { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.board-preview img, .board-preview video { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }

/* ===== 设置页 ===== */
.view-settings { background: #fff5f0; }
.settings-head {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  padding: 12px 14px calc(12px + env(safe-area-inset-top));
  border-bottom: 1px solid #ffe0e8;
}
.settings-head h2 { font-size: 17px; color: #a83a52; }
.back-btn { font-size: 15px; color: #c8506a; padding: 4px 8px; }
.settings-body { flex: 1; overflow-y: auto; padding: 16px 14px 40px; }
.settings-group {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(200, 80, 106, 0.06);
}
.settings-group h3 { font-size: 14px; color: #a83a52; margin-bottom: 12px; }
.avatar-row { display: flex; gap: 16px; }
.avatar-pick { flex: 1; text-align: center; }
.avatar-preview {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: #fff0f3;
  margin: 0 auto 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #c8506a;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.btn-mini {
  padding: 6px 12px;
  border-radius: 14px;
  background: #fff0f3;
  color: #c8506a;
  font-size: 12px;
}
.wallpaper-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #fff0f3; }
.wallpaper-row:last-child { border-bottom: none; }
.wallpaper-row .wp-label { font-size: 13px; }
.wallpaper-row .wp-actions { display: flex; gap: 6px; }
.btn-save { margin-top: 8px; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%; bottom: 90px;
  transform: translateX(-50%);
  background: rgba(74, 51, 64, 0.9);
  color: #fff;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 999;
  animation: fadein .2s;
}
@keyframes fadein { from{opacity:0;transform:translate(-50%,10px);} to{opacity:1;transform:translate(-50%,0);} }

/* 滚动条隐藏 */
.chat-body::-webkit-scrollbar, .board-body::-webkit-scrollbar, .settings-body::-webkit-scrollbar { width: 0; }

/* 封面单曲播放器 */
.login-player { margin-top: 14px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.player-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(255,255,255,.25); color: #fff; font-size: 13px; cursor: pointer; flex-shrink: 0; }
.player-name { font-size: 12px; color: rgba(255,255,255,.85); }

/* 全局音乐播放/暂停悬浮按钮 */
.player-float-btn {
  position: fixed; top: 14px; right: 14px; z-index: 9999;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.5); color: #fff;
  font-size: 18px; cursor: pointer; display: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* 主页点唱机：黑胶唱片 + 歌词 */
.juke {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px; margin: 10px 0 0;
  background: rgba(0,0,0,.35); border-radius: 16px;
  backdrop-filter: blur(4px);
}
.juke .sb {
  position: absolute; font-size: 16px; opacity: .25;
  pointer-events: none; animation: floatSB 3.6s ease-in-out infinite;
}
.juke .sb1 { left: 3%; top: 8%; }
.juke .sb2 { right: 5%; top: 12%; animation-delay: .6s; }
.juke .sb3 { left: 8%; bottom: 10%; animation-delay: 1.2s; }
.juke .sb4 { right: 10%; bottom: 6%; animation-delay: 1.8s; }
.juke .sb5 { left: 46%; top: -2px; font-size: 13px; animation-delay: .3s; }
.juke .sb6 { right: 30%; bottom: 0; font-size: 14px; animation-delay: 2.2s; }
@keyframes floatSB { 0%,100%{transform:translateY(0) rotate(-8deg);} 50%{transform:translateY(-5px) rotate(8deg);} }
.juke-disc-wrap { position: relative; width: 78px; height: 78px; flex-shrink: 0; }
.juke-disc {
  position: relative; width: 78px; height: 78px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    #17171c 0 2px, #27272e 2px 4px, #1d1d23 4px 6px);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
.juke-disc.spinning { animation: jukeSpin 7s linear infinite; }
@keyframes jukeSpin { to { transform: rotate(360deg); } }
.juke-art {
  position: absolute; inset: 15px; border-radius: 50%;
  background-size: cover; background-position: center; background-color: #333;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 6px rgba(0,0,0,.5);
  z-index: 1;
}
.juke-hole {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  transform: translate(-50%,-50%); border-radius: 50%;
  background: #0b0b0e; box-shadow: inset 0 0 2px rgba(255,255,255,.2);
}
.juke-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.5);
  color: #fff; font-size: 13px; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.juke-next {
  position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); background: rgba(0,0,0,.5);
  color: #fff; font-size: 12px; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.juke-next.dim { opacity: .45; cursor: default; }
.juke-name {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  font-size: 11px; color: rgba(255,255,255,.88);
  white-space: nowrap; letter-spacing: .5px;
}
.juke-lyrics {
  flex: 1; height: 68px; max-height: 68px; overflow: hidden; position: relative;
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.9);
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.juke-lyrics-inner { width: 100%; }
.juke-lyrics .l-line { opacity: .5; }
.juke-lyrics .l-line.hot { opacity: 1; color: #ffd0e4; text-shadow: 0 0 8px rgba(255,140,190,.4); }

