/* ==========================================================
   查款相册 H5 · 布局与组件样式
   ========================================================== */

/* ---------- 外壳：桌面居中手机框，移动端全屏 ---------- */
.app-root {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 520px) {
  body { background: #F6EFF2; padding: 16px 0; }
  .app-root {
    min-height: calc(100vh - 32px);
    height: calc(100vh - 32px);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(180, 130, 150, .18);
  }
  .page-body { padding-bottom: 12px; }
}

.page { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.page-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
}
.page-body.no-tab { padding-bottom: calc(var(--safe-b) + 16px); }
.page-body.with-footbar { padding-bottom: calc(64px + var(--safe-b) + 16px); }
/* 底部有 op-bar（约 58px）+ 主 tabbar 的页面 */
.page-body.with-opbar { padding-bottom: calc(var(--tab-h) + 58px + var(--safe-b) + 24px); }

/* ---------- 图标统一兜底尺寸（更具体的规则会覆盖它） ---------- */
.app-root svg, .layer-root svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- 顶栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  padding-top: var(--safe-t);
  background: rgba(255, 245, 247, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
}
.nav-title { font-size: 17px; font-weight: 700; flex: 1; text-align: center; letter-spacing: .3px; }
.nav-title.left { text-align: left; }
.nav-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); flex: 0 0 auto;
  transition: background .15s;
}
.nav-btn:active { background: var(--pink-wash); }
.nav-btn svg { width: 20px; height: 20px; }
.nav-spacer { width: 34px; flex: 0 0 auto; }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabbar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-4); font-size: 11px;
  transition: color .15s;
}
.tabbar-item svg { width: 22px; height: 22px; }
.tabbar-item.on { color: var(--pink); font-weight: 600; }
.tabbar-item:active { opacity: .7; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.card-pad { padding: 14px; }
.sec { margin: 0 14px 14px; }
.sec-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--text);
  margin: 18px 4px 10px;
}
.sec-title .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.sec-title .more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-3); }
.sec-tip { font-size: 12px; color: var(--text-3); margin: 6px 4px 0; }

/* 心心分隔线 */
.divider-heart {
  display: flex; align-items: center; gap: 8px;
  margin: 16px 14px; color: var(--pink-light); font-size: 11px;
}
.divider-heart::before, .divider-heart::after {
  content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #FFD8E3, transparent);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600;
  transition: transform .1s, opacity .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--pink-grad); color: #fff; box-shadow: 0 4px 14px rgba(255, 111, 156, .32); }
.btn-blue { background: var(--blue-grad); color: #fff; box-shadow: 0 4px 14px rgba(90, 169, 247, .32); }
.btn-ghost { background: #fff; color: var(--pink); border: 1px solid #FFD3E0; }
.btn-ghost-blue { background: #fff; color: var(--blue-text); border: 1px solid #CFE4FB; }
.btn-plain { background: var(--gray-wash); color: var(--text-2); }
.btn-danger { background: #fff; color: var(--red); border: 1px solid #FFD6D6; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--r-pill); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* 首页两个主按钮 */
.hero-actions { display: flex; gap: 12px; margin: 14px; }
.hero-btn {
  flex: 1; height: 76px; border-radius: var(--r-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--sh-2);
  transition: transform .1s;
}
.hero-btn:active { transform: scale(.97); }
.hero-btn.pink { background: var(--pink-grad); }
.hero-btn.blue { background: var(--blue-grad); }
.hero-btn svg { width: 26px; height: 26px; }

/* ---------- 分段控件 ---------- */
.segment {
  display: flex; gap: 6px; margin: 0 14px 4px;
  background: #FFF0F4; border-radius: var(--r-pill); padding: 4px;
}
.segment-item {
  flex: 1; height: 34px; border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-2);
  transition: all .18s;
}
.segment-item.on {
  background: #fff; color: var(--pink); font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 143, 177, .22);
}

/* ---------- 相册卡片 ---------- */
.album-card { display: flex; gap: 12px; padding: 12px; position: relative; margin-bottom: 12px; }
.album-cover {
  width: 84px; height: 84px; border-radius: var(--r-md); flex: 0 0 auto;
  background: var(--pink-wash) center/cover no-repeat;
  position: relative; overflow: hidden;
}
.album-cover .idx {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.45));
  color: #fff; font-size: 10px; padding: 8px 6px 3px; text-align: center;
}
.album-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.album-name {
  font-size: 15px; font-weight: 700; padding-right: 26px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.album-intro {
  font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.album-meta { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 8px; flex-wrap: wrap; }
.album-code { font-size: 11px; color: var(--text-3); font-family: ui-monospace, Menlo, monospace; letter-spacing: .5px; }
.more-btn {
  position: absolute; top: 8px; right: 6px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-4);
}
.more-btn:active { background: var(--pink-wash); }
.more-btn svg { width: 18px; height: 18px; }

/* 标签 */
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  height: 20px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tag-pink { background: var(--pink-wash); color: var(--pink-deep); }
.tag-blue { background: var(--blue-wash); color: var(--blue-text); }
.tag-green { background: var(--green-wash); color: #1E9E73; }
.tag-gray { background: var(--gray-wash); color: var(--text-3); }
.tag-orange { background: #FFF3E4; color: #D98520; }
.tag-line { background: #fff; border: 1px solid var(--line); color: var(--text-2); }

/* ---------- 空状态 ---------- */
.empty { padding: 46px 20px; text-align: center; color: var(--text-3); }
.empty .emoji { font-size: 40px; line-height: 1; }
.empty .t { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.empty .s { margin-top: 4px; font-size: 12px; color: var(--text-4); }
.empty .btn { margin-top: 16px; }
.end-tip { text-align: center; font-size: 12px; color: var(--text-4); padding: 18px 0 6px; }
.end-tip::before { content: "· "; }
.end-tip::after { content: " ·"; }

/* ---------- 列表行 ---------- */
.list { background: var(--bg-card); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; min-height: 52px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.list-row:last-child { border-bottom: 0; }
.list-row.tap:active { background: var(--pink-wash-2); }
/* 只读行：没有权限操作时用，视觉上压暗但不隐藏，让人知道有这项设置 */
.list-row.ro { cursor: default; }
.list-row.ro .list-label { color: var(--text-2); }
.list-label { flex: 1; font-size: 14px; min-width: 0; }
.list-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.list-value { font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.list-value svg { width: 16px; height: 16px; color: var(--text-4); }

/* ---------- 表单 ---------- */
.field { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.field:last-child { border-bottom: 0; }
.field-label { font-size: 13px; color: var(--text-2); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.req::after { content: "*"; color: var(--pink); margin-left: 2px; }
.field-hint { font-size: 11px; color: var(--text-4); margin-top: 6px; }
.input, .textarea {
  width: 100%; background: #FAFAFB; border: 1px solid transparent;
  border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px;
  transition: border-color .15s, background .15s;
}
.input:focus, .textarea:focus { border-color: var(--pink-light); background: #fff; }
.textarea { min-height: 78px; resize: none; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input-clear { text-align: right; font-size: 12px; color: var(--text-4); }

.switch {
  width: 46px; height: 26px; border-radius: var(--r-pill); display: inline-block;
  background: #E6E8EB; position: relative; flex: 0 0 auto;
  transition: background .2s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .2s;
}
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }

/* 选择行（单选/多选） */
.pick-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.pick-row:last-child { border-bottom: 0; }
.pick-box {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  border: 1.5px solid #E3E6EA; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.pick-box.on { background: var(--pink); border-color: var(--pink); }
.pick-box svg { width: 13px; height: 13px; color: #fff; }
.pick-box.radio { border-radius: 50%; }
.pick-main { flex: 1; min-width: 0; }

/* 标签输入 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--blue-wash); color: var(--blue-text); font-size: 13px;
}
.chip.pink { background: var(--pink-wash); color: var(--pink-deep); }
.chip-add { background: #fff; border: 1px dashed #E4C6D2; color: var(--text-3); }
.chip .x { opacity: .6; font-size: 15px; line-height: 1; }

/* ---------- 九宫格图片 ---------- */
.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid9-item {
  position: relative; aspect-ratio: 3 / 4; width: 100%;
  border-radius: var(--r-sm); overflow: hidden;
  background: var(--gray-wash) center/cover no-repeat;
}
.grid9-item .idx {
  position: absolute; top: 4px; left: 4px; z-index: 2;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-pill);
  background: rgba(0,0,0,.45); color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.grid9-item .del {
  position: absolute; top: 3px; right: 3px; z-index: 3;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.grid9-item .del svg { width: 12px; height: 12px; }
.grid9-item.picked { box-shadow: 0 0 0 2px var(--pink) inset; }
.grid9-item.dragging { opacity: .55; transform: scale(.94); }
.grid9-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: #fff; border: 1px dashed #EBD3DC; color: var(--text-4); font-size: 11px;
}
.grid9-add svg { width: 22px; height: 22px; }

/* ---------- 图片卡片（列表/搜索） ---------- */
.img-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 400px) { }
.img-card { background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.img-card .thumb { position: relative; aspect-ratio: 3 / 4; background: var(--gray-wash) center/cover no-repeat; }
.img-card .body { padding: 8px 10px 10px; }
.img-card .title {
  font-size: 13px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 35px;
}
.img-card .price { color: var(--pink-deep); font-weight: 700; font-size: 15px; margin-top: 5px; }
.img-card .price small { font-size: 11px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.img-card .foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.badge-off {
  position: absolute; inset: 0; background: rgba(0,0,0,.42);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; letter-spacing: 1px;
}
.badge-count {
  position: absolute; right: 6px; bottom: 6px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 10px;
  padding: 1px 6px; border-radius: var(--r-pill);
}
.check-wrap { position: absolute; left: 6px; top: 6px; z-index: 2; }
.check-wrap .pick-box { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.9); }
.check-wrap .pick-box.on { background: var(--pink); border-color: #fff; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 12px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip-filter {
  flex: 0 0 auto; height: 30px; padding: 0 13px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); color: var(--text-2); font-size: 13px;
  display: flex; align-items: center; gap: 4px;
}
.chip-filter.on { background: var(--pink-grad); border-color: transparent; color: #fff; font-weight: 600; }

.searchbar {
  display: flex; align-items: center; gap: 8px;
  margin: 12px 14px; height: 40px; padding: 0 14px;
  background: #fff; border-radius: var(--r-pill); box-shadow: var(--sh-1);
}
.searchbar svg { width: 17px; height: 17px; color: var(--text-4); flex: 0 0 auto; }
.searchbar input { flex: 1; font-size: 14px; min-width: 0; }
.searchbar .clear { color: var(--text-4); font-size: 16px; }

/* ---------- 底部固定操作栏 ---------- */
.footbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 25;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + var(--safe-b));
  display: flex; align-items: center; gap: 10px;
}
.footbar .grow { flex: 1; }
.footbar-col { display: flex; flex-direction: column; gap: 10px; }

/* 相册管理页底部五个操作（固定在底栏上方，滚动时常驻） */
.op-bar {
  position: absolute; left: 0; right: 0;
  bottom: calc(var(--tab-h) + var(--safe-b));
  z-index: 26;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.op-bar .op-item {
  padding: 6px 2px; background: transparent; box-shadow: none; gap: 4px;
  font-size: 11px; color: var(--text-2);
}
.op-bar .op-item .ic { width: 30px; height: 30px; }
.op-bar .op-item .ic svg { width: 17px; height: 17px; }

/* ---------- 上传页：提交成功提示条（不跳页，原地继续传） ---------- */
.done-bar {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 14px 0; padding: 10px 12px;
  background: #F1FBF6;
  border: 1px solid #C9EEDC;
  border-radius: var(--r-md);
}
.done-bar .ic {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: #38C793; color: #fff;
}
.done-bar .ic svg { width: 15px; height: 15px; }
.done-bar .tx { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.done-bar .tx b { color: #333; font-weight: 600; }
.done-bar .tx .sub { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.done-bar .btn { flex: 0 0 auto; }
.done-bar.draft { background: #FFF9F2; border-color: #F5DFC2; }
.done-bar.draft .ic { background: #FFA94D; }

.op-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 14px; }
.op-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 2px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-1); font-size: 11px; color: var(--text-2);
  transition: transform .1s;
}
.op-item:active { transform: scale(.95); }
.op-item .ic {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-wash); color: var(--pink);
}
.op-item .ic.blue { background: var(--blue-wash); color: var(--blue-text); }
.op-item .ic svg { width: 18px; height: 18px; }

/* ---------- 分类管理行 ---------- */
.cat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line-soft);
  background: #fff;
}
.cat-row:last-child { border-bottom: 0; }
.cat-row .name { flex: 1; font-size: 14px; }
.cat-row .cnt { font-size: 12px; color: var(--text-3); }
.cat-row .ops { display: flex; gap: 2px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-3);
}
.icon-btn:active { background: var(--pink-wash); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn[disabled] { opacity: .28; pointer-events: none; }

/* ---------- 成员 ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-grad-soft); color: #fff; font-weight: 700; font-size: 15px;
  background-size: cover; background-position: center;
}
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.blue { background: var(--blue-grad); }
.member-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.member-row:last-child { border-bottom: 0; }
.member-row .info { flex: 1; min-width: 0; }
.member-row .nick { font-size: 14px; font-weight: 600; }
.member-row .sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* ---------- 弹层 ---------- */
.layer-root { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.layer-root > * { pointer-events: auto; }

.mask {
  position: absolute; inset: 0;
  background: rgba(30, 12, 20, .42);
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding-bottom: var(--safe-b);
  animation: slideUp .22s cubic-bezier(.2,.9,.3,1);
  max-height: 82vh; display: flex; flex-direction: column;
}
@keyframes slideUp { from { transform: translate(-50%, 100%) } to { transform: translate(-50%, 0) } }
.sheet-head { padding: 16px 18px 8px; text-align: center; font-size: 15px; font-weight: 700; }
.sheet-close { position: absolute; right: 10px; top: 10px; }
.sheet-body { overflow-y: auto; padding-bottom: 8px; }
.sheet-item {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px; font-size: 15px; color: var(--text);
  border-top: 1px solid var(--line-soft);
}
.sheet-item:first-child { border-top: 0; }
.sheet-item:active { background: var(--pink-wash-2); }
.sheet-item.danger { color: var(--red); }
.sheet-item .sub { font-size: 12px; color: var(--text-3); }
.sheet-cancel { border-top: 8px solid #F7F8FA; color: var(--text-2); }

.dialog {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 84%; max-width: 320px;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  animation: popIn .2s cubic-bezier(.2,.9,.3,1);
}
@keyframes popIn { from { transform: translate(-50%,-50%) scale(.9); opacity: 0 } to { transform: translate(-50%,-50%) scale(1); opacity: 1 } }
.dialog-head { padding: 20px 20px 0; text-align: center; font-size: 16px; font-weight: 700; }
.dialog-body { padding: 10px 20px 18px; text-align: center; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.dialog-actions { display: flex; border-top: 1px solid var(--line-soft); }
.dialog-actions button {
  flex: 1; height: 48px; font-size: 15px; color: var(--text-2);
}
.dialog-actions button + button { border-left: 1px solid var(--line-soft); }
.dialog-actions .ok { color: var(--pink); font-weight: 700; }
.dialog-actions .danger { color: var(--red); font-weight: 700; }

.toast {
  position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%);
  background: rgba(30, 12, 20, .84); color: #fff;
  padding: 11px 20px; border-radius: var(--r-md); font-size: 14px;
  max-width: 76%; text-align: center; z-index: 300;
  animation: fadeIn .18s ease; pointer-events: none;
}

.loading-mask { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.6); z-index: 250; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid #FFDCE7; border-top-color: var(--pink);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- 只读分享页 ---------- */
.share-banner {
  background: var(--pink-grad); color: #fff;
  padding: calc(var(--safe-t) + 22px) 18px 22px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.share-banner .nm { font-size: 20px; font-weight: 700; }
.share-banner .ds { font-size: 13px; opacity: .92; margin-top: 6px; line-height: 1.5; }
.share-banner .st { margin-top: 12px; display: flex; gap: 14px; font-size: 12px; opacity: .95; }

/* ---------- 登录页 ---------- */
.login-wrap {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 0 28px calc(40px + var(--safe-b));
}
.login-logo {
  width: 74px; height: 74px; border-radius: 22px; margin: 0 auto 18px;
  background: var(--pink-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(255,111,156,.34);
}
.login-logo svg { width: 38px; height: 38px; }
.login-title { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.login-sub { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 6px; }
.login-form { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.login-input {
  height: 48px; border-radius: var(--r-pill); padding: 0 18px;
  background: #fff; box-shadow: var(--sh-1); font-size: 15px;
  border: 1px solid transparent;
}
.login-input:focus { border-color: var(--pink-light); }
.login-switch { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-3); }
.login-switch b { color: var(--pink); }
.login-demo {
  margin-top: 26px; padding: 12px 14px; border-radius: var(--r-md);
  background: #FFF9FB; border: 1px dashed #F2D6E0;
  font-size: 12px; color: var(--text-3); line-height: 1.7;
}
.login-demo b { color: var(--pink-deep); font-family: ui-monospace, Menlo, monospace; }

/* ---------- 工具/我的 ---------- */
.me-head {
  background: var(--pink-grad); color: #fff;
  padding: calc(var(--safe-t) + 26px) 18px 44px;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  display: flex; align-items: center; gap: 14px;
}
.me-head .avatar { width: 54px; height: 54px; font-size: 20px; background: rgba(255,255,255,.28); }
.me-head .nk { font-size: 18px; font-weight: 700; }
.me-head .ac { font-size: 12px; opacity: .88; margin-top: 3px; }
.stat-card {
  margin: -30px 14px 0; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--sh-2); display: flex; padding: 16px 0;
}
.stat-item { flex: 1; text-align: center; position: relative; }
.stat-item + .stat-item::before {
  content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: var(--line);
}
.stat-item .n { font-size: 20px; font-weight: 700; color: var(--pink-deep); }
.stat-item .l { font-size: 11px; color: var(--text-3); margin-top: 3px; }

/* 徽标数字 */
.num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--pink-wash); color: var(--pink-deep);
  border-radius: var(--r-pill); font-size: 11px; font-weight: 600;
}

/* 拖拽排序提示 */
.drag-hint { font-size: 11px; color: var(--text-4); margin-top: 8px; text-align: center; }
.sorting .grid9-item { cursor: grab; }
