/**
* ZWSOFT 用户门户 - 静态复刻
*
* 原页面分析结果:
* - 三个顶级Tab: 首页, 产品与服务, 团队管理
* - 产品与服务子Tab: 订阅许可(我的订阅/我的坐席), 授权许可, 数据统计
* - 团队管理子Tab: 成员与部门, 企业信息, 企业角色, 操作日志
* - CSS框架: Element Plus + Avue 自定义样式
*/
:root {
    --primary: #005BFE;
    --primary-hover: #004ad0;
    --primary-light: #e8f0ff;
    --success: #00b453;
    --warning: #ff8a00;
    --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: #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;
}

* {
    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; }

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;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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 .notice_svg {
    width: 24px;
    height: 24px;
}

.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;
}

.info_box {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.info_box:hover {
    background: var(--primary-light);
}

.info_box .avatar_img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.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: 0 8px;
    height: 20px;
    line-height: 20px;
    border-radius: 3px;
}

.el-tag--primary {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #c6e2ff;
}

.el-tag__content {
    white-space: nowrap;
}

.info_box .el-icon {
    font-size: 14px;
    color: #333;
}

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

/* ==================== PAGE: HOME (首页) ==================== */
.index_page {
    padding-bottom: 40px;
    background-color: var(--bg-white);
}

.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;
    object-position: center;
}

.index_banner {

}

.welcom_wrap {
    margin-bottom: 8px;
    padding: 84px 20px 20px 10px;
    max-width: 50%;
}

.welcom_text {
    font-size: 38px;
    font-weight: 600;
    color: #001;
    margin-bottom: 8px;
}

.welcom_text .name {
    color: var(--primary);
}

.c-666 { color: #666; }
.fs24 { font-size: 24px; }
.mb0 { margin-bottom: 0; }

/* Service Cards */
.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;
    min-width: 280px;
    cursor: pointer;
}

.service_item:hover {
    background-color: #ffffffb3;
    border-bottom: 1px solid #005BFE;
    transition: all .3s ease;
}

.align-center {
    display: flex;
    align-items: center;
}

.ub-fv {
    flex: 1;
}

.mr12 { margin-right: 12px; }

.service_title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 4px;
    line-height: 24px;
    color: #001;
}

.mtb0 { margin-top: 0; margin-bottom: 0; }

.service_text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.ml6 { margin-left: 6px; }

.right_icon {
    width: 16px;
    flex-shrink: 0;
}

/* Product Cards Section */
.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;
}

.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;
}

.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: #333;
    line-height: 20px;
}

/* ====== 列表视图 ====== */

.list_header {
    background: var(--el-text-color-secondary);
    font-weight: 600;
}

.list_item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid #ebeef5;
    gap: 12px;
}

.list_item_left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.list_item_name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list_item_meta {
    width: 15%;
    font-size: 14px;
    color: #666;
    min-width: 80px;
}

/* ====== 统计卡片 ====== */

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

/* ====== 下拉菜单 ====== */

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

.dropdown-menu-item:hover {
    color: #005BFE;
}

/* ====== 按钮样式 ====== */
.shouzhi {
    cursor: pointer;
}

.shouzhi:hover {
    opacity: 0.8;
}

/* ====== 状态指示器 ====== */

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

.valid {       
    color: #00b42a;
    background: #e8ffea;
}

.uc-4 {
    border-radius: 4px;
}

.uball {
    border: 1px solid rgba(133, 135, 139, .15);
}

.mr12 { margin-right: 12px; }

.fs18 { font-size: 18px; }
.tx-600 { font-weight: 600; }

.c-005 { color: var(--primary); }
.fs14 { font-size: 14px; }
.ml14 { margin-left: 14px; }
.lh24 { line-height: 24px; }

.flex-column {
    display: flex;
    flex-direction: column;
}

.rcon { flex: 1; }

.c-999 { color: var(--text-muted); }
.lh20 { line-height: 20px; }
.mb8 { margin-bottom: 8px; }
.c-222 { color: var(--text-primary); }

/* ==================== 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) ==================== */
.el-radio-group {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #f5f7fa;
    border-radius: var(--radius-sm);
    padding: 2px;
}

.el-radio-button {
    position: relative;
}

.el-radio-button__original-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.el-radio-button__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    white-space: nowrap;
}

.el-radio-button.is-active .el-radio-button__inner {
    color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-weight: 500;
}

.el-radio-button__inner:hover {
    color: var(--primary);
}

/* ==================== PRODUCT PAGE ==================== */
.product_page {
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.lw-1780 {
    max-width: 1400px;
    width: 100%;
    padding: 0 24px;
}

.mt24 { margin-top: 24px; }

.bc-fff {
    background: var(--bg-white);
}

.pt16 { padding-top: 16px; }
.pb12 { padding-bottom: 12px; }
.plr24 { padding-left: 24px; padding-right: 24px; }

.uc-8 { border-radius: 8px; }

/* Inner Tabs (我的订阅 / 我的坐席) */
.el-tabs {
    width: 100%;
}

.el-tabs__header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.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 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);
}

.plr16 { padding-left: 16px; padding-right: 16px; }

.el-tab-pane {
    padding: 8px 0;
}

/* ==================== TABLE ==================== */
.el-table {
    width: 100%;
    overflow-x: auto;
}

.el-table__inner-wrapper {
    position: relative;
}

.el-table__header-wrapper table,
.el-table__body-wrapper table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.el-table__header th {
    padding:14px 16px;
    text-align:left;
    background:#fafafa;
    border-bottom:1px solid var(--border-color);
    font-weight:600;
    font-size:14px;
}

.el-table__header th .cell {
    padding: 0 12px;
}

.el-table__body td {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.el-table__body td .cell {
    padding: 0 12px;
}

.el-table__row td {    
    padding:14px 16px;
    border-bottom:1px solid var(--border-color);
}

.el-table__row:hover {
    background: #f5f7fa;
}

.el-table__row--striped {
    background: #fafafa;
}

/* Status Badge */
.bc-e8ffea {
    background: #e8f8e8;
}

.c-00b {
    color: var(--success);
}

.lh-24 {
    display: inline-flex;
    align-items: center;
    height: 24px;
    line-height: 24px;
}

.uc-2 {
    border-radius: 2px;
}

.tx-c { text-align: center; }

.over-hide { overflow: hidden; }

.c-165 {
    color: var(--primary);
}

.fs10 { font-size: 10px; }

/* ==================== TEAM PAGE ==================== */
.team_page {
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.mb24 { margin-bottom: 24px; }

/* Empty State */
.fs12 { font-size: 12px; }
.tx-c { text-align: center; }
.c-666 { color: var(--text-secondary); }

.pagination-section {
    margin-top: 12px;
}

.page-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==================== UTILITIES ==================== */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.mt0 { margin-top: 0; }
.mb4 { margin-bottom: 4px; }
.mt-0 { margin-top: 0; }
.tx-big { font-weight: 600; }
.lw-16 { width: 16px; }
.lw-40 { width: 40px; }
.lh-40 { line-height: 40px; }
.mr16 { margin-right: 16px; }
.mr4 { margin-right: 4px; }
.mr6 { margin-right: 6px; }
.mr8 { margin-right: 8px; }
.mr64 { margin-right: 64px; }
.ml4 { margin-left: 4px; }
.ml6 { margin-left: 6px; }
.ml7 { margin-left: 7px; }
.ml12 { margin-left: 12px; }
.ml16 { margin-left: 16px; }
.pl6 { padding-left: 6px; }
.plr12 { padding-left: 12px; padding-right: 12px; }
.ptb16 { padding-top: 16px; padding-bottom: 16px; }
.ptb24 { padding-top: 24px; padding-bottom: 24px; }
.vtc-c { vertical-align: middle; }
.dib { display: inline-block; }
.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; }

/* ==================== MEMBER TABLE ==================== */
.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==================== ENTERPRISE INFO PAGE ==================== */
.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;
}

/* ==================== ENTERPRISE ROLE PAGE ==================== */
.role-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
}

/* ==================== OPERATION LOG ==================== */
.log-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.log-time {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    min-width: 140px;
}

.log-user {
    font-weight: 500;
    min-width: 80px;
}

.log-action {
    color: var(--text-primary);
    flex: 1;
}

/* ====== 组织架构树 ====== */

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: #333;
    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;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1440px) {
    .card_item {
        width:calc(50% - 10px);
    }
}

@media (max-width: 1000px) {
    .service_bg .service_content {
        gap:0px;
    }

    .index_top .welcom_wrap {
        padding: 44px 0;
    }

    .index_top .welcom_wrap .welcom_text {
        font-size: 24px;
    }

    .card_item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .index_top .welcom_wrap {
        padding:44px 0;
    }

    .index_top .welcom_wrap .welcom_text {
        font-size: 18px;
    }

    .index_content {
        flex-direction: column;
    }

    .section_center {
        padding: 0 16px;
    }

    .service_content {
        flex-direction: column;
    }

    .link_box .link {
        padding: 0 12px;
        font-size: 14px;
    }

    .top-bar__title {
        gap: 24px;
    }
}