/* ========================================
   抖音直播监控平台 - 全局样式
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-size: 13px; color: #1a1a2e; background: #f5f6fa; }

/* ===== 登录页 ===== */
.login-body {
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #1a73e8 50%, #0d47a1 100%);
    position: relative; overflow: hidden;
}
.login-body::before {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: rgba(255,255,255,0.06); top: -120px; right: -80px;
}
.login-body::after {
    content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
    background: rgba(255,255,255,0.04); bottom: -100px; left: -60px;
}
.login-container { width: 400px; position: relative; z-index: 1; }
.login-box {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-radius: 16px; padding: 40px 36px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.logo-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; margin: 0 auto 14px;
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
}
.login-logo h1 { font-size: 20px; font-weight: 600; color: #1a1a2e; }
.login-subtitle { font-size: 12px; color: #999; margin-top: 4px; letter-spacing: 0.5px; }
.login-form .form-group { margin-bottom: 18px; }
.login-form label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; font-weight: 500; }
.input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: #f8f9fb; border: 1px solid #e0e0e0; border-radius: 10px;
    padding: 0 14px; transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap:focus-within {
    border-color: #1a73e8; background: #fff;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.input-icon { width: 18px; height: 18px; color: #aaa; flex-shrink: 0; }
.input-wrap input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 14px; color: #1a1a2e; padding: 12px 0;
}
.input-wrap input::placeholder { color: #bbb; }
.login-error {
    background: #fcebeb; color: #c62828; font-size: 12px;
    padding: 10px 14px; border-radius: 8px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 6px;
}
.login-btn {
    width: 100%; padding: 12px; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 500; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    box-shadow: 0 4px 12px rgba(26,115,232,0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(26,115,232,0.4); }
.login-btn:active { transform: translateY(0); }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-footer {
    text-align: center; font-size: 11px; color: rgba(255,255,255,0.5);
    margin-top: 20px;
}

/* ===== 布局 ===== */
body { display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 200px; background: #fff; border-right: 0.5px solid #e8e8e8; display: flex; flex-direction: column; flex-shrink: 0; height: 100vh; position: sticky; top: 0; }
.sidebar-logo { padding: 18px 16px 12px; border-bottom: 0.5px solid #f0f0f0; display: flex; align-items: center; gap: 10px; }
.logo-icon-sm { width: 32px; height: 32px; border-radius: 8px; background: #1a73e8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.logo-img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; object-fit: contain; }
.logo-title { font-size: 14px; font-weight: 600; }
.logo-sub { font-size: 10px; color: #999; }
.sidebar-menu { flex: 1; padding: 8px 0; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: #666; text-decoration: none; cursor: pointer; }
.sidebar-item:hover { background: #f5f6fa; }
.sidebar-item.active { background: #e8f0fe; color: #1a73e8; font-weight: 500; }
.sidebar-item .s-icon { width: 18px; text-align: center; font-size: 13px; color: #999; }
.sidebar-item.active .s-icon { color: #1a73e8; }
.sidebar-footer { padding: 12px 16px; border-top: 0.5px solid #f0f0f0; }
.sidebar-user { font-size: 12px; color: #888; }

.main-content { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: #fff; border-bottom: 0.5px solid #e8e8e8; flex-shrink: 0; }
.topbar-left { font-size: 15px; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-name { font-size: 12px; color: #666; }
.btn-logout { background: none; border: 0.5px solid #d0d0d0; border-radius: 5px; padding: 4px 10px; font-size: 11px; color: #888; cursor: pointer; }
.btn-logout:hover { background: #f5f5f5; }
.content-body { flex: 1; padding: 20px 24px; overflow-y: auto; }

/* ===== 首页卡片 ===== */
.greeting { font-size: 14px; color: #666; margin-bottom: 18px; }
.greeting strong { color: #1a1a2e; }
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.dash-card { background: #fff; border-radius: 10px; border: 0.5px solid #e8e8e8; padding: 16px; display: flex; align-items: center; gap: 14px; }
.dc-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.dc-icon-blue { background: #e8f0fe; color: #1a73e8; }
.dc-icon-green { background: #e6f7ed; color: #0d8a3e; }
.dc-icon-amber { background: #fef3e2; color: #e68900; }
.dc-info { flex: 1; }
.dc-label { font-size: 12px; color: #888; }
.dc-val { font-size: 22px; font-weight: 600; line-height: 1.3; }
.dc-val .unit { font-size: 12px; font-weight: 400; color: #999; margin-left: 3px; }

/* ===== 列表工具栏 ===== */
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.toolbar-tabs { display: flex; gap: 16px; }
.tab { font-size: 13px; color: #888; cursor: pointer; padding-bottom: 6px; }
.tab.active { color: #1a73e8; font-weight: 500; border-bottom: 2px solid #1a73e8; }
.toolbar-count { font-size: 12px; color: #999; }
.search-row { display: flex; justify-content: flex-end; margin-bottom: 14px; }

/* ===== 主播卡片（列表页） ===== */
.sc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sc-card { background: #fff; border: 0.5px solid #e8e8e8; border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; opacity: 0; animation: cardFadeIn .25s ease forwards; }
.sc-card:hover { border-color: #1a73e8; }
.sc-card.is-live { border-left: 3px solid #e53935; background: #fff8f8; }
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.sc-top { display: flex; align-items: center; gap: 12px; }
.sc-avatar { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; font-weight: 500; flex-shrink: 0; }
.sc-avatar-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sc-info { flex: 1; min-width: 0; }
.sc-name { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-badge { font-size: 11px; padding: 1px 7px; border-radius: 4px; }
.badge-live { background: #fde8e8; color: #e53935; }
.badge-end { background: #f0f0f0; color: #999; }
.sc-meta { font-size: 12px; color: #999; margin-top: 2px; }
.sc-divider { border: none; border-top: 0.5px solid #f0f0f0; margin: 8px 0; }
.sc-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.sc-stat { }
.sc-stat .sl { font-size: 11px; color: #999; }
.sc-stat .sv { font-size: 13px; font-weight: 500; margin-top: 1px; }
.sc-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* ===== 详情页 ===== */
.back-link { color: #1a73e8; text-decoration: none; font-size: 13px; }
.back-link:hover { text-decoration: underline; }
.detail-layout { display: flex; gap: 20px; }
.detail-left { width: 260px; flex-shrink: 0; background: #fff; border-radius: 10px; border: 0.5px solid #e8e8e8; padding: 20px; }
.detail-right { flex: 1; min-width: 0; }
.dl-avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; font-weight: 500; margin: 0 auto 10px; }
.dl-avatar-wrap { margin: 0 auto 10px; }
.dl-avatar-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; }
.dl-name { text-align: center; font-size: 16px; font-weight: 600; }
.dl-roomid { text-align: center; font-size: 11px; color: #999; margin-bottom: 6px; }
.dl-live-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #d85a30;
    text-decoration: none;
    margin-bottom: 14px;
    padding: 4px 0;
    border: 1px solid #d85a30;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.dl-live-link:hover {
    background: #d85a30;
    color: #fff;
}
.dl-divider { border: none; border-top: 0.5px solid #f0f0f0; margin: 10px 0; }
.dl-section-title { font-size: 12px; font-weight: 500; color: #666; margin-bottom: 8px; }
.dl-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; }
.dl-row .l { color: #888; }
.dl-row .r { color: #1a1a2e; font-weight: 500; }

.session-selector { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.session-selector label { font-size: 12px; color: #888; white-space: nowrap; }
.session-selector select { flex: 1; padding: 6px 10px; border: 0.5px solid #d0d0d0; border-radius: 6px; font-size: 12px; background: #fff; outline: none; }
.chart-container { background: #fff; border-radius: 10px; border: 0.5px solid #e8e8e8; height: 320px; margin-bottom: 14px; }
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rp-stat { background: #fff; border-radius: 8px; border: 0.5px solid #e8e8e8; padding: 12px; text-align: center; }
.rp-stat .l { font-size: 11px; color: #888; }
.rp-stat .v { font-size: 18px; font-weight: 600; margin-top: 2px; }

/* ===== 数据表格 ===== */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; border: 0.5px solid #e8e8e8; overflow: hidden; font-size: 12px; }
.data-table th { background: #f8f9fb; padding: 9px 14px; text-align: left; font-weight: 500; color: #666; border-bottom: 0.5px solid #e8e8e8; }
.data-table td { padding: 9px 14px; border-bottom: 0.5px solid #f5f5f5; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: #f8f9fb; }
.tag { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 3px; }
.tag-admin { background: #e8f0fe; color: #1a73e8; }
.tag-user { background: #f0f0f0; color: #666; }
.op-link { color: #1a73e8; cursor: pointer; margin-right: 6px; font-size: 11px; }
.op-link:hover { text-decoration: underline; }
.op-danger { color: #d85a30; cursor: pointer; font-size: 11px; }
.op-danger:hover { text-decoration: underline; }

/* ===== 按钮 ===== */
.btn-primary { background: #1a73e8; color: #fff; border: none; border-radius: 5px; padding: 7px 16px; font-size: 12px; cursor: pointer; }
.btn-primary:hover { background: #1557b0; }
.btn-cancel { background: #fff; color: #666; border: 0.5px solid #d0d0d0; border-radius: 5px; padding: 7px 16px; font-size: 12px; cursor: pointer; }

/* ===== 管理页 ===== */
.admin-section { background: #fff; border: 0.5px solid #e8e8e8; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.section-title { font-size: 14px; font-weight: 500; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 0.5px solid #f0f0f0; }
.add-form .form-group { display: inline-block; margin-right: 10px; margin-bottom: 10px; }
.add-form .form-group label { display: block; font-size: 11px; color: #888; margin-bottom: 3px; }
.add-form .form-group input { padding: 6px 10px; border: 0.5px solid #d0d0d0; border-radius: 5px; font-size: 12px; width: 180px; }
.add-form input:focus { outline: none; border-color: #1a73e8; }

/* ===== 搜索框 ===== */
.search-bar { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-row .search-bar { margin-left: 0; width: 100%; }
.search-wrap {
    display: flex; align-items: center; gap: 6px;
    background: #f5f6fa; border: 0.5px solid #e0e0e0; border-radius: 8px;
    padding: 8px 14px; width: 320px; transition: border-color .15s;
}
.search-wrap:focus-within { border-color: #1a73e8; background: #fff; }
.search-wrap svg { width: 14px; height: 14px; color: #999; flex-shrink: 0; }
.search-wrap input {
    border: none; outline: none; background: transparent;
    font-size: 13px; color: #1a1a2e; width: 100%;
}
.search-wrap input::placeholder { color: #bbb; }
.search-btn {
    padding: 8px 18px; background: #1a73e8; color: #fff;
    border: none; border-radius: 8px; font-size: 13px; cursor: pointer; transition: background .15s;
}
.search-btn:hover { background: #1557b0; }

/* ===== 主播监控页 ===== */
.toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-action { padding: 8px 20px; border-radius: 6px; border: none; cursor: pointer; font-size: 13px; color: #fff; transition: opacity .2s; line-height: 1.4; text-align: center; white-space: nowrap; min-width: 60px; }
.btn-action:hover { opacity: 0.85; }
.btn-start { background: #43a047; }
.btn-stop { background: #e53935; }
.btn-monitor-sm { padding: 8px 22px; border-radius: 5px; border: none; cursor: pointer; font-size: 14px; color: #fff; transition: opacity .2s; line-height: 1.3; min-width: 96px; white-space: nowrap; }
.btn-monitor-sm:hover { opacity: 0.85; }
.btn-monitor-start { background: #43a047; }
.btn-monitor-stop { background: #e53935; }
.monitor-badge { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 11px; color: #fff; margin-left: 6px; }
.badge-monitoring { background: #43a047; }
.badge-connecting { background: #ff9800; }
.badge-ended { background: #757575; }
.badge-error { background: #e53935; }
.badge-disconnected { background: #f57c00; }
.badge-idle { background: #9e9e9e; }
.badge-polling { background: #ffa726; }
.badge-stopped { background: #9e9e9e; }
#pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 20px; }
.page-btn, .page-num { min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 13px; cursor: pointer; color: #666; background: #fff; border: 0.5px solid #e0e0e0; }
.page-num:hover, .page-btn:hover:not(.disabled) { background: #e8f0fe; border-color: #1a73e8; color: #1a73e8; }
.page-num.active { background: #1a73e8; color: #fff; border-color: #1a73e8; cursor: default; }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { color: #999; padding: 0 4px; }

/* ===== 添加主播页 ===== */
.add-hero { text-align: center; padding: 60px 20px 30px; }
.add-hero h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.add-hero p { font-size: 13px; color: #999; }
.add-box {
    max-width: 520px; margin: 0 auto;
    background: #fff; border-radius: 12px; border: 0.5px solid #e8e8e8; padding: 24px;
}
.add-input-row { display: flex; gap: 10px; margin-bottom: 16px; }
.add-input-row input {
    flex: 1; padding: 10px 14px; border: 0.5px solid #d0d0d0; border-radius: 8px;
    font-size: 13px; outline: none; transition: border-color .15s;
}
.add-input-row input:focus { border-color: #1a73e8; }
.add-input-row input::placeholder { color: #bbb; }
.btn-resolve {
    padding: 10px 20px; background: #1a73e8; color: #fff; border: none; border-radius: 8px;
    font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.btn-resolve:hover { background: #1557b0; }
.btn-resolve:disabled { opacity: 0.6; cursor: not-allowed; }
.resolve-hint { font-size: 11px; color: #999; text-align: center; }
.resolve-hint code { background: #f0f0f0; padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* 添加主播确认弹窗 */
.modal-streamer { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px; background: #f8f9fb; border-radius: 8px; }
.modal-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #e0e0e0; }
.modal-avatar-placeholder { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; font-weight: 500; flex-shrink: 0; }
.modal-info { flex: 1; min-width: 0; }
.modal-name { font-size: 15px; font-weight: 500; margin-bottom: 4px; word-break: break-all; }
.modal-meta { font-size: 12px; color: #999; }
.btn-confirm { background: #1a73e8; color: #fff; border: none; border-radius: 5px; padding: 7px 16px; font-size: 12px; cursor: pointer; }
.btn-confirm:hover { background: #1557b0; }
.btn-confirm:disabled { opacity: 0.6; cursor: not-allowed; }

/* toast 提示 */
.toast-msg {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #0d8a3e; color: #fff;
    padding: 10px 24px; border-radius: 8px; font-size: 13px;
    z-index: 2000; transition: opacity .3s;
}

/* ===== 弹窗 ===== */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-box { background: #fff; border-radius: 12px; padding: 24px; width: 380px; }
.modal-box h3 { font-size: 15px; font-weight: 500; margin-bottom: 16px; }
.modal-box .form-group { margin-bottom: 12px; }
.modal-box .form-group label { display: block; font-size: 12px; color: #666; margin-bottom: 3px; }
.modal-box .form-group input,
.modal-box .form-group select { width: 100%; padding: 7px 10px; border: 0.5px solid #d0d0d0; border-radius: 5px; font-size: 12px; outline: none; }
.modal-box .form-group select { background: #fff; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.form-error { background: #fcebeb; color: #a32d2d; font-size: 12px; padding: 8px 12px; border-radius: 6px; margin-top: 10px; }

/* ===== 双日历场次选择器 ===== */
.session-selector {
    position: relative;
}
.date-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 0.5px solid #d0d0d0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: border-color 0.15s, box-shadow 0.15s;
    user-select: none;
}
.date-trigger:hover {
    border-color: #bbb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.date-trigger .cal-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.calendar-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    padding: 16px 18px;
    z-index: 200;
    min-width: 520px;
}
.calendar-popup.open {
    display: block;
}
.cal-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 10px;
}
.cal-nav-row button {
    width: 26px;
    height: 26px;
    border: 0.5px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
}
.cal-nav-row button:hover { background: #f5f5f5; }
#calendar-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}
.calendar-dual {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.calendar-month {
    flex: 1;
    max-width: 230px;
}
.calendar-month-title {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}
.calendar-weekdays span {
    text-align: center;
    font-size: 9px;
    color: #ccc;
    padding: 2px 0;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #e0e0e0;
    border-radius: 5px;
    cursor: default;
    transition: all 0.12s;
    min-height: 28px;
    position: relative;
}
.calendar-day.this-month { color: #999; }
.calendar-day.has-session {
    color: #d85a30;
    font-weight: 600;
    cursor: pointer;
    background: rgba(216,90,48,0.06);
}
.calendar-day.has-session:hover {
    background: rgba(216,90,48,0.15);
}
.calendar-day.selected {
    background: #d85a30 !important;
    color: #fff !important;
}
.calendar-day.today:not(.selected) {
    border: 1.5px solid #d85a30;
    color: #d85a30;
}
/* ===== 同天多场次切换条 ===== */
.session-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border-radius: 8px;
    border: 0.5px solid #e8e8e8;
    margin-bottom: 12px;
    font-size: 12px;
    overflow-x: auto;
}
.session-switch .ss-label {
    color: #999;
    white-space: nowrap;
    margin-right: 4px;
}
.session-switch .ss-item {
    padding: 4px 12px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    border: 0.5px solid transparent;
}
.session-switch .ss-item:hover {
    background: #f5f5f5;
}
.session-switch .ss-item.active {
    background: #d85a30;
    color: #fff;
    font-weight: 600;
}
.session-switch .ss-item:not(.active) {
    color: #555;
    border-color: #e0e0e0;
}

/* ===== 详情页骨架屏 ===== */
.detail-skeleton {
    display: flex;
    gap: 24px;
    padding: 20px 0;
}
.skeleton-left {
    width: 200px;
    flex-shrink: 0;
}
.skeleton-right {
    flex: 1;
    min-width: 0;
}
.sk-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
    margin-bottom: 12px;
}
.sk-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
    margin-bottom: 10px;
}
.sk-w60 { width: 60%; }
.sk-w40 { width: 40%; }
.sk-w80 { width: 80%; }
.sk-hr {
    border: none;
    height: 0.5px;
    background: #eee;
    margin: 12px 0;
}
.sk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.sk-text {
    width: 180px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
}
.sk-icon {
    width: 20px; height: 20px;
}
.sk-chart {
    height: 260px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f5f7fa 25%, #eceef2 50%, #f5f7fa 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
    margin-bottom: 16px;
}
.sk-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.sk-stat {
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: sk-shimmer 1.5s infinite;
}
@keyframes sk-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================
   升级明细页面样式
   ======================================== */
.version-badge{display:inline-block;background:#1a73e8;color:#fff;padding:4px 14px;border-radius:12px;font-size:14px;font-weight:bold;margin-bottom:16px;}
.up-log-section{margin-bottom:30px;}
.up-log-section h2{font-size:18px;color:#1a1a2e;margin-bottom:4px;padding-bottom:8px;border-bottom:2px solid #1a73e8;}
.up-log-subtitle{font-size:14px;color:#666;margin:-4px 0 10px;font-weight:bold;}
.up-log-list{list-style:none;padding:0;}
.up-log-list li{padding:10px 14px;margin-bottom:6px;background:#f8f9fa;border-left:3px solid #1a73e8;border-radius:4px;font-size:14px;color:#333;line-height:1.6;}
.up-log-date{color:#e91e63;font-weight:bold;}

/* 系统管理 - 搜索结果列表 */
.search-result-list { background:#f5f5f5; border-radius:6px; padding:4px 0; }
.search-result-item { padding:6px 12px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.search-result-item:hover { background:#e0e0e0; }
.search-result-name { font-size:13px; }
.search-result-id { color:#999; font-size:11px; margin-left:4px; }
.search-result-action { font-size:11px; color:#1976d2; }
