/* ============================================================
 * app.css — 业务页面组件（登录/注册/Dashboard/表单等）
 * ============================================================ */

/* ===== Auth pages (Login / Register / Forgot) ===== */
body.auth-page {
    background:
        radial-gradient(circle at 20% 0%, rgba(0, 113, 227, 0.08), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(175, 82, 222, 0.06), transparent 50%),
        var(--c-bg);
    min-height: 100vh;
}

.auth-page .app-main {
    padding: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page .app-footer { display: none; }

/* 认证页：全屏垂直居中 + 底部版权 */
.auth-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 12px;
    box-sizing: border-box;
}
.auth-copyright {
    margin-top: 18px;
    font-size: 12px;
    color: var(--c-text-faint, #b0b0b5);
    text-align: center;
    letter-spacing: .3px;
    user-select: none;
}

/* 提交按钮加载态：旋转 + 文案 */
/* 提交按钮加载态：旋转 + 切换文案 */
.btn .btn-label { display: inline; }
.btn .btn-progress,
.btn .btn-spinner { display: none; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-progress { display: inline; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn .btn-spinner {
    display: none;
    width: 14px; height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
    vertical-align: -2px;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--r-2xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-3);
}

.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0071e3, #af52de);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

.auth-brand-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--c-text);
    margin-bottom: 4px;
}

.auth-brand-subtitle {
    font-size: 14px;
    color: var(--c-text-muted);
}

.auth-form-title {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    color: var(--c-text-muted, #86868b);
}

.auth-form .form-row { margin-bottom: 18px; }
.auth-form .form-input {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: var(--r-md);
}

.auth-form .btn-primary {
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 4px;
    width: 100%;
}

.auth-form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--c-text-muted);
}

.auth-form-footer a { font-weight: 500; }

.auth-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--c-text-faint);
    font-size: 12px;
    position: relative;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: var(--c-border);
}

.auth-divider::before { left: 20%; }
.auth-divider::after { right: 20%; }

/* ===== Hero / Big title ===== */
.hero {
    text-align: center;
    padding: 80px 24px 56px;
    background: linear-gradient(180deg, var(--c-bg-soft) 0%, var(--c-bg) 100%);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 12px;
    color: var(--c-text);
}

.hero-subtitle {
    font-size: 19px;
    color: var(--c-text-muted);
    max-width: 600px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

@media (max-width: 720px) {
    .hero { padding: 48px 20px 32px; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
}

/* ===== Membership banner ===== */
.membership-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--c-primary), #5e5cff);
    color: white;
}

.membership-banner.expired {
    background: linear-gradient(135deg, #6e6e73, #424245);
}

.membership-banner.warning {
    background: linear-gradient(135deg, var(--c-warning), #ff7b00);
}

.membership-banner-text { flex: 1; }
.membership-banner-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.membership-banner-desc { font-size: 13px; opacity: 0.85; }

.membership-banner-action {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: all var(--t-fast) var(--ease);
}

/* v2.30.31: 密码临近过期警告与会员提示框保持同样布局（上下并排）避免 UI 错位 */
.password-warn-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff3cd, #ffe69c);
    color: #856404;
    border: 1px solid #ffe69c;
}
.password-warn-banner-text { flex: 1; }
.password-warn-banner-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.password-warn-banner-desc { font-size: 13px; opacity: 0.85; }
.password-warn-banner-action {
    background: #856404;
    color: #fff3cd;
    padding: 8px 16px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--t-fast) var(--ease);
}
.password-warn-banner-action:hover { background: #6c5204; }

.membership-banner-action:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* ===== Code highlight ===== */
pre.code {
    background: #1d1d1f;
    color: #f5f5f7;
    padding: 16px 20px;
    border-radius: var(--r-md);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0;
}

/* ===== Section ===== */
.section { margin-bottom: 32px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 14px;
    color: var(--c-text-muted);
    margin-top: 2px;
}

/* ===== Form layout ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 720px) {
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
}

.form-section { margin-bottom: 24px; }
.form-section-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-muted);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border-soft);
}

/* ===== Photo grid ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.photo-card { background: var(--c-bg-soft); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.photo-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f7;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    overflow: hidden;
}
.photo-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.photo-thumb:hover img { transform: scale(1.03); transition: transform 0.2s; }
.photo-badges {
    position: absolute; bottom: 4px; left: 4px; right: 4px;
    display: flex; gap: 4px; flex-wrap: wrap; pointer-events: none;
}
.photo-badges-top {
    position: absolute; top: 4px; left: 4px;
    display: flex; gap: 4px; pointer-events: none;
}
.photo-thumb .badge { background: rgba(0,0,0,0.65); color: #fff; padding: 2px 6px; border-radius: 8px; font-size: 10px; font-weight: 500; }
.badge-uses { background: rgba(255,59,48,0.85) !important; }
.badge-last { background: rgba(0,113,227,0.85) !important; }
.badge-id { background: rgba(134,134,139,0.85) !important; font-weight: 500; font-size: 9px; padding: 1px 5px; }
.photo-info { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.photo-name { font-size: 12px; color: var(--c-text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-meta { font-size: 10px; color: #86868b; }
.photo-actions { display: flex; gap: 4px; margin-top: 4px; }
.btn-mini { padding: 2px 6px; font-size: 11px; }

/* ===== Photo group (分类折叠) ===== */
.photo-group { border: 1px solid #e5e5ea; border-radius: 10px; margin-bottom: 12px; background: #fff; }
.photo-group > summary {
    list-style: none; cursor: pointer; padding: 12px 16px;
    user-select: none;
}
.photo-group > summary::-webkit-details-marker { display: none; }
.photo-group > summary:hover { background: #f5f5f7; border-radius: 10px; }
.photo-group-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative; padding-right: 200px; min-height: 36px; }
.photo-group-summary .caret { display: inline-block; transition: transform 0.2s; color: #86868b; }
.photo-group[open] > summary .caret { transform: rotate(90deg); }
.photo-group-summary .group-name { font-weight: 600; color: #1d1d1f; font-size: 14px; }
.photo-group-summary .group-account { color: #86868b; font-size: 12px; }
.photo-group-summary .group-count { background: #f5f5f7; color: #1d1d1f; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 500; }
.photo-group-summary .group-meta { color: #6e6e73; font-size: 12px; }
.photo-group-summary .group-coord { color: #86868b; font-size: 11px; font-family: 'SF Mono', Menlo, monospace; }
/* v2.31.81: group-actions 右上角绝对定位 (user 反馈 v2.31.80 居中错, 改右上角)
   之前 v2.31.80 居中 + width:100% 单独一行
   之前 v2.31.72 margin-left:auto 推右但 flex-wrap 换行
   这次用 absolute, summary flex 不受 group-actions 影响, 始终在右上角 */
.photo-group-summary .group-actions { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.photo-group-summary .group-actions form { display: flex; margin: 0; }
/* v2.32.23: 折叠栏按钮紧凑 + 等高 (固定 padding/line-height/box-sizing, 不管按钮文字长短都是同一高度同一宽度区间) */
.photo-group-summary .group-actions .btn {
    white-space: nowrap;
    min-width: 88px;
    max-width: 110px;
    padding: 4px 10px !important;
    font-size: 12px !important;
    line-height: 18px !important;
    box-sizing: border-box !important;
    height: 28px !important;
    justify-content: center;
    align-items: center;
}

/* v2.32.22: 折叠栏「批量改关联」换底色 (蓝) + 「全部删除」宽度跟随「批量改关联」 */
.photo-group-summary .group-actions .btn-batch-reassign { background: #0071e3; color: #fff; }
.photo-group-summary .group-actions .btn-batch-reassign:hover { background: #0064cc; color: #fff; }
.photo-group-summary .group-actions .btn-batch-delete { background: #fff; color: #d70015; border: 1px solid #d70015; }
.photo-group-summary .group-actions .btn-batch-delete:hover { background: #fff5f5; color: #b30000; }

/* v2.32.23: 照片卡片里的「改关联」按钮 - 跟「删除」按钮等高, 缩小 (用 btn-mini 同样 padding/height) */
.photo-actions .btn-link-reassign { background: #0071e3; color: #fff; }
.photo-actions .btn-link-reassign:hover { background: #0064cc; color: #fff; }
.photo-actions .btn { box-sizing: border-box; }
.photo-group[open] > summary { border-bottom: 1px solid #e5e5ea; border-radius: 10px 10px 0 0; }
.photo-group[open] > .photo-grid { padding: 12px; }

/* v2.31.83: 照片存储明细进度条 (按用户) */
.storage-bar { display: flex; border-radius: 6px; overflow: hidden; height: 14px; background: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04); }
.storage-bar > div { transition: width 0.4s ease; }
.storage-bar > div:hover { filter: brightness(0.92); }

/* v2.31.87+: 签到进行中 modal (居中 + 虚化背景 + 宽度跟 SignConfig 卡片一致 ~380px) */
/* v2.32.00: 弹**窗**动**画** — 弹**出** scale+translateY, 关**闭** fade+scale */
.sign-modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 9998; display: none; align-items: center; justify-content: center; transition: background 250ms ease-out, backdrop-filter 250ms ease-out; }
.sign-modal-mask.open { display: flex; background: rgba(0,0,0,0.4); }
.sign-modal-mask.closing { display: flex; background: rgba(0,0,0,0); }
.sign-modal-card { background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); width: 500px; max-width: 90vw; max-height: 80vh; overflow-y: auto; padding: 32px 40px 32px 32px; z-index: 9999; transform: scale(0.92) translateY(20px); opacity: 0; transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease-out; }
.sign-modal-mask.open .sign-modal-card { transform: scale(1) translateY(0); opacity: 1; }
.sign-modal-mask.closing .sign-modal-card { transform: scale(0.95) translateY(0); opacity: 0; transition: transform 200ms ease-in, opacity 200ms ease-in; }

/* v2.32.00: step 逐**项**淡**入**动**画** (stagger delay) */
.sign-step-item { animation: stepIn 300ms ease-out backwards; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* v2.32.70n: 弹窗动画 - fade + scale (苹果风格) */
@keyframes modalBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalContentIn { from { opacity: 0; transform: scale(0.92) translateY(-8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes modalBackdropOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes modalContentOut { from { opacity: 1; transform: scale(1) translateY(0); } to { opacity: 0; transform: scale(0.95) translateY(-4px); } }

/* v2.32.70n: 状态提示框的动效 (成功 pop / 失败 shake) */
@keyframes statusPop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes statusShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* v2.32.70n: 旋转 spinner (按钮加载中) */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}
/* v2.31.90: 滚动条样式 - 细 + 不挡内容 (右下角不再像直角) */
.sign-modal-card::-webkit-scrollbar { width: 6px; }
.sign-modal-card::-webkit-scrollbar-track { background: transparent; }
.sign-modal-card::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.sign-modal-card::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
.sign-modal-header { padding-bottom: 20px; border-bottom: 1px solid #f0f0f3; margin-bottom: 16px; }
.sign-modal-title { font-size: 18px; font-weight: 600; color: #1d1d1f; margin-bottom: 4px; }
.sign-modal-account { font-size: 13px; color: #6e6e73; }
.sign-modal-body { padding: 0; }
.sign-modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding-top: 16px; margin-top: 16px; border-top: 1px solid #f0f0f3; }

/* ===== Photo modal ===== */
.photo-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    /* v2.32.70n: 默认隐藏 + 透明 (动画期间不触发点击) */
    opacity: 0; visibility: hidden;
    transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}
.photo-modal.is-open {
    opacity: 1; visibility: visible;
    transition: opacity 0.18s ease, visibility 0s linear 0s;
}
.photo-modal.is-closing {
    opacity: 0; visibility: visible;
    transition: opacity 0.16s ease, visibility 0s linear 0s;
}
.photo-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.photo-modal-content {
    position: relative; z-index: 1;
    background: #fff; border-radius: 16px; max-width: 480px; width: 92%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden;
    display: flex; flex-direction: column;
    /* v2.32.70n: 入场动画初始状态 */
    opacity: 0; transform: scale(0.92) translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.photo-modal.is-open .photo-modal-content {
    opacity: 1; transform: scale(1) translateY(0);
}
.photo-modal.is-closing .photo-modal-content {
    opacity: 0; transform: scale(0.95) translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.photo-modal-large { max-width: 720px; }
.photo-modal-header {
    padding: 16px 20px; border-bottom: 1px solid #e5e5ea;
    display: flex; align-items: center; justify-content: space-between;
}
.photo-modal-title { font-size: 15px; font-weight: 600; }
.photo-modal-close { background: none; border: 0; font-size: 24px; color: #86868b; cursor: pointer; padding: 0 4px; line-height: 1; }

/* v2.32.70q: 照片库弹窗响应式 (手机 fallback 2 列) */
@media (max-width: 640px) {
    #photoLibraryGrid { grid-template-columns: repeat(2, 1fr) !important; }
}
.photo-modal-content form { padding: 20px; }
.photo-modal-body { padding: 16px 20px; max-height: 75vh; overflow-y: auto; }
/* v2.32.26: 弹窗原图居中并缩小 (用户反馈还是太大, 缩到 max-height 30vh 跟苹果相册风格一致) */
/* v2.32.70n: 加 position:relative 让右上角下载按钮能绝对定位 */
.photo-modal-photo {
    position: relative;
    text-align: center;
    margin-bottom: 12px;
    display: flex; align-items: center; justify-content: center;
    min-height: 120px;
    background: #f5f5f7;
    border-radius: 10px;
    overflow: hidden;
}
.photo-modal-photo img { max-width: 380px; max-height: 30vh; object-fit: contain; margin: 0 auto; }

/* v2.32.70n: 照片弹窗右上角下载按钮 (原图下载, 不压缩) */
.photo-modal-download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1d1d1f;
    z-index: 5;
    transition: all 0.18s ease;
    padding: 0;
}
.photo-modal-download-btn:hover {
    background: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}
.photo-modal-download-btn:active { transform: scale(0.96); }

/* v2.32.70n: 导出状态提示框 (无动画, 仅占满宽度) */
.export-status {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.photo-modal-stats { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 12px; }
.pm-stat { display: flex; flex-direction: column; gap: 2px; }
.pm-stat-label { font-size: 11px; color: #86868b; }
.pm-stat-value { font-size: 16px; font-weight: 600; color: #1d1d1f; }
.photo-modal-logs h4 { font-size: 13px; color: #1d1d1f; margin-bottom: 8px; }
.pm-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pm-table th { text-align: left; padding: 6px 8px; background: #f5f5f7; color: #6e6e73; font-weight: 500; }
.pm-table td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; }
.photo-modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; padding: 16px 20px; border-top: 1px solid #f0f0f0; }

/* ===== Log page ===== */
.log-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.log-stat { padding: 16px; background: #f5f5f7; border-radius: 10px; text-align: center; }
.log-stat-value { font-size: 24px; font-weight: 700; color: #0071e3; }
.log-stat-label { font-size: 12px; color: #86868b; margin-top: 4px; }
.log-table-wrap { overflow-x: auto; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th { text-align: left; padding: 10px 12px; background: #f5f5f7; color: #6e6e73; font-weight: 500; border-bottom: 1px solid #e5e5ea; }
.log-table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.log-photo-cell { display: flex; align-items: center; gap: 10px; }
.log-photo-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #f5f5f7; }
.log-photo-name { font-size: 12px; color: #1d1d1f; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-photo-link { font-size: 11px; color: #0071e3; text-decoration: none; }
.log-source { font-size: 11px; color: #6e6e73; background: #f5f5f7; padding: 2px 6px; border-radius: 8px; }
.log-link { color: #0071e3; text-decoration: none; }
.mt-2 { margin-top: 8px; }

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border-soft);
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
}

.photo-item:hover { transform: scale(1.02); box-shadow: var(--shadow-2); }

.photo-item img { width: 100%; height: 100%; object-fit: cover; }

.photo-item-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    font-size: 11px;
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
}

.photo-item:hover .photo-item-meta { opacity: 1; }

.photo-item-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: 0;
    opacity: 0;
    transition: all var(--t-fast) var(--ease);
}

.photo-item:hover .photo-item-delete { opacity: 1; }
.photo-item-delete:hover { background: var(--c-danger); }

/* ===== Upload area ===== */
.upload-area {
    border: 2px dashed var(--c-border);
    border-radius: var(--r-lg);
    padding: 40px 24px;
    text-align: center;
    color: var(--c-text-muted);
    transition: all var(--t-base) var(--ease);
    cursor: pointer;
    background: var(--c-bg-soft);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
    color: var(--c-primary);
}

.upload-area-icon { font-size: 32px; margin-bottom: 8px; }
.upload-area-title { font-size: 15px; font-weight: 500; color: var(--c-text-soft); margin-bottom: 4px; }
.upload-area-desc { font-size: 12px; }

/* ===== Pricing cards ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.pricing-card {
    background: var(--c-bg);
    border: 2px solid var(--c-border-soft);
    border-radius: var(--r-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--t-base) var(--ease);
    cursor: pointer;
    position: relative;
}

.pricing-card:hover { border-color: var(--c-primary); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pricing-card.recommended { border-color: var(--c-primary); background: linear-gradient(180deg, var(--c-primary-soft), var(--c-bg)); }

.pricing-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-primary);
    color: white;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.pricing-card-name { font-size: 15px; color: var(--c-text-muted); margin-bottom: 8px; font-weight: 500; }
.pricing-card-price { font-size: 36px; font-weight: 700; color: var(--c-text); line-height: 1.1; }
.pricing-card-price-unit { font-size: 14px; color: var(--c-text-muted); font-weight: 400; }
.pricing-card-desc { font-size: 12px; color: var(--c-text-muted); margin-top: 8px; }

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--c-border-soft);
}

.timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-bg);
    border: 2px solid var(--c-primary);
}

.timeline-item.success::before { background: var(--c-success); border-color: var(--c-success); }
.timeline-item.fail::before { background: var(--c-danger); border-color: var(--c-danger); }
.timeline-item.skipped::before { background: var(--c-warning); border-color: var(--c-warning); }

.timeline-time { font-size: 12px; color: var(--c-text-muted); margin-bottom: 2px; }
.timeline-title { font-size: 14px; font-weight: 500; color: var(--c-text); margin-bottom: 2px; }
.timeline-desc { font-size: 13px; color: var(--c-text-soft); }

/* ===== Modal ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
}

.modal-backdrop.show { display: flex; }

.modal {
    background: var(--c-bg);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-3);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    animation: modalIn var(--t-base) var(--ease-out);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 17px; font-weight: 600; }

.modal-close {
    background: none;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    color: var(--c-text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { background: var(--c-bg-soft); color: var(--c-text); }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--c-border-soft);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ===== QR / payment area ===== */
.qr-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.qr-card {
    text-align: center;
    padding: 16px;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--r-md);
    background: var(--c-bg);
    min-width: 180px;
}

.qr-card-title { font-size: 13px; color: var(--c-text-muted); margin-bottom: 8px; font-weight: 500; }
.qr-card img { width: 160px; height: 160px; border-radius: var(--r-sm); }

/* ===== Loading bar (top progress) ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: 1000;
    pointer-events: none;
}

.progress-bar.active::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 30%;
    background: var(--c-primary);
    animation: progressMove 1.2s ease-in-out infinite;
}

@keyframes progressMove {
    0% { left: -30%; }
    100% { left: 100%; }
}

/* ========== 导航下拉菜单 ========== */
.app-nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 200;
}
.app-nav-dropdown-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--c-text, #1d1d1f);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s;
}
.app-nav-dropdown-toggle:hover {
  background: var(--c-bg-soft, rgba(0,0,0,0.04));
}
.app-nav-dropdown.open > .app-nav-dropdown-toggle {
  background: var(--c-bg-soft, rgba(0,113,227,0.08));
  color: var(--c-accent, #0071e3);
}
.app-nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--c-border, #e5e5ea);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px;
  z-index: 100;
}
.app-nav-dropdown.open .app-nav-dropdown-menu {
  display: block;
}
.app-nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--c-text, #1d1d1f);
  text-decoration: none;
  transition: background .12s;
}
.app-nav-dropdown-item:hover {
  background: var(--c-bg-soft, rgba(0,113,227,0.08));
  color: var(--c-accent, #0071e3);
}

/* 点击外部关闭下拉 */
.app-nav-dropdown { position: relative; }

/* ========== 系统配置：可折叠分组 ========== */
.config-group {
    overflow: hidden;
    border: 1px solid var(--c-border, #e5e5ea);
}
.config-group-header {
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--c-bg-soft, rgba(0,0,0,0.02));
    border-bottom: 1px solid transparent;
    transition: background .2s, border-color .2s;
}
.config-group-header:hover {
    background: var(--c-primary-soft, rgba(0,113,227,0.06));
}
.config-group.open .config-group-header {
    border-bottom-color: var(--c-border, #e5e5ea);
    background: var(--c-bg-soft, rgba(0,0,0,0.02));
}
.config-group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text, #1d1d1f);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.config-group-meta {
    font-size: 12px;
    color: var(--c-text-muted, #86868b);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
/* 折叠图标：箭头平滑旋转 */
.config-toggle-icon {
    display: inline-block;
    width: 16px; height: 16px;
    transition: transform .3s var(--ease-out);
    transform: rotate(0deg);
    color: var(--c-primary, #0071e3);
}
.config-group.open .config-toggle-icon { transform: rotate(90deg); }
/* 折叠主体：高度过渡 */
.config-group-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s var(--ease-out), opacity .25s ease, padding .35s var(--ease-out);
}
.config-group.open .config-group-body {
    max-height: 2000px;
    opacity: 1;
    padding: 20px;
}
/* 计数 badge */
.config-group-count {
    background: var(--c-bg-soft, rgba(0,0,0,0.06));
    color: var(--c-text-muted, #86868b);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 500;
}

/* ========== 头部用户卡片下拉（参考 PMS 样式） ========== */
.app-user-dropdown {
    position: relative;
    z-index: 250;
}
.app-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 20px;
    transition: background .15s;
    color: var(--c-text, #1d1d1f);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}
.app-user-toggle:hover {
    background: var(--c-bg-soft, rgba(0,0,0,0.04));
}
.app-user-dropdown.open > .app-user-toggle {
    background: var(--c-bg-soft, rgba(0,0,0,0.04));
}
.app-user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB07A, #FF6B6B);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.5px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.app-user-caret {
    color: var(--c-text-muted, #86868b);
    transition: transform .2s var(--ease-out);
}
.app-user-dropdown.open .app-user-caret {
    transform: rotate(180deg);
}

.app-user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: #fff;
    border: 1px solid var(--c-border, #e5e5ea);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    padding: 16px 8px 8px;
    z-index: 200;
    display: none;
    animation: appUserMenuIn .2s var(--ease-out);
}
.app-user-dropdown.open .app-user-menu {
    display: block;
}
@keyframes appUserMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.app-user-menu-header {
    text-align: center;
    padding: 4px 12px 8px;
}
.app-user-menu-avatar {
    width: 56px; height: 56px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB07A, #FF6B6B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.app-user-menu-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-text, #1d1d1f);
    margin-bottom: 8px;
}
.app-user-menu-meta {
    font-size: 12px;
    color: var(--c-text-muted, #86868b);
    line-height: 1.8;
}
.app-user-menu-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.app-user-menu-line svg {
    color: var(--c-text-muted, #86868b);
    flex-shrink: 0;
}
.app-user-menu-divider {
    height: 1px;
    background: var(--c-border, #e5e5ea);
    margin: 10px 4px;
}
.app-user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--c-text, #1d1d1f);
    text-decoration: none;
    transition: background .12s;
}
.app-user-menu-item:hover {
    background: var(--c-bg-soft, rgba(0,0,0,0.04));
}
.app-user-menu-item svg {
    color: var(--c-text-muted, #86868b);
}
.app-user-menu-item-danger {
    color: #FF3B30;
}
.app-user-menu-item-danger svg {
    color: #FF3B30;
}
.app-user-menu-item-danger:hover {
    background: rgba(255, 59, 48, 0.08);
}

/* ========== 全站水印 ========== */
.app-watermark {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 100px;
    overflow: hidden;
    transform: rotate(var(--wm-angle, -20deg)) scale(1.4);
    transform-origin: center center;
    user-select: none;
}
.app-watermark-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 0 transparent;
    /* v2.32.70et: 不设 font-size / opacity, 继承父级 (.app-watermark 上的 inline style)
       70es 错加了 font-size: 12px + opacity: 0.08, 把用户配的颜色/大小覆盖成几乎不可见 */
}

/* v2.32.70es: 移动端水印自适应, 减少格子 + 缩小 row + 降 scale, 防密集挤压
   v2.32.70et: 不再设 cell font-size, 只改 grid 布局 (rotate/scale 在容器上) */
@media (max-width: 768px) {
    .app-watermark {
        grid-template-columns: repeat(3, 1fr);  /* 6 列 → 3 列, 一半密度 */
        grid-auto-rows: 70px;                    /* 100px → 70px */
        transform: rotate(var(--wm-angle, -20deg)) scale(1.0);  /* 1.4 → 1.0 */
    }
    .app-watermark-cell {
        letter-spacing: 0;
    }
}
/* 主内容在水印之上；header 必须高于 main，否则下拉会被页面浮动元素遮挡 */
.app-header { position: relative; z-index: 100; }
.app-main, .app-footer { position: relative; z-index: 1; }
.app-watermark { z-index: 2; pointer-events: none; }

/* ========== 系统配置：左侧 Tab + 右侧内容 ========== */
.config-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}
.config-tabs {
    position: sticky;
    top: 70px;
    background: var(--c-bg-card, #fff);
    border: 1px solid var(--c-border, #e5e5ea);
    border-radius: 14px;
    padding: 8px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    align-self: flex-start;
}
.config-tab-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.config-tab-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--c-text, #1d1d1f);
    transition: background .15s, color .15s;
    cursor: pointer;
}
.config-tab-link:hover {
    background: var(--c-bg-soft, rgba(0,0,0,0.04));
}
.config-tab-item.active .config-tab-link {
    background: var(--c-primary, #0071e3);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}
.config-tab-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.config-tab-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.config-tab-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}
.config-tab-desc {
    font-size: 11px;
    opacity: .75;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.config-tab-count {
    background: var(--c-bg-soft, rgba(0,0,0,0.06));
    color: var(--c-text-muted, #86868b);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}
.config-tab-item.active .config-tab-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.config-content {
    min-width: 0;
}
.config-pane {
    animation: paneFadeIn .25s var(--ease-out);
}
@keyframes paneFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.config-pane-header {
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--c-border, #e5e5ea);
    margin-bottom: 16px;
}
.config-pane-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text, #1d1d1f);
}
.config-pane-icon {
    font-size: 20px;
}
.config-pane-subtitle {
    font-size: 12px;
    color: var(--c-text-muted, #86868b);
    margin-top: 4px;
}
.config-pane-body {
    padding: 0 24px 20px;
}
.config-pane-body .form-row:last-child { margin-bottom: 0; }
.config-save-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
}
.config-save-hint {
    font-size: 12px;
    color: var(--c-text-muted, #86868b);
}

@media (max-width: 768px) {
    .config-layout { grid-template-columns: 1fr; }
    .config-tabs { position: static; max-height: none; }
    .config-tab-list { flex-direction: row; flex-wrap: wrap; }
    .config-tab-link { padding: 8px 12px; }
    .config-tab-desc { display: none; }
}

/* ========== 认证页：错开淡入（参考 PMS） ========== */
@keyframes authItemIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-card .auth-brand,
.auth-card .alert,
.auth-form .form-row,
.auth-form .form-grid,
.auth-form .btn-primary,
.auth-divider,
.auth-form-footer,
.auth-copyright {
    animation: authItemIn .15s var(--ease-out) both;
}
.auth-card .auth-brand         { animation-delay: 0.00s; }
.auth-card .alert              { animation-delay: 0.02s; }
.auth-form .form-row:nth-child(1) { animation-delay: 0.04s; }
.auth-form .form-row:nth-child(2) { animation-delay: 0.06s; }
.auth-form .form-row:nth-child(3) { animation-delay: 0.08s; }
.auth-form .form-row:nth-child(4) { animation-delay: 0.10s; }
.auth-form .form-row:nth-child(5) { animation-delay: 0.12s; }
.auth-form .form-row:nth-child(6) { animation-delay: 0.40s; }
.auth-form .form-row:nth-child(7) { animation-delay: 0.46s; }
.auth-form .btn-primary        { animation-delay: 0.55s; }
.auth-divider                  { animation-delay: 0.62s; }
.auth-form-footer              { animation-delay: 0.68s; }
.auth-copyright                { animation-delay: 0.74s; }

/* ========== 头像（支持 img 模式） ========== */
.app-user-avatar.app-user-avatar-img,
.app-user-menu-avatar.app-user-avatar-img {
    background: none;
    padding: 0;
    border: 0;
    color: transparent;
    object-fit: cover;
}

/* ========== 用户卡片：会员信息行 ========== */
.app-user-menu-membership {
    margin: 10px 12px 4px;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--c-bg-soft, rgba(0,0,0,0.03));
    border: 1px solid var(--c-border, #e5e5ea);
}
.app-user-menu-membership.is-member {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.08), rgba(0, 113, 227, 0.08));
    border-color: rgba(52, 199, 89, 0.3);
}
.app-user-menu-membership.not-member {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.08), rgba(255, 59, 48, 0.08));
    border-color: rgba(255, 149, 0, 0.3);
}
.app-user-menu-membership-icon {
    font-size: 16px;
    line-height: 1;
}
.app-user-menu-membership-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}
.app-user-menu-membership-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text, #1d1d1f);
    line-height: 1.5;
    margin: 0;
    padding: 4px 0;
}
.app-user-menu-membership-sub {
    font-size: 11px;
    color: var(--c-text-muted, #86868b);
    line-height: 1.5;
    margin: 0;
    padding: 4px 0;
}
.app-user-menu-membership-link {
    display: inline-block;
    font-size: 11px;
    color: var(--c-primary, #0071e3);
    text-decoration: none;
    line-height: 1.5;
    margin: 0;
    padding: 4px 0;
}
.app-user-menu-membership-link:hover {
    text-decoration: underline;
}

/* ========== 密码输入框 + 显示按钮 ========== */
.password-row {
    position: relative;
}
.password-row .form-input {
    padding-right: 44px;
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--c-text-muted, #86868b);
    padding: 4px 6px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.password-toggle:hover {
    color: var(--c-text, #1d1d1f);
    background: var(--c-bg-soft, rgba(0,0,0,0.04));
}

/* ========== 登录验证码 ========== */
.captcha-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.captcha-input {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.captcha-img {
    flex-shrink: 0;
    width: auto;
    height: auto;
    cursor: pointer;
    border: 1px solid var(--c-border, #e5e5ea);
    border-radius: var(--r-md, 8px);
    overflow: hidden;
    transition: opacity .15s;
}
.captcha-img:hover {
    opacity: 0.85;
}

/* ========== Profile 头像卡片 ========== */
.profile-avatar-card .profile-avatar-preview {
    width: 96px; height: 96px;
    margin: 12px auto 0;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #FFB07A, #FF6B6B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
 * 苹果风格开关（替代老 form-switch）
 * ============================================================ */
.apple-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.apple-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.apple-switch-track {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    background: #d1d1d6;
    border-radius: 13px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.apple-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}
.apple-switch input:checked + .apple-switch-track {
    background: #34c759;
}
.apple-switch input:checked + .apple-switch-track::after {
    transform: translateX(18px);
}
.apple-switch input:focus-visible + .apple-switch-track {
    box-shadow: 0 0 0 3px rgba(0,113,227,0.3);
}
.apple-switch-state {
    font-size: 13px;
    color: #86868b;
    min-width: 50px;
}
/* 紧凑型开关（用于卡片头部） */
.apple-switch-sm .apple-switch-track {
    width: 36px;
    height: 22px;
    border-radius: 11px;
}
.apple-switch-sm .apple-switch-track::after {
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
}
.apple-switch-sm input:checked + .apple-switch-track::after {
    transform: translateX(14px);
}

/* ============================================================
 * 签到配置卡片（一行两个 + 紧凑）
 * ============================================================ */
.signcfg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
}
@media (max-width: 900px) {
    .signcfg-grid { grid-template-columns: 1fr; }
}
.signcfg-card {
    padding: 16px 18px;
}
.signcfg-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f3;
}
.signcfg-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}
.signcfg-card-icon {
    font-size: 18px;
}
.signcfg-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 12px;
}
.signcfg-card-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.signcfg-card-label {
    font-size: 11px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.signcfg-card-row .badge {
    align-self: flex-start;
}
.signcfg-card-actions {
    display: flex;
    gap: 8px;
}

/* ============================================================
 * v2.32.37: 定时任务行卡片化 (iOS Settings 详情页风格)
 * 不用 <table>, 每条 schedule 1 张垂直卡片, label/value 横排
 * v2.32.39: 改 grid 一行两个, 卡片字号优化, 签到配置左右排列 + 帐号括起来
 * ============================================================ */
.schedule-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 900px) {
    .schedule-list { grid-template-columns: 1fr; }
}
.schedule-card {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.2s;
}
.schedule-card-off {
    opacity: 0.55;
}
.schedule-card-no-cfg {
    background: #fafafa;
}
.schedule-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.schedule-card-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #1d1d1f;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.schedule-type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-once { background: #0071e3; }
.dot-weekly { background: #af52de; }
.dot-holiday { background: #ff9500; }

.schedule-card-time {
    text-align: left;
    padding: 2px 0 8px;
    border-bottom: 1px solid #f0f0f3;
}
.schedule-card-time-main {
    font-size: 33px;
    font-weight: 600;
    color: #1d1d1f;
    letter-spacing: -0.5px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.schedule-card-time-sub {
    font-size: 13px;
    color: #86868b;
    margin-top: 4px;
}

.schedule-card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.schedule-card-info-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
}
.schedule-card-info-label {
    font-size: 13px;
    color: #515154;
    font-weight: 500;
}
.schedule-card-info-value {
    font-size: 16px;
    color: #1d1d1f;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}
.schedule-card-info-main {
    font-weight: 500;
    word-break: break-all;
}
.schedule-card-info-sub {
    font-size: 13px;
    color: #86868b;
    font-family: var(--font-mono, ui-monospace, "SF Mono", monospace);
}

.schedule-card-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f3;
}
.schedule-card-status-text {
    font-size: 12px;
    color: #6e6e73;
    flex: 1;
}
.schedule-card-actions {
    display: flex;
    gap: 6px;
}

/* ============================================================
 * 密码输入框传统样式
 * ============================================================ */
.input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-toggle .form-input {
    padding-right: 40px;
}
.input-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #86868b;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.input-toggle:hover {
    color: #0071e3;
    background: rgba(0,113,227,0.08);
}

/* ============================================================
 * 头像弹窗：会员信息简约化
 * ============================================================ */
.app-user-menu-membership {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-top: 10px;
    background: rgba(0,0,0,0.02);
    border-radius: 10px;
}
.app-user-menu-membership.is-member {
    background: linear-gradient(135deg, rgba(52,199,89,0.08), rgba(0,113,227,0.08));
}
.app-user-menu-membership.not-member {
    background: rgba(0,0,0,0.02);
}
.app-user-menu-membership-icon {
    font-size: 20px;
    line-height: 1;
}
.app-user-menu-membership-text {
    flex: 1;
    min-width: 0;
}
.app-user-menu-membership-title {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 2px;
}
.app-user-menu-membership-sub {
    font-size: 11px;
    color: #86868b;
}
.app-user-menu-membership-link {
    font-size: 12px;
    color: #0071e3;
    text-decoration: none;
}
.app-user-menu-membership-link:hover {
    text-decoration: underline;
}

/* ============================================================
 * 节假日管理状态栏
 * ============================================================ */
.holiday-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 4px;
}
.holiday-status-item {
    text-align: center;
}
.holiday-status-label {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 4px;
}
.holiday-status-value {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}
@media (max-width: 600px) {
    .holiday-status { grid-template-columns: 1fr; }
}

/* ============================================================
 * 节假日管理 (chip 风格 + 配置行)
 * ============================================================ */
.holiday-config-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .holiday-config-row { grid-template-columns: 1fr; }
}
.holiday-config-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f5f5f7;
    border: 1px solid #e5e5ea;
}
.holiday-config-label-sm {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}
.holiday-config-hint-sm {
    font-size: 11px;
    color: #86868b;
    margin-bottom: 8px;
}
.holiday-api-row {
    margin: 4px 0 18px;
}
.holiday-api-row .apple-switch {
    font-size: 13px;
    color: #1d1d1f;
}
.holiday-cache-status {
    font-size: 13px;
    color: #6e6e73;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 12px;
}
.holiday-cache-status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.holiday-cache-status-label {
    color: #86868b;
}
.holiday-cache-status-value {
    color: #1d1d1f;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.holiday-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.holiday-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    background: #f5f5f7;
    color: #1d1d1f;
    border: 1px solid #e5e5ea;
    line-height: 1.4;
    white-space: nowrap;
}
.holiday-chip.workday-chip {
    background: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}
.holiday-chip.restday-chip {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}
.info-box {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(0,113,227,0.05);
    border: 1px solid rgba(0,113,227,0.15);
    border-radius: 8px;
    font-size: 13px;
    color: #1d1d1f;
    line-height: 1.5;
}
.info-box > span {
    font-size: 18px;
    line-height: 1;
}
.info-box p { margin: 0; }

/* ============================================================
 * 邮件通道二选一切换 (Resend / SMTP)
 * ============================================================ */
.email-provider-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 8px 0 16px;
}
@media (max-width: 600px) {
    .email-provider-toggle { grid-template-columns: 1fr; }
}
.email-provider-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 16px;
    background: #fafafa;
    border: 2px solid #e5e5ea;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.email-provider-btn:hover {
    border-color: #c0c0c5;
    background: #f5f5f7;
}
.email-provider-btn.active {
    background: rgba(0,113,227,0.06);
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}
.email-provider-icon {
    font-size: 28px;
    line-height: 1;
}
.email-provider-name {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}
.email-provider-desc {
    font-size: 12px;
    color: #86868b;
}
.email-provider-panel {
    padding: 4px 0 0;
}
.divider {
    height: 1px;
    background: #e5e5ea;
    margin: 20px 0;
}
.section-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 12px;
}

/* ============================================================
 * 认证页动画完全去掉（简约）
 * ============================================================ */
.auth-card .auth-brand,
.auth-card .alert,
.auth-form .form-row,
.auth-form .form-grid,
.auth-form .btn-primary,
.auth-divider,
.auth-form-footer,
.auth-copyright {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
 * Modal 弹出位置（不被头底遮挡）
 * ============================================================ */
.modal-backdrop {
    z-index: 9000 !important;
}
.modal-backdrop .modal {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;
}
.app-header { z-index: 100 !important; }
.app-footer { z-index: 1 !important; position: relative; }

/* ============================================================
 * 签到配置卡片：签到位置 + 全宽行
 * ============================================================ */
.signcfg-card-row-full {
    grid-column: 1 / -1;
    border-top: 1px dashed #e5e5ea;
    padding-top: 8px;
    margin-top: 4px;
}
.signcfg-card-loc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.signcfg-card-loc-text {
    font-size: 13px;
    color: #1d1d1f;
    word-break: break-all;
}
.signcfg-card-loc-coord {
    font-size: 11px;
    color: #86868b;
    font-family: 'SF Mono', Menlo, monospace;
}

/* ============================================================
 * 头像弹窗：会员信息去掉背景/边框（用横线分隔）
 * ============================================================ */
.app-user-menu-membership {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border-radius: 0;
    border: none;
}
.app-user-menu-membership.is-member,
.app-user-menu-membership.not-member {
    background: transparent !important;
}
.app-user-menu-membership-text {
    flex: 1;
    min-width: 0;
}
.app-user-menu-membership-title {
    font-size: 13px;
    font-weight: 500;
    color: #1d1d1f;
}
.app-user-menu-membership-sub {
    font-size: 11px;
    color: #86868b;
    margin-top: 1px;
}

/* ============================================================
 * 头像弹窗：整体间距缩短
 * ============================================================ */
.app-user-menu {
    padding: 8px !important;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.app-user-menu-header {
    padding: 12px 14px 10px !important;
}
.app-user-menu-meta {
    margin-top: 8px !important;
    gap: 4px !important;
}
.app-user-menu-meta .app-user-menu-line {
    padding: 1px 0 !important;
    font-size: 12px;
    color: #86868b;
}
.app-user-menu-membership {
    margin-top: 10px !important;
    padding-top: 10px !important;
    padding-bottom: 4px !important;
    border-top: 1px solid #f0f0f3 !important;
}
.app-user-menu-divider {
    margin: 4px 0 !important;
    background: #f0f0f3 !important;
}
.app-user-menu-item {
    padding: 9px 12px !important;
    border-radius: 8px;
    font-size: 14px;
    gap: 10px;
}
.app-user-menu-item:hover {
    background: rgba(0,113,227,0.06) !important;
}

/* ============================================================
 * 密码输入框传统样式 (PMS 风格：右侧文字按钮)
 * ============================================================ */
.input-with-toggle .input-toggle {
    font-size: 12px !important;
    color: #86868b !important;
    padding: 4px 8px !important;
    background: transparent !important;
    border-radius: 4px;
    font-family: inherit;
    letter-spacing: 0.5px;
}
.input-with-toggle .input-toggle:hover {
    color: #0071e3 !important;
    background: rgba(0,113,227,0.06) !important;
}

/* ============================================================
 * 定时任务：假日类型色块
 * ============================================================ */
.badge-holiday-workday {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb;
}
.badge-holiday-restday {
    background: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeeba;
}

/* ============================================================
 * 角色中文化显示
 * ============================================================ */
.role-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 法定假日条件文字（无图标/不加粗） */
.holiday-cond-text {
    display: inline-block;
    font-size: 11px;
    font-weight: normal;
    padding: 1px 6px;
    border-radius: 4px;
}
.holiday-cond-work {
    color: #155724;
    background: #d4edda;
}
.holiday-cond-rest {
    color: #721c24;
    background: #f8d7da;
}

/* ============================================================
 * Modal 弹出：屏幕中央，可滚动（不被 header/footer 遮挡）
 * ============================================================ */
.modal-backdrop {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    z-index: 9500 !important;
    display: none;
    overflow-y: auto !important;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    isolation: isolate;
}
.modal-backdrop.show {
    display: block !important;
}
.modal-backdrop .modal {
    position: relative;
    z-index: 9501;
    margin: 80px auto 40px !important;
    max-width: 600px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
}

/* ============================================================
 * Dashboard 专用网格：固定每行高度，避免被邻接高卡片拉伸
 * ============================================================ */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    grid-auto-rows: minmax(76px, 76px);
}
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}
.stat.stat-mini {
    height: 76px;
    box-sizing: border-box;
    padding: 12px 14px;
    gap: 10px;
    overflow: hidden;
}
.stat.stat-mini .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
    flex-shrink: 0;
}
.stat.stat-mini .stat-value {
    font-size: 17px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat.stat-mini .stat-label {
    font-size: 11px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat.stat-mini .stat-value-truncate {
    max-width: 100%;
}
.stat.stat-link {
    cursor: pointer;
    text-decoration: none;
}
.stat.stat-link:hover {
    border-color: var(--c-primary);
    background: var(--c-primary-soft);
}
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.quick-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
}
@media (max-width: 720px) {
    .dash-grid { grid-template-columns: 1fr 1fr; }
    .dash-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
 * 表格：用户管理 / 注册核验码 等长内容不换行
 * ============================================================ */
.table {
    width: 100%;
    table-layout: auto;
}
/* v2.32.70er: 表格容器允许横向滚动, 防操作列被裁 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 880px; }  /* 9 列最小宽度, 不够时横向滚 */

/* v2.32.70er: 操作列按钮容器, flex 布局 + 自动换行, 不再溢出 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-width: 180px;
}
.action-form { display: inline; margin: 0; }
.action-buttons .btn-small {
    padding: 4px 10px;
    font-size: 12px;
    white-space: nowrap;
}
.table th,
.table td {
    white-space: nowrap;
    vertical-align: middle;
}
.table td.text-break,
.table th.text-break {
    white-space: normal;
    word-break: break-all;
}
/* v2.32.36: 严格按 th width 列宽, 避免内容撑开 (仅适用于列宽都明示的表格) */
.table.table-fixed { table-layout: fixed; }
.table.table-fixed th, .table.table-fixed td { overflow: hidden; text-overflow: ellipsis; }
/* v2.32.38: 表格右侧加 16px 空间, 避免操作列贴近 .card 边缘 */
.table.table-fixed th:last-child, .table.table-fixed td:last-child { padding-right: 24px; }
/* v2.32.36: 表格严格按 th width 列宽, 避免内容撑开 — 适用于签到日志/调试日志/审计日志等长内容 */

/* ============================================================
 * Modal 美化 - 大圆角 + 阴影 + 弹性动画
 * ============================================================ */
.modal-backdrop.show {
    display: block !important;
    animation: backdropFade .2s ease;
}
.modal-backdrop .modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: modalSlide .25s cubic-bezier(.2,.9,.3,1.2);
    border: none;
}
.modal-backdrop .modal .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f3;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-backdrop .modal .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}
.modal-backdrop .modal .modal-close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f7;
    border-radius: 50%;
    color: #86868b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}
.modal-backdrop .modal .modal-close:hover {
    background: #e5e5ea;
    color: #1d1d1f;
}
.modal-backdrop .modal .modal-body {
    padding: 20px 24px;
}
.modal-backdrop .modal .modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #f0f0f3;
    background: #fafbfc;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.modal-backdrop .modal .form-row {
    margin-bottom: 14px;
}
.modal-backdrop .modal .form-label {
    font-size: 13px;
    color: #1d1d1f;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}
.modal-backdrop .modal .form-input,
.modal-backdrop .modal .form-select,
.modal-backdrop .modal .form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e5e5ea;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}
.modal-backdrop .modal .form-input:focus,
.modal-backdrop .modal .form-select:focus,
.modal-backdrop .modal .form-textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
@keyframes backdropFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-12px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 设备名：不加粗，字号与其他项一致 */
.signcfg-card-device {
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1f;
}

/* ============================================================
 * Modal 滚动：背景 backdrop 整体可滚、modal 自身最大高度限制且内部可滚
 * ============================================================ */
.modal-backdrop {
    overflow-y: auto !important;
}
.modal-backdrop .modal {
    position: relative;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    margin: 30px auto 30px !important;
}
.modal-backdrop .modal .modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.modal-backdrop .modal .modal-header,
.modal-backdrop .modal .modal-footer {
    flex-shrink: 0;
}

/* ===== 签到日志表格: 消息列过长处理 ===== */
.cell-msg {
    max-width: 460px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-all;
}
.cell-msg:hover {
    white-space: normal;
    word-break: break-all;
    background: #f5f5f7;
    cursor: text;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
