/* 单号网页版收件：照截图做的手机式列表，干净为主 */
:root { color: #111827; background: #efeefc; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: #efeefc; color: #111827; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: #2563eb; text-decoration: none; }

.phone { max-width: 1180px; margin: 0 auto; background: #f8f7ff; min-height: 100vh; padding: 14px 18px 30px; }
.view[hidden] { display: none; }

/* ---------- 顶部：蓝色 ---------- */
.app-head { display: flex; align-items: center; gap: 8px; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 8px 11px; margin-bottom: 11px; }
.app-logo { font-size: 24px; background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 3px 7px; }
.app-title h1 { margin: 0; font-size: 15px; color: #1d4ed8; }
.app-title p { margin: 1px 0 0; color: #3b82f6; font-size: 11px; }
/* 温馨提示：蓝色顶栏配琥珀色警告，显眼又不刺眼 */
.app-title .warning { display: inline-block; margin: 4px 0 0; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 6px; padding: 3px 6px; font-size: 10px; font-weight: 700; }
.app-tabs { margin-left: auto; display: flex; gap: 8px; }
.tab { background: #2563eb; color: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 800; font-size: 12px; }
.ver { background: #f1f5f9; border: 1px solid #e5e7eb; border-radius: 999px; padding: 3px 7px; font-size: 10px; color: #64748b; }

/* ---------- 主区：左登录，右邮箱（照图1，同屏） ---------- */
.main-grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; }
.left-card h2, .left-card h3 { margin: 0 0 10px; font-size: 16px; }
.left-card h3 { margin-top: 18px; }
.left-card label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin: 0 0 6px; }
.left-card textarea { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 12px; outline: none; resize: vertical; font-size: 14px; line-height: 1.6; }
.left-card textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 4px #2563eb1f; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 16px 0 0; cursor: pointer; }
.check-row input { width: auto; padding: 0; accent-color: #2563eb; transform: scale(1.3); }
.check-hint { color: #64748b; font-size: 12px; line-height: 1.6; margin: 6px 0 0; }
.primary { color: #fff; background: #111827; border: 0; border-radius: 12px; padding: 12px 14px; font-weight: 800; }
.primary:disabled { background: #9ca3af; cursor: not-allowed; }
.full { width: 100%; margin-top: 16px; }
.msg { min-height: 20px; font-size: 13px; color: #dc2626; margin: 10px 0 0; }
.hint { color: #94a3b8; font-size: 12px; line-height: 1.6; }
.proxy-status { font-size: 12px; color: #059669; margin: 8px 0 0; }
.account-list { display: flex; flex-direction: column; gap: 6px; }
.account-row { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: #f8fafc; border: 1px solid #e5e7eb; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-row.active { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 800; }
.small-empty { padding: 8px 0; text-align: left; }
@media (max-width: 820px) {
  .main-grid { grid-template-columns: 1fr; }
  .app-tabs { display: none; }
}

.mail-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 0 10px; }
.account { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghost { color: #111827; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.small { font-size: 13px; padding: 7px 10px; }

/* ---------- 文件夹 ---------- */
.folders { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid #e5e7eb; padding-bottom: 2px; scrollbar-width: none; }
.folders::-webkit-scrollbar { display: none; }
.folder { flex: 0 0 auto; border: 0; background: none; padding: 10px 10px; font-size: 14px; color: #475569; border-bottom: 2px solid transparent; }
.folder.active { color: #2563eb; font-weight: 800; border-bottom-color: #2563eb; }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; padding: 10px 0; }
.count { margin-left: auto; font-size: 12px; color: #94a3b8; }
/* ---------- 邮件列表（照截图） ---------- */
.mail-list { display: flex; flex-direction: column; }
.mail-row { display: flex; gap: 10px; align-items: flex-start; padding: 13px 4px; border-bottom: 1px solid #eef2f7; cursor: pointer; }
.mail-row:active { background: #f8fafc; }
.dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #2563eb; margin-top: 7px; }
.dot.read { background: transparent; }
.mail-main { flex: 1; min-width: 0; }
.mail-from { font-size: 14px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-subject { font-size: 15px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mail-row.unread .mail-subject { font-weight: 800; }
.mail-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mail-date { font-size: 12px; color: #64748b; white-space: nowrap; }
.empty { color: #94a3b8; font-size: 14px; text-align: center; padding: 30px 0; }

/* ---------- 正文 ---------- */
.d-subject { font-size: 18px; font-weight: 800; margin: 14px 0 6px; }
.d-meta { font-size: 13px; color: #64748b; margin-bottom: 12px; line-height: 1.6; word-break: break-all; }
/* ---------- 正文：登录链接 ---------- */
.d-links { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.link-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.link-btn { flex: 1; min-width: 0; display: inline-block; background: #111827; color: #fff; border-radius: 10px; padding: 10px 12px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.d-body { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.7; color: #1e293b; }
.foot { color: #94a3b8; font-size: 12px; line-height: 1.6; margin-top: 18px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #111827; color: #fff; border-radius: 10px; padding: 9px 14px; font-size: 13px; box-shadow: 0 8px 24px #0003; }
