/**
 * 网页端清单列表页样式
 * 参考小程序 index.wxss，rpx 换算为 px（1rpx ≈ 0.5px）
 */

/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2937;
  background: #f9fafb;
}

/* ===== 弹层样式（复用 checklist-view.css） ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
}

.login-modal-content {
  width: 400px;
  padding: 32px;
  text-align: center;
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: #6b7280;
  margin-bottom: 24px;
}

.qrcode-container {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-wrapper {
  text-align: center;
}

.qrcode-img {
  width: 240px;
  height: 240px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.qrcode-tip {
  margin-top: 16px;
  font-size: 16px;
  color: #1f2937;
}

.qrcode-expire {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.qrcode-loading,
.qrcode-expired,
.qrcode-error {
  text-align: center;
  padding: 40px;
}

.btn-refresh {
  margin-top: 16px;
  padding: 8px 24px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-refresh:hover {
  background: #1d4ed8;
}

.login-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.login-tip {
  font-size: 12px;
  color: #9ca3af;
}

/* ===== 左右分栏骨架（左=清单列表，右=内容浏览） ===== */
.workspace {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== 左栏：清单列表 ===== */
.side-panel {
  width: 360px;
  flex: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e5e7eb;
  position: relative; /* 会员信息卡绝对定位锚点 */
}

.side-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 2026-10-27：标题+小程序胶囊靠左同排，头像 margin-left:auto 靠右 */
  gap: 10px;
}

.side-title {
  font-size: 20px;
  font-weight: 600;
}

/* 左栏标题旁用户头像（用户 2026-10-26：替换「共 N 份」计数，点击展开会员信息卡） */
.side-avatar {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  flex: none;
  margin-left: auto;
}

.side-avatar:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.side-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.side-avatar-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ===== 会员信息卡（点左栏头像展开；文案/结构同插件端会员卡，用户 2026-10-26） ===== */
.member-pop {
  position: absolute;
  top: 56px;
  left: 12px;
  right: 12px;
  z-index: 500;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 16px;
}

.member-pop-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-avatar,
.member-avatar-ph {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
}

.member-avatar {
  object-fit: cover;
}

.member-avatar-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #93c5fd, #60a5fa);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.member-id {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-phone {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.member-tier {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #f3f4f6;
  color: #6b7280;
}

.member-tier.paid {
  background: #eef4ff;
  color: #2563eb;
}

.member-quota-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: #eef4ff;
  border-radius: 12px;
}

.member-quota-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #2563eb;
}

.member-quota-num strong {
  font-size: 26px;
  font-weight: 800;
}

.member-quota-num span {
  font-size: 13px;
}

.member-quota-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: #dbe6ff;
  overflow: hidden;
}

.member-quota-fill {
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
}

.member-quota-cap {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.member-rows {
  margin-top: 12px;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: #4b5563;
}

.member-row strong {
  color: #1f2937;
}

.member-foot {
  margin: 10px 0 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
}

.side-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f9fafb;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.btn-icon:hover {
  background: #f3f4f6;
}

/* ===== 筛选 Tab ===== */
.filter-tabs {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 0;
}

.filter-tab {
  padding: 10px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.filter-tab:hover {
  color: #2563eb;
}

.filter-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 500;
}

/* ===== 右栏：内容浏览 ===== */
.detail-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
}

.detail-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-title {
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-title.placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.topbar-spacer {
  flex: 1;
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* 原地编辑嵌入层（用户 2026-10-26）：与 detail-body 互斥显示，铺满右栏剩余高度 */
.detail-edit-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #f7f9fc;
}

.detail-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* 未选中占位 / 详情加载失败兑底 */
.detail-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  text-align: center;
}

.detail-empty .icon {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.6;
}

.detail-empty .text {
  font-size: 15px;
}

/* ===== 加载中 ===== */
.loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: #6b7280;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== 空态 ===== */
.empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.empty-text {
  font-size: 16px;
  color: #6b7280;
  margin-top: 16px;
  margin-bottom: 8px;
}

.empty-tip {
  font-size: 14px;
  color: #9ca3af;
}

/* ===== 轻量提示 ===== */
.filter-empty {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 14px;
}

/* ===== 清单列表（左栏内纵向单列） ===== */
.checklist-list {
  display: none;
}

.checklist-list .checklist-card {
  margin-bottom: 10px;
}

.checklist-list .checklist-card:last-child {
  margin-bottom: 0;
}

.checklist-card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  border: 1px solid #e5e7eb;
}

.checklist-card:hover {
  border-color: #93c5fd;
}

/* 选中态：蓝框 + 浅蓝底 */
.checklist-card.active {
  border-color: #2563eb;
  background: #f5f9ff;
  box-shadow: 0 0 0 1px #2563eb;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 500;
}

.status-draft {
  background: #fef3c7;
  color: #92400e;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-archived {
  background: #f3f4f6;
  color: #6b7280;
}

/* ===== 来自信息（viewer 项） ===== */
.card-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  background: #f9fafb;
  border-radius: 6px;
}

/* ===== 卡片前置缩略图（名字首字/业主头像，用户指认 2026-10-26） ===== */
/* 卡片改横向布局：缩略图 + 内容体 */
.checklist-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.card-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef4ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
}

.card-body {
  flex: 1;
  min-width: 0;
}

/* 「来自」行内业主小头像（网名前；卡片前置缩略图另为项目首字） */
.owner-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.owner-avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.owner-name {
  font-size: 13px;
  color: #6b7280;
}

/* ===== 卡片底部 ===== */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.card-date {
  font-size: 12px;
  color: #9ca3af;
}

/* 编辑入口按钮（第二批）：与动作胶囊同排，蓝色描边药丸 */
.card-edit {
  margin-left: auto;
  margin-right: 10px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #2563eb;
  background: #eef4ff;
  border: 1px solid #c9d8f5;
  border-radius: 999px;
  cursor: pointer;
}

.card-edit:hover {
  background: #2563eb;
  color: #fff;
}

/* ===== 卡片按钮体系（对齐小程序/插件端首页，效果图审核 2026-10-26） ===== */
/* 行1：标题弹性收缩 + 铅笔/垃圾桶图标按钮靠右 */
.card-header {
  align-items: center;
  gap: 6px;
}

.card-header .card-title {
  flex: 1;
  min-width: 0;
}

/* 铅笔：自己的=重命名 / 收到的=备注 */
.card-icon-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #9ca3af;
  border-radius: 6px;
  cursor: pointer;
}

.card-icon-btn:hover {
  color: #2563eb;
  background: #eef4ff;
}

/* 垃圾桶：自己的=删除 / 收到的=移除（小程序同款圆底） */
.card-del-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f3f4f6;
  color: #9ca3af;
  border-radius: 50%;
  cursor: pointer;
}

.card-del-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* 行2：日期弹性占左 + 幽灵动作胶囊靠右（小程序 .card-share 同构） */
.card-footer {
  gap: 8px;
}

.card-footer .card-date {
  flex: 1;
  min-width: 0;
}

.card-edit {
  margin-left: 0;
  margin-right: 0;
}

.card-act {
  flex-shrink: 0;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #d5d9e0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}

.card-act:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* 重命名/邀请弹层通用按钮行 */
.modal-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* 邀请弹层双链接分组标签（小程序版/网页版） */
.invite-link-label {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.invite-link-label:first-of-type {
  margin-top: 14px;
}

.share-copy-btn:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  cursor: not-allowed;
}

.modal-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.modal-btn-ghost {
  background: #fff;
  border: 1px solid #d5d9e0;
  color: #374151;
}

.modal-btn-ghost:hover {
  border-color: #9ca3af;
}

.modal-btn-primary {
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #fff;
}

.modal-btn-primary:hover {
  background: #1d4ed8;
}

/* ===== 底部信息（分栏布局已移除 footer，仅独立查看页保留） ===== */

/* ===== 左栏底部创建入口（桌面端恒在左栏底部；窄屏 sticky 吸底） ===== */
.side-footer {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.btn-create {
  flex: 1;
  width: auto;
  padding: 12px 0;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-create:hover {
  background: #1d4ed8;
}

.btn-create:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* 邀请填写描边胶囊（小程序 cap-line 同构，色随网页端蓝系） */
.btn-invite {
  flex: 1;
  padding: 12px 0;
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-invite:hover {
  background: #eef4ff;
}

.btn-invite:disabled {
  color: #9ca3af;
  border-color: #d5d9e0;
  cursor: not-allowed;
}

/* ===== 标题栏资料包下载入口（仅列表页；查看页仍用底部卡片） ===== */
.btn-zip-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-zip-topbar:hover {
  background: #1d4ed8;
}

/* 顶栏编辑入口（用户指认 2026-10-26）：描边蓝胶囊，与 ZIP 实心蓝同排区分主次 */
.btn-edit-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-edit-topbar:hover {
  background: #2563eb;
  color: #fff;
}

.btn-zip-topbar:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* 标题栏内进度条收窄，避免打包态按钮过宽 */
.btn-zip-topbar .progress-bar {
  width: 64px;
  height: 6px;
}

.btn-zip-topbar .progress-text {
  color: #fff;
}

/* 状态文字（文件大小/打包中/需重新打包）放在按钮左侧 */
.zip-status-topbar {
  font-size: 12px;
  color: #9ca3af;
}

/* ===== 分享弹层（链接 + 三权限开关，与小程序摘要页弹层同口径） ===== */
.share-modal-content {
  width: 480px;
  padding: 24px;
}

.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.share-head h2 {
  font-size: 18px;
  font-weight: 600;
}

.share-close {
  border: none;
  background: transparent;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
}

.share-sub {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.share-link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.share-link-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  outline: none;
}

.share-copy-btn {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #f3f4f6;
}

.switch-label {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
}

.switch-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

.switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex: none;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: 0.2s;
  cursor: pointer;
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .switch-slider {
  background: #2563eb;
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  /* 窄屏：隐藏右栏，点击卡片回退旧跳页行为（见 checklist-list.js 的 matchMedia 判断） */
  .workspace {
    display: block;
    height: auto;
    overflow: visible;
  }
  
  .side-panel {
    width: 100%;
    border-right: none;
  }
  
  .side-list {
    overflow: visible;
  }
  
  .detail-panel {
    display: none;
  }
  
  .login-modal-content {
    width: 90%;
    padding: 24px;
  }
  
  .qrcode-img {
    width: 200px;
    height: 200px;
  }
}

/* ===== 小程序引导（2026-10-27：插件端 A+C 组合移植；胶囊锚左栏标题行，浮卡跟在胶囊下方不分离） ===== */
.mini-chip-wrap { position: relative; display: inline-flex; }
.mini-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef4ff; border: 1px solid #bfd7fe; color: #2563eb;
  font-size: 12px; font-weight: 700; border-radius: 14px; padding: 4px 11px; cursor: pointer;
}
.mini-chip:hover { background: #e0ebff; }
.mini-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #2563eb; }
.mini-chip .mc-ico { font-size: 12px; line-height: 1; }
.mini-pop {
  position: absolute; top: calc(100% + 8px); left: 0; width: 330px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(20, 30, 50, .18); z-index: 500; padding: 16px 16px 14px; text-align: left;
}
.mp-close { position: absolute; top: 6px; right: 10px; color: #9ca3af; font-size: 18px; line-height: 1; cursor: pointer; }
.mp-close:hover { color: #6b7280; }
.mp-title { font-size: 14.5px; font-weight: 800; color: #1f2937; }
.mp-body { display: flex; gap: 14px; margin-top: 13px; }
.mp-qr { flex: none; width: 126px; text-align: center; }
.mp-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mp-item { display: flex; gap: 7px; font-size: 12px; color: #4b5563; line-height: 1.55; }
.mp-item i {
  flex: none; width: 15px; height: 15px; border-radius: 50%; background: #eef4ff; color: #2563eb;
  font-style: normal; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.mp-item b { color: #1f2937; }
.qr-box {
  width: 126px; height: 126px; margin: 0 auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-fallback { display: none; font-size: 11.5px; color: #6b7280; line-height: 1.6; padding: 0 10px; text-align: center; }
.qr-box.noimg .qr-fallback { display: block; }
.qr-scan { font-size: 11px; color: #6b7280; margin-top: 6px; line-height: 1.5; }
.mini-hero {
  width: 100%; max-width: 640px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 24px 26px; display: flex; gap: 24px; align-items: center;
  box-shadow: 0 2px 10px rgba(20, 30, 50, .06); text-align: left;
}
.mh-left { flex: 1; min-width: 0; }
.mh-h { font-size: 18px; font-weight: 800; color: #1f2937; }
.mh-h span { color: #2563eb; }
.mh-s { font-size: 12.5px; color: #6b7280; line-height: 1.7; margin-top: 8px; }
.mh-list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.mh-item { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #4b5563; line-height: 1.6; }
.mh-item i {
  flex: none; width: 17px; height: 17px; border-radius: 50%; background: #eef4ff; color: #2563eb;
  font-style: normal; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.mh-item b { color: #1f2937; font-weight: 700; }
.mh-item em { font-style: normal; color: #9ca3af; font-size: 12px; }
.mh-right { flex: none; width: 172px; text-align: center; }
.mh-right .qr-box { width: 150px; height: 150px; }
.detail-empty .mini-hero + .text { margin-top: 16px; }
@media (max-width: 1000px) {
  .mini-hero { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 20px; }
  .mh-right { width: auto; }
}
@media (max-width: 900px) {
  .mini-chip .mc-txt, .mini-chip .dot { display: none; }
}

/* ===== 轻量 Toast 条（替代原生 alert，用户 2026-10-27 效果图定稿 A 案） ===== */
.tip-toast {
  position: fixed; top: 20px; left: 50%; transform: translate(-50%, -16px);
  z-index: 1200; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, .14);
  padding: 11px 20px 11px 12px; max-width: calc(100vw - 48px);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.tip-toast.show { opacity: 1; transform: translate(-50%, 0); }
.tip-toast .tt-ico {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.tip-toast .tt-txt { font-size: 13.5px; font-weight: 500; color: #1f2937; white-space: pre-line; text-align: left; }
.tip-toast.tip-info .tt-ico { background: #fef3c7; color: #92400e; }
.tip-toast.tip-ok .tt-ico { background: #d1fae5; color: #065f46; }
.tip-toast.tip-err .tt-ico { background: #fee2e2; color: #991b1b; }

/* ===== 分享门禁轻弹窗（用户 2026-10-27 效果图定稿 C 案：知道了/继续填写） ===== */
.tip-modal-content { width: 300px; padding: 28px 24px 22px; text-align: center; }
.tip-ico {
  width: 44px; height: 44px; margin: 0 auto; border-radius: 50%;
  background: #fef3c7; color: #92400e;
  display: flex; align-items: center; justify-content: center;
}
.tip-title { margin-top: 14px; font-size: 15px; font-weight: 600; color: #1f2937; }
.tip-sub { margin-top: 6px; font-size: 13px; color: #6b7280; }
.tip-modal-content .modal-btn-row { margin-top: 18px; }
