/* =====================================================================
   全局设计令牌（沿用 #005767 华师绿渐变主题）
   ===================================================================== */
:root {
    --primary:        #005767;
    --primary-deep:   #00333d;
    --primary-light:  #0a8d9d;
    --primary-soft:   #2ab5c4;
    --primary-tint:   #e6f4f6;
    --primary-border: #b3dfe5;

    --text-1: #1f2933;
    --text-2: #4a5568;
    --text-3: #8492a6;
    --bg:     #f5f8fa;
    --card:   rgba(255, 255, 255, 0.96);

    --success: #2f9e57;
    --warning: #d97706;
    --danger:  #d64545;

    --shadow-card: 0 20px 60px rgba(0, 51, 61, 0.35);
    --shadow-btn:  0 4px 14px rgba(0, 87, 103, 0.35);

    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
                 "Segoe UI", Roboto, sans-serif;
    color: var(--text-1);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font-family: inherit;
}

/* =====================================================================
   登录页：渐变背景 + 装饰光晕 + 网格底纹
   ===================================================================== */
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #00333d 0%, #005767 50%, #0a8d9d 100%);
    position: relative;
    overflow: hidden;
}

.auth-shell::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

.auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.auth-glow.g1 { top: -120px; right: -120px; width: 320px; height: 320px; background: rgba(42,181,196,0.32); }
.auth-glow.g2 { bottom: -100px; left: -100px; width: 380px; height: 380px; background: rgba(0,87,103,0.45); }
.auth-glow.g3 { top: 50%; left: 50%; transform: translate(-50%,-50%); width: 520px; height: 520px; background: rgba(10,141,157,0.18); }

.auth-sketch {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    max-width: 1800px;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    /* 左右两侧渐隐，消除硬边分界 */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    background: var(--card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 36px 32px;
    animation: fadeUp .5s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-logo {
    width: 88px; height: 88px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: white;
    padding: 6px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px rgba(0,51,61,0.4), 0 0 0 4px rgba(255,255,255,0.15);
    overflow: hidden;
}
.auth-logo-img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
}

/* 副标题已移除，标题底部留白顶上来（原来靠 .auth-sub 撑开 22px） */
.auth-title { text-align: center; margin: 0 0 22px; font-size: 22px; font-weight: 700; color: var(--primary); }
.auth-sub   { text-align: center; margin: 0 0 22px; font-size: 13px; color: var(--text-3); }

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    background: #f1f5f7;
    border-radius: 10px;
    padding: 4px;
}
.auth-tab {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-2);
    transition: all .2s;
    user-select: none;
}
.auth-tab.active {
    background: white;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,87,103,0.12);
}

.field {
    position: relative;
    margin-bottom: 14px;
}
.field-icon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
    z-index: 1;
}
.field input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 42px;
    border: 1px solid #d6e3e8;
    border-radius: 8px;
    background: #f8fbfc;
    font-size: 14px;
    outline: none;
    transition: all .15s;
}
.field input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0,87,103,0.12);
}

.btn-primary {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    box-shadow: var(--shadow-btn);
    transition: transform .12s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,87,103,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-hint {
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--primary-tint);
    border: 1px solid var(--primary-border);
    font-size: 12px;
    color: var(--primary);
    text-align: center;
    line-height: 1.6;
}
.auth-hint code {
    font-family: ui-monospace, Menlo, monospace;
    background: white;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--primary-border);
}

.auth-footer {
    position: absolute;
    bottom: 18px;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    z-index: 1;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    animation: fadeUp .25s ease;
}
.alert-error   { background: #fff1f0; color: var(--danger);  border: 1px solid #ffd6d6; }
.alert-success { background: #ecfdf5; color: var(--success); border: 1px solid #bbf7d0; }

/* =====================================================================
   顶部导航栏（用户端/管理端共用）
   ===================================================================== */
.topbar {
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex; align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 12px rgba(0,87,103,0.18);
    position: sticky; top: 0; z-index: 50;
}
.topbar .brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.topbar .brand-logo {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: white;
    padding: 2px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.topbar .spacer { flex: 1; }
.topbar .user {
    display: flex; align-items: baseline; gap: 4px;
    margin-right: 14px;
    font-size: 14px; opacity: 0.95;
}
.topbar .user small { font-size: 12px; opacity: 0.85; }
.topbar .user strong {
    font-size: 18px; font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #e0f3f5 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.topbar button.logout {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.topbar button.logout:hover { background: rgba(255,255,255,0.25); }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 18px 0 12px;
    display: flex; align-items: center; gap: 8px;
}
.section-title::before {
    content: '';
    width: 4px; height: 18px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

/* =====================================================================
   时段卡片网格
   ===================================================================== */
.day-group {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,51,61,0.05);
}
.day-label {
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.day-label .pill {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--primary-tint);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 500;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

/* 2026-09-24 改：时段卡对齐小程序——白卡 + 圆角 14px + 浅阴影，
   「剩 N 台」+ 器材圆点（一个点一台，填色=已约走）+「已约 N」徽章 */
.slot {
    position: relative;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 60, 70, 0.06);
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
    display: flex; flex-direction: column;
    gap: 6px;
}
.slot:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 60, 70, 0.10); }
.slot.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.slot.full     { background: #fffaf5; }
.slot.closed   { background: #f4f5f7; }
.slot.mine     { box-shadow: 0 0 0 2px var(--primary) inset; }

.slot-dots { display: flex; gap: 4px; margin-top: 2px; }
.slot-dots .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #dfe6ea;
}
.slot-dots .dot.on { background: var(--primary); }

.slot-badge {
    position: absolute; top: 10px; right: 12px;
    font-size: 11px; color: var(--primary);
    background: rgba(0, 87, 103, 0.09);
    padding: 2px 8px; border-radius: 20px;
}

.slot-time {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
}
.slot-time small { font-weight: normal; color: var(--text-3); font-size: 12px; margin-left: 6px; }

.slot-meta {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--text-2);
}
.slot-bar {
    height: 4px; border-radius: 2px; background: #e3eaee;
    overflow: hidden;
}
.slot-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width .25s;
}
.slot-bar.warn > span { background: linear-gradient(90deg, #d97706, #f59e0b); }
.slot-bar.full > span { background: #d64545; }

.slot-action {
    margin-top: 4px;
    padding: 6px 0;
    text-align: center;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}
.slot.disabled .slot-action { background: #cbd5e1; color: white; }
.slot.full .slot-action     { background: #d97706; }
.slot.closed .slot-action   { background: #94a3b8; }
.slot.mine .slot-action     { background: var(--success); }

/* 时段下的器材面板 */
.equipment-panel {
    border: 1px dashed #cfe0e6;
    border-radius: 8px;
    padding: 10px;
    background: #f7fafb;
    display: flex; flex-direction: column; gap: 8px;
}
.eq-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e3eaee;
}
.eq-item.free   { border-left: 3px solid var(--success); }
.eq-item.booked { border-left: 3px solid #d64545; opacity: 0.75; }
.eq-item .eq-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 1px;
}
.eq-item .eq-name { font-weight: 600; color: var(--text-1); }
.eq-item .eq-sub  { font-size: 11px; color: var(--text-3); }
.eq-item .eq-type { font-size: 12px; color: var(--text-2); }
.eq-item button {
    border: none; background: var(--primary); color: white;
    padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.eq-item button:hover { background: var(--primary-dark, #004551); }
.eq-item .eq-mine  { font-size: 12px; color: var(--success); font-weight: 600; }
.eq-item .eq-taken { font-size: 12px; color: var(--text-3); }
.b-eq { color: var(--primary); font-weight: 600; display: block; margin-top: 2px; }

/* =====================================================================
   我的预约列表
   ===================================================================== */
.booking-list { display: flex; flex-direction: column; gap: 10px; }
.booking {
    background: white;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: 0 2px 8px rgba(0,51,61,0.05);
    display: flex; align-items: center; gap: 14px;
    border-left: 4px solid var(--primary);
}
.booking.cancelled { border-left-color: var(--text-3); opacity: 0.65; }
.booking.finished  { border-left-color: var(--text-3); opacity: 0.6; }
.booking .b-time   { font-weight: 600; flex: 1; min-width: 0; }
.booking .b-time small { color: var(--text-3); font-weight: normal; display: block; margin-top: 2px; }
.booking .b-status {
    font-size: 12px; padding: 3px 10px; border-radius: 10px;
    background: var(--primary-tint); color: var(--primary);
}
.booking.cancelled .b-status { background: #f1f5f7; color: var(--text-3); }
.booking.finished  .b-status { background: #f1f5f7; color: var(--text-3); }

.booking button {
    border: none; background: var(--danger); color: white;
    padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 12px;
}
.booking button:hover { background: #b53838; }

/* 已取消记录折叠入口 */
.history-toggle {
    margin-top: 10px;
    padding: 9px 12px;
    text-align: center;
    font-size: 13px;
    color: var(--primary);
    background: #f8fbfc;
    border: 1px dashed #d6e3e8;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: all .15s;
}
.history-toggle:hover {
    background: var(--primary-tint);
    border-color: var(--primary-soft);
}
#history-list { margin-top: 10px; }

/* ---------------------------------------------------------------- 小程序同款组件
   2026-09-24：把网页版的用户页改成和小程序的「我的」页一致——
   渐变资料卡 + 打卡记录入口卡 + 两个页签，配色、圆角、文案全部对齐 */

.profile-card {
    background: linear-gradient(135deg, #005767, #0a8d9d);
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #fff;
}
.profile-card .avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 20px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    flex: none;
}
.profile-card .p-info { margin-left: 16px; flex: 1; min-width: 0; }
.profile-card .p-name { font-size: 17px; font-weight: 600; }
.profile-card .p-id {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 4px;
}
.profile-card .logout {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.checkin-entry {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex; align-items: center;
    box-shadow: 0 2px 8px rgba(0, 60, 70, 0.06);
    cursor: pointer;
    margin-bottom: 12px;
}
.checkin-entry:hover { box-shadow: 0 6px 18px rgba(0, 60, 70, 0.10); }
.ce-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.ce-sub { font-size: 12px; color: var(--success); margin-top: 4px; }
.ce-arrow { margin-left: auto; color: var(--text-3); font-size: 18px; }

.tabs {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin: 16px 0 14px;
    box-shadow: 0 2px 8px rgba(0, 60, 70, 0.06);
}
.tabs .tab {
    flex: 1; text-align: center;
    padding: 11px 0;
    font-size: 14px;
    color: var(--text-3);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.tabs .tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* 日期头：左边品牌色竖条 + 今天/明天，右边日期 + 星期胶囊（小程序同款） */
.date-head {
    display: flex; align-items: center;
    padding: 18px 4px 10px;
}
.date-left { display: flex; align-items: center; }
.date-bar {
    width: 4px; height: 17px; border-radius: 2px;
    background: linear-gradient(to bottom, #005767, #0a8d9d);
    margin-right: 9px;
}
.date-label { font-size: 17px; font-weight: 600; color: #0f2b33; }
.date-right { margin-left: auto; display: flex; align-items: center; }
.date-day { font-size: 15px; font-weight: 600; color: var(--primary); margin-right: 10px; }
.date-week {
    font-size: 12px; color: var(--primary);
    background: rgba(0, 87, 103, 0.09);
    padding: 3px 10px; border-radius: 20px;
}

/* 打卡记录（2026-09-24 补到网页端，对齐小程序的打卡统计） */
.checkin-card {
    background: #fff;
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    padding: 4px 0 14px;
    margin-bottom: 22px;
}
.ci-stats {
    display: flex;
    gap: 12px;
    padding: 14px 16px 4px;
}
.ci-stat {
    flex: 1;
    background: var(--primary-tint);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}
.ci-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1.15;
    color: var(--primary);
}
.ci-stat small {
    font-size: 12px;
    color: var(--text-3);
}
.checkin-card .history-toggle { margin: 10px 16px 0; }
#ci-list { margin: 10px 16px 0; }

/* =====================================================================
   管理端表格
   ===================================================================== */
.day-picker {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 16px;
}
.day-chip {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e3eaee;
    background: white;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-2);
    transition: all .15s;
}
.day-chip:hover  { border-color: var(--primary-soft); }
.day-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

.admin-slot {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,51,61,0.05);
}
.admin-slot-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    padding-bottom: 12px; border-bottom: 1px dashed #e3eaee;
    margin-bottom: 12px;
}
.admin-slot-head .t { font-weight: 600; font-size: 16px; flex: 1; }
.admin-slot-head .badge {
    padding: 3px 10px; border-radius: 10px; font-size: 12px;
    background: var(--primary-tint); color: var(--primary);
}
.admin-slot-head .badge.full    { background: #fff7e6; color: #d97706; }
.admin-slot-head .badge.closed  { background: #f1f5f7; color: var(--text-3); }

.capacity-edit {
    display: flex; align-items: center; gap: 8px;
}
.capacity-edit input {
    width: 64px; height: 32px; text-align: center;
    border: 1px solid #d6e3e8; border-radius: 6px; padding: 0 6px;
    font-size: 14px;
}
.capacity-edit button {
    height: 32px; padding: 0 14px;
    border: none; border-radius: 6px;
    background: var(--primary); color: white; cursor: pointer;
    font-size: 13px;
}

table.users {
    width: 100%; border-collapse: collapse; font-size: 14px;
}
table.users th, table.users td {
    text-align: left; padding: 10px 12px;
    border-bottom: 1px solid #eef2f5;
}
table.users th {
    background: #f8fbfc;
    color: var(--text-2);
    font-weight: 500;
    font-size: 12px;
}
table.users td button {
    border: none; background: var(--danger); color: white;
    padding: 4px 10px; border-radius: 5px; cursor: pointer;
    font-size: 12px;
}
table.users td button:disabled { background: #cbd5e1; cursor: not-allowed; }

.empty {
    padding: 30px 20px; text-align: center; color: var(--text-3); font-size: 14px;
}

/* =====================================================================
   使用统计（纯 CSS 横条图，不引图表库）
   ===================================================================== */
.st-cards {
    display: grid; gap: 10px; margin-bottom: 10px;
    grid-template-columns: repeat(4, 1fr);
}
.st-card {
    background: var(--primary-tint); border-radius: 10px;
    padding: 16px 12px; text-align: center;
}
.st-card b {
    display: block; font-size: 26px; color: var(--primary); line-height: 1.2;
}
.st-card span { font-size: 12px; color: var(--text-2); }

.st-sec {
    font-size: 14px; font-weight: 600; color: var(--text-1);
    margin: 22px 0 12px; padding-left: 9px;
    border-left: 3px solid var(--primary);
}

.st-bars { display: flex; flex-direction: column; gap: 9px; }
.st-row { display: flex; align-items: center; gap: 10px; }
.st-row .st-label {
    width: 170px; flex: none; font-size: 13px; color: var(--text-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-row .st-label small { display: block; font-size: 11px; color: var(--text-3); }
.st-row.compact .st-label { width: 54px; }
.st-row .st-track {
    flex: 1; height: 16px; background: #f1f5f7; border-radius: 8px; overflow: hidden;
}
.st-row .st-track > span {
    display: block; height: 100%; border-radius: 8px;
    background: linear-gradient(90deg, #005767, #2ab5c4);
}
.st-row .st-track > span.zero { background: #e3eaee; }
.st-row .st-num {
    width: 40px; flex: none; text-align: right; font-size: 13px; color: var(--text-2);
}

/* =====================================================================
   弹窗（改密码）
   ===================================================================== */
.modal {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(15, 35, 40, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-card {
    width: 100%; max-width: 340px;
    background: white; border-radius: var(--radius-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow-card);
}
.modal-card h3 {
    margin: 0 0 16px; font-size: 17px; color: var(--primary); text-align: center;
}
.modal-card input {
    width: 100%; height: 38px; margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid #d6e3e8; border-radius: 6px; font-size: 14px;
}
.modal-card input:focus { outline: none; border-color: var(--primary-soft); }
.modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.modal-actions button {
    flex: 1; height: 38px; border: none; border-radius: 6px;
    background: var(--primary); color: white; cursor: pointer; font-size: 14px;
}
.modal-actions button.ghost {
    background: white; color: var(--text-2); border: 1px solid #d6e3e8;
}
.modal-card .hint {
    margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center;
}

/* =====================================================================
   管理端页签
   ===================================================================== */
.nav-tabs {
    display: flex; gap: 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e3eaee;
}
.nav-tab {
    padding: 10px 18px; font-size: 15px; cursor: pointer;
    color: var(--text-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
    user-select: none;
}
.nav-tab:hover  { color: var(--primary); }
.nav-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

/* =====================================================================
   名单管理
   ===================================================================== */
.wl-panel {
    background: white; border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,51,61,0.05);
}
.wl-stats { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.wl-stats b { color: var(--primary); }

.wl-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wl-toolbar input[type="search"] {
    flex: 1; min-width: 150px; height: 34px; padding: 0 12px;
    border: 1px solid #d6e3e8; border-radius: 6px; font-size: 14px;
}
.wl-toolbar button, .wl-add button, .wl-batch-actions button {
    height: 34px; padding: 0 14px; border: none; border-radius: 6px;
    background: var(--primary); color: white; cursor: pointer; font-size: 13px;
}
.wl-toolbar button.ghost, .wl-add button.ghost, .wl-batch-actions button.ghost {
    background: white; color: var(--text-2); border: 1px solid #d6e3e8;
}

.wl-add {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    padding: 12px; margin-bottom: 12px;
    background: var(--primary-tint); border-radius: 8px;
}
.wl-add input {
    height: 34px; width: 150px; padding: 0 10px;
    border: 1px solid #d6e3e8; border-radius: 6px; font-size: 14px; background: white;
}
.wl-add select {
    height: 34px; width: 120px; padding: 0 8px;
    border: 1px solid #d6e3e8; border-radius: 6px; font-size: 14px; background: white;
}
.wl-add input:disabled, .wl-add select:disabled { background: #f1f5f7; color: var(--text-3); }
.wl-add .hint { font-size: 12px; color: var(--text-3); }

.wl-batch { margin-bottom: 12px; }
.wl-batch textarea {
    width: 100%; padding: 10px;
    border: 1px solid #d6e3e8; border-radius: 8px;
    font-size: 13px; font-family: inherit; resize: vertical;
}
.wl-batch-actions {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.wl-batch .hint { font-size: 12px; color: var(--text-3); }

table.users td.mono { font-family: ui-monospace, Consolas, Menlo, monospace; }
table.users td.dim  { color: var(--text-3); font-size: 13px; }
table.users td.ops  { white-space: nowrap; }
table.users td.ops button.link {
    background: none; color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 4px 10px;
}
table.users td.ops button.link.danger { color: var(--danger); border-color: #f3c9c9; }

.tag {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 12px; background: #f1f5f7; color: var(--text-3);
}
.tag.ok { background: var(--primary-tint); color: var(--primary); }

.wl-pager {
    display: flex; align-items: center; gap: 12px;
    margin-top: 14px; font-size: 13px; color: var(--text-2);
}
.wl-pager button {
    height: 32px; padding: 0 14px;
    border: 1px solid #d6e3e8; background: white; border-radius: 6px;
    cursor: pointer; font-size: 13px; color: var(--text-2);
}
.wl-pager button:disabled { color: #cbd5e1; cursor: not-allowed; }

/* =====================================================================
   响应式（手机）
   ===================================================================== */
@media (max-width: 640px) {
    .auth-card  { padding: 28px 22px; }
    .container  { padding: 14px 10px; }
    .topbar     { padding: 0 12px; }
    .slot-grid  { grid-template-columns: 1fr; }
    table.users { font-size: 13px; }
    table.users th, table.users td { padding: 8px 6px; }

    .nav-tab       { padding: 10px 12px; font-size: 14px; }
    .wl-panel      { padding: 14px 12px; }
    .wl-add input  { width: 100%; }
    .wl-add select { width: 100%; }
    .wl-toolbar input[type="search"] { min-width: 120px; }
    .st-cards      { grid-template-columns: repeat(2, 1fr); }
    .st-row .st-label { width: 110px; }
    .st-row.compact .st-label { width: 44px; }
    .st-row .st-num  { width: 32px; }
    .wl-pager      { flex-wrap: wrap; gap: 8px; }

    /* 顶栏姓名：手机上省掉"您好，"前缀，姓名稍小 */
    .topbar .user small { display: none; }
    .topbar .user strong { font-size: 15px; }
}
/* 登录页（星空版）里的错误提示：卡片是深色玻璃，原来的浅色 alert 看不见 */
.space-card .alert {
    background: rgba(214, 69, 69, .18);
    border: 1px solid rgba(214, 69, 69, .45);
    color: #ffd7d7;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}
