/* ============================================================
   拾杯 DrinkNote — 前台设计系统 (front.css v3)
   配色与 dknt 安卓端统一：品牌绿 #9ec548 渐变 / 米白背景 #f6f7f0
   粗圆体字体体系 / 大圆角（24/16）/ 亮暗双主题
   全部组件颜色走 CSS 变量；--radius / --radius-sm 可由 JS 实时修改即时生效
   ============================================================ */

/* ---------- 1. 主题变量（与 dknt/static/css/theme.css 对齐） ---------- */
:root {
  /* 品牌色：源自主按钮绿色渐变 */
  --brand: #9ec548;
  --brand-dark: #7ba535;
  --brand-grad: linear-gradient(135deg, #b5d65a 0%, #9ec548 100%);
  --brand-bg: #f3f8e6;
  --brand-weak: rgba(158, 197, 72, .15);

  /* 表面 / 文字（亮色：纯白背景 + 暖调深色文字） */
  --bg: #ffffff;
  --bg-subtle: #f2f3f5;
  --card: #ffffff;
  --text-1: #2e2718;
  --text-2: #6f685c;
  --text-3: #8c857a;
  --border: rgba(46, 39, 24, .08);

  /* 阴影 / 功能色 */
  --shadow: 0 2px 12px rgba(46, 39, 24, .08);
  --shadow-lg: 0 12px 36px rgba(46, 39, 24, .14);
  --ok: #7ba535;
  --ok-bg: #f3f8e6;
  --err: #ff3b30;
  --err-bg: #fdeeee;
  --star-on: #9ec548;
  --star-off: #dde3d8;

  /* 圆角（JS 可实时修改 --radius 即时生效；dknt 默认 24/16） */
  --radius: 24px;
  --radius-sm: 16px;
  --radius-lg: 28px;

  /* 布局尺寸 */
  --sidebar-w: 180px;
  --topbar-h: 70px; /* 与消息页 im-side__bar / im-chat__head 同高 */

  /* 字体（dknt 粗圆体体系） */
  --font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑",
    "Source Han Sans CN", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --fw-base: 600;
  --fw-strong: 700;
}

/* 暗色主题：变量整体覆盖（与 dknt dark 对齐：#161823 底 / #b5d65a 主色） */
[data-theme="dark"] {
  --bg: #161823;
  --bg-subtle: #1c1e2a;
  --card: #232634;
  --text-1: #ffffff;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --border: rgba(255, 255, 255, .08);
  --shadow: 0 2px 12px rgba(0, 0, 0, .24);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, .4);
  --brand: #b5d65a;
  --brand-dark: #c8e872;
  --brand-grad: linear-gradient(135deg, #c8e872 0%, #b5d65a 100%);
  --brand-bg: rgba(181, 214, 90, .16);
  --brand-weak: rgba(181, 214, 90, .18);
  --ok: #b5d65a;
  --ok-bg: rgba(181, 214, 90, .16);
  --err: #ff453a;
  --err-bg: rgba(255, 69, 58, .16);
  --star-off: #3a3d4a;
}

/* ---------- 2. 基础重置 ---------- */
* { box-sizing: border-box; }
/* 隐藏全局滚动条（保留滚动能力） */
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: var(--fw-base);
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { margin: 0; color: var(--text-1); font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, textarea, select { font-family: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text-1);
  font-size: 14px; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .18s, border-color .18s, color .18s, transform .1s;
}
.btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--brand-dark); background: var(--brand-weak); border-color: transparent; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--err); }
.btn-danger-ghost:hover { background: var(--err-bg); border-color: transparent; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-md { height: 36px; padding: 0 14px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--text-2); cursor: pointer; transition: .18s;
}
.icon-btn:hover { background: var(--brand-weak); color: var(--brand-dark); }

/* ---------- 4. 头像 / 标签 / 计数徽标 ---------- */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex: none; display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--brand-bg); color: var(--brand-dark);
}
.avatar-xs { width: 20px; height: 20px; }
.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 48px; height: 48px; }
.avatar-xl { width: 64px; height: 64px; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--bg-subtle); color: var(--text-2);
  font-size: 11px; line-height: 1.6; white-space: nowrap;
}
.tag-brand { background: var(--brand-weak); color: var(--brand-dark); }

.badge-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--err); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 1;
}

/* ---------- 5. 表单 ---------- */
.input, .textarea {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text-1);
  font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-weak);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.form-row { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.help { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.req { color: var(--err); font-style: normal; }
.input-group { display: flex; gap: 8px; align-items: center; }
.input-group .input { flex: 1; }

/* ---------- 6. 分页 ---------- */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 20px 0 8px;
}
.page-info { font-size: 13px; color: var(--text-3); }
.page-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.page-btn {
  min-width: 32px; height: 32px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text-2);
  font-size: 13px; cursor: pointer; transition: .15s;
}
.page-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.page-btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.page-btn.is-disabled, .page-btn.is-more { opacity: .45; pointer-events: none; }

/* ---------- 7. 提示条 / 空状态 / 弹窗 / 遮罩 ---------- */
.alert {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; margin-bottom: 14px;
  border-radius: var(--radius-sm); font-size: 13px;
}
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--err-bg); color: var(--err); }

.empty-state { text-align: center; padding: 56px 20px; color: var(--text-3); }
.empty-state__icon {
  width: 72px; height: 72px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--bg-subtle);
  display: flex; align-items: center; justify-content: center; color: var(--text-3);
}
.empty-state__code { font-size: 34px; font-weight: 800; color: var(--text-2); letter-spacing: 2px; }
.empty-state__title { font-size: 15px; font-weight: 600; color: var(--text-2); margin: 4px 0 6px; }
.empty-state__text { font-size: 13px; color: var(--text-3); margin-bottom: 16px; }
.empty-state__action { margin-top: 4px; }

.toast-wrap {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 4000; display: flex; flex-direction: column; gap: 10px; align-items: center;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 8px;
  max-width: 80vw; padding: 10px 18px;
  border-radius: 999px; background: var(--text-1); color: var(--bg);
  font-size: 13px; box-shadow: var(--shadow-lg);
  animation: toast-in .25s ease; pointer-events: auto;
}
.toast.ok { background: var(--brand-dark); color: #fff; }
.toast.err { background: var(--err); color: #fff; }
.toast.hide { animation: toast-out .28s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

.modal {
  position: fixed; inset: 0; z-index: 3000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(15, 18, 14, .55);
}
.modal.open { display: flex; }
.modal-box {
  width: 100%; max-width: 420px; padding: 22px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: pop-in .22s ease;
}
.modal-msg { font-size: 14px; color: var(--text-1); line-height: 1.7; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* 全屏加载遮罩（ui.js loading/progress 共用结构） */
.loading-overlay {
  position: fixed; inset: 0; z-index: 3500;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(2px);
}
[data-theme="dark"] .loading-overlay { background: rgba(20, 21, 24, .72); }
.loading-overlay.is-visible { display: flex; }
.loading-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--brand-weak); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
.loading-text { font-size: 13px; color: var(--text-2); }
@keyframes spin { to { transform: rotate(360deg); } }

.progress {
  width: min(320px, 70vw); height: 8px; overflow: hidden;
  border-radius: 999px; background: var(--bg-subtle);
}
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: var(--brand); transition: width .2s;
}
.progress-fill.is-indeterminate { width: 36%; animation: indeterminate 1.2s ease-in-out infinite; }
@keyframes indeterminate { from { transform: translateX(-110%); } to { transform: translateX(320%); } }

/* ---------- 8. 工具类 ---------- */
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faint { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; }
.bold { font-weight: 700; }
.ta-right { text-align: right; }
.flex { display: flex; align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

/* 五星评分：★ 填充，绿色；.half 半星 / .off 灰星 */
.star-rating { display: inline-flex; align-items: center; gap: 1px; line-height: 1; font-size: 14px; color: var(--star-off); }
.star-rating i { font-style: normal; }
.star-rating i.on { color: var(--star-on); }
.star-rating i.off { color: var(--star-off); }
.star-rating i.half {
  color: transparent;
  background: linear-gradient(90deg, var(--star-on) 50%, var(--star-off) 50%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.star-rating.lg { font-size: 18px; }

/* ---------- 9. 应用骨架：桌面版侧栏 + 主区 ---------- */
.app-shell { display: flex; min-height: 100vh; background: var(--bg); }

.app-sidebar {
  width: var(--sidebar-w); flex: none;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px 18px; /* 顶区与 topbar(70px) 垂直对齐：14 + 42/2 = 35 = 70/2 */
  background: var(--card);
}

.brand-logo { display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; }
.brand-logo__icon {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--brand-grad); color: #fff;
  box-shadow: 0 4px 14px var(--brand-weak);
}
.brand-logo__text { display: flex; flex-direction: column; min-width: 0; }
.brand-logo__name { font-size: 18px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.brand-logo__sub { font-size: 10px; letter-spacing: 3px; color: var(--text-3); text-transform: uppercase; }

/* 侧栏胶囊导航（桌面版） */
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-nav__item {
  position: relative; display: flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 18px;
  border-radius: 999px; color: var(--text-1); font-size: 15px; font-weight: var(--fw-base);
  transition: background .15s, color .15s;
}
.side-nav__item .icon { color: var(--text-2); transition: color .15s; }
.side-nav__item:hover { background: var(--bg-subtle); }
.side-nav__item:hover .icon { color: var(--text-1); }
.side-nav__item.is-active { background: var(--bg-subtle); font-weight: 700; }
.side-nav__item.is-active .icon { color: var(--brand-dark); }
.side-nav__item.is-active span { color: var(--brand-dark); }
.side-nav__item span { min-width: 0; }
.side-nav__badge {
  margin-left: auto; flex: none; align-self: center;
  width: 18px; height: 18px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--err); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 1; text-align: center;
  box-sizing: border-box; flex-shrink: 0;
}
.side-nav__divider { height: 1px; margin: 10px 14px; background: var(--border); flex: none; }

/* 侧栏主行动按钮（大圆角胶囊） */
.side-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; margin: 12px 4px 4px; flex: none;
  border: 0; border-radius: 999px;
  background: var(--brand-grad); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 18px var(--brand-weak);
  transition: filter .15s, transform .1s;
}
.side-cta:hover { filter: brightness(1.05); }
.side-cta:active { transform: translateY(1px); }

.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 4px;
  border-radius: var(--radius-sm); background: var(--bg-subtle);
}
.side-user__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.side-user__name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.side-user__mood { font-size: 11px; color: var(--text-3); }
.side-user__mood a { color: var(--brand-dark); }

.side-worn { display: block; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--brand-bg); }
.side-worn__label { display: block; font-size: 11px; color: var(--brand-dark); opacity: .75; margin-bottom: 6px; }
.side-worn__item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.side-worn__icon {
  width: 28px; height: 28px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--card); color: var(--brand-dark);
}

.side-mascot {
  margin-top: auto; padding: 14px 10px;
  border-radius: var(--radius-sm); background: var(--bg-subtle);
  text-align: center; color: var(--text-3); font-size: 12px; line-height: 1.7;
}
.side-mascot .icon { color: var(--brand); margin-bottom: 4px; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* 顶栏：居中胶囊搜索 + 右侧操作区 */
.app-topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  background: var(--card);
  transition: background .2s;
}
/* 下滑后顶栏加底色（me-bleed 页顶栏初始透明露出 banner，滚动重叠内容时恢复） */
.me-bleed .app-topbar.is-scrolled {
  background: var(--card);
  box-shadow: 0 1px 0 var(--border);
}
/* 顶栏透明态（未滚动）配色：搜索框半透明、右侧图标与用户菜单白色，hover 用白色半透明底 */
.me-bleed .app-topbar:not(.is-scrolled) .search-box {
  background: rgb(0 0 0 / 17%);
  border-color: rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .9);
}
.me-bleed .app-topbar:not(.is-scrolled) .search-box input { color: #fff; }
.me-bleed .app-topbar:not(.is-scrolled) .search-box input::placeholder { color: rgba(255, 255, 255, .8); }
.me-bleed .app-topbar:not(.is-scrolled) .search-box kbd {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .4);
  color: rgba(255, 255, 255, .9);
}
.me-bleed .app-topbar:not(.is-scrolled) .search-box:focus-within {
  background: rgba(0, 0, 0, .45);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .18);
}
.me-bleed .app-topbar:not(.is-scrolled) .topbar-actions .icon-btn { color: #fff; }
.me-bleed .app-topbar:not(.is-scrolled) .topbar-actions .icon-btn:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.me-bleed .app-topbar:not(.is-scrolled) .user-menu__trigger { color: #fff; }
.me-bleed .app-topbar:not(.is-scrolled) .user-menu__trigger:hover { background: rgba(255, 255, 255, .22); }
.me-bleed .app-topbar:not(.is-scrolled) .user-menu__mood { color: rgba(255, 255, 255, .75); }

.search-box {
  display: flex; align-items: center; gap: 8px;
  flex: 1; max-width: 560px; height: 40px; padding: 0 18px;
  margin: 0 auto;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--bg-subtle); color: var(--text-3);
  transition: .15s;
}
.search-box:focus-within { border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 3px var(--brand-weak); }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 14px; font-weight: var(--fw-base); color: var(--text-1);
}
.search-box input::placeholder { color: var(--text-3); }
.search-box kbd {
  font-family: inherit; font-size: 11px; line-height: 1;
  padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--card); color: var(--text-3);
}

.topbar-actions { margin-left: 0; display: flex; align-items: center; gap: 10px; flex: none; }
.topbar-bell { position: relative; }
.badge-dot {
  position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--err); border: 2px solid var(--card);
}

.user-menu { position: relative; }
.user-menu__trigger {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-1); cursor: pointer;
  transition: background .15s;
}
.user-menu__trigger:hover { background: var(--bg-subtle); }
.user-menu__info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.3; min-width: 0; }
.user-menu__name { font-size: 13px; font-weight: 600; max-width: 120px; }
.user-menu__mood { font-size: 11px; color: var(--text-3); max-width: 120px; }
.user-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 200;
  width: 180px; padding: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  display: none;
}
.user-menu:hover .user-menu__panel, .user-menu__panel.open { display: block; }
.user-menu__panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 999px;
  font-size: 13px; color: var(--text-2);
}
.user-menu__panel a:hover { background: var(--bg-subtle); color: var(--text-1); }
.user-menu__panel a.danger { color: var(--err); }
.user-menu__panel a.danger:hover { background: var(--err-bg); }

.app-content { width: 100%; max-width: 1360px; margin: 0 auto; flex: 1; }

/* ---------- 10. 通用版块 ---------- */
.hero-strip {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; margin-bottom: 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(120deg, var(--brand-bg), var(--card));
}
.hero-strip__icon { display: flex; color: var(--brand-dark); }
.hero-strip__body { min-width: 0; }
.hero-strip__title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.hero-strip__sub { font-size: 12px; color: var(--text-3); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.section-head h2, .section-head h3 { font-size: 17px; }
.more-link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 13px; color: var(--text-3); transition: color .15s;
}
.more-link:hover { color: var(--brand-dark); }

.panel {
  margin-bottom: 18px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel__title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.panel__body { min-width: 0; }

/* ---------- 11. 奶茶记录卡片 ---------- */
.record-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.record-card {
  display: block; overflow: hidden; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; transition: border-color .18s;
}
.record-card:hover { border-color: var(--brand-weak); }
.record-card__thumb {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; background: var(--bg-subtle);
}
.record-card__thumb--empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.record-card__body { padding: 10px 12px 12px; }
.record-card__name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.record-card__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-top: 6px; font-size: 12px; color: var(--text-2); min-width: 0;
}
.record-card__meta .tag { padding: 1px 8px; }
.record-card__star { color: var(--star-on); font-weight: 600; }
.record-card__time { margin-top: 6px; font-size: 11px; color: var(--text-3); }

/* ---------- 12. 笔记瀑布流 ---------- */
.square-grid { column-count: 4; column-gap: 16px; }
@media (max-width: 1280px) { .square-grid { column-count: 3; } }
.note-card {
  display: block; break-inside: avoid; margin-bottom: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; transition: border-color .18s;
}
.note-card:hover { border-color: var(--brand-weak); }
.note-card__thumbwrap { display: block; background: var(--bg-subtle); }
.note-card__thumbwrap img { display: block; width: 100%; object-fit: cover; }
.note-card__body { padding: 12px; }
.note-card__title {
  font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.note-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.note-card__cover { display: block; overflow: hidden; background: var(--bg-subtle); }
.note-card__cover img { display: block; width: 100%; height: 160px; object-fit: cover; }
.note-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.note-card__author { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--text-2); }
.note-card__author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
.note-card__author span { min-width: 0; }
.note-card__like { display: flex; align-items: center; gap: 4px; flex: none; font-size: 12px; color: var(--text-3); }
.note-card__like .icon { color: var(--text-3); }

/* ---------- 13. 底部弹层 ---------- */
.sheet { position: fixed; inset: 0; z-index: 2500; visibility: hidden; }
.sheet__mask { position: absolute; inset: 0; background: rgba(15, 18, 14, .5); opacity: 0; transition: opacity .25s; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 82vh; overflow-y: auto;
  padding: 12px 18px calc(18px + env(safe-area-inset-bottom));
  background: var(--card); border-radius: var(--radius) var(--radius) 0 0;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.32, .72, .24, 1);
}
.sheet.open { visibility: visible; }
.sheet.open .sheet__mask { opacity: 1; }
.sheet.open .sheet__panel { transform: translateY(0); }
.sheet__bar { width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 999px; background: var(--border); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet__title { font-size: 15px; font-weight: 700; color: var(--text-1); }
.sheet__close { color: var(--text-3); }

/* ---------- 14. 统计条 / 徽章墙 / 会员卡 ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.stat-strip__item {
  padding: 14px 12px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.stat-strip__num { font-size: 22px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.stat-strip__num em { font-style: normal; font-size: 12px; color: var(--text-3); margin-left: 2px; }
.stat-strip__num--brand { color: var(--brand-dark); }
.stat-strip__label { margin-top: 2px; font-size: 12px; color: var(--text-3); }

.badge-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 12px;
}
.badge-cell {
  position: relative; display: block; padding: 14px 8px 12px; text-align: center; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  color: inherit; transition: border-color .18s;
}
.badge-cell:hover { border-color: var(--brand-weak); }
.badge-cell__iconwrap { position: relative; width: 56px; margin: 0 auto 8px; }
.badge-cell__icon {
  width: 56px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  transition: filter .2s;
}
.badge-cell.locked { opacity: .9; }
.badge-cell.locked .badge-cell__icon { background: var(--bg-subtle); color: var(--text-3); filter: grayscale(1); }
.badge-cell__crown {
  position: absolute; top: -6px; right: -8px; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); color: #e8a33d; box-shadow: var(--shadow);
}
.badge-cell__name { font-size: 12px; font-weight: 600; color: var(--text-1); }
.badge-cell__progress { margin-top: 4px; font-size: 11px; color: var(--text-3); }
.badge-cell.earned .badge-cell__progress { color: var(--brand-dark); }

.vip-card {
  position: relative; overflow: hidden;
  padding: 22px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #3c7a33 0%, var(--brand) 55%, #8fce7f 100%);
  color: #fff; box-shadow: 0 12px 30px var(--brand-weak);
}
.vip-card::before, .vip-card::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.vip-card::before { width: 160px; height: 160px; top: -70px; right: -40px; }
.vip-card::after { width: 90px; height: 90px; bottom: -40px; right: 60px; }
.vip-card__head { display: flex; align-items: center; gap: 10px; }
.vip-card__title { font-size: 18px; font-weight: 700; }
.vip-card__desc { margin-top: 6px; font-size: 12px; opacity: .88; }
.vip-card__perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vip-card__perk { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 12px; }
.vip-card__btn {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 16px; border: 0; border-radius: 999px;
  background: #fff; color: var(--brand-dark); font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ---------- 15. 聊天 ---------- */
.chat-wrap { display: flex; flex-direction: column; gap: 14px; padding: 16px 4px; }
.chat-row { display: flex; align-items: flex-start; gap: 10px; max-width: 78%; }
.chat-row.me { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--text-3);
}
.chat-bubble {
  max-width: 100%; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.chat-text { font-size: 14px; color: var(--text-1); line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.chat-time { margin-top: 4px; font-size: 11px; color: var(--text-3); }
.chat-row.me .chat-bubble { background: var(--brand); border-color: var(--brand); border-top-right-radius: 6px; }
.chat-row.me .chat-text { color: #fff; }
.chat-row.me .chat-time { color: rgba(255, 255, 255, .75); }
.chat-row:not(.me) .chat-bubble { border-top-left-radius: 6px; }

/* ---------- 15b. 消息双栏（IM） ---------- */
.im-layout {
  display: flex; overflow: hidden;
  height: calc(100vh - var(--topbar-h) - 32px); min-height: 480px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
/* 消息页隐藏顶栏时占满视口（四边无间隔） */
.no-topbar .app-content { padding: 0; }
.no-topbar .im-layout { height: 100vh; border: 0; border-radius: 0; }
.im-side {
  display: flex; flex-direction: column; position: relative;
  width: 300px; flex-shrink: 0;
  border-right: 1px solid var(--border);
}
.im-side__bar {
  display: flex; gap: 8px; align-items: center;
  height: 70px; padding: 0 12px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.im-search {
  display: flex; flex: 1; gap: 6px; align-items: center;
  padding: 0 12px; height: 36px; color: var(--text-3);
  background: var(--bg-subtle); border: 1px solid transparent; border-radius: 18px;
}
.im-search input {
  flex: 1; border: 0; outline: 0; background: none;
  font-size: 13px; color: var(--text-1);
}
.im-search input::placeholder { color: var(--text-3); }
.im-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0; cursor: pointer;
  color: var(--text-2); background: var(--bg-subtle);
  border: 1px solid transparent; border-radius: 50%;
  transition: border-color .15s, color .15s;
}
.im-add:hover { color: var(--brand-dark); border-color: var(--brand-weak); }

/* 联系人弹层（原联系人页并入） */
.im-contacts {
  position: absolute; z-index: 30; top: 58px; left: 12px; right: 12px;
  max-height: 340px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.im-contacts__head { padding: 10px 14px 6px; font-size: 12px; color: var(--text-3); }
.im-contacts__empty { padding: 10px 14px 14px; }
.im-contact {
  display: flex; gap: 10px; align-items: center; width: 100%;
  padding: 8px 14px; cursor: pointer; text-align: left;
  background: none; border: 0; font-size: 14px; color: var(--text-1);
  transition: background .12s;
}
.im-contact:hover { background: var(--bg-subtle); }

.im-conv-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px; }
.im-conv-list > .im-conv + .im-conv { margin-top: 4px; }
.im-conv {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border-radius: var(--radius-sm); color: inherit;
  text-decoration: none; transition: background .12s;
}
.im-conv:hover { background: var(--bg-subtle); }
.im-conv.is-active { background: var(--brand-weak); }
.im-conv__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.im-conv__name {
  font-size: 14px; font-weight: 700; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.im-conv__preview {
  font-size: 12px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.im-conv__meta {
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex-shrink: 0;
}
.im-conv__time { font-size: 11px; color: var(--text-3); }
.im-conv-empty {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  padding: 48px 16px; color: var(--text-3);
}

/* 右栏聊天窗 */
.im-chat { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.im-chat__head {
  display: flex; gap: 10px; align-items: center;
  height: 70px; padding: 0 16px; flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.im-chat__title { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.im-chat__list { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.im-divider {
  display: flex; justify-content: center; margin: 6px 0 2px;
  font-size: 11px; color: var(--text-3);
}
.im-chat__input {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-top: 1px solid var(--border);
}
.im-chat__input .input { flex: 1; height: 42px; border-radius: 21px; }
.im-send {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0; cursor: pointer;
  color: #fff; background: var(--brand); border: 0; border-radius: 50%;
  transition: filter .15s;
}
.im-send:hover { filter: brightness(.94); }
.im-chat__empty {
  display: flex; flex: 1; flex-direction: column; gap: 8px;
  align-items: center; justify-content: center; color: var(--text-3);
}
.im-chat__empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; color: var(--brand);
  background: var(--brand-weak); border-radius: 50%;
}
.im-chat__empty .bold { color: var(--text-2); }

@media (max-width: 768px) {
  .im-layout { height: calc(100vh - var(--topbar-h) - 32px); }
  .im-side { width: 108px; }
  .im-search, .im-conv__preview, .im-conv__meta, .im-conv__name { display: none; }
  .im-side__bar { justify-content: center; }
  .im-conv { justify-content: center; }
}

/* ---------- 16. 设置 / 二维码 ---------- */
.settings-group {
  margin-bottom: 16px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.settings-group__title { padding: 12px 16px 2px; font-size: 12px; color: var(--text-3); }
.setting-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; color: var(--text-1); font-size: 14px;
  text-align: left; cursor: pointer; transition: background .15s;
}
.setting-row:last-child { border-bottom: 0; }
.setting-row:hover { background: var(--bg-subtle); }
.setting-row__icon { display: flex; color: var(--brand-dark); }
.setting-row__label { flex: 1; min-width: 0; }
.setting-row__value { font-size: 13px; color: var(--text-3); max-width: 50%; }
.setting-row .icon-chevron-right, .setting-row__chevron { color: var(--text-3); }

/* ---------- 设置页 · 头像卡片 / 上传历史 / 1:1 圆形裁切 ---------- */
/* ---------- 设置页 · 左导航 + 右卡片布局 ---------- */
.settings-layout { display: flex; gap: 24px; align-items: flex-start; max-width: 1024px; }
.settings-nav {
  position: sticky; top: calc(var(--topbar-h, 64px) + 16px);
  display: flex; flex-direction: column; gap: 4px; width: 200px; flex-shrink: 0;
}
.settings-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm, 10px);
  font-size: 14px; color: var(--text-2); text-decoration: none;
}
.settings-nav a.is-on { background: var(--brand-bg); color: var(--brand-dark); font-weight: 600; }
.settings-main { flex: 1; min-width: 0; }
.settings-panel { display: none; }
.settings-panel.is-on { display: block; }
.settings-card { margin-bottom: 16px; }
.settings-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.settings-card__title { font-size: 15px; color: var(--text-1); }
.profile-view { display: flex; gap: 20px; padding: 18px; }
.profile-view__avatar { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.profile-view__avatar img {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: var(--bg-subtle); border: 1px solid var(--border);
}
.profile-view__cam {
  position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--card);
  color: var(--text-2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.profile-view__cam:hover { color: var(--brand-dark); border-color: var(--brand); }
.profile-view__rows { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profile-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.profile-row:last-child { border-bottom: 0; }
.profile-row__label { width: 76px; flex-shrink: 0; color: var(--text-3); font-size: 13px; }
.profile-row__value {
  flex: 1; min-width: 0; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bind-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.bind-row:last-child { border-bottom: 0; }
.btn-danger-outline { border: 1px solid var(--err); color: var(--err); background: transparent; }
.btn-danger-outline:hover { background: var(--err-bg); }
/* 拨动开关 */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.switch__slider {
  position: absolute; inset: 0; border-radius: 999px; background: var(--border);
  transition: background .2s; pointer-events: none;
}
.switch__slider::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .2s;
}
.switch input:checked + .switch__slider { background: var(--brand); }
.switch input:checked + .switch__slider::after { transform: translateX(20px); }
.notify-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notify-text b { font-size: 14px; color: var(--text-1); }
.notify-text .help { margin: 0; }
@media (max-width: 760px) {
  .settings-layout { flex-direction: column; gap: 12px; }
  .settings-nav { position: static; flex-direction: row; width: 100%; overflow-x: auto; }
  .settings-nav a { white-space: nowrap; }
}

/* ---------- 消息页 · 我的名片（+ → 右栏切换为名片视图，内容上下左右居中） ---------- */
.im-chat { position: relative; }
.qcard-view { position: absolute; inset: 0; z-index: 30; background: var(--card);
  display: flex; align-items: center; justify-content: center; }
.qcard-view[hidden] { display: none; }
.qcard__head { position: absolute; top: 0; left: 0; right: 0; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-bottom: 1px solid var(--border); }
.qcard__head .bold { color: var(--text-1); }
.qcard__close { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: #f2f2ee; color: #777; border: none; cursor: pointer; }
.qcard__body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qcard__avatar { width: 64px; height: 64px; border-radius: 50%; background: #f2f2ee;
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: #9aa08e; }
.qcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.qcard__name { font-size: 16px; font-weight: 600; color: #333; margin-top: 2px; }
.qcard__qr { margin: 12px 0 6px; width: min(210px, 100%); }
.qcard__qr img { width: min(210px, 100%); height: auto; display: block; }
.qcard__tip { margin-bottom: 12px; }
.qcard__contacts-btn { border: 1px solid var(--brand); color: var(--brand-dark); background: #fff;
  border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* ---------- 帮助反馈页 ---------- */
.fb-tabs {
  display: flex; gap: 26px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px; max-width: 1024px;
}
.fb-tabs a {
  position: relative; padding: 10px 2px 12px; font-size: 15px;
  color: var(--text-2); cursor: pointer; font-weight: 500;
}
.fb-tabs a.is-on { color: var(--brand-dark); font-weight: 600; }
.fb-tabs a.is-on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.fb-panel { display: none; }
.fb-panel.is-on { display: block; }
.fb-layout { display: flex; gap: 16px; align-items: flex-start; max-width: 1024px; }
.fb-layout > .fb-card:first-child { flex: 1; min-width: 0; }
.fb-side { width: 340px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.fb-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.fb-card__badge {
  width: 28px; height: 28px; border-radius: 8px; background: var(--brand-bg);
  color: var(--brand-dark); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fb-card__badge--orange { background: rgba(255, 149, 0, .14); color: #c77700; }
.fb-card__title { font-size: 15px; color: var(--text-1); }
.fb-more {
  margin-left: auto; font-size: 12px; color: var(--text-3); display: flex;
  align-items: center; gap: 2px; cursor: pointer; text-decoration: none;
}
.fb-form { padding: 4px 18px 18px; }
.fb-counter { display: block; text-align: right; margin-top: 4px; }
.fb-drop {
  border: 1px dashed var(--border); border-radius: var(--radius-sm, 10px);
  background: var(--bg-subtle); padding: 22px 16px; display: flex;
  flex-direction: column; align-items: center; gap: 4px; color: var(--text-2);
  cursor: pointer; text-align: center;
}
.fb-drop b { font-size: 13px; color: var(--text-1); font-weight: 500; }
.fb-drop.is-over { border-color: var(--brand); background: var(--brand-bg); }
.fb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fb-thumb {
  position: relative; width: 72px; height: 72px; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--border);
}
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-thumb button {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
}
.fb-submit { width: 100%; justify-content: center; }
.fb-tips { list-style: none; margin: 0; padding: 2px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.fb-tips li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.fb-tips li svg { color: var(--brand-dark); flex-shrink: 0; margin-top: 3px; }
.fb-hot { padding: 2px 6px 8px; }
.fb-hot__item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; font-size: 14px; color: var(--text-1); text-decoration: none;
  cursor: pointer; border-radius: var(--radius-sm, 10px);
}
.fb-hot__item:hover { background: var(--bg-subtle); color: var(--brand-dark); }
.fb-hot__item svg { color: var(--text-3); flex-shrink: 0; }
.fb-card--brand { background: var(--brand-bg); border-color: transparent; }
.fb-contact { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 16px; }
.fb-contact__row {
  display: flex; align-items: center; gap: 8px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-sm, 10px);
  padding: 10px 12px; font-size: 13px; color: var(--text-1);
}
.fb-contact__row svg { color: var(--brand-dark); flex-shrink: 0; }
.fb-copy {
  margin-left: auto; width: 26px; height: 26px; border-radius: 6px; border: 0;
  background: transparent; color: var(--text-3); cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding: 0;
}
.fb-copy:hover { color: var(--brand-dark); background: var(--brand-bg); }
.fb-faq { padding: 4px 18px 14px; }
.fb-faq details { padding: 12px 0; border-bottom: 1px solid var(--border); }
.fb-faq details:last-child { border-bottom: 0; }
.fb-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-1); }
.fb-faq details[open] summary { color: var(--brand-dark); }
.fb-faq .faint { font-size: 13px; line-height: 1.7; margin-top: 6px; }
.fb-empty { padding: 28px 18px; text-align: center; font-size: 13px; color: var(--text-3); }
.fb-empty a { color: var(--brand-dark); }
.fb-mine { padding: 4px 18px 16px; display: flex; flex-direction: column; }
.fb-mine__item { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.fb-mine__item:last-child { border-bottom: 0; }
.fb-mine__body { font-size: 14px; color: var(--text-1); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.fb-mine__imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.fb-mine__imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
@media (max-width: 900px) {
  .fb-layout { flex-direction: column; }
  .fb-side { width: 100%; }
}

/* ---------- 帖子详情页（播放器 + 右栏） ---------- */
.np-wrap { display: flex; gap: 16px; align-items: flex-start; max-width: 1200px; }
.np-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.np-side { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }

.np-player {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px;
  overflow: hidden; background: #0a0a0a;
}
.np-player video { width: 100%; height: 100%; object-fit: contain; display: block; }
.np-gallery { position: absolute; inset: 0; }
.np-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.np-slide.is-hidden { display: none; }
.np-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.np-nav--prev { left: 14px; }
.np-nav--next { right: 14px; }
.np-count {
  position: absolute; right: 14px; bottom: 60px; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px;
}
.np-back {
  position: absolute; top: 14px; left: 14px; z-index: 5; width: 36px; height: 36px;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.np-back:hover { background: rgba(0, 0, 0, .65); }
.np-player:fullscreen { border-radius: 0; aspect-ratio: auto; }

.np-ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.np-progress { position: relative; height: 14px; cursor: pointer; display: flex; align-items: center; touch-action: none; }
.np-progress::before { content: ''; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.np-progress__bar { position: absolute; left: 0; height: 3px; border-radius: 2px; background: var(--brand); width: 0; }
.np-progress__dot {
  position: absolute; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); transform: translateX(-50%);
}
.np-ctrl__row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.np-ctrl__spacer { flex: 1; }
.np-ctrl__btn {
  border: 0; background: transparent; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 4px;
}
.np-ctrl__btn:hover { color: var(--brand); }
.np-time { color: rgba(255, 255, 255, .92); font-size: 12px; font-variant-numeric: tabular-nums; }
.np-speed {
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; background: transparent;
  color: #fff; font-size: 12px; padding: 2px 10px; cursor: pointer;
}
.np-speed:hover { border-color: var(--brand); color: var(--brand); }

.np-intro__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.np-intro__title { font-size: 15px; color: var(--text-1); }
.np-intro__text { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

.np-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.np-card__title { font-size: 15px; color: var(--text-1); display: flex; align-items: center; gap: 6px; }
.np-card__title svg { color: var(--brand-dark); }

.np-author { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.np-author__left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; }
.np-author__meta { min-width: 0; }
.np-author__name { font-size: 15px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 6px; }
.np-vip {
  display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 600;
  color: #b8860b; background: rgba(255, 195, 0, .16); border-radius: 999px; padding: 1px 7px;
}
.np-title { font-size: 17px; color: var(--text-1); margin: 14px 18px 0; line-height: 1.5; }
.np-content { font-size: 14px; color: var(--text-2); line-height: 1.8; margin: 8px 18px 0; white-space: pre-wrap; word-break: break-word; }
.np-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 18px 0; }
.np-tag {
  font-size: 12px; color: var(--text-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 12px; background: var(--bg-subtle);
}
.np-store {
  display: flex; gap: 8px; align-items: flex-start; margin: 12px 18px 0; padding: 10px 12px;
  border: 1px dashed var(--border); border-radius: var(--radius, 10px);
}
.np-store__icon { color: var(--brand-dark); display: flex; margin-top: 1px; }
.np-store__name { font-size: 13px; font-weight: 600; color: var(--text-1); }

.np-actions { display: flex; align-items: center; gap: 22px; padding: 14px 18px; margin-top: 6px; border-top: 1px solid var(--border); }
.np-act {
  display: flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: var(--text-2); font-size: 13px; cursor: pointer; text-decoration: none; padding: 0;
}
.np-act:hover { color: var(--brand-dark); }
.np-act.is-on { color: #e5484d; }
.np-act.is-on:hover { color: #e5484d; }

.np-comment { display: flex; gap: 8px; padding: 0 18px 16px; margin: 0; }
.np-comment__input {
  flex: 1; min-width: 0; height: 40px; border: 1px solid var(--border); border-radius: 999px;
  padding: 0 16px; font-size: 13px; color: var(--text-1); background: var(--bg-subtle); outline: none;
}
.np-comment__input:focus { border-color: var(--brand); background: var(--card); }
.np-comment.help { color: var(--text-3); font-size: 13px; }
.np-comments { padding: 2px 18px 12px; }
.np-comment__item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.np-comment__item:last-child { border-bottom: 0; }
.np-comment__name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.np-comment__name .faint { font-weight: 400; font-size: 11px; margin-left: 6px; }
.np-comment__body { font-size: 14px; color: var(--text-1); margin-top: 2px; line-height: 1.7; word-break: break-word; }

.np-rel { padding: 4px 10px 10px; display: flex; flex-direction: column; }
.np-rel__item {
  display: flex; align-items: center; gap: 12px; padding: 9px 8px;
  border-radius: var(--radius-sm, 10px); text-decoration: none;
}
.np-rel__item:hover { background: var(--bg-subtle); }
.np-rel__thumb {
  position: relative; width: 96px; height: 64px; border-radius: 8px; overflow: hidden;
  background: var(--bg-subtle); flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.np-rel__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-rel__play {
  position: absolute; left: 5px; bottom: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center;
}
.np-rel__none { color: var(--text-3); }
.np-rel__meta { flex: 1; min-width: 0; }
.np-rel__title {
  font-size: 13px; color: var(--text-1); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.np-rel__likes { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); flex-shrink: 0; }
@media (max-width: 960px) {
  .np-wrap { flex-direction: column; }
  .np-side { width: 100%; }
}

/* ---------- 聊天：正在输入 + 已读回执 ---------- */
.im-typing {
  display: inline-flex; align-items: center; gap: 4px; margin-left: auto;
  font-size: 12px; color: var(--brand-dark);
}
.im-typing[hidden] { display: none; }
.im-typing__dots { display: inline-flex; gap: 3px; }
.im-typing__dots i {
  width: 4px; height: 4px; border-radius: 50%; background: var(--brand-dark);
  animation: im-typing-bounce 1.2s infinite ease-in-out;
}
.im-typing__dots i:nth-child(2) { animation-delay: .15s; }
.im-typing__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes im-typing-bounce {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.typing-bubble {
  display: inline-flex; align-items: center; padding: 12px 16px;
}
.typing-row[hidden] { display: none; }
.chat-read { margin-left: 6px; font-size: 11px; color: #6b863d; }

/* ---------- 语音条 ---------- */
.im-mic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text-2); cursor: pointer; padding: 0;
  flex-shrink: 0; user-select: none; -webkit-user-select: none;
}
.im-mic:hover { border-color: var(--brand); color: var(--brand-dark); }
.im-mic.is-rec { background: var(--brand); border-color: var(--brand); color: #fff; }
.chat-bubble--voice {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 96px; padding: 10px 14px; cursor: pointer;
}
.voice-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(89, 167, 25, .12); color: var(--brand-dark);
}
.chat-row.me .voice-play { background: rgba(255, 255, 255, .25); color: #fff; }
.voice-wave { display: inline-flex; align-items: center; gap: 2px; height: 32px; }
.voice-wave i {
  width: 3px; border-radius: 2px; background: var(--text-3);
  max-height: 30px; min-height: 12px;
}
.chat-row.me .voice-wave i { background: rgba(255, 255, 255, .85); }
.voice-dur { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.chat-row.me .voice-dur { color: rgba(255, 255, 255, .9); }
.voice-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #e5484d;
  align-self: flex-start; flex-shrink: 0;
}
.chat-bubble--voice.is-playing .voice-wave i {
  animation: voice-pulse .8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes voice-pulse {
  from { opacity: .35; }
  to { opacity: 1; }
}

/* ---------- 按住说话浮层 ---------- */
.record-overlay {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  z-index: 900; width: 240px; padding: 22px 20px 18px; border-radius: 16px;
  background: rgba(24, 28, 22, .92); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.record-overlay[hidden] { display: none; }
.record-time { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.record-wave { display: flex; align-items: center; gap: 3px; height: 36px; }
.record-wave i {
  width: 4px; border-radius: 2px; background: var(--brand);
  max-height: 34px; transition: height .1s;
}
.record-hint { font-size: 12px; color: rgba(255, 255, 255, .7); }
.record-overlay.is-cancel .record-hint { color: #ff7a7d; }
.record-overlay.is-cancel .record-wave i { background: #e5484d; }
.chat-read[hidden] { display: none; }

/* ---------- 语音通话 ---------- */
/* 通话中隐藏侧栏收起半圆按钮，避免浮在通话遮罩之上 */
body.im-in-call .im-toggle { display: none; }
.im-call-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text-2); cursor: pointer; padding: 0;
}
.im-call-btn:hover { border-color: var(--brand); color: var(--brand-dark); }
.im-chat__head-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.call-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(24, 28, 22, .96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #fff;
}
.call-overlay[hidden] { display: none; }
.call-overlay__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: #000; display: none;
}
.call-overlay.is-video.is-live .call-overlay__video { display: block; }
.call-overlay.is-video.is-live .call-overlay__avatar,
.call-overlay.is-video.is-live .call-overlay__name { display: none; }
.call-overlay__local {
  position: absolute; right: 16px; top: 16px; width: 108px; height: 144px;
  object-fit: cover; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .3);
  background: #000; display: none; z-index: 3;
}
.call-overlay.is-video.is-live .call-overlay__local { display: block; }
.call-overlay.is-video.is-live .call-overlay__status,
.call-overlay.is-video.is-live .call-overlay__time { z-index: 3; }
.call-overlay__avatar img,
.call-overlay__avatar .avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255, 255, 255, .25);
}
.call-overlay__name { font-size: 20px; font-weight: 600; }
.call-overlay__status { font-size: 14px; color: rgba(255, 255, 255, .7); }
.call-overlay__time { font-size: 15px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .9); }
.call-overlay__actions { display: flex; gap: 28px; margin-top: 26px; }
.call-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.call-btn--danger { background: #e5484d; color: #fff; transform: rotate(135deg); }
.call-btn--danger:hover { background: #d9383d; }
.call-btn--success { background: #59a719; color: #fff; }
.call-btn--success:hover { background: #4c9114; }

.avatar-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-bottom: 1px solid var(--border);
}
.avatar-card__img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; background: var(--bg-subtle);
  border: 1px solid var(--border); box-sizing: border-box;
}
.avatar-card__info { flex: 1; min-width: 0; }
.avatar-history { display: flex; flex-wrap: wrap; gap: 12px; min-height: 56px; }
.avatar-history__item { position: relative; width: 56px; height: 56px; }
.avatar-history__item img {
  display: block; width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; cursor: pointer;
  border: 2px solid var(--border); box-sizing: border-box; background: var(--bg-subtle);
}
.avatar-history__item img.is-current { border-color: var(--brand); }
.avatar-history__del {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; padding: 0;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--text-2);
  font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-sizing: border-box;
}
.avatar-history__del:hover { color: var(--err); border-color: var(--err); }

.crop-modal { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; }
.crop-modal[hidden] { display: none; }
.crop-modal__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.crop-modal__panel {
  position: relative; width: min(92vw, 380px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px 16px;
}
.crop-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.crop-modal__stage { position: relative; display: flex; justify-content: center; }
.crop-modal__stage canvas {
  width: min(320px, 80vw); height: min(320px, 80vw);
  border-radius: var(--radius); background: var(--bg-subtle);
  touch-action: none; cursor: grab;
}
.crop-modal__stage canvas:active { cursor: grabbing; }
.crop-modal__hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  pointer-events: none; white-space: nowrap;
}
.crop-modal__zoom { width: 100%; margin: 12px 0; accent-color: var(--brand); }
.crop-modal__foot { display: flex; justify-content: flex-end; gap: 8px; }

.qr-box {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.qr-box img { width: 200px; height: 200px; image-rendering: pixelated; }
.qr-box__text { font-size: 12px; color: var(--text-2); }

/* ---------- 17. 独立错误页容器 ---------- */
.error-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }

/* ---------- 17.5 我的页（个人主页头部 / Tabs / 网格） ---------- */
.me-page { max-width: 1080px; margin: 0 auto; }

/* 主页头部：头像 + 昵称 + 关注/粉丝/获赞（抖音式） */
.me-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  padding: 26px 4px 20px;
}
/* 主页横幅：从顶栏顶部一直铺到 me-hero 底部，右侧贴边，向左透明渐变融入背景 */
.me-hero__banner {
  position: absolute; top: -26px; right: 0; bottom: -20px; width: 62%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.55) 40%, transparent 96%);
  mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.55) 40%, transparent 96%);
  pointer-events: none;
}
/* /me 与 /users 页：banner 贯通顶栏 + me-hero（上/右零间隔），顶栏透明露出 */
.me-bleed { position: relative; }
.me-bleed .app-topbar { background: transparent; }
.me-bleed .me-hero { position: static; overflow: visible; }
.me-bleed .me-hero__banner {
  top: 0; right: 0; bottom: auto;
  height: calc(var(--topbar-h, 64px) + 192px);   /* JS 会按实际布局精调（顶栏 + hero + tabs） */
}
.me-hero__avatar, .me-hero__info, .me-hero__cta { position: relative; z-index: 1; }
.me-hero__avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-3); background: var(--bg-subtle); border: 1px solid var(--border);
}
.me-hero__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.me-hero__name-row { display: flex; align-items: center; gap: 10px; }
.me-hero__name { margin: 0; font-size: 24px; font-weight: 800; color: var(--text-1); }
.me-hero__edit { display: inline-flex; color: var(--text-3); }
.me-hero__edit:hover { color: var(--brand-dark); }
.me-hero__vip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #8a5a00; background: linear-gradient(135deg, #ffe9b3, #ffd77a);
}
.me-hero__stats { display: flex; align-items: center; gap: 18px; }
.me-stat { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.me-stat b { font-size: 18px; font-weight: 800; color: var(--text-1); }
.me-stat span { font-size: 13px; color: var(--text-3); }
a.me-stat:hover b { color: var(--brand-dark); }
.me-hero__sep { width: 1px; height: 14px; background: var(--border); }
.me-hero__meta { font-size: 13px; }
.me-hero__cta { flex-shrink: 0; }

/* 内容 Tabs：抖音式下划线 */
.me-tabs {
  display: flex; gap: 28px; margin: 4px 0 18px;
  border-bottom: 1px solid var(--border);
}
.me-tab {
  position: relative; padding: 12px 2px; font-size: 15px; font-weight: 700;
  color: var(--text-2); text-decoration: none;
}
.me-tab em { font-style: normal; font-size: 13px; color: var(--text-3); margin-left: 2px; }
.me-tab::after {
  content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 0; height: 3px; border-radius: 2px; background: var(--brand);
  transition: width .18s;
}
.me-tab.is-on { color: var(--text-1); }
.me-tab.is-on::after { width: 28px; }
.me-tab.is-on em { color: var(--brand-dark); }

/* 笔记网格（笔记 / 喜欢 tab） */
.me-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* 筛选工具栏 */
.milk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 14px; flex-wrap: wrap; }
.milk-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.milk-tab {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: var(--card); border: 1px solid var(--border);
  text-decoration: none; transition: all .15s;
}
.milk-tab em { font-style: normal; font-size: 12px; color: var(--text-3); }
.milk-tab:hover { border-color: var(--brand); color: var(--brand-dark); }
.milk-tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.milk-tab.is-on em { color: rgba(255, 255, 255, .85); }
.milk-sort { position: relative; }
.milk-sort summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: var(--text-2); background: var(--card); border: 1px solid var(--border); white-space: nowrap;
}
.milk-sort summary::-webkit-details-marker { display: none; }
.milk-sort__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 132px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column;
}
.milk-sort__menu a {
  padding: 8px 12px; border-radius: 8px; font-size: 13px;
  color: var(--text-2); text-decoration: none;
}
.milk-sort__menu a:hover { background: var(--bg-subtle); color: var(--text-1); }
.milk-sort__menu a.is-on { color: var(--brand-dark); font-weight: 700; background: var(--brand-weak); }

/* 记录卡片（新版：上图下文 + 收藏角标/星标） */
.milk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.milk-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: border-color .15s;
}
.milk-card:hover { border-color: var(--brand-weak); }
.milk-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-subtle); }
.milk-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.milk-card__img--empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.milk-card__favbadge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--brand); box-shadow: 0 2px 8px rgba(77, 143, 66, .35);
  opacity: 0; transform: translateY(-2px); transition: opacity .15s, transform .15s;
}
.milk-card__favbadge.is-on { opacity: 1; transform: none; }
.milk-card__favbadge-ic { display: flex; }
.milk-card__favbtn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--text-3);
  box-shadow: 0 2px 8px rgba(40, 55, 30, .18); transition: all .15s;
}
.milk-card__favbtn:hover { color: var(--brand-dark); }
.milk-card__favbtn.is-on { color: var(--brand); }
.milk-card__favbtn.is-on svg { fill: var(--brand); }
.milk-card__body { padding: 12px 14px 13px; }
.milk-card__name { font-size: 15px; font-weight: 700; color: var(--text-1); }
.milk-card__sub { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.milk-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.milk-card__store { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; color: var(--text-2); }
.milk-card__store svg { flex-shrink: 0; color: var(--text-3); }
.milk-card__tag {
  flex-shrink: 0; font-size: 11px; font-weight: 600; color: var(--brand-dark);
  background: var(--brand-bg); border-radius: 999px; padding: 2px 9px;
}
.milk-card__time { margin-top: 8px; font-size: 11px; color: var(--text-3); }

/* 我的页响应式 */
@media (max-width: 768px) {
  .me-hero { flex-wrap: wrap; }
  .me-hero__cta { width: 100%; }
  .me-tabs { gap: 18px; }
  .me-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 560px) {
  .milk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}


/* ---------- 18. 响应式 ---------- */
@media (max-width: 1024px) {
  .record-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
/* 消息页：侧栏默认收起为图标栏，点击中缝半圆按钮切换展开/收起 */
body.im-page .app-sidebar {
  width: 64px; padding: 12px 12px 18px;
  overflow: visible; z-index: 500;
  transition: width .2s ease, padding .2s ease;
}

/* 收起态：gap 归零，图标与 logo 严格同轴居中；选中高亮为正圆 */
body.im-page .brand-logo { justify-content: center; gap: 0; padding: 2px 0 12px; }
body.im-page .side-user { justify-content: center; gap: 0; padding: 8px 0; }
body.im-page .side-nav__item {
  width: 44px; height: 44px; justify-content: center; padding: 0; gap: 0;
  border-radius: 50%;
}

/* 文字淡入淡出且不占布局宽度（max-width 过渡） */
body.im-page .brand-logo__text,
body.im-page .side-user__info,
body.im-page .side-nav__item > span {
  max-width: 0; opacity: 0; flex: none; overflow: hidden;
  white-space: nowrap; vertical-align: middle;
  transition: max-width .2s ease, opacity .15s ease;
}

/* 收起时未读角标挂到图标右上 */
body.im-page .side-nav__item .side-nav__badge { position: absolute; top: 4px; right: 10px; }

/* 底部主按钮：收起为正圆（与图标同轴） */
body.im-page .side-cta {
  width: 40px; height: 40px; margin: 14px auto 4px;
  border-radius: 50%; padding: 0; gap: 0; font-size: 0; letter-spacing: 0;
  transition: width .2s ease, height .2s ease, margin .2s ease,
              border-radius .2s ease, font-size .2s ease, gap .2s ease,
              filter .15s, transform .1s;
}
body.im-page .side-cta svg { flex: none; }

/* 展开态：点击半圆按钮后在 body 上加 .im-open（固定 240px，不受媒体查询变量影响） */
body.im-page.im-open .app-sidebar { width: 240px; padding: 12px 14px 18px; }
body.im-page.im-open .brand-logo { justify-content: flex-start; gap: 10px; padding: 2px 10px 18px; }
body.im-page.im-open .side-user { justify-content: flex-start; gap: 10px; padding: 10px 12px; }
body.im-page.im-open .side-nav__item {
  width: auto; height: 48px; justify-content: flex-start;
  padding: 0 14px; gap: 14px; border-radius: 999px;
}
body.im-page.im-open .brand-logo__text,
body.im-page.im-open .side-user__info,
body.im-page.im-open .side-nav__item > span { max-width: 180px; opacity: 1; }
body.im-page.im-open .side-nav__item .side-nav__badge { position: static; }
body.im-page.im-open .side-cta {
  width: 100%; height: 48px; margin: 12px 4px 4px;
  border-radius: 999px; padding: 0 18px; gap: 8px; font-size: 16px;
}

/* 侧栏中缝半圆开关（fixed 挂顶层，箭头指向展开方向） */
.im-toggle {
  position: fixed; left: 64px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-left: 0;
  border-radius: 0 22px 22px 0;
  background: var(--card); color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 510;
  transition: left .2s ease, color .15s;
}
.im-toggle:hover { color: var(--brand-dark); }
.im-toggle svg { transition: transform .2s ease; }
body.im-open .im-toggle { left: 240px; }
body.im-open .im-toggle svg { transform: rotate(180deg); }

@media (max-width: 900px) {
  :root { --sidebar-w: 64px; }
  .brand-logo { justify-content: center; padding: 2px 0 10px; }
  .brand-logo__text, .side-user__info, .side-mascot, .side-worn { display: none; }
  .side-user { justify-content: center; padding: 8px 4px; }
  .side-nav__item { justify-content: center; padding: 0; gap: 0; }
  .side-nav__item span { display: none; }
  .side-nav__item .side-nav__badge { position: absolute; top: 4px; right: 6px; display: inline-flex; }
  .side-cta { gap: 0; font-size: 0; padding: 0; }
  .app-topbar { padding: 0 14px; }
  .user-menu__info { display: none; }
  .app-content { padding: 16px; }
}
@media (max-width: 560px) {
  .square-grid { column-count: 2; column-gap: 10px; }
  .record-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .chat-row { max-width: 90%; }
}

/* ---------- 19. 发现页沉浸流（页式吸附 + 滑动过渡 + 三窗复用） ---------- */
.fd-page { display: flex; flex-direction: column; gap: 12px; }

.fd-wrap { position: relative; padding-right: 56px; }

.fd-stage {
  position: relative; width: 100%; height: calc(100vh - 95px); min-height: 520px;
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #151a10 0%, #1c2415 55%, #10140a 100%);
}
.fd-track {
  height: 100%;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.fd-slide { position: relative; height: 100%; overflow: hidden; }
/* 媒体前景（视频/图片）通过 padding-bottom 让出操作区高度，画面不被遮挡；
 * .fd-slide__bg 为 absolute inset:0，覆盖整个 slide（含操作区背后），模糊背景公用 */
.fd-slide__media { position: absolute; inset: 0; padding-bottom: 52px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fd-slide__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(30px) saturate(1.15) brightness(.72);
  transform: scale(1.18);
}
/* 视频专用模糊背景：静音视频跟随主视频播放，替代 canvas 抓帧（不依赖解码时机，永不黑屏） */
.fd-slide__bgv {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(30px) saturate(1.15) brightness(.72);
  transform: scale(1.18); z-index: 0; pointer-events: none; background: transparent;
}
.fd-slide__fg { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; }
.fd-slide__video {
  position: relative; width: 100%; height: 100%;
  object-fit: contain; background: transparent; outline: none; display: block;
}

/* 视频暂停：淡灰遮罩 + 中央播放按钮 */
.fd-video-shade {
  position: absolute; inset: 0 0 52px 0; z-index: 3;
  background: rgba(0, 0, 0, .28); opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.fd-slide.is-paused .fd-video-shade { opacity: 1; }
.fd-video-play {
  position: absolute; left: 50%; top: calc((100% - 52px) / 2);
  transform: translate(-50%, -50%); z-index: 4;
  width: 76px; height: 76px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0); color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.fd-slide.is-paused .fd-video-play { opacity: 1; pointer-events: auto; }
.fd-slide__bg[hidden], .fd-slide__fg[hidden] { display: none; }
.fd-slide__ph { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; color: rgba(255,255,255,.25); background: radial-gradient(circle at 50% 40%, rgba(181,214,90,.16), transparent 60%); }

/* 弹幕层（画面内，底部留出信息区高度） */
.fd-danmaku { position: absolute; inset: 0 0 128px 0; overflow: hidden; pointer-events: none; z-index: 3; }
.fd-dm {
  position: absolute; left: 100%; top: 0;
  padding: 4px 14px; border-radius: 999px;
  background: rgba(0,0,0,.32); color: #fff;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: fd-dm-move linear forwards;
}
@keyframes fd-dm-move {
  to { transform: translateX(calc(-1 * var(--dm-dist, 100vw) - 100%)); }
}
.fd-slide__shade {
  position: absolute; inset: 0 0 52px 0; pointer-events: none; /* 不盖操作区：fd-under 自行透出模糊背景 */
  background: linear-gradient(to top, rgba(8,10,5,.82) 0%, rgba(8,10,5,.42) 26%, rgba(8,10,5,0) 55%),
              linear-gradient(to left, rgba(8,10,5,.28) 0%, rgba(8,10,5,0) 30%);
}
.fd-slide__info {
  position: absolute; left: 15px; bottom: 60px; max-width: 62%; color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.fd-author { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.fd-author-row { display: flex; align-items: center; gap: 10px; }
.fd-author__av { position: relative; display: inline-flex; }
.fd-author .avatar { width: 34px; height: 34px; border: 2px solid var(--brand); }
.fd-follow {
  flex: none; padding: 5px 12px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 600; line-height: 1; font-family: inherit; user-select: none;
  background: var(--brand); color: #fff;
  transition: background .18s, color .18s;
}
.fd-follow:hover { background: var(--brand-dark); }
.fd-follow.is-on { background: rgba(255,255,255,.16); color: rgba(255,255,255,.78); }
.fd-author b { font-size: 16px; font-weight: 700; }
.fd-author:hover b { color: var(--brand); }
.fd-meta { font-size: 11px; color: rgba(255,255,255,.5); }
.fd-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: #fff; }
.fd-text { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.fd-tags a { font-size: 13px; font-weight: 600; color: var(--brand); }
.fd-tags a:hover { text-decoration: underline; }
.fd-store {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,.88);
  background: rgba(8,10,5,.38); border-radius: 999px;
  padding: 4px 11px; max-width: 100%;
}

.fd-rail { position: absolute; right: 15px; bottom: 60px; display: flex; flex-direction: column; align-items: center; }
.fd-act {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; color: #fff; border: none; cursor: pointer;
  transition: color .18s, transform .18s;
}
.fd-act:hover { color: var(--brand); }
.fd-act:active { transform: scale(.92); }
.fd-act.is-on { color: var(--brand); }
.fd-like.is-on { color: #f53737; } /* 点赞完成：红色心形 */
.fd-fav.is-on { color: #f9f03a; } /* 收藏完成：黄色星形 */
.fd-act__num { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.88); margin-bottom: 8px; text-shadow: 0 1px 4px rgba(0,0,0,.5); }

.fd-arrow {
  position: absolute; right: 3px; z-index: 5; /* 与两侧等距：距视频 20px = 距页面边缘 20px */
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; color: var(--text-2); border: none; cursor: pointer;
  transition: background .18s, color .18s;
}
.fd-arrow:hover { background: var(--bg-subtle); color: var(--text-1); }
.fd-arrow--up { top: calc((100% - 52px) / 2 - 52px); } /* 减去操作区高度，相对媒体区垂直居中 */
.fd-arrow--down { top: calc((100% - 52px) / 2 + 8px); }
.fd-arrow:disabled { opacity: .3; cursor: default; }

/* ===== 操作区：位于媒体画面之外，半透明底透出公用的首帧/图片高斯模糊遮罩 ===== */
.fd-under {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8;
  height: 52px; padding: 0;
  background: rgba(10,13,6,.42); /* 减淡：透出后方模糊背景视频 */
  color: #fff;
}

/* 进度条通栏：横跨整个视频区域宽度 */
.fd-progress { width: 100%; height: 3px; display: flex; gap: 4px; align-items: center; margin-bottom: 3px; }
/* 图片：白色分段，按张数平分 */
.fd-progress.is-img .fd-seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.fd-progress.is-img .fd-seg.is-on { background: #fff; }
/* 视频：连续进度填充（无 transition，严格跟随时间跳变，避免与时间显示不同步） */
.fd-progress:not(.is-img) { background: rgba(255,255,255,.14); border-radius: 2px; }
.fd-progress:not(.is-img) i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 2px; }

/* 播放器控制条（深色操作区内） */
.fd-controls {
  position: static;
  display: flex; align-items: center; gap: 14px;
  height: 44px; padding: 0 14px;
  color: #fff;
}
.fd-ctl {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; border-radius: 9px;
  background: transparent; color: #fff; border: none; cursor: pointer;
  transition: color .18s, background .18s;
}
.fd-ctl:hover { color: var(--brand); }
.fd-ctl__time { font-size: 12px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.fd-ctl__time b { color: #fff; font-size: 13px; }
.fd-ctl__sep { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.55); }
.fd-ctl__dm {
  flex: 1; display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 6px 0 12px;
  border-radius: 999px; background: rgba(255,255,255,.14);
}
.fd-ctl__emoji { display: flex; background: transparent; border: none; color: rgba(255,255,255,.75); cursor: pointer; padding: 0; }
.fd-ctl__emoji:hover { color: #fff; }
.fd-ctl__dm input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: #fff; font-size: 13px;
}
.fd-ctl__dm input::placeholder { color: rgba(255,255,255,.55); }
.fd-ctl__send {
  height: 28px; padding: 0 16px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 700;
  transition: background .18s;
}
.fd-ctl__send:hover { background: var(--brand); }
.fd-ctl__switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.8); cursor: pointer; user-select: none; }
.fd-ctl__switch input { display: none; }
.fd-ctl__switch i {
  width: 30px; height: 17px; border-radius: 999px; background: rgba(255,255,255,.25);
  position: relative; transition: background .18s;
}
.fd-ctl__switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px;
  border-radius: 50%; background: #fff; transition: left .18s;
}
.fd-ctl__switch input:checked + i { background: var(--brand); }
.fd-ctl__switch input:checked + i::after { left: 15px; }

/* 清屏：隐藏信息与动作栏，只看图和弹幕 */
.fd-clear .fd-slide__info, .fd-clear .fd-rail { opacity: 0; pointer-events: none; }
.fd-slide__info, .fd-rail { transition: opacity .25s ease; }

.fd-stage:fullscreen { border-radius: 0; height: 100vh; }

@media (max-width: 900px) {
  .fd-stage { height: calc(100vh - 110px); border-radius: 16px; }
  .fd-wrap { padding-right: 48px; }
  .fd-arrow { width: 40px; height: 40px; right: -4px; } /* 12px/12px 等距 */
  .fd-controls { padding: 0 12px; }
  .fd-rail { right: 12px; bottom: 70px; }
}

/* ===== 创作者中心 ===== */
.creator { display: flex; gap: 18px; align-items: flex-start; }

/* 左侧子导航卡（200px，当前项品牌绿浅底） */
.creator-nav {
  width: 200px; flex: none; padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  position: sticky; top: 84px;
}
.creator-nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14px; font-weight: 600;
  transition: color .15s, background .15s;
}
.creator-nav__item:hover { color: var(--brand-dark); background: var(--bg-subtle); }
.creator-nav__item.is-active { color: var(--brand-dark); background: var(--brand-bg); }

.creator-body { flex: 1; min-width: 0; }

/* 发布页：主区 + 手机预览双栏 */
.creator-pub { display: flex; gap: 18px; align-items: flex-start; }
.creator-pub__main { flex: 1; min-width: 0; }
.creator-pub__side { width: 260px; flex: none; position: sticky; top: 84px; }

/* 顶部格式 Tabs */
.creator-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.creator-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 46px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--text-2);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.creator-tab:hover { color: var(--brand-dark); border-color: var(--brand); }
.creator-tab.is-active { color: var(--brand-dark); border-color: var(--brand); background: var(--brand-bg); }

/* 上传区（点击 / 拖拽） */
.creator-pane { margin-bottom: 16px; }
.creator-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 220px; padding: 24px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-subtle); color: var(--text-3);
  transition: border-color .15s, color .15s, background .15s;
}
.creator-drop:hover, .creator-drop.is-over { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-bg); }
.creator-drop__icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-weak); color: var(--brand-dark);
}
.creator-drop__title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.creator-drop__hint { font-size: 12px; }

/* 上传进度条 */
.creator-progress { margin-top: 12px; }
.creator-progress__bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--bg-subtle); }
.creator-progress__fill { height: 100%; width: 0; border-radius: 999px; background: var(--brand); transition: width .2s; }
.creator-progress__text { margin-top: 6px; font-size: 12px; color: var(--text-3); }

/* 视频预览 */
.creator-video { margin-top: 12px; }
.creator-video video {
  display: block; width: 100%; max-height: 340px;
  border-radius: var(--radius); background: #000;
}

/* 多图缩略网格 */
.creator-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.creator-img {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.creator-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator-img__del {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; line-height: 1;
  transition: background .15s;
}
.creator-img__del:hover { background: var(--err); }

/* 文章编辑 */
.creator-article { min-height: 260px; }

/* 手机预览壳（纯 CSS 边框，实时预览标题 + 首图/视频图标） */
.creator-phone { padding: 10px 10px 8px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.creator-phone__screen {
  overflow: hidden; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.creator-phone__media {
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--text-3); overflow: hidden;
}
.creator-phone__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creator-phone__ph { display: flex; }
.creator-phone__body { padding: 12px 14px 14px; }
.creator-phone__title {
  font-size: 14px; font-weight: 700; color: var(--text-1); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.creator-phone__desc {
  margin-top: 6px; font-size: 12px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.creator-phone__label { margin-top: 8px; text-align: center; font-size: 11px; color: var(--text-3); }

/* 发布设置：分段选择（公开/好友/仅自己、立即/定时） */
.creator-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.creator-seg label {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; cursor: pointer; user-select: none;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--text-2); font-size: 13px;
  transition: color .15s, border-color .15s, background .15s;
}
.creator-seg label:hover { color: var(--brand-dark); border-color: var(--brand); }
.creator-seg input { display: none; }
.creator-seg label:has(input:checked) { color: var(--brand-dark); border-color: var(--brand); background: var(--brand-bg); }
.creator-sched { margin-top: 10px; }
.creator-sched .input { width: auto; }

/* 底部操作条 */
.creator-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border); }

/* 内容管理列表 */
.creator-table-wrap { overflow-x: auto; }
.creator-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.creator-table th {
  padding: 10px 12px; text-align: left; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.creator-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.creator-table tbody tr:hover td { background: var(--bg-subtle); }
.creator-table__work { display: flex; align-items: center; gap: 10px; min-width: 180px; color: var(--text-1); }
.creator-table__work:hover .creator-table__name { color: var(--brand-dark); }
.creator-table__thumb {
  width: 44px; height: 44px; flex: none; object-fit: cover;
  border-radius: var(--radius-sm); background: var(--bg-subtle);
}
.creator-table__thumb--ph { display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.creator-table__name { max-width: 260px; transition: color .15s; }
.creator-table__time { white-space: nowrap; color: var(--text-2); }
.creator-table__ops { display: flex; gap: 6px; }

/* 状态 / 类型徽标 */
.creator-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.creator-badge--type { background: var(--bg-subtle); color: var(--text-2); }
.creator-badge--published { background: var(--brand-bg); color: var(--brand-dark); }
.creator-badge--draft { background: var(--bg-subtle); color: var(--text-2); }
.creator-badge--scheduled { background: var(--brand-weak); color: var(--text-2); }

/* 数据中心汇总卡 */
.creator-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.creator-stat { padding: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.creator-stat__label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.creator-stat__num { margin-top: 6px; font-size: 26px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.creator-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* 类型徽标配色（视频/图文/文章） */
.creator-badge--t-video { background: var(--brand-bg); color: var(--brand-dark); }
.creator-badge--t-image { background: #e8f1fb; color: #2b6cb0; }
.creator-badge--t-article { background: #fdf3e3; color: #b7791f; }

/* 内容管理：赞/评/藏 数据列 */
.creator-table__meta { display: flex; gap: 10px; white-space: nowrap; color: var(--text-2); }
.creator-table__meta span { display: inline-flex; align-items: center; gap: 4px; }

/* 数据中心：近 7 天发布柱状（纯 CSS） */
.creator-week { display: flex; align-items: stretch; gap: 10px; }
.creator-week__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.creator-week__bar { width: 60%; max-width: 40px; border-radius: 6px 6px 2px 2px; background: var(--brand); }
.creator-week__bar.is-zero { background: var(--bg-subtle); }
.creator-week__num { font-size: 12px; font-weight: 600; color: var(--text-2); }
.creator-week__label { font-size: 11px; color: var(--text-3); white-space: nowrap; }

/* ===== 笔记媒体排版 ===== */
.note-video video {
  display: block; width: 100%;
  border-radius: var(--radius); background: #000;
}
.article-body {
  font-size: 15px; line-height: 1.8; color: var(--text-1);
  white-space: pre-wrap; word-break: break-word;
}

@media (max-width: 900px) {
  .creator { flex-direction: column; }
  .creator-nav { width: 100%; flex-direction: row; position: static; overflow-x: auto; }
  .creator-nav__item { flex: 1; justify-content: center; white-space: nowrap; }
  .creator-pub { flex-direction: column-reverse; }
  .creator-pub__side { width: 100%; position: static; }
  .creator-phone { max-width: 300px; margin: 0 auto; }
}

/* ---------- 28. 登录/注册弹窗（单栏卡片：渐变标题栏 + 左扫码/右表单） ---------- */
.auth-mask {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 18, 10, .5);
}
.auth-modal {
  position: relative; width: 880px; max-width: 100%; max-height: 92vh; overflow: hidden;
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg);
}
.auth-close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer;
}
.auth-close:hover { background: rgba(0, 0, 0, .06); }

/* ---------- 全局通知中心：新消息顶部横幅（低于来电卡片 z-index:1000） ---------- */
#nc-banners {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 10px; width: 320px;
  pointer-events: none;
}
.nc-banner {
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-16px);
  transition: opacity .25s ease, transform .25s ease;
}
.nc-banner.is-in { opacity: 1; transform: translateY(0); }
.nc-banner.is-out { opacity: 0; transform: translateY(-16px); }
.nc-banner__avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: var(--bg-subtle); display: flex; align-items: center; justify-content: center;
}
.nc-banner__avatar img { width: 100%; height: 100%; object-fit: cover; }
.nc-banner__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nc-banner__text b { font-size: 13px; color: var(--text-1); font-weight: 700; }
.nc-banner__text span {
  font-size: 12px; color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nc-banner__close {
  flex: none; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); font-size: 16px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.nc-banner__close:hover { background: rgba(0, 0, 0, .06); }

/* ---------- 聊天信息设置（右栏全区域视图，与名片视图同模式） ---------- */
.im-settings {
  position: absolute; inset: 0; background: var(--card);
  display: flex; flex-direction: column; z-index: 5;
}
.im-settings[hidden] { display: none; }
.im-settings__head {
  flex: none; height: var(--topbar-h); display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--border);
}
.im-settings__main, .im-settings__sub {
  flex: 1; overflow-y: auto; padding: 14px 16px 28px;
}
.im-set__profile {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px;
}
.im-set__avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: var(--bg-subtle); display: flex; align-items: center; justify-content: center;
}
.im-set__avatar img { width: 100%; height: 100%; object-fit: cover; }
.im-set__ptext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.im-set__group {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 14px; overflow: hidden;
}
.im-set__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 13px 14px; background: transparent;
  border: 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-1); text-align: left; cursor: pointer;
}
.im-set__group > :last-child { border-bottom: 0; }
.im-set__label { font-weight: 600; flex: none; }
.im-set__profile .im-set__label { font-weight: 400; }
.im-set__action .im-set__label { flex: 1; }
.im-set__action { color: var(--text-1); }
.im-set__spark .im-set__label { font-weight: 400; color: var(--text-2); }
.im-set__remark {
  flex: 1; max-width: 200px; height: 32px; padding: 0 10px;
  font-size: 13px; text-align: right;
}
.im-set__danger { color: #d33; }
.im-set__sub-title { font-weight: 700; margin: 2px 0 12px; }
.im-set__back {
  display: inline-block; border: 0; background: transparent; padding: 0;
  font-size: 13px; color: var(--text-2); cursor: pointer; margin-bottom: 8px;
}
.im-set__searchbar { display: flex; gap: 8px; margin-bottom: 12px; }
.im-set__searchbar .input { flex: 1; height: 36px; }
.im-set__list { display: flex; flex-direction: column; gap: 8px; }
.im-set__msg {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; color: var(--text-1); cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
}
.im-set__msg .faint { font-size: 11px; }
.im-set__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.im-set__grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  display: block; border: 1px solid var(--border);
}
.im-set__grid .im-set__empty { grid-column: 1 / -1; }
.im-set__more {
  display: block; margin: 12px auto 0; padding: 7px 22px;
  border: 1px solid var(--border); border-radius: 999px; background: transparent;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.im-set__note-card {
  display: flex; gap: 10px; align-items: center; padding: 10px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.im-set__note-card img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.im-set__note-card .t {
  font-size: 13px; font-weight: 600; color: var(--text-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.im-set__radios { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.im-set__radio { font-size: 14px; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.im-set__detail { width: 100%; resize: vertical; margin-bottom: 12px; }
.im-set__submit {
  display: block; width: 100%; height: 40px; border: 0; border-radius: 10px;
  background: var(--text-1); color: var(--card); font-size: 14px; font-weight: 600; cursor: pointer;
}
.im-set__empty { padding: 26px 0; text-align: center; font-size: 12px; color: var(--text-2); }

/* 被拒收消息：气泡左侧红色感叹号，点击重发 */
.chat-bubble { position: relative; }
.msg-blocked {
  position: absolute; top: 50%; right: calc(100% + 6px); transform: translateY(-50%);
  border: 0; background: transparent; padding: 0; cursor: pointer;
  display: flex; align-items: center; line-height: 0;
}
.msg-blocked svg { display: block; }
.msg-blocked.is-sending { opacity: .5; pointer-events: none; }

/* 分享笔记卡片气泡：视频（封面+播放钮）/ 图文（首图） */
.chat-share {
  display: flex; flex-direction: column; width: 190px;
  padding: 0 !important; background: var(--card) !important;
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; color: var(--text-1);
}
.chat-row.me .chat-share { background: var(--card) !important; }
.chat-share__media {
  position: relative; display: block; height: 108px;
  background: var(--bg-subtle);
}
.chat-share__media img, .chat-share__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.chat-share__ph {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--text-2);
}
.chat-share__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff;
  display: flex; align-items: center; justify-content: center; padding-left: 3px;
}
.chat-share__body { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px 10px; }
.chat-share__title {
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text-1);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-share__meta { font-size: 11px; color: var(--text-2); }
.chat-share .chat-share__meta { display: block; }

/* 分享评论卡片气泡：笔记封面缩略图 + 评论人 + 内容 + 所属笔记 */
.chat-cmt {
  display: flex; align-items: flex-start; gap: 9px;
  max-width: 280px; padding: 10px 12px 10px 10px !important;
  background: var(--card) !important;
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text-1);
}
.chat-cmt__thumb {
  position: relative; flex: none; width: 52px; height: 52px;
  border-radius: 8px; overflow: hidden; background: var(--bg-subtle);
}
.chat-cmt__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.chat-cmt__ph {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--text-2);
}
.chat-cmt__thumb .chat-share__play { width: 20px; height: 20px; }
.chat-cmt__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chat-cmt__name { font-size: 12px; font-weight: 600; color: var(--text-1); }
.chat-cmt__text {
  font-size: 13px; line-height: 1.45; color: var(--text-1); word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-cmt__src { font-size: 11px; color: var(--text-2); }

/* 笔记详情：评论右侧操作按钮（点赞/分享/举报） */
.np-cmt__ops { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.np-cmt__op {
  display: flex; align-items: center; gap: 3px;
  border: 0; background: none; cursor: pointer;
  color: var(--text-2); font-size: 12px; padding: 4px;
}
.np-cmt__op:hover { color: var(--text-1); }
.np-cmt__op.is-liked { color: #fa4c35; }
.np-cmt__op svg { display: block; }

/* 评论分享/举报弹层（note_detail 页内） */
.cmt-share-pop {
  position: absolute; z-index: 60; left: 16px; right: 16px; top: 120px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  max-height: 380px; overflow: auto;
}
.cmt-pop__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
}
.cmt-share__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 14px; border: 0; background: none; cursor: pointer;
  color: var(--text-1); font-size: 13px; text-align: left;
}
.cmt-share__item:hover { background: var(--bg-subtle); }
.cmt-share__item .ellipsis { flex: 1; min-width: 0; }

/* 顶部渐变标题栏 */
.auth-head {
  position: relative; height: 86px; display: flex; align-items: center; justify-content: center;
}
.auth-head__title { font-size: 22px; letter-spacing: 1px; }

/* 主体两区 */
.auth-body { display: flex; align-items: center; padding: 8px 48px 44px; gap: 40px; }
.auth-left, .auth-right { flex: 1; min-width: 0; }
.auth-divider { flex: none; width: 1px; align-self: stretch; margin: 28px 0; background: var(--border); }

/* 左区：扫码 */
.auth-left { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.auth-h3 { font-size: 17px; font-weight: 700; }
.qr-img-wrap {
  position: relative; width: 210px; height: 210px; padding: 10px;
  border: 1px solid var(--border); border-radius: 16px; background: #fff;
}
.qr-img { width: 100%; height: 100%; display: block; }
.qr-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad); border: 3px solid #fff; border-radius: 12px; color: #fff;
}
.qr-expired {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(255, 255, 255, .94); border-radius: 16px; font-size: 13px; color: var(--text-2);
}
/* display:flex/block 会覆盖 hidden 属性的 UA 样式，必须显式回归 display:none */
.qr-expired[hidden] { display: none; }
.qr-img[hidden] { display: none; }
.qr-expired button {
  height: 32px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
}
.qr-status { margin: 0; font-size: 13px; color: var(--text-2); text-align: center; }
.qr-status b { color: var(--brand-dark); }
.qr-how {
  height: 34px; padding: 0 22px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text-1); font-size: 13px; font-weight: 600; cursor: pointer;
}
.qr-how:hover { border-color: var(--brand); color: var(--brand-dark); }

/* 右区：验证码/密码登录 */
.auth-right { display: flex; flex-direction: column; gap: 24px; }
.auth-tabs { display: flex; align-items: center; justify-content: center; gap: 18px; }
.auth-tabs__bar { width: 1px; height: 16px; background: var(--border); }
.btn-tab {
  border: 0; background: transparent; padding: 2px 0; cursor: pointer;
  font-size: 18px; font-weight: 600; color: var(--text-3); transition: color .18s;
}
.btn-tab.is-on { color: var(--text-1); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
/* display:flex 会覆盖 hidden 属性的 UA 样式，必须显式回归 display:none */
.auth-field[hidden] { display: none; }
.auth-field {
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px;
  background: var(--bg-subtle); border: 1px solid transparent; border-radius: 14px;
  transition: border-color .18s;
}
.auth-field:focus-within { border-color: var(--brand); background: #fff; }
.auth-field__pre { flex: none; font-size: 16px; font-weight: 700; color: var(--text-1); }
.auth-field__chev { display: flex; align-items: center; color: var(--text-3); padding-right: 10px; border-right: 1px solid var(--border); }
.auth-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 15px; font-weight: 500; color: var(--text-1);
}
.auth-field input::placeholder { color: var(--text-3); }
.auth-code-btn {
  flex: none; border: 0; background: transparent; cursor: pointer;
  color: var(--text-3); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.auth-code-btn:hover { color: var(--brand-dark); }
.auth-code-btn:disabled { color: var(--text-3); opacity: .6; cursor: default; }
.auth-submit {
  height: 56px; margin-top: 16px; border: 0; border-radius: 14px; cursor: pointer;
  background: #eaf3d8; color: #a9bd85; font-size: 18px; font-weight: 700; letter-spacing: 8px;
  transition: background .2s, color .2s;
}
.auth-submit.is-ready { background: var(--brand-grad); color: #fff; }
.auth-submit.is-ready:hover { filter: brightness(1.04); }
.auth-agree-text { margin: 0; text-align: center; font-size: 13px; color: var(--text-3); }
.auth-agree-text a { color: var(--brand-dark); }

@media (max-width: 720px) {
  .auth-body { flex-direction: column; padding: 8px 24px 36px; gap: 24px; }
  .auth-divider { width: 100%; height: 1px; margin: 0; align-self: auto; }
}

/* 手机端扫码确认页 */
.qr-confirm {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: linear-gradient(165deg, #33471f 0%, #5b8a2a 100%);
}
.qr-card {
  width: 360px; max-width: 100%; padding: 36px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); text-align: center;
}
.qr-card .brand-logo__icon { background: var(--brand-bg); color: var(--brand-dark); }
.qr-title { font-size: 20px; }
.qr-user { display: flex; align-items: center; gap: 10px; font-size: 15px; }

/* 发起登录的设备信息卡片 */
.qr-device {
  width: 100%; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-subtle); border-radius: 12px;
}
.qr-device.is-stale { opacity: .55; }
.qr-device__row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.qr-device__row span { color: var(--text-3); }
.qr-device__row b { color: var(--text-1); font-weight: 600; }
.qr-tip { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.qr-btn {
  height: 44px; padding: 0 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand-grad); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none;
}
.qr-btn:disabled { opacity: .6; cursor: default; }
.qr-msg { margin: 0; min-height: 18px; font-size: 13px; }
.qr-msg.is-ok { color: var(--ok); }
.qr-msg.is-err { color: var(--err); }

@media (max-width: 720px) {
  .auth-modal { flex-direction: column; min-height: 0; width: 420px; }
  .auth-brand { display: none; }
  .auth-form-wrap { padding: 40px 28px 32px; }
}
