/* 公共样式(重构 R4 从六个页面模板收敛而来;行内 <style> 已删,
   各页面 body 带 editor/slim/plain 作用域类,视觉与拆分前一致)*/
* {
  box-sizing: border-box; margin: 0; padding: 0;
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(160deg, #667eea 0%, #7c6ad0 55%, #764ba2 100%);
    min-height: 100vh; padding: 36px 16px 60px;
}
.blob {
  position: fixed; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: 0; pointer-events: none;
}
.blob-1 {
  width: 460px; height: 460px; background: #a78bfa; top: -140px; right: -120px;
            animation: drift 14s ease-in-out infinite;
}
.blob-2 {
  width: 400px; height: 400px; background: #38bdf8; bottom: -120px; left: -100px;
            animation: drift 17s ease-in-out infinite reverse;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
                     50% { transform: translate(30px, 24px); }
}
.wrap {
  max-width: 660px; margin: 0 auto; position: relative; z-index: 1;
}
header {
  text-align: center; margin-bottom: 26px;
}
h1 {
  font-size: 30px; color: #fff; text-shadow: 0 2px 12px rgba(31,35,80,.35);
}
.count {
  color: rgba(255,255,255,.85); font-size: 14px; margin-top: 8px;
}
.msg {
  color: #c0392b; background: #fdecea; padding: 11px 16px; border-radius: 12px;
         font-size: 14px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(31,35,80,.08);
}
form.write {
  background: #fff; border-radius: 18px; padding: 18px; margin-bottom: 22px;
    box-shadow: 0 14px 40px rgba(31,35,80,.22);
    animation: rise .45s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
                    to   { opacity: 1; transform: none; }
}
textarea {
  width: 100%; min-height: 110px; border: 1.5px solid #e2e6f3; border-radius: 12px;
    padding: 12px; font-size: 15px; font-family: inherit; resize: vertical; outline: none;
    transition: all .2s;
}
textarea:focus {
  border-color: #667eea; box-shadow: 0 0 0 4px rgba(102,126,234,.14);
}
.file-row {
  margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.img-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    border: 1.5px dashed #a5b0e8; color: #667eea; background: #f4f6ff;
    padding: 9px 18px; border-radius: 12px; font-size: 14px; min-height: 42px;
    transition: all .15s; user-select: none;
}
.img-btn:hover, .img-btn:active {
  background: #e9edff; border-color: #667eea;
}
.img-btn input {
  display: none;
}
.img-info {
  font-size: 13px; color: #6b7192;
}
.img-previews {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.img-previews img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px;
    border: 1px solid #e2e6f3; box-shadow: 0 2px 6px rgba(31,35,80,.12);
}
/* 录音:录完的预览条(播放器 + 时长 + 重录) */
.audio-previews {
  display: flex; flex-direction: column; gap: 8px; margin-top: 10px; width: 100%;
}
.rec-item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #f4f6ff; border: 1px solid #e2e6f3; border-radius: 12px; padding: 8px 12px;
}
.rec-item audio {
  flex: 1 1 200px; min-width: 0; height: 36px;
}
.audio-len {
  font-size: 12px; color: #6b7192; white-space: nowrap;
}
/* 录音不可用(非 HTTPS 或浏览器太老):置灰但仍可点,点了弹提示说明原因 */
.img-btn.rec-off {
  opacity: .45; cursor: not-allowed;
}
/* 录音中:按钮变红 + 前面一个呼吸的红点,一眼看出还在录 */
.img-btn.rec-on {
  background: #ffecef; border-color: #ff5f6d; border-style: solid; color: #ff5f6d;
}
.img-btn.rec-on::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ff5f6d;
    animation: rec-pulse 1s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .25; transform: scale(.7); }
}
form.write .row {
  display: flex; justify-content: space-between; align-items: center; margin-top: 14px;
}
.tip {
  color: #a0a4bd; font-size: 12px;
}
.btn {
  border: none; border-radius: 12px; padding: 11px 26px; color: #fff; font-size: 15px;
    cursor: pointer; background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 20px rgba(102,126,234,.4);
    transition: transform .15s, box-shadow .15s;
}
.btn:hover {
  transform: translateY(-1px); box-shadow: 0 12px 26px rgba(102,126,234,.5);
}
button.danger {
  background: #ff5f6d; padding: 7px 13px; font-size: 13px; border-radius: 10px;
                  box-shadow: 0 4px 12px rgba(255,95,109,.35);
}
button.danger:hover {
  box-shadow: 0 7px 16px rgba(255,95,109,.45);
}
button.plain {
  background: #eef0f8; color: #4a4f6b; padding: 7px 13px; font-size: 13px; border-radius: 10px;
                 box-shadow: none;
}
button.plain:hover {
  background: #e2e5f2; box-shadow: none;
}
.post {
  background: #fff; border-radius: 18px; padding: 18px 20px; margin-bottom: 14px;
    box-shadow: 0 10px 30px rgba(31,35,80,.18);
    transition: transform .18s ease, box-shadow .18s ease;
    animation: rise .45s ease both;
}
.post:hover {
  transform: translateY(-2px); box-shadow: 0 16px 38px rgba(31,35,80,.24);
}
.post img {
  max-width: 100%; max-height: 320px; border-radius: 12px; margin-top: 12px; display: block;
              cursor: zoom-in;
}
.post video {
  width: 100%; border-radius: 12px; margin-top: 12px; display: block; background: #000;
}
.post .loop {
  display: inline-block; font-size: 12px; color: #8b90ad; margin-top: 8px;
                cursor: pointer; user-select: none;
}
.post .loop input {
  vertical-align: -1px; accent-color: #667eea;
}
.post audio {
  width: 100%; margin-top: 12px; display: block;
}
.post .audio-len {
  display: inline-block; font-size: 12px; color: #8b90ad; margin-top: 6px;
}
.post .content {
  font-size: 15px; line-height: 1.85; word-break: break-word; white-space: pre-wrap; color: #2b2d42;
}
.post .meta {
  color: #a0a4bd; font-size: 12px; margin-top: 12px; display: flex;
                justify-content: space-between; align-items: center;
}
.post .meta .acts {
  display: flex; gap: 8px; align-items: center;
}
.empty {
  text-align: center; color: rgba(255,255,255,.9); background: rgba(255,255,255,.14);
           border: 2px dashed rgba(255,255,255,.45); border-radius: 18px; padding: 44px 20px;
}
.day-h {
  text-align: center; color: rgba(255,255,255,.95); font-size: 15px;
           letter-spacing: 2px; margin-bottom: 16px;
           text-shadow: 0 1px 8px rgba(31,35,80,.35);
}
footer {
  text-align: center; margin-top: 26px;
}
footer a {
  color: rgba(255,255,255,.75); font-size: 13px; text-decoration: none;
}
footer a:hover {
  color: #fff;
}
.badge {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 12px;
           background: rgba(255,255,255,.22); color: #fff; margin-left: 8px; vertical-align: middle;
}
#toast {
  position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%) translateY(16px);
    background: rgba(43,45,66,.94); color: #fff; padding: 12px 22px; border-radius: 12px;
    font-size: 14px; opacity: 0; transition: all .25s; pointer-events: none; z-index: 99;
    box-shadow: 0 10px 28px rgba(31,35,80,.35); max-width: 86vw; text-align: center;
}
#toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.pages {
  display: flex; justify-content: center; align-items: center; gap: 8px;
           margin: 6px 0 10px; flex-wrap: wrap;
}
.pages a, .pages .cur {
  min-width: 34px; padding: 6px 11px; border-radius: 16px;
           text-align: center; font-size: 14px; text-decoration: none;
           background: rgba(255,255,255,.16); color: #fff; transition: background .2s;
}
.pages a:hover {
  background: rgba(255,255,255,.34);
}
.pages .cur {
  background: #fff; color: #5f4fb0; font-weight: 600;
}
.pg-note {
  text-align: center; color: rgba(255,255,255,.72); font-size: 12px; margin-top: 8px;
}
/* ---------- 图片点击放大查看 ---------- */
  #viewer {
  position: fixed; inset: 0; z-index: 999; display: none;
            align-items: center; justify-content: center;
            background: rgba(8, 8, 22, .94);
}
#viewer.open {
  display: flex;
}
#viewer img {
  max-width: 92vw; max-height: 84vh; border-radius: 10px;
                box-shadow: 0 12px 60px rgba(0,0,0,.65); object-fit: contain;
}
#viewer .v-count {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
                     color: rgba(255,255,255,.75); font-size: 14px; letter-spacing: 1px;
}
#viewer .v-close, #viewer .v-nav {
  border: none; background: rgba(255,255,255,.12);
                     color: #fff; cursor: pointer; border-radius: 50%; line-height: 1;
                     display: flex; align-items: center; justify-content: center;
                     transition: background .2s; user-select: none;
}
#viewer .v-close:hover, #viewer .v-nav:hover {
  background: rgba(255,255,255,.28);
}
#viewer .v-close {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px;
                     font-size: 22px;
}
#viewer .v-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
                   width: 46px; height: 46px; font-size: 20px;
}
#viewer .v-prev {
  left: 12px;
}
#viewer .v-next {
  right: 12px;
}
.editor * {
  box-sizing: border-box; margin: 0; padding: 0;
}
body.editor {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(160deg, #667eea 0%, #7c6ad0 55%, #764ba2 100%);
    min-height: 100vh; padding: 36px 16px 60px;
}
.editor .blob {
  position: fixed; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: 0; pointer-events: none;
}
.editor .blob-1 {
  width: 460px; height: 460px; background: #a78bfa; top: -140px; right: -120px;
            animation: drift-editor 14s ease-in-out infinite;
}
.editor .blob-2 {
  width: 400px; height: 400px; background: #38bdf8; bottom: -120px; left: -100px;
            animation: drift-editor 17s ease-in-out infinite reverse;
}
@keyframes drift-editor {
  0%, 100% { transform: translate(0, 0); }
                     50% { transform: translate(30px, 24px); }
}
.editor .wrap {
  max-width: 660px; margin: 0 auto; position: relative; z-index: 1;
}
.editor h1 {
  font-size: 26px; color: #fff; text-shadow: 0 2px 12px rgba(31,35,80,.35); margin-bottom: 20px;
}
.editor form {
  background: #fff; border-radius: 18px; padding: 20px;
    box-shadow: 0 14px 40px rgba(31,35,80,.22);
    animation: rise-editor .45s ease both;
}
@keyframes rise-editor {
  from { opacity: 0; transform: translateY(16px); }
                    to   { opacity: 1; transform: none; }
}
.editor textarea {
  width: 100%; min-height: 160px; border: 1.5px solid #e2e6f3; border-radius: 12px;
    padding: 12px; font-size: 15px; font-family: inherit; resize: vertical; outline: none;
    transition: all .2s;
}
.editor textarea:focus {
  border-color: #667eea; box-shadow: 0 0 0 4px rgba(102,126,234,.14);
}
.editor img.preview {
  max-width: 100%; max-height: 240px; border-radius: 12px; margin: 12px 0 4px; display: block;
}
.editor video.preview {
  width: 100%; max-height: 240px; border-radius: 12px; margin: 12px 0 4px; display: block; background: #000;
}
.editor audio.preview {
  width: 100%; border-radius: 12px; margin: 12px 0 4px; display: block;
}
.editor .audio-len {
  display: block; font-size: 12px; color: #8b90ad; margin-bottom: 4px;
}
.editor label.rm {
  display: block; font-size: 13px; color: #ff5f6d; margin: 6px 0 10px; cursor: pointer;
}
.editor label.loop {
  display: inline-block; font-size: 12px; color: #8b90ad; margin: 6px 12px 4px 0;
               cursor: pointer; user-select: none;
}
.editor .row {
  display: flex; gap: 10px; margin-top: 14px;
}
.editor #toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
    background: rgba(30,34,60,.92); color: #fff; padding: 10px 18px; border-radius: 999px;
    font-size: 13px; opacity: 0; transition: all .3s; z-index: 99; pointer-events: none;
}
.editor #toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.editor .btn {
  border: none; border-radius: 12px; padding: 11px 26px; color: #fff; font-size: 15px;
    cursor: pointer; background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 20px rgba(102,126,234,.4);
    transition: transform .15s, box-shadow .15s;
}
.editor .btn:hover {
  transform: translateY(-1px); box-shadow: 0 12px 26px rgba(102,126,234,.5);
}
.editor a.cancel {
  text-decoration: none;
}
.editor a.cancel .btn {
  background: #eef0f8; color: #4a4f6b; box-shadow: none;
}
.editor a.cancel .btn:hover {
  background: #e2e5f2;
}
.editor .msg {
  color: #c0392b; background: #fdecea; padding: 11px 16px; border-radius: 12px;
         font-size: 14px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(31,35,80,.08);
}
.slim * {
  box-sizing: border-box; margin: 0; padding: 0;
}
body.slim {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(160deg, #667eea 0%, #7c6ad0 55%, #764ba2 100%);
    min-height: 100vh; padding: 32px 16px 60px;
}
.slim .wrap {
  max-width: 720px; margin: 0 auto; position: relative; z-index: 1;
}
.slim h1 {
  font-size: 26px; color: #fff; text-shadow: 0 2px 12px rgba(31,35,80,.35); text-align: center;
}
.slim .sub {
  color: rgba(255,255,255,.8); font-size: 13px; text-align: center; margin: 8px 0 20px;
}
.slim .stats {
  display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap;
}
.slim .stat {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
    border-radius: 14px; padding: 10px 22px; text-align: center; color: #fff;
}
.slim .stat b {
  display: block; font-size: 22px;
}
.slim .stat span {
  font-size: 12px; opacity: .85;
}
.slim .stat.ok b {
  color: #7ef0b5;
}
.slim .stat.fail b {
  color: #ff9aa2;
}
.slim .card {
  background: #fff; border-radius: 18px; padding: 10px;
    box-shadow: 0 14px 40px rgba(31,35,80,.22); overflow: hidden;
    animation: rise-slim .4s ease both;
}
@keyframes rise-slim {
  from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; }
}
.slim table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.slim th {
  text-align: left; color: #a0a4bd; font-weight: 500; padding: 10px 14px; font-size: 12px;
}
.slim td {
  padding: 10px 14px; border-top: 1px solid #eef0f8; color: #3a3f5c; vertical-align: top;
}
.slim tr:hover td {
  background: #f7f8ff;
}
.slim .tag {
  display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px;
}
.slim .tag.owner {
  background: #eef2ff; color: #667eea;
}
.slim .tag.guest {
  background: #e8faf0; color: #12a15e;
}
.slim .tag.unknown {
  background: #f0f1f5; color: #8a8fa8;
}
.slim .tag.ok {
  background: #e8faf0; color: #12a15e;
}
.slim .tag.fail {
  background: #fdecea; color: #e74c3c;
}
.slim .ip {
  font-family: Consolas, monospace; font-size: 12px;
}
.slim .ua {
  color: #8a8fa8; font-size: 12px;
}
.slim .empty {
  text-align: center; color: #a0a4bd; padding: 30px 0;
}
.slim footer {
  text-align: center; margin-top: 22px;
}
.slim footer a {
  color: rgba(255,255,255,.75); font-size: 13px; text-decoration: none;
}
.slim .stat.hot b {
  color: #ffd166;
}
.slim .card {
  background: #fff; border-radius: 18px; padding: 10px;
    box-shadow: 0 14px 40px rgba(31,35,80,.22); overflow: hidden;
    animation: rise-slim .4s ease both; margin-bottom: 16px;
}
.slim .star {
  color: #e74c3c; font-weight: 700;
}
.slim .uin {
  font-family: Consolas, monospace; font-size: 12px; color: #8a8fa8;
}
.slim .hint {
  background: #fff; border-radius: 18px; padding: 26px; text-align: center;
    color: #3a3f5c; box-shadow: 0 14px 40px rgba(31,35,80,.22);
}
.slim .hint code {
  background: #f0f1f5; padding: 2px 8px; border-radius: 6px; font-size: 12px;
}
.plain * {
  box-sizing: border-box; margin: 0; padding: 0;
}
body.plain {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}
.plain .blob {
  position: fixed; border-radius: 50%; filter: blur(90px); opacity: .4; z-index: 0; pointer-events: none;
}
.plain .blob-1 {
  width: 420px; height: 420px; background: #a78bfa; top: -120px; right: -100px;
            animation: drift-plain 13s ease-in-out infinite;
}
.plain .blob-2 {
  width: 380px; height: 380px; background: #38bdf8; bottom: -110px; left: -90px;
            animation: drift-plain 16s ease-in-out infinite reverse;
}
@keyframes drift-plain {
  0%, 100% { transform: translate(0, 0); }
                     50% { transform: translate(28px, 22px); }
}
.plain .card {
  position: relative; z-index: 1;
    background: rgba(255,255,255,.97); padding: 44px 38px; border-radius: 22px;
    box-shadow: 0 24px 60px rgba(31,35,80,.35); width: 340px; text-align: center;
    animation: rise-plain .5s ease both;
}
@keyframes rise-plain {
  from { opacity: 0; transform: translateY(18px); }
                    to   { opacity: 1; transform: none; }
}
.plain h1 {
  font-size: 24px; margin-bottom: 6px; color: #2b2d42;
}
.plain p.sub {
  color: #8a8fa8; font-size: 13px; margin-bottom: 28px;
}
.plain input[type=password] {
  width: 100%; padding: 14px; border: 1.5px solid #e2e6f3; border-radius: 12px;
    font-size: 16px; text-align: center; outline: none; transition: all .2s;
}
.plain input[type=password]:focus {
  border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,.15);
}
.plain button {
  width: 100%; margin-top: 16px; padding: 13px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 16px;
    cursor: pointer; box-shadow: 0 8px 20px rgba(102,126,234,.4);
    transition: transform .15s, box-shadow .15s;
}
.plain button:hover {
  transform: translateY(-1px); box-shadow: 0 12px 26px rgba(102,126,234,.5);
}
.plain .error {
  color: #e74c3c; background: #fdecea; font-size: 13px; margin-top: 16px;
           padding: 9px 12px; border-radius: 10px;
}
.plain .card {
  background: rgba(255,255,255,.97); padding: 44px 40px; border-radius: 22px;
    box-shadow: 0 24px 60px rgba(31,35,80,.35); width: 340px; text-align: center;
}
.plain .icon {
  font-size: 56px; margin-bottom: 14px;
}
.plain h1 {
  font-size: 22px; color: #2b2d42; margin-bottom: 10px;
}
.plain p {
  color: #8a8fa8; font-size: 14px; line-height: 1.7; margin-bottom: 24px;
}
.plain .btn {
  display: inline-block; border: none; border-radius: 12px; padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; font-size: 15px;
    cursor: pointer; text-decoration: none; box-shadow: 0 8px 20px rgba(102,126,234,.4);
}
.plain .btn:hover {
  transform: translateY(-1px);
}

/* ===== 阶段 A:顶部导航 + 相册页 ===== */
/* 顶部导航上下两层:上层是主功能,下层(相册/视频/录音)是媒体类,
   小一号、淡一点,形成主次关系。两行都常驻,手机上一下就点到 */
.topnav {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin: -8px 0 8px; flex-wrap: wrap;
}
.topnav a {
  color: rgba(255,255,255,.85); text-decoration: none; font-size: 15px;
  padding: 7px 18px; border-radius: 22px; letter-spacing: 1px;
  background: rgba(255,255,255,.10); transition: all .18s;
}
.topnav a:hover { background: rgba(255,255,255,.26); }
.topnav a.on { background: #fff; color: #5f4fb0; font-weight: 600; }
.topnav.subnav { margin: 0 0 18px; }
.topnav.subnav a {
  font-size: 13px; padding: 5px 14px; letter-spacing: .5px;
  background: rgba(255,255,255,.07);
}
.topnav.subnav a:hover { background: rgba(255,255,255,.22); }
/* 加这条是因为 .topnav.subnav a 和 .topnav a.on 优先级相同,
   靠书写顺序会让 subnav 的底色盖掉选中态的白底 */
.topnav.subnav a.on { background: #fff; color: #5f4fb0; font-weight: 600; }

.album-new {
  display: flex; gap: 8px; margin-bottom: 14px;
  background: rgba(255,255,255,.14); padding: 10px 12px; border-radius: 14px;
}
.album-new input {
  flex: 1; min-width: 0; border: none; border-radius: 10px; padding: 9px 12px;
  font-size: 14px; outline: none; background: #fff;
}
.album-new .btn { padding: 9px 18px; font-size: 14px; }
.album-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.album-chips .chip-wrap { position: relative; display: inline-flex; align-items: center; }
.album-chips .chip {
  color: rgba(255,255,255,.92); text-decoration: none; font-size: 14px;
  padding: 7px 13px; border-radius: 16px; background: rgba(255,255,255,.14);
  transition: all .18s; display: inline-block; letter-spacing: .5px;
}
.album-chips .chip:hover { background: rgba(255,255,255,.28); }
.album-chips .chip.on { background: #fff; color: #5f4fb0; font-weight: 600; }
.album-chips .chip-cnt {
  font-weight: 400; font-size: 12px; opacity: .75; margin-left: 3px;
}
.album-chips .chip-x {
  border: none; background: rgba(255,255,255,.14); color: rgba(255,255,255,.9);
  width: 18px; height: 18px; line-height: 1; border-radius: 50%; cursor: pointer;
  margin-left: -6px; font-size: 10px; padding: 0;
}
.album-chips .chip-x:hover { background: #ff5f6d; color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tiles .mb-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; cursor: zoom-in;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 3px 10px rgba(31,35,80,.18);
  transition: transform .15s; background: rgba(255,255,255,.08);
}
.tiles .mb-img:hover { transform: scale(1.03); }
.minisel {
  font-size: 12px; padding: 3px 4px; border-radius: 8px; border: 1px solid #d9ddf0;
  color: #5a5f7d; background: #fff; max-width: 118px; outline: none;
}
.album-move .plain { font-size: 12px; padding: 4px 9px; border-radius: 8px; }

/* ===== 阶段 W:愿望清单页 ===== */
.wish-new {
  display: flex; gap: 8px; margin-bottom: 16px;
  background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: 0 14px 40px rgba(31,35,80,.22);
}
.wish-new input {
  flex: 1; min-width: 0; border: 1.5px solid #e2e6f3; border-radius: 12px;
  padding: 10px 12px; font-size: 15px; outline: none; transition: all .2s;
}
.wish-new input:focus { border-color: #667eea; box-shadow: 0 0 0 4px rgba(102,126,234,.14); }
.wish-new .btn { padding: 10px 18px; }
.wish-row {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border-radius: 16px; padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 6px 22px rgba(31,35,80,.14); transition: all .2s;
}
.wish-row.done { opacity: .68; background: #f4f6ff; }
.wish-row .chk {
  border: none; background: none; cursor: pointer; font-size: 21px; line-height: 1;
  color: #b9c0e8; padding: 4px 2px 0 0; width: 26px; flex: none;
}
.wish-row.done .chk { color: #34c27a; }
.wish-body { flex: 1; min-width: 0; }
.wish-text { font-size: 15px; color: #2b2d42; line-height: 1.6; word-break: break-word; }
.wish-row.done .wish-text { text-decoration: line-through; color: #9aa0bb; }
.wish-meta { margin-top: 5px; font-size: 12px; color: #a0a4bd; display: flex; gap: 10px; flex-wrap: wrap; }
.wish-who { padding: 1px 7px; border-radius: 9px; background: #eef1ff; color: #667eea; }
.wish-who.guest { background: #fff3e8; color: #e8914a; }
.wish-done-time { color: #34c27a; }

/* ===== 修复:留言操作区按钮/下拉高度统一(置顶/隐藏/编辑/删除/归入相册/移出) ===== */
.post .meta { flex-wrap: wrap; row-gap: 6px; }
.post .meta .acts { flex-wrap: wrap; row-gap: 6px; }
.post .meta .acts form { display: inline-flex; align-items: center; }
.post .meta .acts button.plain,
.post .meta .acts button.danger {
  height: 30px; padding: 0 12px; line-height: 30px;
  font-size: 13px; border-radius: 10px; box-sizing: border-box;
}
.post .meta .acts .album-move button.plain,
.post .meta .acts .album-move select.minisel {
  height: 30px; font-size: 13px; box-sizing: border-box;
}
.post .meta .acts select.minisel {
  max-width: 132px; padding: 0 6px; border: 1px solid #cfd4ea;
  background: #fff; border-radius: 10px; color: #4a4f6b; vertical-align: middle;
}

/* ===== 相册收照片入口引导 ===== */
.post .meta .acts .act-lbl {
  font-size: 12px; color: #7a80a8; line-height: 30px; white-space: nowrap;
}
.post .meta .acts .act-go {
  background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border: none;
}
.post .meta .acts .act-go:hover { opacity: .9; }
.post .meta .acts .act-link {
  font-size: 13px; color: #667eea; background: #eef1ff; text-decoration: none;
  height: 30px; line-height: 30px; padding: 0 12px; border-radius: 10px;
}
.album-chips + .hint, .album-new + .hint {
  margin: -4px 0 14px; font-size: 13px; color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.13); padding: 9px 13px; border-radius: 12px;
  line-height: 1.7;
}

/* ===== 相册网格点选整理 ===== */
.tiles .pick { position: relative; display: block; cursor: zoom-in; }
.tiles .pick .mb-img { display: block; }
.pickbox { display: none; }
.pick .mb-img { transition: transform .15s, box-shadow .15s; }
.pick.sel .mb-img { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #667eea; transform: scale(.97); }
.pick .tag {
  position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px;
  border-radius: 50%; background: #667eea; color: #fff; font-size: 14px;
  display: none; align-items: center; justify-content: center; line-height: 1;
}
.pick.sel .tag { display: flex; }
.pick-bar {
  position: sticky; top: 10px; z-index: 30; display: none; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 8px 12px; margin-bottom: 12px;
  box-shadow: 0 10px 26px rgba(31,35,80,.24);
}
.pick-bar #pick-count { font-size: 13px; color: #4a4f6b; white-space: nowrap; }
.pick-bar form { display: flex; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.pick-bar select { flex: 1; min-width: 120px; max-width: 220px; height: 32px; }
.pick-bar .act-go {
  border: none; border-radius: 12px; padding: 0 20px; height: 32px; color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2); cursor: pointer; font-size: 14px;
}

#list.managing .pick-bar { display: flex; }
#list.managing .mb-img { cursor: pointer; }
.manage-btn { margin-bottom: 12px; border: none; }
.manage-btn.on { background: #fff; color: #5f4fb0; }

/* 相册:隐藏照片操作 */
.chip-dim { opacity: .85; }
.act-hide {
  border: none; border-radius: 12px; padding: 0 16px; height: 32px; color: #fff;
  background: #9aa0bb; cursor: pointer; font-size: 13px; white-space: nowrap;
}
.act-hide:hover { background: #ff5f6d; }

/* 愿望清单:行内编辑 */
.wish-row .wish-edit { display: none; gap: 8px; flex: 1; min-width: 0; }
.wish-row.editing .wish-edit { display: flex; }
.wish-row.editing .wish-body,
.wish-row.editing .wish-check,
.wish-row.editing .act-edit,
.wish-row.editing .wish-del { display: none; }
.wish-edit input {
  flex: 1; min-width: 0; border: 1.5px solid #667eea; border-radius: 10px;
  padding: 8px 10px; font-size: 14px; outline: none; color: #2b2d42;
}
.wish-edit .btn { padding: 8px 16px; font-size: 13px; }
.wish-edit .plain { font-size: 13px; padding: 8px 12px; border-radius: 10px; }

/* 愿望清单:操作按钮统一尺寸(✓ / ✏️ / 🗑 同高同宽,同一样式家族) */
.wish-row .chk, .wish-row .wish-del .plain, .wish-row .act-edit {
  width: 30px; height: 30px; padding: 0; border-radius: 10px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-size: 15px; line-height: 1;
}
.wish-row .chk { font-size: 17px; color: #b9c0e8; }
.wish-row.done .chk { color: #34c27a; }
