/* ════════════════════════ 强制布局修复 ════════════════════════ */
#operatorList { display: block !important; width: 100% !important; max-width: none !important; min-width: 0; }
.panel-body { width: 100% !important; max-width: none !important; }
.op-cards-grid { display: grid !important; width: 100% !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 16px; align-items: start; }

/* ════════════════════════ 人员管理 · 样式主体 ════════════════════════ */
.op-control-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid rgba(128, 128, 128, 0.1); }
.op-search-box { flex: 1; min-width: 200px; max-width: 300px; }
.op-search-input { width: 100%; border: 1px solid rgba(128, 128, 128, 0.2); background: var(--bg-secondary); padding: 8px 12px; font-size: 13px; color: var(--text-main); border-radius: 6px; transition: all 0.2s; font-family: 'Noto Sans SC', sans-serif; }
.op-search-input:focus { outline: none; border-color: var(--c-primary); background: var(--bg-card); }
.op-filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.op-filter-select { border: 1px solid rgba(128, 128, 128, 0.2); background: var(--bg-secondary); padding: 8px 32px 8px 12px; font-size: 13px; color: var(--text-main); border-radius: 6px; cursor: pointer; font-family: 'Noto Sans SC', sans-serif; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; transition: all 0.2s; min-width: 100px; }
.op-filter-select:focus { outline: none; border-color: var(--c-primary); }
.op-filter-select option { background: var(--bg-card); color: var(--text-main); padding: 8px; }
.op-action-group { display: flex; gap: 8px; align-items: center; }

/* ════════════════════════ 按钮样式 ════════════════════════ */
.op-btn-rect { background: var(--c-primary); color: #fff; border: none; padding: 8px 16px; font-size: 12px; font-weight: 500; cursor: pointer; border-radius: 6px; transition: all 0.2s; font-family: 'Noto Sans SC', sans-serif; white-space: nowrap; }
.op-btn-rect:hover { opacity: 0.85; transform: translateY(-1px); }
.op-btn-text { background: transparent; border: 1px solid var(--c-primary); padding: 7px 16px; font-size: 12px; cursor: pointer; color: var(--c-primary); border-radius: 6px; transition: all 0.2s; white-space: nowrap; font-weight: 500; }
.op-btn-text:hover { background: rgba(77, 166, 255, 0.1); transform: translateY(-1px); }
.op-btn-pending { background: #fff4e5 !important; color: #d2780a !important; border: 1px solid #ffd591 !important; padding: 7px 16px !important; font-size: 12px !important; cursor: pointer; border-radius: 6px; font-family: 'Noto Sans SC', sans-serif; white-space: nowrap; font-weight: 600; transition: all 0.2s; }
.op-btn-pending:hover { background: #ffedcc !important; transform: translateY(-1px); }

/* ════════════════════════ 新增：申请入驻按钮样式 ════════════════════════ */
.op-btn-apply {
    background: rgba(34, 160, 90, 0.1);
    border: 1px solid rgba(34, 160, 90, 0.4);
    color: #22a05a;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Noto Sans SC', sans-serif;
    display: inline-flex; /* 确保按钮可见 */
    align-items: center;
    justify-content: center;
}
.op-btn-apply:hover {
    background: rgba(34, 160, 90, 0.15);
    border-color: #22a05a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(34, 160, 90, 0.2);
}
[data-theme="light"] .op-btn-apply {
    background: rgba(34, 160, 90, 0.08);
    border-color: rgba(34, 160, 90, 0.3);
    color: #1e8449;
}
[data-theme="light"] .op-btn-apply:hover {
    background: rgba(34, 160, 90, 0.12);
    border-color: #1e8449;
}

/* ════════════════════════ 统计与空状态 ════════════════════════ */
.op-stats-bar { display: flex; gap: 12px; margin-bottom: 16px; }
.op-stat-chip { font-size: 12px; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
.op-stat-chip .op-stat-num { font-weight: 700; color: var(--c-primary); font-family: 'Chakra Petch', monospace; }
[data-theme="light"] .op-stat-chip .op-stat-num { color: var(--c-primary); }
.op-stat-pending .op-stat-num { color: #d2780a; }
.op-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-sub); }
.op-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.3; }
.op-empty-title { font-size: 16px; font-weight: 500; margin-bottom: 6px; color: var(--text-main); }
.op-empty-desc { font-size: 13px; }

/* ════════════════════════ 名片卡片 ════════════════════════ */
.op-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; transition: all 0.2s; display: flex; flex-direction: column; gap: 12px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.04); width: 100%; box-sizing: border-box; min-height: 210px; }
.op-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); border-color: rgba(128, 128, 128, 0.2); }
[data-theme="light"] .op-card { box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.op-card-top { display: flex; align-items: center; gap: 12px; }
.op-card-avatar { width: 40px; height: 40px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); flex-shrink: 0; position: relative; overflow: hidden; }
.op-card-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.op-card-avatar-default { width: 60%; height: 60%; color: var(--text-sub); opacity: 0.5; }
.op-card-info { flex: 1; min-width: 0; }
.op-card-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.op-card-uid { font-size: 11px; color: var(--text-sub); font-family: 'Chakra Petch', monospace; letter-spacing: 0.5px; }
.op-card-status-badge { position: absolute; top: 10px; right: 10px; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600; letter-spacing: 0.04em; pointer-events: none; z-index: 2; }
.op-card-status-badge.status-idle { background: rgba(110,231,183,.15); color: #22a05a; border: 1px solid rgba(110,231,183,.3); }
.op-card-status-badge.status-busy { background: rgba(251,191,36,.15); color: #d2780a; border: 1px solid rgba(251,191,36,.3); }
.op-card-status-badge.status-pause { background: rgba(148,148,148,.1); color: #8c8c8c; border: 1px solid rgba(148,148,148,.2); }
.op-card-status-badge.status-reserve { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
[data-theme="light"] .op-card-status-badge.status-reserve { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.op-card-details { display: flex; flex-direction: column; gap: 6px; }
.op-card-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; }
.op-card-label { color: var(--text-sub); flex-shrink: 0; margin-right: 8px; }
.op-card-value { font-weight: 500; text-align: right; max-width: 65%; word-break: break-all; }
.op-order-num { font-family: 'Chakra Petch', monospace; font-weight: 700; color: var(--c-primary); margin: 0 2px; }
.op-order-num.active { color: #d2780a; }
.op-stream-bar { margin-top: auto; border-top: 1px solid rgba(128, 128, 128, 0.08); position: relative; }
.op-stream-link { display: block; padding: 8px 0; text-align: center; color: var(--c-primary); font-size: 11px; letter-spacing: 0.05em; text-decoration: none; font-weight: 500; background: rgba(77, 166, 255, 0.08); border-radius: 4px; margin-top: 6px; transition: background 0.2s; }
.op-stream-link:hover { background: rgba(77, 166, 255, 0.15); text-decoration: none; }
.op-stream-preview { position: absolute; bottom: 100%; left: 0; right: 0; height: 0; padding-bottom: 56.25%; background: #000; border-radius: 6px; display: none; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,0.3); overflow: hidden; }
.op-card.stream-preview-active { z-index: 20; overflow: visible; }
.op-card.stream-preview-active .op-stream-preview { display: block; }
.live-embed-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ════════════════════════ 弹窗样式 ════════════════════════ */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-box { background: var(--bg-card); border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column; transform: translateY(20px); transition: transform 0.3s; }
.modal-overlay.show .modal-box { transform: translateY(0); }
.dtl-header-plain { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.dtl-title { font-size: 16px; font-weight: 600; color: var(--text-main); }
.dtl-close { background: transparent; border: none; color: var(--text-sub); cursor: pointer; padding: 4px; opacity: 0.7; transition: opacity 0.2s; font-size: 18px; }
.dtl-close:hover { opacity: 1; }
.dtl-body { padding: 20px; flex: 1; overflow-y: auto; }
.dtl-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--bg-secondary); border-radius: 0 0 8px 8px; }
.dtl-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; font-size: 12px; font-weight: 500; border-radius: 4px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.dtl-btn:hover { background: var(--bg-secondary); }
.dtl-btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.dtl-btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }
.dtl-btn-danger { border-color: #ff7875; color: #ff7875; background: transparent; }
.dtl-btn-danger:hover { background: rgba(255, 120, 117, 0.1); }

/* 个人信息弹窗 */
.profile-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 24px; }
.profile-avatar-wrap { position: relative; width: 100px; height: 100px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; transition: transform 0.2s; border: 2px solid var(--border); }
.profile-avatar-wrap:hover { transform: scale(1.05); border-color: var(--c-primary); }
.profile-avatar-default { font-size: 36px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4da6ff, #007AFF); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.profile-avatar-edit { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; background: var(--c-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.profile-name-row { width: 100%; max-width: 240px; }
.profile-card-info { background: var(--bg-secondary); border-radius: 8px; padding: 16px; width: 100%; }
.profile-card-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.profile-card-item:last-child { border-bottom: none; }

/* 二维码 */
.qr-fab { position: fixed; bottom: 24px; left: 24px; z-index: 900; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--bg-card); padding: 12px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,0.08); text-decoration: none; color: inherit; transition: transform 0.3s ease; }
.qr-fab:hover { transform: translateY(-2px); }
.qr-fab-label { font-size: 12px; font-weight: 500; color: var(--text-sub); letter-spacing: 0.5px; font-family: 'Noto Sans SC', sans-serif; }
.qr-fab-img { width: 120px; height: 120px; object-fit: contain; background: transparent !important; mix-blend-mode: multiply; }

/* 详情页 */
.dtl-live-player-wrap { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border-radius: 8px; overflow: hidden; background: #000; margin-top: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dtl-hero { display: flex; align-items: center; gap: 16px; padding: 24px; border-bottom: 1px solid rgba(128,128,128,0.06); position: relative; flex-shrink: 0; }
.dtl-hero-avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dtl-hero-info { flex: 1; min-width: 0; }
.dtl-hero-name { font-size: 18px; font-weight: 600; margin-bottom: 2px; font-family: 'Noto Sans SC', sans-serif; }
.dtl-hero-sub { font-size: 12px; color: var(--text-sub); font-family: 'Chakra Petch', monospace; letter-spacing: .5px; opacity: 0.7; }
.dtl-hero-badges { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.dtl-hero-badge { font-size: 10px; font-weight: 500; padding: 4px 10px; border-radius: 12px; letter-spacing: .03em; white-space: nowrap; }
.dtl-badge-status { border: none; }
.dtl-badge-status.status-idle { background: rgba(110,231,183,.15); color: #22a05a; }
.dtl-badge-status.status-busy { background: rgba(251,191,36,.12); color: #d2780a; }
.dtl-badge-status.status-pause { background: rgba(148,148,148,.1); color: #6b7280; }
.dtl-badge-audit { border: none; }
.dtl-hero .dtl-close { position: absolute; top: 20px; right: 20px; opacity: 0.4; transition: opacity 0.2s; }
.dtl-hero .dtl-close:hover { opacity: 1; }
.dtl-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.dtl-field { display: flex; align-items: baseline; padding: 12px 0; border-bottom: 1px solid rgba(128,128,128,0.04); font-size: 13px; }
.dtl-field-full { grid-column: 1/-1; }
.dtl-field-key { color: var(--text-sub); min-width: 56px; flex-shrink: 0; font-size: 12px; font-weight: 400; }
.dtl-field-val { font-weight: 500; flex: 1; word-break: break-all; color: var(--text-main); }
.dtl-audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dtl-audit-cell { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 8px; background: rgba(128,128,128,.02); border: 1px solid rgba(128,128,128,0.04); }
.dtl-audit-cell-label { font-size: 11px; color: var(--text-sub); letter-spacing: .04em; font-weight: 400; }
.dtl-audit-details { margin-top: 10px; padding: 10px 14px; border-radius: 8px; background: rgba(77,166,255,.02); border: 1px solid rgba(77,166,255,.05); }
[data-theme="light"] .dtl-audit-details { background: rgba(250,113,46,.02); border-color: rgba(250,113,46,.05); }
.dtl-audit-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 12px; }
.dtl-audit-detail-row+.dtl-audit-detail-row { border-top: 1px solid rgba(128,128,128,.04); }
.dtl-audit-detail-key { color: var(--text-sub); }
.dtl-audit-detail-val { font-weight: 500; }
.dtl-ss-link { color: var(--c-primary); text-decoration: underline; cursor: pointer; font-size: 12px; transition: color .2s; }
.dtl-ss-link:hover { opacity: .8; }
.dtl-audit-badge { font-size: 10px; font-weight: 500; padding: 2px 10px; border-radius: 12px; letter-spacing: .04em; }
.audit-passed { background: rgba(110,231,183,.15); color: #22a05a; }
[data-theme="light"] .audit-passed { background: rgba(34,160,90,.1); color: #22a05a; }
.audit-pending { background: rgba(251,191,36,.12); color: #d2780a; }
[data-theme="light"] .audit-pending { background: rgba(210,120,10,.1); color: #d2780a; }
.audit-failed { background: rgba(255,77,79,.1); color: #ff7875; }
[data-theme="light"] .audit-failed { background: rgba(255,77,79,.08); color: #cf1322; }
.audit-not_uploaded { background: rgba(128,128,128,.08); color: var(--text-sub); }
.credit-preview { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.credit-preview img { max-height: 60px; border-radius: 4px; border: 1px solid rgba(128,128,128,0.1); cursor: pointer; transition: transform .2s; }
.credit-preview img:hover { transform: scale(1.05); }
.credit-remove-btn { background: none; border: 1px solid rgba(255,77,79,.2); color: #ff7875; font-size: 11px; padding: 3px 8px; border-radius: 4px; transition: all .2s; cursor: pointer; white-space: nowrap; }
.credit-remove-btn:hover { background: rgba(255,77,79,.05); border-color: rgba(255,77,79,.4); }
.cert-pending-hint { font-size: 12px; color: #d2780a; margin-top: 8px; padding: 6px 12px; border-radius: 4px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.1); }
[data-theme="light"] .cert-pending-hint { color: #d2780a; background: rgba(210,120,10,.06); border-color: rgba(210,120,10,.08); }

/* 编辑表单样式 */
.edit-section { margin-bottom: 20px; }
.edit-section-label { font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 10px; display: block; letter-spacing: 0.5px; }
.edit-row { display: flex; align-items: center; margin-bottom: 8px; }
.edit-label { width: 80px; font-size: 13px; color: var(--text-sub); flex-shrink: 0; }
.edit-input { flex: 1; border: 1px solid var(--border); padding: 6px 10px; border-radius: 4px; font-size: 13px; background: var(--bg-secondary); color: var(--text-main); transition: all 0.2s; }
.edit-input:focus { border-color: var(--c-primary); outline: none; }
.edit-textarea { flex: 1; border: 1px solid var(--border); padding: 8px 10px; border-radius: 4px; font-size: 13px; background: var(--bg-secondary); color: var(--text-main); resize: vertical; min-height: 60px; }
.edit-hint { font-size: 11px; color: var(--text-sub); margin-top: 4px; margin-left: 80px; opacity: 0.8; }
.edit-checkbox-group { display: flex; gap: 12px; flex-wrap: wrap; }
.edit-checkbox-label { display: flex; align-items: center; gap: 4px; font-size: 12px; cursor: pointer; color: var(--text-main); }
.edit-checkbox { width: 14px; height: 14px; cursor: pointer; accent-color: var(--c-primary); }
.edit-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.edit-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.edit-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
/* ══════════════════════════════════════════════════════════
   名片详情 - 全新两列布局设计
   ══════════════════════════════════════════════════════════ */

/* === 弹窗容器 === */
#operatorModalBox.dtl-two-col-layout {
    max-width: 900px !important;
    min-width: 340px !important;
    width: 92% !important;
}

/* === 内容区域重置 === */
#operatorModalBox.dtl-two-col-layout .dtl-body {
    padding: 24px !important;
}

/* === 两列主容器 === */
.dtl-layout-flex {
    display: flex !important;
    flex-direction: row !important;
    gap: 32px !important;
    align-items: stretch !important;
    min-height: 300px;
}

/* === 左侧栏：基础信息区 === */
.dtl-sidebar {
    flex: 0 0 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* === 右侧栏：战绩记录区 === */
.dtl-main {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 24px;
    border-left: 1px solid rgba(128, 128, 128, 0.12);
    display: flex;
    flex-direction: column;
}

/* === 左侧栏：Section卡片样式 === */
.dtl-sidebar .dtl-section {
    background: rgba(128, 128, 128, 0.03);
    border: 1px solid rgba(128, 128, 128, 0.08);
    border-radius: 8px;
    padding: 16px;
}

.dtl-sidebar .dtl-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-primary-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}

[data-theme="light"] .dtl-sidebar .dtl-section-label {
    color: var(--c-primary);
}

/* 基本信息网格 */
.dtl-sidebar .dtl-field-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dtl-sidebar .dtl-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.04);
    font-size: 13px;
}

.dtl-sidebar .dtl-field:last-child {
    border-bottom: none;
}

.dtl-sidebar .dtl-field-key {
    color: var(--text-sub);
    font-size: 12px;
    flex-shrink: 0;
}

.dtl-sidebar .dtl-field-val {
    font-weight: 500;
    color: var(--text-main);
    text-align: right;
    word-break: break-all;
}

/* 订单统计 */
.dtl-sidebar .dtl-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dtl-sidebar .dtl-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(77, 166, 255, 0.05);
    border-radius: 6px;
}

.dtl-sidebar .dtl-stat-key {
    font-size: 12px;
    color: var(--text-sub);
}

.dtl-sidebar .dtl-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-primary);
    font-family: 'Chakra Petch', monospace;
}

/* 审核信息 */
.dtl-sidebar .dtl-audit-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dtl-sidebar .dtl-audit-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.06);
}

.dtl-sidebar .dtl-audit-cell:last-child {
    border-bottom: none;
}

.dtl-sidebar .dtl-audit-cell-label {
    font-size: 12px;
    color: var(--text-sub);
}

.dtl-sidebar .dtl-audit-details {
    margin-top: 12px;
    padding: 12px;
    background: rgba(77, 166, 255, 0.03);
    border-radius: 6px;
}

[data-theme="light"] .dtl-sidebar .dtl-audit-details {
    background: rgba(250, 113, 46, 0.03);
}

/* === 右侧栏：战绩记录样式 === */
.dtl-main .dtl-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dtl-main .dtl-section-label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--c-primary);
    border-radius: 2px;
}

[data-theme="light"] .dtl-main .dtl-section-label {
    color: var(--c-primary);
}

/* 战绩卡片容器 */
.dtl-battle-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.dtl-battle-records::-webkit-scrollbar {
    width: 4px;
}

.dtl-battle-records::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.2);
    border-radius: 2px;
}

/* 战绩卡片 */
.dtl-battle-records .br-game-card {
    background: rgba(128, 128, 128, 0.03);
    border: 1px solid rgba(128, 128, 128, 0.08);
    border-radius: 8px;
    padding: 14px 16px;
    transition: all 0.2s;
}

.dtl-battle-records .br-game-card:hover {
    border-color: rgba(77, 166, 255, 0.2);
    background: rgba(128, 128, 128, 0.05);
}

.dtl-battle-records .br-game-header {
    margin-bottom: 10px;
}

.dtl-battle-records .br-game-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.dtl-battle-records .br-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 16px;
    margin-bottom: 8px;
}

.dtl-battle-records .br-stat {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.dtl-battle-records .br-stat-key {
    color: var(--text-sub);
}

.dtl-battle-records .br-stat-val {
    font-weight: 600;
    color: var(--text-main);
}

/* 类型标签页 */
.dtl-battle-records .br-type-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dtl-battle-records .br-type-tab {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(128, 128, 128, 0.08);
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.2s;
}

.dtl-battle-records .br-type-tab.active {
    background: rgba(77, 166, 255, 0.15);
    color: var(--c-primary-light);
}

[data-theme="light"] .dtl-battle-records .br-type-tab.active {
    color: var(--c-primary);
}

.dtl-battle-records .br-type-content {
    display: none;
}

.dtl-battle-records .br-type-content.active {
    display: block;
}

/* 战绩截图 */
.dtl-battle-records .br-screenshot {
    max-width: 100%;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.dtl-battle-records .br-screenshot:hover {
    transform: scale(1.02);
}

/* 暂无战绩提示 */
.dtl-no-records {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-sub);
    font-size: 13px;
    opacity: 0.6;
}

/* === 移动端适配 === */
@media (max-width: 768px) {
    .dtl-layout-flex {
        flex-direction: column !important;
        gap: 24px !important;
    }
    
    .dtl-sidebar {
        flex: none !important;
        width: 100% !important;
    }
    
    .dtl-main {
        flex: none !important;
        padding-left: 0 !important;
        border-left: none !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(128, 128, 128, 0.12) !important;
    }
    
    #operatorModalBox.dtl-two-col-layout {
        max-width: 100vw !important;
        width: 96vw !important;
    }
    
    .dtl-battle-records {
        max-height: 300px !important;
    }
}

@media (max-width: 420px) {
    #operatorModalBox.dtl-two-col-layout .dtl-body {
        padding: 16px !important;
    }
    
    .dtl-sidebar .dtl-section {
        padding: 12px !important;
    }
}

/* ══════════════════════════════════════════════════════════
   编辑/申请模式 - 两列布局
   ══════════════════════════════════════════════════════════ */

/* 编辑弹窗宽度 */
#operatorModalBox.edit-mode {
    max-width: 920px !important;
}

/* 编辑内容容器 */
.edit-layout-flex {
    display: flex !important;
    gap: 32px !important;
    min-height: 420px;
}

/* 左侧表单栏 */
.edit-sidebar {
    flex: 0 0 320px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 右侧战绩栏 */
.edit-main {
    flex: 1;
    min-width: 0;
    padding-left: 24px;
    border-left: 1px solid rgba(128, 128, 128, 0.12);
    position: sticky;
    top: 0;
    max-height: 65vh;
    overflow-y: auto;
}

/* 左侧表单区块 */
.edit-sidebar .edit-section {
    background: rgba(128, 128, 128, 0.03);
    border: 1px solid rgba(128, 128, 128, 0.08);
    border-radius: 8px;
    padding: 16px;
}

.edit-sidebar .edit-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--c-primary-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.08);
}

[data-theme="light"] .edit-sidebar .edit-section-label {
    color: var(--c-primary);
}

/* 表单行样式优化 */
.edit-sidebar .edit-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.edit-sidebar .edit-row:last-child {
    margin-bottom: 0;
}

.edit-sidebar .edit-label {
    width: 80px;
    font-size: 12px;
    color: var(--text-sub);
    flex-shrink: 0;
}

.edit-sidebar .edit-input,
.edit-sidebar .edit-select {
    flex: 1;
    font-size: 13px;
    padding: 8px 10px;
}

.edit-sidebar .edit-textarea {
    flex: 1;
    min-height: 60px;
    font-size: 13px;
}

.edit-sidebar .edit-hint {
    margin-left: 80px;
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.7;
}

/* 复选框组 */
.edit-sidebar .edit-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.edit-sidebar .edit-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    background: rgba(128, 128, 128, 0.05);
    border-radius: 4px;
    transition: background 0.2s;
}

.edit-sidebar .edit-checkbox-label:hover {
    background: rgba(77, 166, 255, 0.08);
}

/* 两列布局 */
.edit-sidebar .edit-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.edit-sidebar .edit-2col .edit-row {
    margin-bottom: 0;
}

/* 右侧战绩编辑区 */
.edit-main .edit-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--c-primary-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-main .edit-section-label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--c-primary);
    border-radius: 2px;
}

[data-theme="light"] .edit-main .edit-section-label {
    color: var(--c-primary);
}

/* 战绩编辑容器 */
.edit-battle-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 战绩编辑卡片 */
.br-edit-game {
    background: rgba(128, 128, 128, 0.03);
    border: 1px solid rgba(128, 128, 128, 0.08);
    border-radius: 8px;
    padding: 14px;
}

.br-edit-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.06);
}

.br-edit-game-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.br-edit-game-actions {
    display: flex;
    gap: 6px;
}

/* 战绩类型行 */
.br-edit-type-row {
    background: rgba(128, 128, 128, 0.02);
    border: 1px solid rgba(128, 128, 128, 0.06);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.br-edit-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.br-edit-type-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--c-primary-light);
}

[data-theme="light"] .br-edit-type-label {
    color: var(--c-primary);
}

/* 战绩截图编辑 */
.br-edit-ss {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(128, 128, 128, 0.1);
}

.br-edit-ss-label {
    font-size: 11px;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.br-edit-ss-preview {
    margin-top: 8px;
}

.br-edit-ss-preview img {
    max-height: 48px;
    border-radius: 4px;
    cursor: pointer;
}

.br-edit-ss-hint {
    font-size: 10px;
    color: var(--text-sub);
    opacity: 0.6;
    margin-top: 4px;
}

/* 暂无战绩提示 */
.edit-no-records {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-sub);
    font-size: 12px;
    opacity: 0.6;
}

/* 底部按钮栏 */
.edit-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.edit-footer-left {
    display: flex;
    gap: 10px;
}

.edit-footer-right {
    display: flex;
    gap: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .edit-layout-flex {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .edit-sidebar {
        flex: none !important;
        width: 100% !important;
    }
    
    .edit-main {
        flex: none !important;
        padding-left: 0 !important;
        border-left: none !important;
        padding-top: 16px !important;
        border-top: 1px solid rgba(128, 128, 128, 0.12) !important;
        max-height: none !important;
        position: static !important;
    }
    
    #operatorModalBox.edit-mode {
        max-width: 100vw !important;
        width: 96vw !important;
    }
    
    .edit-footer-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .edit-footer-left,
    .edit-footer-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .edit-sidebar .edit-section {
        padding: 12px !important;
    }
    
    .edit-sidebar .edit-2col {
        grid-template-columns: 1fr !important;
    }
    
    .edit-sidebar .edit-label {
        width: 60px;
        font-size: 11px;
    }
}
/* ══════════════════════════════════════════════════════════
   战绩记录 - 分组并列布局
   ══════════════════════════════════════════════════════════ */

/* 游戏分组容器 */
.br-game-group {
    margin-bottom: 20px;
}

.br-game-group:last-child {
    margin-bottom: 0;
}

/* 游戏分组标题 */
.br-game-group-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary-light);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="light"] .br-game-group-header {
    color: var(--c-primary);
}

.br-game-group-header::before {
    content: '▸';
    font-size: 10px;
    opacity: 0.5;
}

/* 模式卡片容器（并列）*/
.br-game-group-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 单个模式卡片 */
.br-mode-card {
    background: rgba(128, 128, 128, 0.03);
    border: 1px solid rgba(128, 128, 128, 0.08);
    border-radius: 6px;
    padding: 12px 14px;
}

.br-mode-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    padding-left: 8px;
    border-left: 2px solid var(--c-primary);
}

/* 统计数据 */
.br-mode-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    margin-bottom: 8px;
}

.br-mode-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.br-mode-stat-key {
    font-size: 11px;
    color: var(--text-sub);
    min-width: 50px;
}

.br-mode-stat-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}

.br-mode-stat-input {
    flex: 1;
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid rgba(128, 128, 128, 0.1);
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 12px;
    color: var(--text-main);
    outline: none;
}

.br-mode-stat-input:focus {
    border-color: var(--c-primary);
}

/* 截图 */
.br-mode-ss {
    margin-top: 8px;
    font-size: 11px;
}

.br-mode-ss input[type="file"] {
    font-size: 11px;
}

.br-mode-ss-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.br-mode-ss-preview img {
    max-height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

.br-mode-ss-preview button {
    background: transparent;
    border: 1px solid rgba(255, 77, 79, 0.3);
    color: #ff7875;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
}

/* 暂无数据 */
.edit-no-records {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-sub);
    font-size: 12px;
    opacity: 0.6;
}

.dtl-no-records {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-sub);
    font-size: 13px;
    opacity: 0.5;
}

/* 移动端 */
@media (max-width: 768px) {
    .br-mode-stats {
        grid-template-columns: 1fr;
    }
    
    .br-mode-card {
        padding: 10px 12px;
    }
}

/* ══════════════════════════════════════════════════════════ 
   战绩图片上传样式（新需求） 
   ══════════════════════════════════════════════════════════ */

/* 图片预览列表容器 */
.br-image-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

/* 单张图片预览 */
.br-img-item {
    width: 60px;
    height: 60px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(128,128,128,0.1);
}

.br-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/* 图片删除按钮（X号） */
.br-img-item button {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
}

/* 虚线框加号上传按钮 */
.br-image-uploader {
    width: 60px;
    height: 60px;
    border: 1px dashed var(--border);
    background: rgba(128,128,128,0.02);
    color: var(--text-sub);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 20px;
}

.br-image-uploader:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: rgba(77, 166, 255, 0.05);
}

/* 隐藏实际的文件输入框 */
.br-image-uploader input[type="file"] {
    display: none;
}
/* ══════════════════════════════════════════════════════════
   战绩记录 - "大框套小框" 布局补丁 (适配新 JS 逻辑)
   ══════════════════════════════════════════════════════════ */

/* 1. 调整右侧主容器：取消高度限制，让内容撑开 */
.dtl-main .dtl-battle-records {
    max-height: none !important;
    overflow: visible !important;
    gap: 20px !important; /* 加大游戏分组之间的间距 */
}

/* 2. 游戏大框样式增强 */
.br-game-group {
    position: relative;
    margin-bottom: 24px;
    transition: box-shadow 0.3s ease;
}

.br-game-group:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* 3. 修正：强制游戏内部模式列表为两列布局 (如果 JS 没生效) */
.br-game-modes-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 强制两列 */
    gap: 12px !important;
    margin-top: 16px;
}

/* 4. 模式小框微调 */
.br-mode-card {
    position: relative;
    transition: transform 0.2s;
}
.br-mode-card:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.06);
}

/* 5. 修正移动端适配：手机上变为一列 */
@media (max-width: 768px) {
    .br-game-modes-list {
        grid-template-columns: 1fr !important; /* 手机上强制单列 */
    }
    
    .br-game-group {
        padding: 12px !important;
        margin-bottom: 16px;
    }
    
    .br-game-ss-wrap img {
        width: 60px !important;
        height: 60px !important;
    }
}

/* 6. 确保图片区域的样式生效 */
.br-game-ss-wrap {
    border-radius: 6px;
    padding: 8px;
    background: rgba(128, 128, 128, 0.03);
    margin-bottom: 12px;
    border: 1px solid rgba(128,128,128,0.05);
}
