/* =========================================================================
   小窝（说说 / 日志 / 照片 / 视频 / 姐姐的音乐）
   ========================================================================= */

/* ------------------------------------------------------------ 面包屑 */
.us-crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 14px;
}
.us-crumb a { color: var(--muted); }
.us-crumb a:hover { color: var(--brand); }
.us-crumb strong { color: var(--text); }

/* ------------------------------------------------------------ 页头 */
.us-hero, .us-hub {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.us-hero__dog, .us-hub__dog {
  width: 74px; height: 74px; object-fit: contain; flex: none;
  border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line);
}
.us-hero__title, .us-hub__title { font-size: 21px; margin-bottom: 4px; }
.us-hero__sub, .us-hub__sub { color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------ 模块入口 */
.us-modules {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.us-mod {
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s, border-color .32s;
  background: var(--panel-solid);
  border: 2px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.us-mod:hover {
  transform: translate(-2px, -3px);
  box-shadow: 8px 9px 0 rgba(0, 0, 0, .42);
  border-color: var(--brand);
}
html[data-theme="light"] .us-mod {
  background: #fff; border-color: #1b2030;
  box-shadow: 5px 5px 0 rgba(20, 24, 35, .8);
}
html[data-theme="light"] .us-mod:hover { box-shadow: 8px 9px 0 rgba(20, 24, 35, .85); }

.us-mod__pic {
  display: block; overflow: hidden; border-bottom: 2px solid var(--line-strong);
  background: var(--bg-soft);
}
html[data-theme="light"] .us-mod__pic { border-bottom-color: #1b2030; }
.us-mod__pic img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.us-mod:hover .us-mod__pic img { transform: scale(1.06); }

.us-mod__text { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px 15px; }
.us-mod__text strong { font-size: 16px; }
.us-mod__text span { color: var(--muted); font-size: 12.5px; }

/* PC：四个模块 2×2 大卡，居中不空荡 */
@media (min-width: 860px) {
  .us-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .us-mod__pic img { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .us-modules { grid-template-columns: 1fr; gap: 12px; }
  .us-mod { flex-direction: row; align-items: center; }
  .us-mod__pic { width: 96px; flex: none; border-bottom: 0; border-right: 2px solid var(--line-strong); }
  .us-mod__pic img { aspect-ratio: 1; height: 100%; }
  html[data-theme="light"] .us-mod__pic { border-right-color: #1b2030; }
  .us-mod__text { padding: 10px 12px; }
}

/* ------------------------------------------------------------ 锁屏（极简） */
.us-lock {
  min-height: 62vh; display: flex; align-items: center; justify-content: center;
}
.us-lock__card {
  width: min(400px, 100%); text-align: center;
  padding: 38px 32px 30px;
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(109, 140, 255, .22), transparent 60%),
    var(--panel-solid);
  border: 2px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .34), 0 24px 60px rgba(0, 0, 0, .28);
}
html[data-theme="light"] .us-lock__card {
  background:
    radial-gradient(120% 120% at 50% -20%, rgba(109, 140, 255, .18), transparent 60%),
    #fff;
  border-color: #1b2030;
  box-shadow: 8px 8px 0 rgba(20, 24, 35, .82);
}
.us-lock__brand {
  font-size: 11px; letter-spacing: .38em; font-weight: 700;
  color: var(--brand); margin-bottom: 12px;
}
.us-lock__title {
  font-size: 30px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 22px;
}
.us-lock__form { text-align: left; }
.us-lock__input {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-soft); color: var(--text);
  font-size: 15px; letter-spacing: .04em;
  transition: border-color .22s, box-shadow .22s;
}
.us-lock__input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(109, 140, 255, .22);
}
.us-lock__go { width: 100%; margin-top: 14px; padding: 13px; }
.us-lock__dog {
  width: 96px; height: 96px; object-fit: contain; margin: 0 auto 6px; display: block;
  border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line);
}

/* ------------------------------------------------------------ 日记卡 */
.us-diary { margin-top: 16px; }
.us-diary__cover {
  display: block; border-radius: 16px; overflow: hidden; margin-bottom: 14px;
  border: 1px solid var(--line);
}
.us-diary__cover img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.us-diary__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.us-diary__date { color: var(--muted); font-size: 12.5px; letter-spacing: .02em; }
.us-diary__title { font-size: 19px; margin-bottom: 10px; }
.us-diary__body { font-size: 15px; line-height: 1.95; color: var(--text); }
.us-diary__body p { margin-bottom: 12px; }
.us-diary__body p:last-child { margin-bottom: 0; }
.us-diary__media {
  margin-top: 14px; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.us-diary__media img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.us-diary__media video, .us-diary__media audio { width: 100%; border-radius: 12px; }

/* ------------------------------------------------------------ 相册 */
.us-gallery {
  display: grid; gap: 12px; margin-top: 16px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.us-gallery__item {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel); position: relative;
}
.us-gallery__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.us-gallery__item:hover img { transform: scale(1.05); }
.us-gallery__item figcaption {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  font-size: 12px; color: var(--muted);
}
.us-gallery__item figcaption strong { color: var(--text); font-size: 12.5px; }
.us-gallery__note { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

.us-del {
  width: 22px; height: 22px; line-height: 1; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--line); background: var(--bg-soft);
}
.us-del:hover { color: #ff8fa0; border-color: rgba(255, 107, 129, .5); }

/* ------------------------------------------------------------ 空态 */
.empty__dog {
  width: 88px; height: 88px; object-fit: contain; display: block; margin: 0 auto 10px;
  border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line);
}

/* ------------------------------------------------------------ 姐姐的音乐 */
.sm-player {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px;
  align-items: center; margin-bottom: 16px;
}
.sm-player__art img {
  width: 160px; height: 160px; object-fit: cover; border-radius: 16px; display: block;
  border: 1px solid var(--line);
}
.sm-player__info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sm-player__title { font-size: 20px; }
.sm-player__artist { color: var(--muted); font-size: 13.5px; }
.sm-player__seek { display: flex; align-items: center; gap: 12px; }
.sm-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 42px; text-align: center; }
.sm-player__ctrl { display: flex; align-items: center; gap: 12px; }
.sm-player__ctrl .np-btn--play .i-pause { display: none; }
.sm-player.is-playing .np-btn--play .i-play { display: none; }
.sm-player.is-playing .np-btn--play .i-pause { display: block; }

.sm-list { list-style: none; margin: 0; padding: 0; }
.sm-track {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.sm-track:hover { background: rgba(109, 140, 255, .09); }
.sm-track.is-active { background: rgba(109, 140, 255, .14); border-color: rgba(109, 140, 255, .32); }
.sm-track__no { color: var(--muted); font-size: 12px; width: 20px; flex: none; }
.sm-track__cover { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; }
.sm-track__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sm-track__text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-track__text small { color: var(--muted); font-size: 12px; }
.sm-track__dur { color: var(--muted); font-size: 12px; flex: none; }
.sm-track form { flex: none; }

@media (max-width: 720px) {
  .sm-player { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sm-player__info { align-items: center; width: 100%; }
  .us-hero, .us-hub { flex-wrap: wrap; }
}

/* =========================================================================
   说说 · QQ 空间式信息流（贴纸卡质感：粗描边 + 实心投影）
   ========================================================================= */
.us-hero__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.us-hero__actions form { display: flex; }

.qz {
  background: var(--panel-solid);
  border: 2px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .38);
  padding: 18px 20px 14px;
  margin-bottom: 18px;
}
.qz--compose { border-style: dashed; box-shadow: 4px 4px 0 rgba(0, 0, 0, .28); }

.qz__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.qz__avatar {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  object-fit: contain; background: var(--bg-soft);
  border: 2px solid var(--line-strong);
}
.qz__who { display: flex; flex-direction: column; min-width: 0; }
.qz__who strong { font-size: 15px; }
.qz__who time { color: var(--muted); font-size: 12px; }
.qz__del { margin-left: auto; }
.qz__more { margin-left: auto; font-size: 13px; color: var(--brand); }

.qz__title { font-size: 18px; margin-bottom: 8px; }
.qz__body { font-size: 15px; line-height: 1.9; }
.qz__body p { margin-bottom: 10px; }
.qz__body p:last-child { margin-bottom: 0; }

/* 图片九宫格：1 张大图 / 2-4 张两列 / 5-9 张三列 —— 紧凑无缝、圆角统一 */
.qz__media {
  display: grid; gap: 6px; margin-top: 14px;
  border-radius: 14px; overflow: hidden;
}
.qz__media--n1 { grid-template-columns: 1fr; background: none; }
.qz__media--n2 { grid-template-columns: repeat(2, 1fr); }
.qz__media--n3 { grid-template-columns: repeat(3, 1fr); }
.qz__media a {
  display: block; overflow: hidden; border-radius: 12px;
  outline: 1px solid var(--line); outline-offset: -1px;
  transition: outline-color .25s;
}
.qz__media--n2 a:hover, .qz__media--n3 a:hover { outline-color: var(--brand); }
.qz__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
/* 两图用 4:3，三图及以上用正方形，视觉更整齐 */
.qz__media--n2 img { aspect-ratio: 4 / 3; }
.qz__media--n3 img { aspect-ratio: 1; }
.qz__media--n1 img {
  aspect-ratio: auto; max-height: 470px; width: auto; max-width: 100%;
  margin: 0 auto; border-radius: 14px;
}
.qz__media a:hover img { transform: scale(1.045); }
/* 亮色下给一点点「贴纸」实心投影，和卡片呼应 */
html[data-theme="light"] .qz__media--n1 a { box-shadow: 3px 3px 0 rgba(20, 24, 35, .18); }

.qz__video { width: 100%; border-radius: 14px; margin-top: 12px; border: 2px solid var(--line-strong); }
.qz__audio { width: 100%; margin-top: 12px; }

.qz__foot {
  display: flex; align-items: center; gap: 16px;
  margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--line);
}
.qz__act { display: flex; }
.qz__btn {
  font-size: 13.5px; color: var(--muted); cursor: pointer;
  background: none; border: 0; padding: 2px 0;
}
.qz__btn:hover { color: var(--brand); }
.qz__comments { position: relative; }
.qz__comments > summary { list-style: none; }
.qz__comments > summary::-webkit-details-marker { display: none; }
.qz__cbox {
  margin-top: 10px; padding: 12px; border-radius: 14px;
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
}
.qz__cmt { font-size: 13.5px; line-height: 1.7; color: var(--text); }
.qz__cmt strong { color: var(--brand); margin-right: 6px; }
.qz__cmt time { color: var(--muted); font-size: 11.5px; margin-left: 6px; }
.qz__cform { display: flex; gap: 8px; margin-top: 10px; }
.qz__cform input[type="text"] {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--panel-solid);
  color: var(--text); font-size: 13.5px;
}
.qz__submit { display: flex; gap: 10px; margin-top: 14px; }

/* 亮色主题：更贴近参考图的「白卡 + 近黑描边 + 奶油内板」 */
html[data-theme="light"] .qz {
  border-color: #1b2030; box-shadow: 6px 6px 0 rgba(20, 24, 35, .85); background: #fff;
}
html[data-theme="light"] .qz__avatar { background: #fdf3e7; border-color: #1b2030; }
html[data-theme="light"] .qz__foot { border-top-color: rgba(20, 24, 35, .18); }
html[data-theme="light"] .qz__cbox { background: #fdf3e7; border-color: rgba(20, 24, 35, .18); }

/* ------------------------------------------------------------ 翻页 */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 26px 0 10px; padding: 10px 14px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow);
  width: fit-content; margin-left: auto; margin-right: auto;
}
.pager__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text); background: transparent;
  border: 1.5px solid transparent;
  transition: background .22s, border-color .22s, transform .22s, color .22s;
}
.pager__btn:hover { border-color: var(--brand); background: rgba(109, 140, 255, .12); transform: translateY(-1px); }
.pager__btn.is-disabled { opacity: .35; cursor: not-allowed; }
.pager__btn.is-disabled:hover { border-color: transparent; background: transparent; transform: none; }
.pager__list { display: flex; align-items: center; gap: 4px; }
.pager__num {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color .2s, background .2s, transform .2s, box-shadow .2s;
}
.pager__num:hover { color: var(--text); background: rgba(109, 140, 255, .14); transform: translateY(-1px); }
.pager__num.is-active {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 20px rgba(109, 140, 255, .38);
}
.pager__info {
  color: var(--muted); font-size: 12.5px; padding: 0 6px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
@media (max-width: 560px) {
  .pager { gap: 6px; padding: 8px 10px; }
  .pager__num { width: 30px; height: 30px; font-size: 12.5px; }
  .pager__btn { padding: 7px 12px; font-size: 13px; }
}



/* =========================================================================
   素材库
   ========================================================================= */
.lib-pickbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(100deg, rgba(109, 140, 255, .16), rgba(160, 107, 255, .12));
  border: 1.5px solid rgba(109, 140, 255, .38);
  font-size: 13.5px;
}
.lib-pickbar span { flex: 1; }

.lib-upload { margin-bottom: 16px; }

.lib-filters { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; }
.lib-filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lib-filter-label { font-size: 12px; color: var(--muted); min-width: 32px; }
.lib-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px;
  color: var(--muted); background: var(--panel);
  border: 1.5px solid var(--line);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.lib-chip small { font-size: 11px; opacity: .7; }
.lib-chip:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.lib-chip.is-active {
  color: #fff; border-color: transparent;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
}

.lib-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.lib-card {
  margin: 0; overflow: hidden; position: relative;
  background: var(--panel-solid);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s;
}
.lib-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); border-color: var(--brand); }
.lib-card.is-picked { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(109, 140, 255, .35); }

.lib-card__thumb { position: relative; background: var(--bg-soft); }
.lib-card__thumb img, .lib-card__thumb video {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.lib-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 26px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
  pointer-events: none;
}
.lib-card__check { position: absolute; top: 8px; left: 8px; cursor: pointer; }
.lib-card__check input { position: absolute; opacity: 0; pointer-events: none; }
.lib-card__check span {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35);
}
.lib-card__check input:checked + span {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: #fff;
}
.lib-card__check input:checked + span::after {
  content: "✓"; color: #fff; font-size: 13px; display: grid; place-items: center; height: 100%;
}

.lib-card__meta { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 6px; }
.lib-card__name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-card__cat { font-size: 11px; color: var(--muted); }

.lib-card__tools {
  display: flex; gap: 6px; padding: 0 8px 8px; flex-wrap: wrap;
}
.lib-tool {
  font-size: 11.5px; padding: 4px 9px; border-radius: 999px;
  color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); cursor: pointer;
  transition: color .18s, border-color .18s;
}
.lib-tool:hover { color: var(--text); border-color: var(--line-strong); }
.lib-tool.is-active { color: #fff; background: linear-gradient(100deg, var(--brand), var(--brand-2)); border-color: transparent; }
.lib-tool--danger:hover { color: #ff8fa0; border-color: rgba(255, 107, 129, .5); }

.lib-pick-submit {
  position: sticky; bottom: 14px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 18px auto 0; padding: 12px 18px; width: fit-content;
  background: var(--panel-solid); border: 1.5px solid var(--line-strong);
  border-radius: 999px; box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  font-size: 13.5px;
}

/* ---------------- 编辑器 ---------------- */
.editor {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: rgba(6, 9, 16, .82); backdrop-filter: blur(6px);
  padding: 18px;
}
.editor[hidden] { display: none; }
.editor__panel {
  width: min(1000px, 100%); max-height: 94vh; overflow: auto;
  background: var(--panel-solid); border: 2px solid var(--line-strong);
  border-radius: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.editor__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.editor__head strong { font-size: 15px; }
.editor__hint { color: var(--muted); font-size: 12.5px; flex: 1; }
.editor__stage { display: grid; place-items: center; padding: 16px; background: var(--bg-soft); }
.editor__stage canvas { max-width: 100%; border-radius: 12px; cursor: crosshair; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.editor__tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--line);
}
.editor__field { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.editor__field input[type="color"] { width: 32px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.editor__field input[type="range"] { width: 90px; }
.editor__field input[type="text"] {
  width: 110px; padding: 5px 9px; border-radius: 8px; font-size: 12.5px;
  border: 1px solid var(--line-strong); background: var(--bg-soft); color: var(--text);
}

/* 已从素材库选中的素材预览 */
.lib-picked {
  margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px;
  background: var(--bg-soft); border: 1px dashed var(--line-strong);
}
.lib-picked__label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.lib-picked__list { display: flex; gap: 8px; flex-wrap: wrap; }
.lib-picked__list img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px;
  border: 1.5px solid var(--line-strong);
}

/* 模块封面：等比裁切，锁屏/页头通用 */
.us-hero__dog--cover { object-fit: cover; border-radius: 16px; }
.us-lock__dog--cover { object-fit: cover; }

/* 账号相关 */
.acct-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.acct-mini {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
  margin-right: 6px; vertical-align: -4px; border: 1px solid var(--line-strong);
}
.acct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.acct-list li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.acct-list img {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--line-strong);
}
.us-by {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--muted);
}
.us-by img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }

/* 登录/注册卡片 */
.acct-card { padding: 28px 26px 22px; }
.acct-switch {
  margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted);
}
.acct-switch a { color: var(--brand); font-weight: 600; }
.acct-switch a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .acct-card { padding: 22px 18px 18px; }
  .us-lock__dog { width: 84px; height: 84px; }
}

/* ---------------- 模块顶栏（返回 / 登录 / 去发表） ---------------- */
.us-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.us-topbar__actions, .us-topbar__who { display: flex; align-items: center; gap: 8px; }
@media (max-width: 560px) {
  .us-topbar .btn { padding: 8px 12px; font-size: 12.5px; }
}

/* ---------------- 图片集 / 视频集 ---------------- */
.album-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.album-card {
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .32s, border-color .32s;
  background: var(--panel-solid); border: 2px solid var(--line-strong);
  border-radius: 20px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .32);
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, border-color .28s;
}
.album-card:hover {
  transform: translate(-2px, -3px); border-color: var(--brand);
  box-shadow: 8px 9px 0 rgba(0, 0, 0, .4);
}
html[data-theme="light"] .album-card {
  background: #fff; border-color: #1b2030; box-shadow: 5px 5px 0 rgba(20, 24, 35, .8);
}
.album-card__pic {
  position: relative; display: block; overflow: hidden;
  border-bottom: 2px solid var(--line-strong); background: var(--bg-soft);
}
html[data-theme="light"] .album-card__pic { border-bottom-color: #1b2030; }
.album-card__pic img, .album-card__pic video {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.album-card:hover .album-card__pic img,
.album-card:hover .album-card__pic video { transform: scale(1.05); }
.album-card__empty {
  display: grid; place-items: center; aspect-ratio: 16 / 10; font-size: 34px;
}
.album-card__count {
  position: absolute; right: 8px; bottom: 8px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px;
  background: rgba(8, 12, 22, .68); color: #fff;
}
.album-card__text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.album-card__text strong { font-size: 15px; }
.album-card__text small {
  color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 5px;
}

/* 合集详情 */
.album-head { margin-bottom: 16px; }
.album-head__title { font-size: 26px; margin-bottom: 8px; }
.album-head__meta {
  color: var(--muted); font-size: 13px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.album-wall {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.album-wall__item {
  display: block; overflow: hidden; border-radius: 16px;
  border: 1.5px solid var(--line-strong);
}
.album-wall__item img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  background: var(--bg-soft); max-height: 560px;
}
.album-video {
  width: 100%; border-radius: 16px; margin-top: 12px;
  border: 1.5px solid var(--line-strong); background: #000;
}
@media (max-width: 560px) {
  .album-wall { grid-template-columns: 1fr; }
  .album-head__title { font-size: 21px; }
}

/* ---------------- 灯箱（原图查看） ---------------- */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(6, 9, 16, .86); backdrop-filter: blur(6px); }
.lb__panel { margin: 0; position: relative; z-index: 1; max-width: min(1100px, 94vw); }
.lb__panel img {
  max-width: min(1100px, 94vw); max-height: 88vh;
  object-fit: contain; border-radius: 14px; display: block;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.lb__close {
  position: absolute; top: -38px; right: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1;
}

.lib-jump { display: inline-flex; align-items: center; gap: 6px; }
.lib-jump input[type="number"] {
  width: 72px; padding: 5px 8px; border-radius: 8px; font-size: 12.5px;
  border: 1.5px solid var(--line-strong); background: var(--bg-soft); color: var(--text);
}

.album-head__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------------- 邀请页 ---------------- */
.invite-card {
  text-align: center; padding: 30px 26px 26px;
  background: var(--panel-solid); border: 2px solid var(--line-strong);
  border-radius: 22px; box-shadow: 6px 6px 0 rgba(0, 0, 0, .36);
}
html[data-theme="light"] .invite-card {
  background: #fff; border-color: #1b2030; box-shadow: 6px 6px 0 rgba(20, 24, 35, .82);
}
.invite-card__label { font-size: 13px; color: var(--muted); letter-spacing: .12em; }
.invite-card__code {
  margin: 12px 0 8px; font-size: 38px; font-weight: 800; letter-spacing: .32em;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  word-break: break-all;
}
.invite-card__hint { color: var(--muted); font-size: 13px; line-height: 1.8; }
.invite-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 10px;
}
.invite-card__link {
  font-size: 12px; color: var(--muted); margin-top: 10px; word-break: break-all;
}
.invite-card__link code {
  background: var(--bg-soft); padding: 3px 8px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 11.5px;
}
@media (max-width: 560px) {
  .invite-card__code { font-size: 28px; letter-spacing: .22em; }
}

/* ---------------- 小窝布局：左侧用户档案 + 主内容 ---------------- */
.us-layout {
  display: grid; gap: 20px;
  grid-template-columns: 232px minmax(0, 1fr);
  align-items: start;
}
.us-side {
  position: sticky; top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.us-side__card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 20px 14px 16px;
  background: var(--panel-solid); border: 2px solid var(--line-strong);
  border-radius: 20px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .34);
}
html[data-theme="light"] .us-side__card {
  background: #fff; border-color: #1b2030; box-shadow: 5px 5px 0 rgba(20, 24, 35, .8);
}
.us-side__avatar {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--line-strong);
}
.us-side__card strong { font-size: 16px; }
.us-side__card span {
  color: var(--muted); font-size: 12px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.us-side__card em {
  font-style: normal; font-size: 11px; color: var(--brand); margin-top: 4px;
}
.us-side__btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 14px; font-size: 13.5px;
  background: var(--panel); border: 1.5px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.us-side__btn:hover { border-color: var(--brand); transform: translateX(2px); }
.us-side__btn i { font-style: normal; }

@media (max-width: 900px) {
  .us-layout { grid-template-columns: 1fr; }
  .us-side {
    position: static; flex-direction: row; align-items: stretch;
    flex-wrap: wrap; gap: 10px;
  }
  .us-side__card { flex: 1 1 220px; flex-direction: row; text-align: left; padding: 12px 14px; align-items: center; }
  .us-side__avatar { width: 48px; height: 48px; }
  .us-side__btn { flex: 1 1 120px; justify-content: center; }
  .us-side__pair { flex: 1 1 100%; }
  .us-side__mem { padding: 8px 0; }
  .us-side__pair-av { width: 34px; height: 34px; }
  .us-side__mem-body span { -webkit-line-clamp: 1; }
}

.us-side__pic {
  width: 100%; border-radius: 16px; border: 2px solid var(--line-strong);
  object-fit: cover; max-height: 150px;
}

/* ---------------- 布置：封面选择 ---------------- */
.pick-slot {
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 12px;
}
.pick-slot__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; margin-bottom: 10px;
}
.pick-slot__body { display: flex; align-items: center; gap: 12px; }
.pick-slot__thumb {
  width: 84px; height: 56px; object-fit: cover; border-radius: 10px; flex: none;
  border: 1.5px solid var(--line-strong); background: var(--bg-soft);
}
.pick-slot__body input[type="text"] {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--bg-soft);
  color: var(--text); font-size: 12.5px;
}
.pick-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  max-height: 58vh; overflow: auto;
}
.pick-grid__item {
  padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  cursor: pointer; background: var(--bg-soft); line-height: 0;
}
.pick-grid__item:hover { border-color: var(--brand); }
.pick-grid__item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* ---------------- 小窝首页横幅（左字右图） ---------------- */
.us-banner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 18px; align-items: center;
  padding: 26px 28px; margin-bottom: 20px;
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(109, 140, 255, .18), transparent 55%),
    var(--panel-solid);
  border: 2px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .34);
}
html[data-theme="light"] .us-banner {
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(109, 140, 255, .16), transparent 55%),
    #fff;
  border-color: #1b2030;
  box-shadow: 6px 6px 0 rgba(20, 24, 35, .8);
}
.us-banner__kicker {
  font-size: 11px; letter-spacing: .34em; font-weight: 700;
  color: var(--brand); margin-bottom: 10px;
}
.us-banner__title {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.01em;
  line-height: 1.15; margin-bottom: 10px;
}
.us-banner__sub {
  color: var(--muted); font-size: 14.5px; line-height: 1.8; max-width: 46ch;
}
.us-banner__pair {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 8px 14px 8px 8px;
  border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
}
.us-banner__avs { display: flex; }
.us-banner__avs img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--panel-solid); margin-left: -10px;
}
.us-banner__avs img:first-child { margin-left: 0; }
.us-banner__pair span { font-size: 13px; font-weight: 600; }
.us-banner__pic {
  display: flex; justify-content: center; align-items: center;
}
.us-banner__pic img {
  width: min(260px, 100%); max-height: 200px; object-fit: contain;
  border-radius: 18px; background: var(--bg-soft); border: 1.5px solid var(--line);
  padding: 10px;
}

/* 模块卡数量角标 */
.us-mod__count {
  font-style: normal; font-size: 11.5px; color: var(--brand);
  font-weight: 700; margin-top: 4px;
}

/* 侧栏成员头像 */
.us-side__pair {
  padding: 12px 14px; border-radius: 16px;
  background: var(--panel); border: 1.5px solid var(--line);
}
.us-side__pair-label {
  display: block; font-size: 11px; letter-spacing: .14em;
  color: var(--muted); margin-bottom: 8px;
}
.us-side__pair-row { display: flex; }
.us-side__pair-av {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--panel-solid); margin-left: -10px;
}
.us-side__pair-av:first-child { margin-left: 0; }

@media (max-width: 720px) {
  .us-banner { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .us-banner__sub { margin: 0 auto; }
  .us-banner__pair { margin-left: auto; margin-right: auto; }
  .us-banner__pic { order: -1; }
}

/* 选图格子/邀请卡：统一悬停过渡 */
.pick-grid__item, .invite-card, .us-side__pair {
  transition: transform .28s cubic-bezier(.2,.7,.2,1), border-color .28s, box-shadow .28s;
}
.pick-grid__item:hover { transform: translateY(-2px); }
.invite-card:hover { border-color: var(--brand); }

/* ---------------- 小窝成员面板（双方状态/账号） ---------------- */
.us-members__head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 2px 10px;
}
.us-members__title { font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.us-members__unbind {
  font-size: 11.5px; padding: 5px 12px; border-radius: 999px;
  color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.us-members__unbind:hover { color: #ff8fa0; border-color: rgba(255, 107, 129, .5); }

.us-members {
  display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}
.us-mem {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--panel-solid); border: 2px solid var(--line-strong);
  border-radius: 20px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .34);
}
html[data-theme="light"] .us-mem {
  background: #fff; border-color: #1b2030; box-shadow: 5px 5px 0 rgba(20, 24, 35, .8);
}
.us-mem--empty {
  border-style: dashed; box-shadow: none; opacity: .92;
}
.us-mem__av {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--line-strong);
}
.us-mem__av--ghost {
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--muted);
  background: var(--bg-soft); border-style: dashed;
}
.us-mem__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.us-mem__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.us-mem__row strong { font-size: 16px; }
.us-mem__badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}
.us-mem__badge--ok {
  color: #3ddc97; border-color: rgba(61, 220, 151, .4);
  background: rgba(61, 220, 151, .12);
}
.us-mem__badge--wait {
  color: #e8b23a; border-color: rgba(232, 178, 58, .4);
  background: rgba(232, 178, 58, .12);
}
.us-mem__bio {
  color: var(--muted); font-size: 12.5px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.us-mem__time { color: var(--muted); font-size: 11px; opacity: .8; }
.us-mem__link { color: var(--brand); font-size: 12.5px; font-weight: 600; }

@media (max-width: 720px) {
  .us-members { grid-template-columns: 1fr; gap: 10px; }
  .us-mem { padding: 12px 14px; gap: 12px; box-shadow: 3px 3px 0 rgba(0, 0, 0, .28); }
  .us-mem__av { width: 46px; height: 46px; }
  .us-mem__row strong { font-size: 15px; }
  .us-mem__bio { -webkit-line-clamp: 1; font-size: 12px; }
  .us-mem__time { font-size: 10.5px; }
  .us-members__title { font-size: 13px; }
}

/* 侧栏「我们俩」成员行 */
.us-side__mem {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
}
.us-side__mem + .us-side__mem { border-top: 1px dashed var(--line); }
.us-side__mem-body {
  display: flex; flex-direction: column; min-width: 0; flex: 1;
}
.us-side__mem-body strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-side__mem-body span {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.us-side__tag {
  flex: none; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.us-side__tag--ok {
  color: #3ddc97; border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .12);
}
.us-side__tag--wait {
  color: var(--brand); border-color: rgba(109, 140, 255, .4); background: rgba(109, 140, 255, .12);
  text-decoration: none;
}
.us-side__pair-av--ghost {
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
  color: var(--muted); background: var(--bg-soft); border-style: dashed;
}

.us-side__unbind-form { display: flex; justify-content: center; }
