/* =========================================================
   v1.4 新增：时钟 / 照片 / 播放器 / 音频条 / 反馈 / SMTP
   ========================================================= */

.small { font-size: 11.5px; }
.pad { padding: 14px 6px; }

/* ---- 顶栏时钟 ---- */
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); background: rgba(4, 14, 32, .97); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 40; }
.clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; padding: 4px 10px; border-left: 1px solid var(--line); }
.clock b { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .3px; color: #fff; }
.clock small { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.clock em { font-style: normal; font-size: 9.5px; color: var(--cyan); letter-spacing: .4px; }

/* ---- 登录页忘记密码 ---- */
.auth-links { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--cyan); font-size: 12.5px; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #fff; }

/* ---- 导航小圆点 ---- */
.nav-item { position: relative; }
.nav-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 93, 108, .22); }

/* ---- 统计条：7 类 ---- */
.stat-strip { grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(180px, 1.45fr); }
.stat-card { padding: 14px 12px; gap: 9px; }
.sc-icon { font-size: 20px; }
.stat-card b { font-size: 17px; }
.stat-card small { font-size: 11px; white-space: nowrap; }
.stat-card em { font-size: 10px; white-space: nowrap; }
.stat-card.wide { min-width: 180px; padding: 15px 16px; }
.item-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1500px) {
  .stat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-card.wide { grid-column: span 4; }
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card.wide { grid-column: span 2; }
}

/* ---- 分类图标配色 ---- */
.item-ico.photo { background: linear-gradient(135deg, rgba(255, 130, 190, .32), rgba(255, 200, 120, .2)); border-color: rgba(255, 150, 200, .3); }
.item-ico.archive { background: linear-gradient(135deg, rgba(255, 190, 80, .3), rgba(255, 120, 90, .18)); border-color: rgba(255, 190, 80, .32); }
.item-ico.app { background: linear-gradient(135deg, rgba(120, 220, 255, .32), rgba(60, 140, 255, .18)); border-color: rgba(120, 220, 255, .32); }

/* ---- 平台标签 ---- */
.plat { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); background: rgba(255, 255, 255, .05); }
.plat.win { color: #8ecaff; border-color: rgba(80, 160, 255, .4); background: rgba(80, 160, 255, .12); }
.plat.mac { color: #d9d9e6; border-color: rgba(200, 200, 220, .35); background: rgba(200, 200, 220, .1); }
.plat.and { color: #9be8a8; border-color: rgba(90, 210, 120, .4); background: rgba(90, 210, 120, .12); }
.plat.linux { color: #ffd08a; border-color: rgba(255, 190, 90, .4); background: rgba(255, 190, 90, .12); }

.lib-hint { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }

/* ---- 照片墙 ---- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.photo-cell {
  position: relative; margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  background: #04101f; border: 1px solid var(--line); aspect-ratio: 1 / 1;
  animation: fadeUp .4s var(--ease) both; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.photo-cell:hover { transform: translateY(-3px) scale(1.01); border-color: rgba(53, 194, 255, .5); box-shadow: 0 18px 34px rgba(2, 12, 32, .55); }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.photo-cell:hover img { transform: scale(1.06); }
.photo-cell.st-expired img { filter: grayscale(1) brightness(.45); }
.ph-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 34px; color: var(--ink-3); }
.photo-cell figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 10px 9px;
  background: linear-gradient(to top, rgba(2, 8, 20, .92), rgba(2, 8, 20, 0));
  display: flex; flex-direction: column; gap: 2px;
}
.photo-cell figcaption b { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-cell figcaption small { font-size: 10px; color: var(--ink-3); }

/* ---- 视频播放器 ---- */
.player-modal { padding: 0; background: rgba(2, 8, 20, .94); backdrop-filter: blur(8px); }
.player-shell {
  width: min(1440px, 97vw); height: min(88vh, 900px);
  display: grid; grid-template-columns: 1fr 330px; gap: 0;
  background: #020914; border: 1px solid rgba(120, 170, 255, .22); border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .7);
}
.player-main { display: flex; flex-direction: column; min-width: 0; background: #000; }
.player-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 16px; background: #05101f; }
.player-head h3 { margin: 0; font-size: 14px; font-weight: 600; word-break: break-all; }
.player-head small { font-size: 11px; color: var(--ink-3); }
.x.light { background: rgba(255, 255, 255, .08); }

.stage { position: relative; flex: 1; background: #000; display: grid; place-items: center; min-height: 0; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.big-play {
  position: absolute; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10, 30, 62, .72); color: #fff; font-size: 28px; backdrop-filter: blur(6px);
  display: grid; place-items: center; transition: transform .2s var(--ease), background .2s;
}
.big-play:hover { transform: scale(1.08); background: rgba(31, 111, 235, .85); }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-error { position: absolute; inset: auto 16px 16px 16px; background: rgba(255, 93, 108, .14); border: 1px solid rgba(255, 93, 108, .4); color: #ffd7db; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; text-align: center; }

.controls { padding: 8px 14px 12px; background: #05101f; }
.seek-wrap { padding: 6px 0; }
.seek { position: relative; height: 5px; border-radius: 20px; background: rgba(255, 255, 255, .16); cursor: pointer; transition: height .15s; }
.seek:hover { height: 8px; }
.seek.slim { height: 4px; }
.seek-buf { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, .22); border-radius: 20px; }
.seek-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 20px; background: linear-gradient(90deg, var(--blue-500), var(--cyan)); }
.seek-fill i { position: absolute; right: -5px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; }
.seek:hover .seek-fill i { opacity: 1; }
.ctrl-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ctrl {
  border: 0; background: transparent; color: var(--ink-2); font-size: 15px; cursor: pointer;
  padding: 6px 8px; border-radius: 8px; transition: background .18s, color .18s; text-decoration: none;
}
.ctrl:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ctrl.primary { background: rgba(31, 111, 235, .85); color: #fff; width: 40px; height: 36px; display: grid; place-items: center; }
.ctrl.on { color: var(--cyan); }
.ctrl-select { background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--ink-2); border-radius: 8px; padding: 4px 6px; font-size: 12px; cursor: pointer; width: auto; flex: 0 0 auto; min-width: 68px; }
.time { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; margin-left: 6px; white-space: nowrap; }
.spacer { flex: 1; }
.vol { width: 86px; accent-color: var(--cyan); cursor: pointer; }

.playlist { background: #05101f; border-left: 1px solid rgba(120, 170, 255, .16); display: flex; flex-direction: column; min-width: 0; }
.pl-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; border-bottom: 1px solid rgba(120, 170, 255, .12); }
.pl-head b { font-size: 13px; }
.pl-list { overflow-y: auto; padding: 8px; display: grid; gap: 6px; align-content: start; }
.pl-item { display: flex; gap: 10px; align-items: center; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink-2); }
.pl-item:hover { background: rgba(63, 139, 255, .12); }
.pl-item.on { background: rgba(31, 111, 235, .22); border-color: rgba(63, 139, 255, .4); color: #fff; }
.pl-num { flex: 0 0 20px; font-size: 11px; color: var(--ink-3); text-align: center; }
.pl-item.on .pl-num { color: var(--cyan); }
.pl-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-txt b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.pl-txt small { font-size: 10px; color: var(--ink-3); }

@media (max-width: 900px) {
  .player-shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: 92vh; width: 100vw; border-radius: 0; }
  .playlist { border-left: 0; border-top: 1px solid rgba(120, 170, 255, .16); max-height: 26vh; }
  .pl-txt b { max-width: 60vw; }
}

/* ---- 照片灯箱 ---- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(2, 6, 14, .96); backdrop-filter: blur(6px); display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; background: rgba(4, 14, 32, .8); border-bottom: 1px solid var(--line); }
.lb-title { min-width: 0; display: flex; flex-direction: column; }
.lb-title b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.lb-title small { font-size: 11px; }
.lb-tools { display: flex; gap: 4px; align-items: center; }
.lb-stage { overflow: hidden; display: grid; place-items: center; padding: 10px; }
.lb-stage img { max-width: 94vw; max-height: 78vh; object-fit: contain; transition: transform .22s var(--ease); box-shadow: 0 30px 70px rgba(0, 0, 0, .7); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 92px; border: 0;
  background: rgba(10, 30, 62, .55); color: #fff; font-size: 34px; cursor: pointer; border-radius: 12px;
  transition: background .2s, transform .2s; z-index: 2;
}
.lb-nav:hover { background: rgba(31, 111, 235, .7); }
.lb-nav.prev { left: 12px; }
.lb-nav.next { right: 12px; }
.lb-foot { text-align: center; padding: 10px; font-size: 12px; color: var(--ink-3); background: rgba(4, 14, 32, .8); }

/* ---- 音频播放条 ---- */
.audiobar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px; align-items: center;
  padding: 10px 18px; background: rgba(4, 14, 32, .94); border-top: 1px solid rgba(53, 194, 255, .28);
  backdrop-filter: blur(16px); box-shadow: 0 -14px 40px rgba(0, 0, 0, .5);
  animation: slideUp .3s var(--ease) both;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
body.has-audiobar { padding-bottom: 96px; }
.ab-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ab-cover { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(36, 209, 143, .45), rgba(53, 194, 255, .35)); flex: 0 0 auto; }
.ab-info { min-width: 0; display: flex; flex-direction: column; }
.ab-info b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-info small { font-size: 10.5px; }
.ab-center { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ab-btns { display: flex; gap: 8px; align-items: center; }
.ab-seek { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 560px; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ab-seek .seek { flex: 1; }
.ab-right { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }

.queue-sheet {
  position: fixed; right: 14px; bottom: 86px; z-index: 61; width: min(340px, 92vw); max-height: 52vh;
  background: linear-gradient(170deg, #08203f, #04101f); border: 1px solid rgba(120, 170, 255, .28);
  border-radius: 14px; box-shadow: 0 26px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; overflow: hidden;
  animation: popIn .22s var(--ease) both;
}
.qs-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.qs-head b { font-size: 12.5px; }
.qs-list { overflow-y: auto; padding: 6px; display: grid; gap: 4px; }
.qs-item { display: flex; gap: 8px; align-items: center; text-align: left; border: 1px solid transparent; background: transparent; color: var(--ink-2); border-radius: 9px; padding: 7px 9px; cursor: pointer; }
.qs-item:hover { background: rgba(63, 139, 255, .12); }
.qs-item.on { background: rgba(31, 111, 235, .22); color: #fff; }
.qs-num { flex: 0 0 18px; font-size: 10.5px; color: var(--ink-3); text-align: center; }
.qs-txt { min-width: 0; display: flex; flex-direction: column; }
.qs-txt b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-txt small { font-size: 10px; color: var(--ink-3); }

/* ---- 意见反馈 ---- */
.seg { display: flex; gap: 4px; background: rgba(4, 16, 38, .55); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.seg-btn { border: 0; background: transparent; color: var(--ink-2); font-size: 12px; padding: 5px 11px; border-radius: 7px; cursor: pointer; }
.seg-btn.active { background: linear-gradient(135deg, var(--blue-500), var(--cyan)); color: #fff; }
.fb-list { display: grid; gap: 10px; margin-top: 12px; }
.fb-item { background: rgba(4, 16, 38, .45); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.fb-item.new { border-left: 3px solid var(--warn); }
.fb-item.done { opacity: .72; }
.fb-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-head b { font-size: 13px; }
.fb-body { font-size: 13px; color: var(--ink-2); line-height: 1.75; margin: 8px 0 6px; white-space: pre-wrap; }
.fb-reply { font-size: 12.5px; color: var(--cyan); background: rgba(53, 194, 255, .08); border-left: 2px solid var(--cyan); padding: 7px 10px; border-radius: 6px; margin: 6px 0; white-space: pre-wrap; }
.fb-acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* ---- 设置里的 SMTP / 发件箱 ---- */
.row-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.row-actions .search { flex: 0 1 260px; }
.row-actions .search input { width: 100%; }
.mini-panel { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(120, 170, 255, .2); }
.mini-panel h3 { font-size: 12.5px; margin: 0 0 8px; color: var(--ink-2); font-weight: 600; }
.outbox { display: grid; gap: 6px; max-height: 190px; overflow-y: auto; }
.outbox-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: rgba(4, 16, 38, .5); border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; color: var(--ink-2); cursor: pointer; }
.outbox-row:hover { border-color: rgba(63, 139, 255, .45); background: rgba(63, 139, 255, .1); }
.outbox-row b { font-size: 11.5px; font-weight: 600; }
.outbox-row small { font-size: 10px; color: var(--ink-3); }

/* ---- 账号表里的邮箱输入 ---- */
.mini-input { border: 1px solid transparent; background: transparent; padding: 5px 7px; border-radius: 7px; font-size: 12px; color: var(--ink-2); }
.mini-input:hover { border-color: var(--line); background: rgba(4, 16, 38, .5); }
.mini-input:focus { border-color: var(--blue-400); background: rgba(4, 16, 38, .8); }

/* ---- 手机适配 ---- */
@media (max-width: 900px) {
  .clock { display: none; }
  .audiobar { grid-template-columns: 1fr; gap: 6px; padding: 8px 12px; }
  .ab-right { display: none; }
  .ab-left { justify-content: center; }
  body.has-audiobar { padding-bottom: 130px; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}