/**
 * ZWSOFT 用户门户 - 公共样式
 *
 * 所有页面共享的CSS，包括布局、组件、按钮、表格、颜色系统等。
 */
:root {
    --primary: #005BFE;
    --primary-hover: #004ad0;
    --primary-light: #e8f0ff;
    --success: #00b453;
    --warning: #ff8a00;
    --disabled: #a8abb2;
    --text-primary: #222;
    --text-secondary: #666;
    --text-muted: #999;
    --bg-body: #f5f7fa;
    --bg-white: #fff;
    --border-color: #ebeef5;
    --header-bg: #fff;
    --header-height: 80px;
    --radius: 8px;
    --radius-sm: 4px;
    --shadow: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-lg: 0 2px 12px rgba(0,0,0,0.1);
    --content-max-width: 1400px;
    --el-color-primary-light-8: rgb(217, 236, 255);
    --el-color-primary-light-9: rgb(236, 245, 255);

    --el-color-primary: #005BFE !important;
    --el-text-color-secondary: rgb(184, 192, 209) !important;
    --el-scrollbar-bg-color: rgb(184, 192, 209) !important;
    --el-scrollbar-opacity: 1 !important;

    --el-border-width: 1px;
    --el-border-style: solid;
    --el-border-color: #dcdfe6;
    --el-border-radius-base: var(--radius-sm);
    --el-border: var(--el-border-width) var(--el-border-style) var(--el-border-color);

    --el-button-font-weight: 500;
    --el-button-border-color: #dcdfe6;
    --el-button-bg-color: #ffffff;
    --el-button-text-color: #606266;

    --el-button-disabled-text-color: var(--disabled);
    --el-button-disabled-bg-color: #f5f7fa;
    --el-button-disabled-border-color: #e4e7ed;
    --el-button-divide-border-color: rgba(255, 255, 255, .5);

    --el-button-hover-text-color: var(--el-color-primary);
    --el-button-hover-bg-color: var(--el-color-primary-light-9);
    --el-button-hover-border-color: rgb(198,226,255);

    --el-button-active-text-color: var(--el-button-hover-text-color);    
    --el-button-active-border-color: var(--el-color-primary);
    --el-button-active-bg-color: var(--el-button-hover-bg-color);

    --el-tag-bg-color: var(--el-color-primary-light-9);
    --el-tag-border-color: var(--el-color-primary-light-8);
    --el-tag-hover-color: var(--el-color-primary);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-body);
    height: 100%;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease;}
ul, ol { list-style: none; }

/* ==================== HEADER / TOP NAV 头部导航 ==================== */
.avue-top {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.section_center {
    width: 1780px;
    max-width: 92%;
    margin: 0 auto;
}

.top-bar__title { display: flex; align-items: center; }
.logo_box { display: flex; align-items: center; }
.logo_box img { height: 30px; }

/* Tab Navigation Links */
.link_box { display: flex; align-items: center; gap: 0; }
.link_box .link {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    height: var(--header-height);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    user-select: none;
}
.link_box .link:hover { color: var(--primary); }
.link_box .link.active { color: var(--primary); }
.link_box .link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* Top Bar Right */
.top-bar__right { display: flex; align-items: center; gap: 16px; }
.notice { position: relative; cursor: pointer; padding: 8px; border-radius: 50%; transition: background 0.2s; }
.notice:hover { background: var(--primary-light); }
.notice .red_num {
    position: absolute; top: 2px; right: 2px;
    background: #ff4d4f; color: #fff;
    font-size: 11px; min-width: 16px; height: 16px;
    line-height: 16px; text-align: center;
    border-radius: 8px; padding: 0 4px;
}
.name_box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.info_box { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    padding: 4px 8px; 
}

.avatar-placeholder {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px; font-weight: 600;
}

.info_box .name_box .name { font-size: 14px; font-weight: 500; color: var(--text-primary); line-height: 1.3; }

.el-tag {
    display: inline-flex; align-items: center;
    font-size: 12px; padding: 12px 10px; height: 20px;
    line-height: 20px; border-radius: 3px;
}
.el-tag--primary { background: var(--primary-light); color: var(--primary); border: 1px solid #c6e2ff; }
.el-tag--blue { background: #ecf5ff; color: #409eff; border: 1px solid #d9ecff; display:inline-block; padding:0 8px; line-height:24px; font-size:12px; border-radius:4px; white-space:nowrap; }
.el-tag--blue.el-tag--light { background: #ecf5ff; color: #409eff; }
.el-tag__content { white-space: nowrap; }
.el-icon { align-items: center; display: inline-flex; fill: currentColor; font-size: inherit; height: 1em; justify-content: center; line-height: 1em; position: relative; width: 1em; }

/* ==================== DRAWER 通知抽屉 ==================== */
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); z-index: 1000; display: none;
}
.drawer-overlay.show { display: block; }
.drawer-panel {
    position: fixed; top: 0; right: -480px; width: 480px; height: 100%;
    background: white; z-index: 1001; box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transition: right 0.3s ease; padding: 20px;
}
.drawer-panel.show { right: 0; }
.notice-tab {
    color: #999; cursor: pointer; font-weight: 500;
    border-bottom: 2px solid transparent; padding: 0 0 8px 0;
}
.notice-tab.active {
    color: var(--primary); border-bottom-color: var(--primary);
}

.notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    max-height: calc(100% - 160px);
    overflow-y: auto;    
}

.notice-item {    
    padding: 12px; 
    border-radius: 4px; transition: background 0.15s;
    display: flex; gap: 10px; align-items: flex-start;
}
.notice-item:hover { background: #f7f9fc; }
.notice-item.unread-item { position: relative;cursor: pointer; }
.unread-item::before { 
    content: '';
    position: absolute; z-index:99;
    top: 12px; right: 12px;
    width: 10px; height: 10px; 
    background: var(--eval-red);
    border-radius: 50%;
}
.notice-avatar {
    width: 48px; height: 48px; min-width: 40px;
}
.notice-item-main {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px;
}
.notice-item-sender {
    font-weight: 600; font-size: 15px; color: var(--text-primary);
    line-height: 1.2;
}
.notice-item-content {
    font-size: 13px; color: #555; line-height: 1.5;
    word-break: break-word;
}
.notice-item-time {
    font-size: 12px; color: #b0b3b8; line-height: 1;
}

/* ==================== DROPDOWN PANEL 下拉弹出面板 ==================== */
.dropdown-panel {
    position: fixed; width: 400px;
    background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 200; display: none;
}
.dropdown-panel.show { display: block; }
.dropdown-panel-header { display: flex; align-items: center; justify-content: space-between; }
.dropdown-panel-content {
    display: flex; flex-direction: column;
    justify-content: space-between;
    padding: 24px; gap: 12px;
    border-bottom: 1px solid #e5e5e8;
}
.dropdown-menu-item { display: flex; align-items: center; gap: 8px; padding: 14px 0; font-size: 14px; color: var(--text-primary); cursor: pointer; border-radius: 4px; transition: background 0.15s; }
.dropdown-menu-item:hover { color: #005BFE; }

/* 分页控件 */
.pagination-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding: 12px 0 0 0;
    flex-wrap: wrap;
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.page-size-select {
    min-width: 72px;
    padding-right: 24px;
}

.page-size-select:focus {
    border-color: #005BFE;
}

.seat-count-input {
    width: 70px;
    height: 32px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    color: #005BFE;
    border-color: #005BFE;
}

.page-btn:disabled {
    color: #c0c4cc;
    border-color: #ebeef5;
    cursor: not-allowed;
}

.page-info {
    font-size: 13px;
    color: #606266;
    padding: 0 4px;
    min-width: 50px;
    text-align: center;
}

.enterprise-item {
    display: flex; align-items: center; padding: 10px 12px; gap: 8px;
    border-radius: 6px; cursor: pointer; transition: background 0.2s;
}
.enterprise-item:hover { background: #f5f7fa; }

/* ==================== MAIN VIEW 主视图 ==================== */
#avue-view { min-height: calc(100vh - var(--header-height)); }

/* ==================== BREADCRUMB 面包屑==================== */
.el-breadcrumb { display: flex; align-items: center; font-size: 14px; line-height: 1; margin-bottom: 24px; }
.el-breadcrumb__item { display: inline-flex; align-items: center; color: var(--text-muted); }
.el-breadcrumb__item:last-child { color: var(--text-primary); }
.el-breadcrumb__inner a { color: var(--text-muted); cursor: pointer; }
.el-breadcrumb__inner a:hover { color: var(--primary); }
.el-breadcrumb__separator { margin: 0 8px; color: var(--text-muted); font-size: 12px; }

/* ==================== RADIO BUTTON GROUP (Sub Tabs) 子Tab样式 ==================== */
.el-radio-group {
    display: inline-flex; align-items: center; gap: 0;
}
.el-radio-button { position: relative; border: var(--el-border); overflow:hidden; }
.el-radio-button__original-radio { position: absolute; opacity: 0; pointer-events: none; }
.el-radio-button:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}
.el-radio-button:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}
.el-radio-button.is-active {
    border: var(--primary);
}
.el-radio-button__inner {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 5px 16px; font-size: 14px; color: var(--text-secondary);
    background: var(--bg-white); 
    cursor: pointer; transition: all 0.2s; user-select: none; white-space: nowrap;
}
.el-radio-button.is-active .el-radio-button__inner {
    color: var(--bg-white); background: var(--primary); 
}

/* ==================== BUTTON 按钮样式==================== */
.el-button,
input[type="file"]::file-selector-button {
    align-items: center; -webkit-appearance: none;
    background-color: var(--el-button-bg-color); border: var(--el-border);
    border-color: var(--el-button-border-color); border-radius: var(--el-border-radius-base);
    box-sizing: border-box; color: var(--el-button-text-color); cursor: pointer;
    display: inline-flex; font-weight: var(--el-button-font-weight);
    height: 32px; justify-content: center; padding:0 16px;
    outline: none; text-align: center; transition: all .1s ease;
    vertical-align: middle; white-space: nowrap;
}
input[type="file"]::file-selector-button {
    height:auto;
    padding: 4px 12px;
    font-size: 12px;
    margin-right:6px;
    border-radius: 3px;
}

.el-button:hover,
input[type="file"]::file-selector-button:hover {
    background-color: var(--el-button-hover-bg-color);
    border-color: var(--el-button-hover-border-color);
    color: var(--el-button-hover-text-color);
}
.el-button:active {
    background-color: var(--el-button-active-bg-color);
    border-color: var(--el-button-active-border-color);
    color: var(--el-button-active-text-color);
}
.el-button:disabled {
    background-color: var(--el-button-disabled-bg-color);
    border-color: var(--el-button-disabled-border-color);
    color: var(--el-button-disabled-text-color);
    cursor: not-allowed;
}

.el-button-icon {
    display: flex;
    gap: 6px;
}

.el-button--small {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 3px;
}

/* ---- 全局滚动条 ---- */
::-webkit-scrollbar { width: 6px;}
::-webkit-scrollbar-thumb { background: #cccfd9; border-radius: 3px; transition: background 0.2s ease}
::-webkit-scrollbar-thumb:hover { background: #c0c4cc; }

/* ==================== TABLE 表格样式 ==================== */

/* 表格自带 overflow 容器 */
.my_table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.el-table { width: 100%; border-collapse: collapse; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.el-table__inner-wrapper { position: relative; }
.el-table__header-wrapper table, .el-table__body-wrapper table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.el-table__header th { padding: 14px; text-align: left; background: #f8f9fc; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.el-table__body td { padding: 14px; border-bottom: 1px solid var(--border-color); font-size: 14px; }
.el-table__row { border-bottom: 1px solid var(--border-color); background: #fff; }
.el-table__row:hover { background: var(--bg-body); }
.el-table__row td { padding: 14px;}

.el-table__row--striped { background: #fff; }
.el-table__row .divider { color:rgb(235,235,235);margin:0px 5px; }

.action-table thead th:last-child { text-align: right; }
.action-table tbody td:last-child { text-align: right; }
.order-table tr:first-child td:last-child { border-left: 1px solid var(--border-color);}
.order-table thead th { background: #fff; }

.table-icon-name-item { display: flex; align-items: center; gap: 10px; flex:1; }

/* 表格通用容器 - 支持横向滚动 */
.common-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 让 my_table 在窄屏触发滚动（根据实际列内容） */
.common-table-container .my_table {
    min-width: 480px;
}

/* ==================== PRODUCT PAGE 产品页面 ==================== */
.product_page { padding: 16px 0; display: flex; justify-content: center; }
.product-icon { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; }
.product-icon-fallback {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #e8f0ff;
    font-size: 11px;
    color: #005BFE;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}
.table-product-icon { width: 40px; height: 40px; border-radius: 2px; object-fit: cover; }
.table-product-name { font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Inner Tabs */
.el-tabs { width: 100%; }
.el-tabs__header { border-bottom: 1px solid var(--border-color);}
.el-tabs__nav-wrap { position: relative; }
.el-tabs__nav-scroll { overflow: hidden; }
.el-tabs__nav { display: flex; white-space: nowrap; position: relative; transition: transform 0.3s; }
.el-tabs__active-bar { position: absolute; bottom: 0; height: 2px; background: var(--primary); transition: transform 0.3s, width 0.3s; z-index: 1; }
.el-tabs__item { display: inline-flex; align-items: center; padding: 0; height: 40px; font-size: 14px; color: var(--text-secondary); cursor: pointer; transition: color 0.2s; user-select: none; }
.el-tabs__item.is-active { color: var(--primary); font-weight: 500; }
.el-tabs__item:hover { color: var(--primary); }

.device-unbind-note {font-size:13px;color:var(--text-secondary);text-align:left;line-height: 1.8;margin-top: 12px;}

/* ==================== ORDERS PAGE 订单页面 ==================== */
.orders_page .card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.order-filters { margin-bottom: 12px; }
.order-filter-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.search-input-wrapper { position: relative; width: 280px; }
.search-input { width: 100%; padding: 7px 36px 7px 12px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 14px; color: var(--text-primary); background: #fff; outline: none; transition: border-color 0.2s; height: 36px; }
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: #c0c4cc; }
.search-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.date-range-wrapper { display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; height: 36px; background: #fff; }
.date-icon { flex-shrink: 0; }
.date-input { border: none; outline: none; font-size: 14px; color: var(--text-primary); background: transparent; width: 130px; padding: 4px 0; font-family: inherit; }
.date-input::-webkit-calendar-picker-indicator { opacity: 0.4; cursor: pointer; }
.date-separator { color: #c0c4cc; flex-shrink: 0; }
.orders_page .el-alert { display: flex; align-items: center; padding: 12px 16px; background: #f0f5ff; border-left: 3px solid var(--primary); border-radius: 4px; }
.orders_page .el-alert__title { font-size: 13px; color: #606266; line-height: 1.5; }
.order-list-container { height: calc(100vh - 320px); overflow-y: auto; margin: 16px 0; }
.order-list-container::-webkit-scrollbar { width: 6px; }
.order-list-container::-webkit-scrollbar-thumb { background: #c0c4cc; border-radius: 3px; }
.orders_page .el-collapse { border-top: none; border-bottom: none; }
.orders_page .el-collapse-item { overflow: hidden; }
.orders_page .el-collapse-item__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: #fafbfc; cursor: pointer; user-select: none; border-bottom: 1px solid #ebeef5; transition: background 0.2s; position: relative; }
.orders_page .el-collapse-item__title { flex: 1; }
.orders_page .title-wrapper { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.orders_page .title-wrapper .fz14 { font-size: 14px; line-height: 22px; }
.orders_page .title-wrapper .fz14.c-666 { color: #666; }
.orders_page .title-wrapper .fz14.c-222 { color: #222; font-weight: 500; }
.orders_page .title-wrapper .mr24 { margin-right: 24px; }
.orders_page .el-collapse-item__arrow { width: 16px; height: 16px; color: #999; transition: transform 0.3s ease; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.orders_page .el-collapse-item__arrow.is-active { transform: rotate(90deg); }
.orders_page .el-collapse-item__wrap { overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); max-height: 0; }
.orders_page .el-collapse-item__content { padding: 0; background: #fff; }
.orders_page .my_table .align-center { display: flex; align-items: center; gap: 8px; }
.orders_page .my_table .align-center img { width: 40px; height: 40px; border-radius: 4px; object-fit: contain; flex-shrink: 0; }
.orders_page .empty-state { display: flex; flex-direction: column; align-items: center; padding: 40px 0; }
.orders_page .empty-state img { width: 300px; height: 225px; }
.orders_page .empty-state p { font-size: 12px; color: #666; margin-top: 8px; }

/* ==================== TEAM PAGE 团队页面==================== */
.team_page { padding: 16px 0; display: flex; justify-content: center; }
.info-grid { display: grid; grid-template-columns: 120px 1fr; gap: 16px 24px; padding: 24px; }
.info-label { color: var(--text-muted); text-align: right; line-height: 24px; }
.info-value { color: var(--text-primary); line-height: 24px; }
.org-tree-panel { width:300px;flex-shrink:0;padding:24px;border-right: 1px solid #EBEBEB; }
.org-detail-header { flex:1;padding:24px; }
.member-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0px;
}

.verify-code {
    padding:6px 16px;
    background:#f0f5ff;color:#409eff;
    border:1px dashed #91d5ff;border-radius:4px;
    font-size:18px;font-weight:600;letter-spacing:4px;font-family:monospace;
}

/* ==================== ORG TREE 组织架构图==================== */
ul.org-tree, ul.org-children { list-style: none; padding: 0; margin: 0; }
.org-node { margin: 0; }
.org-node-header { display: flex; align-items: center; gap: 6px; padding: 6px 0; cursor: pointer; }
.org-toggle { font-size: 10px; width: 16px; text-align: center; color: #999; transition: transform 0.15s; flex-shrink: 0; }
.org-toggle.expanded { transform: rotate(90deg); }
.org-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ddd; flex-shrink: 0; margin: 0 4px; }
.org-label { font-size: 14px; color: var(--text-primary); padding: 4px 8px; border-radius: 4px; transition: background 0.15s; flex: 1; }
.org-label:hover { background: #f0f5ff; }
.org-label.active { background: #e8f0ff; color: #005BFE; font-weight: 500; }
.org-children { padding-left: 22px !important; margin-left: 7px !important; }
.org-search-box { margin-bottom: 12px; }

/*部门名称编辑图标*/
.org-node-header {
    position: relative;
}

.org-edit-btn {
    display: none;
    background: #e8f0ff;
    border-radius: 3px;
    cursor: pointer;
    padding:4px 6px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    font-size: 14px;
    color: #005BFE;
    line-height: 18px;
    text-align: center;
    user-select: none;
}

.org-node-header:hover .org-edit-btn {
    display: flex;
}

.org-edit-btn:hover {
    background: #d0e0ff;
}

/* dept-select 包裹容器 — 显示完整路径覆盖层 */
.dept-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dept-select-wrapper select {
    color: transparent;
}

.dept-select-overlay {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 16px);
    z-index: 1;
    line-height: 1.2;
}
.dept-select-overlay:disabled {
    color: var(--text-muted);
}

/*部门添加按钮*/
.org-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
}

.org-title-row h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.org-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    line-height: 1;
    user-select: none;
    transition: all 0.15s;
}

.org-add-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ==================== 表单模态框 ==================== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group label .required {
    color: #e84026;
    margin-left: 2px;
}

input,
select,
textarea {
    width: 100%;
    height: 36px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,91,254,0.1);
}

select {
    appearance: none;
    MozAppearance: none;
    WebkitAppearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"12\" height=\"12\"><path fill=\"rgb(96,98,102)\" d=\"M2 4l4 4 4-4\"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;    
}

select:disabled {
    background-color:var(--bg-body);
}

input[type="file"] {
    align-content: center;
    font-size:12px;
}
.dept-select {
    color: transparent;
}

.dept-select option {
    color: var(--text-primary);
}

select option {
    padding: 4px 8px;
    cursor: pointer;
}

select option:disabled {
    cursor: default;
}

/* multiple select — 移除下拉箭头和白色背景 */
select[multiple] {
    background: none !important;
    appearance: auto;
    -moz-appearance: auto;
    -webkit-appearance: auto;
    min-height: 120px;
}

input::placeholder {
    color: #c0c4cc;
}

.form-error {
    color: #e84026;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

/* ==================== SEAT/AUTH PAGE 坐席授权页面 ==================== */
.stats-row { display: flex; justify-content: space-between; padding: 16px 20%; background: #f8f9fc; border-radius: 6px; margin: 0 0 24px; }
.stats-row .stat-item { text-align: center; }
.stats-row .stat-item .stat-num { font-size: 24px; font-weight: 600; color: var(--text-primary); }
.stats-row .stat-item .stat-label { font-size: 14px; color: #666; margin-top: 4px; }
.info-box { background: #f8f9fc; border-radius: 6px; padding: 16px 24px; margin-bottom: 20px; }
.info-box p { margin: 0; color: #666; font-size: 13px; }
.switch-wrapper { display: inline-flex; align-items: center; gap: 8px; }
.switch-wrapper .switch-track { position: relative; display: inline-block; width: 36px; height: 20px; border-radius: 10px; background: #dcdfe6; cursor: pointer; transition: background 0.3s; flex-shrink: 0; }
.switch-wrapper .switch-track.is-checked { background: #409eff; }
.switch-wrapper .switch-track.is-disabled { background: #dcdfe6; cursor: not-allowed; opacity: 0.6; }
.switch-wrapper .switch-track .switch-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.15); transition: left 0.3s; }
.switch-wrapper .switch-track.is-checked .switch-knob { left: 18px; }
.product-header { padding: 0 0 24px; }
.product-header .info { display: flex; align-items: center; justify-content: space-between; }
.product-header .info .left { display: flex; align-items: center; gap:12px; }
.product-header .info .left .product-icon { width: 68px; height: 68px; border-radius: 6px; object-fit: contain; }
.product-header .info .left .product-name { font-size: 18px; font-weight: 600; }
.product-header .info .left .product-id { font-size: 14px; color: #999; margin: 8px 0; }
.product-header .info .left .product-date { font-size: 12px; color: #999; }
.product-header .info .controls { display: flex; align-items: center; gap: 24px; }
.product-header .info .controls .control-item { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.page-back-area { display: flex; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #ebeef5; margin-bottom: 24px; }
.page-back-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #fff; border: 1px solid #d9d9d9; border-radius: 6px; cursor: pointer; font-size: 16px; color: var(--text-primary); transition: all 0.2s; }
.page-back-icon:hover { border-color: #005BFE; color: #005BFE; }
.page-back-icon svg { width: 16px; height: 16px; fill: currentColor; }
.page-back-title { font-size: 16px; color: #222; font-weight: 600; margin: 0 0 0 12px; }

/* ==================== HOME PAGE 首页==================== */
.index_page { padding-bottom: 40px; background-color: var(--bg-white); min-height: calc(100vh - var(--header-height)); }
.index_top { display: flex; flex-direction: column; overflow: hidden; background: #ebf8fd; justify-content: space-between; height: 370px; }
.index_top .bg_img { position: absolute; right: 0; top: 0; z-index: 1; max-height: 370px; object-fit: initial; }
.welcom_wrap { margin-bottom: 8px; padding: 84px 20px 20px 10px; max-width: 70%; }
.welcom_text { font-size: 38px; font-weight: 600; color: #001; margin-bottom: 8px; }
.welcom_text .name { color: var(--primary); }
.service_bg { background: -webkit-linear-gradient(bottom, #edf9ff 0%, #edf9ff 60%, transparent 100%); z-index: 10; }
.service_content { display: flex; gap: 16px; }
.service_item { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid transparent; flex: 1; cursor: pointer; }
.service_item:hover { background-color: #ffffffb3; border-bottom: 1px solid #005BFE; transition: all .3s ease; }
.ub-fv { flex: 1; }
.service_title { font-size: 16px; font-weight: 600; margin-top: 0; margin-bottom: 4px; line-height: 24px; color: #001; }
.service_text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.index_content { margin: 0 auto; display: flex; gap: 24px; }
.left_card { flex: 2; background: transparent; box-shadow: none; overflow: visible; }
.card_header { display: flex; justify-content: space-between; align-items: center; padding: 24px 0px; }
.card_title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.card_title:before { content: ""; display: inline-block; width: 4px; height: 16px; margin-right: 8px; transform: translateY(1px); background-color: var(--el-color-primary); }
.switch_wrap { display: flex; gap: 4px; margin-left: auto;}
.switch_item { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); cursor: pointer; transition: background 0.2s; }
.switch_item.active { background: var(--primary-light); }
.card_content { display: flex; flex-wrap: wrap; gap: 20px; }
.card_item { width: calc(33.333% - 13.5px); padding: 20px 24px; height: 168px; border-radius: 8px; background: linear-gradient(170deg,#fff 68%,#eef6ff 106%); box-sizing: border-box; border: 1px solid #D9ECFF; display: flex; flex-direction: column; justify-content: space-between; }
.card_item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.card_header_row { display: flex; align-items: center; justify-content: space-between; }
.card_product_info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.product_icon { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.product_name { font-size: 16px; font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card_meta_row { display: flex; justify-content: space-between; margin-top: 16px; }
.card_meta_item { display: flex; flex-direction: column; gap: 4px; }
.card_meta_label { font-size: 13px; color: #999; line-height: 20px; }
.card_meta_value { font-size: 14px; color: var(--text-primary); line-height: 20px; }

/* ==================== TAB CONTENT VISIBILITY Tab标签可见 ==================== */
.page-content { display: none; }
.page-content.active { display: block; }
.sub-tab-content { display: none; }
.sub-tab-content.active { display: block; }
.inner-tab-content { display: none; padding-top: 16px; }
.inner-tab-content.active { display: block; }
.stat-inner-tab { display: none; }
.stat-inner-tab.active { display: block; }
.hide { display: none; }
.show { display: block; }

/* ==================== MODAL (分配坐席弹框) ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    width: 520px;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

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

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 16px 24px 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.modal-product-name {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-search {
    margin-bottom: 12px;
}

.modal-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.modal-search input:focus {
    border-color: var(--primary);
}

.modal-search input::placeholder {
    color: #c0c4cc;
}

.modal-member-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.modal-member-list::-webkit-scrollbar {
    width: 6px;
}

.modal-member-list::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 3px;
}

.modal-member-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.modal-member-item:last-child {
    border-bottom: none;
}

.modal-member-item:hover {
    background: #f5f7fa;
}

.modal-member-item.selected {
    background: #ecf5ff;
}

.modal-member-info {
    flex: 1;
    min-width: 0;
}

.modal-member-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.modal-member-role {
    font-size: 12px;
    color: var(--primary);
    background: #ecf5ff;
    padding: 1px 8px;
    border-radius: 3px;
    margin-left: 8px;
}

.modal-member-detail {
    font-size: 12px;
    color: #999;
}

.modal-member-select {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
    margin-left: 12px;
}

.modal-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.el-button--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.el-button--primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.el-button--primary:disabled {
    background: #a0c4ff;
    border-color: #a0c4ff;
    color: #fff;
    cursor: not-allowed;
}

.el-button--default {
    background: #fff;
    border-color: #dcdfe6;
    color: #606266;
}

.el-button--default:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ==================== 群组管理 ==================== */
.group-panel {
    padding: 16px;
}

.group-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.group-title-row h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.group-add-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
}

.group-add-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.group-search-box {
    margin-bottom: 12px;
}

.group-search-box input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.group-search-box input:focus {
    border-color: var(--primary);
}

.group-list {
    max-height: 500px;
    overflow-y: auto;
}

.group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-bottom: 1px solid #ebeef5;
    cursor: pointer;
    transition: background 0.2s;
}

.group-item:hover {
    background: #f5f7fa;
}

.group-item-active {
    background: #ecf5ff;
}

.group-item-info {
    flex: 1;
    min-width: 0;
}

.group-item-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-item-count {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.group-item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-left: 8px;
}

.group-detail {
    padding: 20px;
}

.group-detail-header {
    margin-bottom: 24px;
}

.group-detail-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.group-detail-desc {
    font-size: 13px;
    color: #999;
}

.group-detail-section {
    margin-bottom: 24px;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-title-row h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.c-danger {
    color: #f56c6c;
}

.c-danger:hover {
    color: #f89898;
}

/* ==================== 成员详情页 ==================== */

/* 头部区域 */
.member-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #ebeef5;
    margin-bottom: 24px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
    min-width: 40px;
}

.member-avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.member-detail-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.member-detail-id {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* 基础信息 grid — 自适应列数 */
/* 基础信息 grid — 固定3列等宽 */
.member-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.member-info-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 编辑信息 grid */
.member-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-bottom: 16px;
}

.member-section-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

/* 群组多选 select */
.member-group-select {
    width: 100%;
    min-height: 120px;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px;
    font-size: 14px;
    box-sizing: border-box;
}
.member-group-select option {
    padding: 6px 8px;
}
.member-group-select option:checked {
    background: var(--el-color-primary-light-9);
    color: var(--el-color-primary, #005BFE);
}

/* 保存按钮容器 — 在编辑信息外部 */
.member-save-row {
    display: flex;
    justify-content: flex-end;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

/* 产品表容器 */
.member-product-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.member-detail-page .member-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.member-detail-page .group-select-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: 36px;
}

.member-detail-page .group-select-container label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f5f7fa;
}

.member-detail-page .group-select-container label:hover {
    background: var(--el-color-primary-light-9);
}

.member-info-summary h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.member-meta {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.member-edit-section,
.member-products-section {
    padding: 20px;
    margin-bottom: 24px;
}

.form-horizontal .form-group {
    margin-bottom: 16px;
}

.form-horizontal label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-horizontal select {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.form-horizontal select:focus {
    border-color: var(--primary);
}

.form-horizontal select[multiple] {
    height: 120px;
}

/* ==================== 群组管理 ==================== */
.group-list-item {
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.group-list-item:hover {
    background: #f5f7fa;
}

.group-list-item.active {
    background: #e8f0ff;
}

.group-list-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-avatar {
    width: 48px;
    height: 48px;
}

.group-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==================== 成员详情页(旧) ==================== */
.member-detail-info h2 {
    font-size: 20px;
    margin: 0 0 4px;
}

.member-detail-info .detail-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.member-detail-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 24px;
    margin-bottom: 16px;
}

.member-detail-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
}

/* ==================== 设置页面 ==================== */
.settings-page .sub-tab-content {
    display: none;
}

.settings-page .sub-tab-content.active {
    display: block;
}

/* ==================== 群组侧栏 ==================== */
.group-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 16px;
}

/* ==================== 成员勾选 ==================== */
.member-check,
.member-check-all {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.member-row-cursor {
    cursor: pointer;
}

.member-row-cursor:hover {
    background-color: #f5f7fa;
}

.el-select {
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-primary);
    background: #fff;
}

.el-select:disabled {
    background: #f5f7fa;
    color: #999;
    cursor: not-allowed;
}

/* ==================== TAG / STATUS 标签和状态样式 ==================== */
.tag { 
    --el-tag-font-size: 12px; --el-tag-border-radius: 4px;
    align-items: center; background-color: var(--el-tag-bg-color);
    border-color: var(--el-tag-border-color); border-radius: var(--el-tag-border-radius);
    border-style: solid; border-width: 1px;
    box-sizing: border-box; color: var(--el-tag-text-color);
    display: inline-flex; font-size: var(--el-tag-font-size);
    height: 24px; justify-content: center; line-height: 1;
    padding: 0 9px; vertical-align: middle; white-space: nowrap;
    --el-icon-size: 14px;
}
.success { color: var(--success); background-color: #e8f8e8; border-color: #d2efbc; }
.warning { color: var(--warning); background-color: #fff2e8; border-color: #ffe6d2; }
.unable { color: var(--disabled); background-color: #f5f7fa; border-color: #e4e7ed; }

.uc-4 { background: var(--primary-light); color: var(--primary); }
.uc-8 { border-radius: 8px; }
.uball { border: 1px solid rgba(133, 135, 139, .15); }

.status { display: inline-block; height: 24px; line-height: 24px; border-radius: 2px; padding: 0 12px; text-align: center; vertical-align: middle; white-space: nowrap;}

.valid { color: #00b42a; background: #e8ffea; }
.inactive { color: #ff4d4f; background: #fff2f0; }
.expired { color: #999; background: #f0f0f0; }
.notion { color: var(--el-color-primary); background: #ecf5ff; }
.log-seat { color: #8a3ff2; background: #f5ecff; border-color: #e2d6f7; }
.log-filter-label { font-size: 14px; color: var(--text-primary); white-space: nowrap; }
.log-subtype { font-size: 13px; color: var(--text-secondary, #606266); }

/* 坐席管理 - 部门详情只读 checkbox，同成员列表尺寸 */
.seat-dept-checkbox {
    width: 16px;
    height: 16px;
    cursor: default;
    accent-color: var(--primary);
    vertical-align: middle;
}

/* ==================== 坐席管理左右分栏 ==================== */
.seat-left-panel {
    width: 300px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.seat-left-header {
    display: flex;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #ebeef5;
}

.seat-left-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.seat-search-box {
    padding: 12px 16px;
}

.seat-search-box input {
    width: 100%;
    box-sizing: border-box;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.seat-search-box input:focus {
    border-color: var(--primary);
}

.seat-left-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.seat-list-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.seat-list-item:hover {
    background: #f5f7fa;
}

.seat-list-item.active {
    background: #e8f0ff;
}

.seat-list-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seat-list-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seat-auto-badge {
    color: #67c23a;
    margin-left: 10px;
    font-size: 12px;
}

.seat-auto-badge:before {
    content:'';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #67c23a;
}

.seat-share-badge {
    color: #409eff;
    margin-left: 10px;
    font-size: 12px;
}

.seat-share-badge:before {
    content:'';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #409eff;
}

.seat-list-item-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.seat-right-panel {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    min-height: 480px;
}

.seat-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ebeef5;
}

.seat-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.seat-detail-id {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.seat-detail-meta {
    display:flex;
    gap: 4px;
    align-items: center;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.seat-detail-section {
    margin-top: 16px;
    padding-top: 12px;
}

.seat-detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
}

.seat-detail-section .flex-between {
    margin-bottom: 12px;
    align-items: baseline;
}

/* 群组管理右侧样式（复用） */
.group-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* ===== 坐席-个人分配页 成员信息行 ===== */
.member-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.member-info-label {
    width: 48px;
    flex-shrink: 0;
    font-size: 13px;
    color: #999;
}

.member-info-value {
    font-size: 14px;
    color: #333;
}

.member-info-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    transition: all 0.2s;
}

.member-info-edit-btn:hover {
    background: #f0f0f0;
    color: #005BFE;
}

/* 坐席-部门树状 根节点不可选样式 */
.org-label-root {
    cursor: default !important;
    color: #333 !important;
    font-weight: 600;
}

/* 坐席页面 表格右上按钮区容器 */
.seat-table-actions {
    display:flex;
    gap:8px;
    align-items:center;
    justify-content: flex-end;
}

/* 坐席页面 团队已使用提示 */
.dept-used-tips {
    font-family: cursive;
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 1.2;
    text-align: center;
    border-radius:50%;
    background:var(--disabled);
    color:var(--bg-white);
    cursor:default;}

/* ==================== 坐席页面 checkbox 统一样式 ==================== */
.member_seat_check,
.product_member_check,
.group_member_check,
.dept_member_check {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
    vertical-align: middle;
}

/* ==================== Toast 全局通知框 ==================== */
.toast-container {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.toast-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    min-width: 200px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: auto;
    animation: toastIn 0.3s ease-out;
    transition: opacity 0.3s ease, margin-top 0.3s ease-out, max-height 0.3s ease, padding 0.3s ease;
    max-height: 80px;
    overflow: hidden;
}
.toast-item.toast-leaving {
    opacity: 0;
    margin-top: -57.2px;
}
.toast-item.toast-success {
    background: rgba(0, 180, 83, 0.65);
}
.toast-item.toast-error {
    background: rgba(230, 50, 50, 0.65);
}
.toast-item.toast-warning {
    background: rgba(255, 138, 0, 0.65);
}
.toast-item.toast-info {
    background: rgba(64, 128, 255, 0.65);
}
.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.toast-msg {
    flex: 1;
}

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

/* ==================== 开关切换组件 (el-switch) ==================== */
.el-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.el-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.el-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #dcdfe6;
    transition: 0.3s;
    border-radius: 24px;
}
.el-switch-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
}
.el-switch input:checked + .el-switch-slider {
    background: var(--primary);
}
.el-switch input:checked + .el-switch-slider:before {
    transform: translateX(20px);
}
.el-switch input:disabled + .el-switch-slider {
    opacity: 0.5;
    cursor: not-allowed;
}
.el-switch input:disabled + .el-switch-slider:before {
    cursor: not-allowed;
}

/* ==================== 模拟登录框 ==================== */

.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-repeat: no-repeat;
    background-image: url(/img/BG.jpg);
    background-size: cover;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主容器：左+右双栏布局，沿用 portal 卡片圆角 */
.login-modal {
    background: #fff;
    width: 900px;
    max-width: 94vw;
    height: 550px;
    min-height: 550px;
    max-height: 90vh;
    display: flex;
    box-shadow: 0 12px 48px rgba(0,0,0,0.25);
}

/* ===== 左侧装饰区 ===== */
.login-left-deco {
    flex: 0 0 340px;
    background: linear-gradient(180deg, #1a73e8 0%, #1557b0 100%);
    color: #fff;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.login-logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
}
.login-logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
}
.login-logo-area h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
}
.login-left-desc {
    font-size: 13px;
    opacity: 0.7;
    text-align: center;
    margin-top: -8px;
}
.login-left-bottom {
    text-align: center;
}
.login-left-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    opacity: 0.65;
    margin-bottom: 12px;
}
.login-left-links a {
    color: #fff;
    cursor: default;
}
.login-dot { opacity: 0.5; }
.login-copyright {
    font-size: 11px;
    opacity: 0.5;
}

/* ===== 右侧表单区 ===== */
.login-right-form {
    flex: 1;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.login-right-form img {
    height: 30px;
    margin-right: auto;
}

/* Tab 切换 */
.login-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}
.login-tab {
    font-size: 15px;
    color: var(--text-muted);
    cursor: default;
    padding: 0 4px 12px;
    position: relative;
    transition: color 0.2s;
}
.login-tab.active {
    color: #222;
    font-weight: 600;
}
.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 2px;
    background: #1a73e8;
    border-radius: 1px;
}

/* 表单字段 */
.login-form-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.login-field-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 自定义下拉选择器 */
.login-select-wrap {
    position: relative;
    cursor: pointer;
}
.login-select-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #dcdfe6;
    background: #fff;
    transition: border-color 0.2s;
}
.login-select-trigger:hover {
    border-color: #1a73e8;
}
.login-sel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eff5ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.login-sel-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}
.login-sel-arrow {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.login-select-dropdown.show .login-sel-arrow {
    transform: rotate(180deg);
}

/* 下拉面板（已选时触发器的样式由 dataselected-id 控制） */
.login-select-trigger[data-selected] {
    border-color: #1a73e8;
}
.login-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    z-index: 100;
    display: none;
    max-height: 420px;
    overflow: hidden;
    flex-direction: column;
}
.login-select-dropdown.show {
    display: flex;
}
.login-select-search {
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
    flex-shrink: 0;
}
.login-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 2px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.login-select-search input:focus {
    border-color: var(--primary);
}
.login-select-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

/* 下拉项列表 */
.login-sel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.login-sel-item:hover {
    background: #f0f5ff;
}
.login-sel-item.selected {
    background: var(--primary-light);
}
.login-sel-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff5ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.login-sel-item-info {
    flex: 1;
    min-width: 0;
}
.login-sel-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}
.login-sel-item-detail {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.login-sel-item-check {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}
.login-sel-item.selected .login-sel-item-check {
    opacity: 1;
}

.login-sel-item-role-tag {
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 2px;
}

/* 密码框 */
.login-pwd-wrap {
    position: relative;
}
.login-pwd-input {
    width: 100%;
    padding: 10px 14px;
    border-bottom: 1px solid #dcdfe6;
    font-size: 14px;
    box-sizing: border-box;
    color: var(--text-muted);
    cursor: not-allowed;
    letter-spacing: 3px;
}

/* 选项区 */
.login-option {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.login-option input[type="checkbox"] {
    height: 16px;
    width: 16px;
    cursor: pointer;
}

.login-form-body a {
    color: var(--primary);
}

.login-form-body a:hover {
    color: var(--primary-hover);
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    letter-spacing: 2px;
}
.login-btn:hover {
    background: #1557b0;
}
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 数据统计页 ===== */

.stat-page {
    min-height: 400px;
}

.stat-sub-tabs {
    margin-bottom: 16px;
}

.stat-sub-tabs .el-radio-button__inner {
    font-size: 14px;
    padding: 6px 20px;
}

.stat-sub-tabs .el-radio-button.is-active .el-radio-button__inner {
    color: #fff;
    background: var(--primary);
    font-weight: 500;
}

.stat-sub-tabs .el-radio-button:first-child {
    border-radius: 4px 0 0 4px;
}

.stat-sub-tabs .el-radio-button:last-child {
    border-radius: 0 4px 4px 0;
}

.stat-sub-tabs .el-radio-button:not(:first-child) {
    margin-left: -1px;
}

.stat-dept-panel {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

.stat-left-panel {
    width: 260px;
    padding-right:24px;
    padding-bottom: 12px;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 270px);
    overflow-y: auto;
}

.stat-search-box {
    padding-top: 16px;
}

.stat-search-input {
    width: 100%;
    box-sizing: border-box;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--el-border-color);
    border-radius: 4px;
    font-size: 13px;
    outline: none;
}

.stat-search-input:focus {
    border-color: var(--primary);
}

.stat-left-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.stat-dept-list-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-dept-list-item:hover {
    background: #f5f7fa;
}

.stat-dept-list-item.selected {
    background: #e8f0ff;
    color: var(--primary);
    font-weight: 500;
}

.stat-dept-arrow {
    display: inline-block;
    font-size: 10px;
    color: var(--text-muted);
    width: 16px;
    flex-shrink: 0;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s;
}

.stat-dept-arrow.expanded {
    transform: rotate(90deg);
}

.stat-dept-arrow-placeholder {
    display: inline-block;
    width: 16px;
    flex-shrink: 0;
}

.stat-dept-node-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-right-panel {
    flex: 1;
    min-width: 0;
    padding-bottom: 12px;
}

.stat-right-inner {
    background: #fff;
    max-height: calc(100vh - 350px);
    overflow-y: auto;
}

.stat-filter-bar {
    padding: 16px 0;
}

.stat-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 成员数据页「按成员汇总」复选框 */
.stat-member-group-chk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary, #606266);
    font-size: 14px;
    margin: 0;
    flex-shrink: 0;
}
.stat-member-group-chk input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #005BFE;
    cursor: pointer;
    margin: 0;
}
.stat-member-group-chk .el-checkbox__label {
    line-height: 1;
}

.stat-period-group {
    flex-shrink: 0;
}

.stat-date-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-date-input {
    height: 32px;
    min-width: 100px;
}

.stat-date-sep {
    color: var(--text-muted);
    font-size: 13px;
}

.stat-product-select {
    flex:1;
    min-width: 170px;
    max-width: 300px;
}
.stat-product-select select {
    height: 32px;
}

.stat-view-toggle {
    display: inline-flex;
    border: 1px solid var(--el-border-color);
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.stat-view-btn {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary);
    background: #fff;
    transition: all 0.15s;
}

.stat-view-btn.active {
    background: var(--primary);
    color: #fff;
}

.stat-view-btn:hover:not(.active) {
    background: #f5f7fa;
}

.stat-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.stat-dept-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.stat-summary-cards {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
}

.stat-summary-card {
    flex: 1;
    min-width: 140px;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-summary-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-summary-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-chart-container {
    overflow-x: auto;
    margin-top: 16px;
}

.stat-license-progress-section {
    display: flex;
    background: #fff;
    border-radius: 8px;
    gap:24px;
}

.stat-progress-legend {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
}
.stat-progress-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.stat-progress-item .allocated {
    background: var(--primary);
}

.stat-progress-item .used {
    background: #14c9c9;
}

.stat-progress-label {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 120px;
    flex-shrink: 0;
}

.stat-progress-label+.allocated {
    background: rgba(0, 91, 254, 0.1);
}

.stat-progress-label+.used {
    background: rgba(20, 201, 201, 0.1);
}

.stat-progress-num {
    color: #333;
    font-weight: 500;
}

.stat-progress-bar-bg {
    height: 16px;
    overflow: hidden;
}

.stat-progress-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

/* 许可表格内使用率小进度条 */
.stat-cell-rate {
    min-width: 90px;
}
.stat-cell-rate-pct {
    font-size: 13px;
    color: var(--text-primary, #303133);
}
.stat-cell-rate-bar {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 3px;
    margin-top: 4px;
    overflow: hidden;
}
.stat-cell-rate-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.stat-cell-rate-fill.allocated {
    background: var(--primary);
}
.stat-cell-rate-fill.actual {
    background: #0fa3a3;
}
.stat-cell-rate-fill.used {
    background: #14c9c9;
}

.stat-progress-pct {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 40px;
    text-align: right;
}

.stat-list-mode .common-table-container {
    margin-top: 16px;
}

.stat-license-page {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 统计成员数据行内展开  */
#statMemberTableArea tr.el-table__row.shouzhi:hover {
    cursor: pointer;
    color: inherit;
    opacity: 1;
    background-color: #f5f7fa;
}

.stat-row-selected {
    background-color: #e8f0fe !important;
}

.stat-member-detail-row td {
    border-bottom: none !important;
}

.stat-member-detail-content {
    background: #f0f5ff;
    padding: 16px 24px;
    margin: 0;
}

.stat-member-detail-inner {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.stat-member-detail-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-member-detail-close {
    cursor: pointer;
    color: #999;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
}

.stat-member-detail-close:hover {
    background: #f0f0f0;
    color: #333;
}

.stat-detail-cards {
    border-top: none;
    padding-top: 0;
}

.stat-detail-cards .stat-summary-card {
    min-width: 100px;
    padding: 12px 16px;
}

.stat-detail-cards .stat-summary-num {
    font-size: 22px;
}

.stat-detail-cards .stat-summary-num .status {
    font-size: 12px;
    font-weight: 400;
    padding: 2px 8px;
}

/* ==================== UTILITIES 工具样式 ==================== */
.shouzhi { cursor: pointer; }
.shouzhi:hover { opacity: 0.8; color: var(--primary); }
.shouzhi.disabled { cursor: default; color: var(--text-muted);}
.shouzhi.disabled:hover { opacity: 1; color: var(--text-muted);}
.c-999 { color: var(--text-muted); }
.c-666 { color: var(--text-secondary); }
.c-222 { color: var(--text-primary); }
.c-005 { color: var(--primary); }
.c-165 { color: var(--primary); }
.fs12 { font-size: 12px; }
.fs14 { font-size: 14px; }
.fs16 { font-size: 16px; }
.fs24 { font-size: 24px; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.lh20 { line-height: 20px; }
.lh24 { line-height: 24px; }
.mb0 { margin-bottom: 0; }
.mb8 { margin-bottom: 8px; }
.mb12 { margin-bottom: 12px; }
.mb24 { margin-bottom: 24px; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.ml8 { margin-left: 8px; }
.ml12 { margin-left: 12px; }
.ml16 { margin-left: 16px; }
.mr8 { margin-right: 8px; }
.mr12 { margin-right: 12px; }
.mr16 { margin-right: 16px; }
.mr64 { margin-right: 64px; }
.plr12 { padding-left: 12px; padding-right: 12px; }
.plr16 { padding-left: 16px; padding-right: 16px; }
.plr24 { padding-left: 24px; padding-right: 24px; }
.plr32 { padding-left: 32px; padding-right: 32px; }
.pt32 { padding-top: 32px; }
.pt16 { padding-top: 16px; }
.ptb8 { padding-top: 8px; padding-bottom: 8px; }
.ptb16 { padding-top: 16px; padding-bottom: 16px; }
.ptb24 { padding-top: 24px; padding-bottom: 24px; }
.ptb32 { padding-top: 32px; padding-bottom: 32px; }
.pb12 { padding-bottom: 12px; }
.bc-fff { background: var(--bg-white); }
.over-hide { overflow: hidden; }
.rela { position: relative; }
.ub-maxfh92 { max-width: 1400px; width: 100%; padding: 0 24px; }
.align-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; }
.tx-1 { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt9 { margin-top: 9px; }
.tc { text-align: center;}
.tl { text-align: left;}
.tr { text-align: right;}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1440px) { .card_item { width: calc(50% - 10px); } }

@media (max-width: 1000px) {
    .service_bg .service_content { gap: 0; }
    .index_top .service_item .service_text { display: none; }
    .card_item { width: 100%; }
}

@media (max-width: 768px) {
    /* 全局 */    
    body { min-width: auto !important; }

    .section_center {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Header — 紧凑布局，确保右侧头像可见 */
    .avue-top { height: 60px; }
    .section_center[style*="920px"] { min-width: 0 !important; }
    .section_center.flex-between { gap: 8px; }
    .top-bar__title { flex: 1; min-width: 0; }
    .top-bar__title .mr64 { margin-right: 8px; }
    .top-bar__right { flex-shrink: 0; }
    .link_box { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; flex: 1; }
    .link_box .link { padding: 0 6px; font-size: 13px; height: 60px; flex-shrink: 0; }
    .logo_box { flex-shrink: 0; }
    .logo_box img { height: 18px; }
    .info_box .name_box .name { font-size: 11px; }
    .info_box { gap: 4px; padding: 2px 4px; }
    .info_box .avatar-placeholder { width: 30px; height: 30px; font-size: 11px; }
    .info_box .name_box .el-tag { font-size: 10px; padding: 0 6px; line-height: 18px; }
    .info_box .name_box svg { display: none; }
    .notice { padding: 6px; }
    .notice svg { width: 20px; height: 20px; }
    .info_box .avatar-placeholder { width: 36px; height: 36px; font-size: 12px; }
    .info_box .name_box .name { font-size: 12px; }
    .top-bar__right { gap: 8px; }

    /* 首页 Banner — 图片高度 = 容器高度，仅裁剪左侧，下部留空间给 service_bg */
    .index_top { height: auto; min-height: 0; }
    .index_top_inner { min-height: 165px; position: relative; }
    .index_top .index_bg { height: 165px; position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; }
    .index_top .bg_img { height: 100%; width: auto; max-width: none; max-height: none; position: absolute; right: 0; left: auto; top: 0; }
    .index_top .service_bg { margin-top: -36px; position: relative; z-index: 3; }
    .index_top .welcom_wrap { padding: 20px 0 10px 10px; position: relative; z-index: 2; }
    .index_top .welcom_wrap .welcom_text { font-size: 28px; }
    .index_top .welcom_wrap .c-666 { font-size: 20px; }
    .index_top .welcom_info { font-size: 12px; }

    /* 首页服务按钮 — 只显示图标 */
    .index_top .service_bg .service_content { justify-content: space-around; }
    .index_top .service_item { flex: 1; width: auto; padding: 8px; }
    .index_top .service_item .service_title { font-size: 14px; } 
    .index_top .service_item .align-center img { width: 32px; height: 32px; }
    .card_content { gap: 10px; }
    .index_top .card_item { width: calc(50% - 5px); height: auto; min-height: 90px; padding: 12px 14px; font-size: 12px; }
    .index_top .card_item .card-title { font-size: 14px; }
    .index_top .card_item .card-desc { font-size: 12px; line-height: 1.4; }
    .index_top .card_item .product-icon { width: 32px; height: 32px; }

    .index_content { flex-direction: column; }

    /* Tab 导航 — 导航栏自身不滚动，内容区表格滚动 */
    .link_box { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .el-tabs { overflow: visible; }
    .el-tabs__nav-wrap { overflow: visible; }
    .el-tabs .el-tabs__item { font-size: 13px; padding: 0 12px; display: inline-block; white-space: nowrap; }
    .el-tabs__content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .el-radio-group { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .el-radio-button { display: inline-block; }
    .el-radio-button__inner { font-size: 12px; padding: 6px 12px; min-width: 0; }

    /* 团队页 - 组织架构 + 成员表格堆叠 */
    #memberList {
        flex-direction: column !important;
    }
    #memberList > div:first-child {
        width: 100% !important;
    }

    .member-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
        min-width: 32px;
    }

    /* 所有表格 overflow */
    .my_table { min-width: 500px; }
    .custom-table { min-width: 400px; }
    .order-detail-summary { min-width: 400px; }
    .order-detail-auth { min-width: 700px; }
    .order-detail-sub { min-width: 700px; }

    /* 表格单元格 padding 和字号 */
    .my_table thead th,
    .my_table tbody td,
    .el-table__header th,
    .el-table__body td,
    .el-table__row td,
    .el-table td {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
    
    .table-icon-name-item {
        gap: 8px;
    }
    .table-product-name {
        font-size: 12px;
    }
    .table-product-icon{
        width: 32px;
        height: 32px;
    }
    
    /* 按钮和输入框适配 */
    .el-button { font-size: 12px; padding: 6px 12px; }
    .search-input { padding: 6px 30px 6px 10px; font-size: 13px; height: 32px; }
    .date-range-wrapper { height: 32px; }
    .date-input { padding: 2px 0; font-size: 13px; }

    /* 坐席页 */
    .stats-row { gap: 8px; padding: 12px 0 !important; }
    .stats-row .stat-item { flex: 1 1 45%; }
    .stats-row .stat-item .stat-num { font-size: 20px; }
    .stats-row .stat-item .stat-label { font-size: 12px; }
    .card[style*="display:flex"][style*="min-height:480px"] {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .seat-left-panel {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color);
    }
    .seat-left-header {
        padding: 12px 12px 8px;
    }
    .seat-left-header h3 {
        font-size: 14px;
    }
    .seat-search-box {
        padding: 8px 12px;
    }
    .seat-search-box input {
        font-size: 14px; /* prevent iOS zoom */
        height: 36px;
    }
    .seat-left-list {
        max-height: 240px;
    }
    .seat-right-panel {
        padding: 16px;
    }
    .seat-detail-header {
        flex-wrap: wrap;
    }
    .seat-detail-title {
        font-size: 16px;
    }
    .seat-detail-id {
        font-size: 12px;
    }
    .product-header .info { flex-direction: column; align-items: flex-start; gap: 12px; }
    .product-header .info .left .product-icon { width: 48px; height: 48px; }
    .product-header .info .left .product-name { font-size: 16px; }
    .product-header .info .controls { gap: 12px; }
    .seat-table-actions {
        flex-wrap: wrap;
        gap: 4px;
    }
    .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
    }
    .modal-header {
        padding: 14px 16px 12px;
    }
    .modal-header h3 {
        font-size: 15px;
    }
    .modal-body {
        padding: 12px 16px 16px;
    }
    .modal-search {
        flex-wrap: wrap;
        gap: 8px;
    }
    .modal-search input {
        flex: 1 1 100% !important;
    }
    .modal-search select {
        flex: 1 1 100% !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
    .modal-member-item {
        padding: 10px 8px;
    }
    .modal-member-name {
        font-size: 13px;
    }
    .modal-member-role {
        font-size: 11px;
    }
    
    /* 统计页 */
    .stat-left-panel {
        width: 240px;
    }

    /* 订单列表折叠 */
    .el-collapse-item__header { padding: 10px 14px !important; font-size: 13px; flex-wrap: wrap; gap: 6px; }
    .el-collapse-item__content .my_table { min-width: 700px; }

    /* 订单详情 */
    .orders_page .card { padding: 16px !important; }

    /* 返回按钮 */
    .page-back-area { padding-bottom: 12px; margin-bottom: 16px; }
    .page-back-area .page-back-icon { width: 28px; height: 28px; }
    .page-back-icon svg { width: 14px; height: 14px; }
    .page-back-title { font-size: 14px; }

    /* 搜索区 */
    .orders_page .search-bar { flex-wrap: wrap; gap: 8px; }
    .search-input { min-width: 0; flex: 1 1 auto; }
    .date-range-wrapper { min-width: 0; flex: 1 1 auto; }

    /* 企业信息页 — label+value 各一列 */
    .info-grid { grid-template-columns: auto 1fr; padding: 16px; }
    .info-label { text-align: left; font-size: 12px; }
    .info-value { font-size: 13px; }

    /* 面包屑 */
    .el-breadcrumb { font-size: 13px; }
}

/* ===== 响应式：小屏时左栏隐藏 ===== */
@media (max-width: 720px) {
    .login-modal-clone {
        width: 94vw;
        height: auto;
        min-height: 400px;
        border-radius: 12px;
    }
    .login-left-deco {
        display: none;
    }
    .login-right-form {
        padding: 36px 28px;
    }
}

@media (max-width: 480px) {
    /* 全局 */
    .section_center { padding: 0 8px; }

    /* Header — 极致紧凑 */
    .avue-top { height: 50px; }
    .section_center.flex-between { gap: 4px; }
    .top-bar__title { flex: 1; min-width: 0; }
    .top-bar__title .mr64 { margin-right: 4px; }
    .top-bar__right { flex-shrink: 0; gap: 2px; }
    .link_box { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; flex: 1; }
    .link_box .link { padding: 0 4px; font-size: 0; height: 50px; flex-shrink: 0; }
    .link_box .link::before { font-size: 14px; content: attr(data-short); }
    .link_box .link.active::after { width: 14px; height: 2px; }
    .logo_box { flex-shrink: 0; }
    .logo_box img { height: 18px; }
    .info_box { gap: 2px; padding: 2px; }
    .info_box .name_box .name { display: none; }
    .info_box .name_box .el-tag { display: none; }
    .info_box .name_box svg { display: none; }
    .info_box .avatar-placeholder { width: 28px; height: 28px; font-size: 10px; }
    .notice { padding: 4px; }
    .notice svg { width: 16px; height: 16px; }
    .notice .red_num { font-size: 9px; min-width: 12px; height: 12px; line-height: 12px; }

    /* 首页 */
    .index_top { height: auto; min-height: 0; }
    .index_top_inner { min-height: 120px; position: relative; }
    .index_top .index_bg { height: 120px; position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; }
    .index_top .bg_img { height: 100%; width: auto; max-width: none; max-height: none; position: absolute; right: 0; left: auto; top: 0; }
    .index_top .service_bg { margin-top: -24px; position: relative; z-index: 3; }
    .index_top .welcom_wrap { padding: 12px 0 6px 6px; }
    .index_top .welcom_wrap .welcom_text { font-size: 24px; }
    .index_top .welcom_wrap .c-666 { font-size: 16px; }
    .index_top .welcom_info { font-size: 10px; }  
    .index_top .service_item { flex-direction: column; }
    .index_top .service_item .service_title { display: none; }
    .index_top .service_item .align-center img { width: 24px; height: 24px; margin-right: 0; }
    .index_top .service_item svg { display: none; }
    .card_content { gap: 6px; }
    .index_top .card_item { width: 100%; height: auto; min-height: 64px; padding: 8px 10px; font-size: 11px; }
    .index_top .card_item .card-title { font-size: 12px; }
    .index_top .card_item .card-desc { font-size: 10px; line-height: 1.3; }
    .index_top .card_item .product-icon { width: 24px; height: 24px; }
    .index_top .index_content { margin-top: -30px; }
    

    /* 我的订阅 tab 不随表格滚动 */
    .el-tabs { overflow: visible; }
    .el-tabs__nav-wrap { overflow: visible; }
    .el-tabs .el-tabs__item { font-size: 12px; padding: 0 8px; white-space: nowrap; line-height: 36px; }
    .el-tabs__content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .el-radio-button__inner { font-size: 11px; padding: 4px 8px; }

    /* 表格 */
    .my_table { min-width: 360px; }
    .custom-table { min-width: 360px; }
    .order-detail-summary { min-width: 360px; }
    .order-detail-auth { min-width: 360px; }
    .order-detail-sub { min-width: 360px; }

    .my_table thead th,
    .my_table tbody td,
    .el-table__header th,
    .el-table__body td,
    .el-table__row td,
    .el-table td {
        padding: 5px 6px !important;
        font-size: 11px !important;
    } 
    .table-icon-name-item {
        gap: 6px;
    }
    .table-product-name {
        font-size: 11px;
    }   
    .table-product-icon{
        width: 28px;
        height: 28px;
    }

    /* 按钮 */
    .el-button { font-size: 11px; padding: 0px 8px; height:28px;}
    .el-button-icon { gap: 2px;} 

    /* 坐席页 */
    .product-header .info .left .product-icon { width: 36px; height: 36px; }
    .product-header .info .left .product-name { font-size: 14px; }
    .product-header .info .left .product-id { font-size: 11px; }
    .product-header .info .controls .control-item { font-size: 11px; }
    .stats-row { padding: 8px 0 !important; }
    .stats-row .stat-item { flex: 1 1 100%; }
    .stats-row .stat-item .stat-num { font-size: 16px; }
    .seat-left-list {
        max-height: 280px;
    }
    .seat-list-item {
        padding: 6px 8px;
    }
    .seat-list-item-header {
        gap: 6px;
    }
    .seat-list-item-header .group-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
    .seat-list-item-name {
        font-size: 12px;
    }
    .seat-list-item-sub {
        font-size: 11px;
    }
    .seat-right-panel {
        padding: 12px;
        overflow-y: visible !important;
    }
    .seat-detail-header {
        flex-direction: row;
        align-items: flex-start !important;
    }
    .seat-detail-title {
        font-size: 15px;
    }
    .seat-detail-id {
        font-size: 11px;
    }
    .seat-detail-header button {
        font-size: 11px;
        height: 28px;
        padding: 0 10px;
    }
    .seat-detail-section .my_table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }
    .seat-detail-section .flex-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    .seat-table-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .seat-table-actions button {
        font-size: 11px;
        height: 28px;
        padding: 0 10px;
    }
    .modal-content {
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    .modal-header {
        padding: 12px;
    }
    .modal-body {
        padding: 10px 12px 12px;
    }
    .modal-info {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
    .modal-member-list {
        max-height: 50vh;
    }

    /* 统计页 */
    .stat-dept-panel {
        flex-direction: column;
        gap: 0;
    }

    .stat-left-panel {
        width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 260px;
    }

    .stat-right-inner {
        max-height: none;
    }

    .stat-product-select {
        min-width: 120px;
        max-width: 240px;
    }

    .stat-summary-card {
        padding: 12px;
        min-width: 120px;
    }

    .stat-filter-row {
        gap: 8px;        
    }

    .stat-filter-row select {
        height: 30px;
        font-size: 12px;
    }

    .stat-filter-row input {
        height: 30px;
        max-width: 106px;
        font-size: 12px;
    }

    .stat-license-progress-section {
        flex-direction: column;
    }

    /* 页面标题/返回 */
    .page-back-area { padding-bottom: 6px; margin-bottom: 10px; }
    .page-back-title { font-size: 13px; }

    /* 授权许可 — 减少表格外留白 */
    #authorizationTable { padding: 0 !important; }

    /* 订单详情图片 */
    .align-center img { width: 28px !important; height: 28px !important; }

    /* 企业信息 — label+value 两列 */
    .info-grid { grid-template-columns: auto 1fr; padding: 12px; }
    .info-label { text-align: right; font-size: 12px; }
    .info-value { font-size: 12px; }

    /* 操作日志 — 输入框和按钮缩小 */
    #teamSub-logs input[placeholder="搜索成员名称"],
    #teamSub-logs select,
    #teamSub-logs button {
        padding: 3px 6px !important;
        font-size: 11px !important;
    }
    #teamSub-logs input[placeholder="搜索成员名称"] { width: 110px !important; }
    #teamSub-logs button { padding: 3px 10px !important; }

    /* 团队页 - 极致紧凑 */
    .team_page .card_header { flex-direction: column; align-items: flex-start; gap: 4px; }

    /* 群组管理页 */
    .team_page #groupManagePanel {
        flex-direction: column !important;
        gap: 8px;
    }
    .team_page #groupManagePanel > div:first-child {
        width: 100% !important;
        padding: 10px !important;
    }
    .team_page #groupManagePanel > div:last-child {
        width: 100% !important;
        padding: 10px !important;
    }

    /* 成员页 */
    /* 成员详情页 - 成员个人信息 */
    #memberContent .bc-fff {
        padding: 12px !important;
    }
    #memberContent .bc-fff .avatar-placeholder {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
    #memberContent .bc-fff span[style*="font-size:22px"] {
        font-size: 16px !important;
    }
    #memberContent .card_header {
        padding: 0 0 8px 0 !important;
        margin-bottom: 12px !important;
    }
    #memberContent .card_title {
        font-size: 15px !important;
    }

    .member-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
        min-width: 28px;
    }

    /* 群组管理页 - 左右布局改为上下堆叠 */
    .team_page #groupManagePanel {
        flex-direction: column !important;
    }
    .team_page #groupManagePanel > div:first-child {
        width: 100% !important;
    }
    .team_page #groupManagePanel > div:last-child {
        width: 100% !important;
    }

    /* 成员详情页 - 基础信息 2列、编辑信息单列 */
    .member-info-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 12px;
    }
    .member-edit-grid {
        grid-template-columns: 1fr !important;
    }
    .member-detail-name {
        font-size: 15px;
    }
    .member-detail-id {
        font-size: 12px;
    }
    .member-avatar-lg {
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
    }
    .member-section-label {
        font-size: 13px;
    }
    .member-group-select {
        min-height: 100px;
    }

    /* 面包屑 */
    .el-breadcrumb { font-size: 11px; }

    /* 用户下拉面板 */
    .dropdown-panel { width: 360px; }
}