body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
}


/* 防止 Vue 模板闪烁 */
[v-cloak] {
    display: none !important;
}

/* 页面加载遮罩 */
#page-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #409EFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* 禁用上传组件所有动画 */
.el-upload-list__item,
.el-upload-list__item-thumbnail,
.el-upload--picture-card,
.el-upload-list--picture-card .el-upload-list__item,
.el-upload-list--picture-card .el-upload-list__item-actions {
    transition: none !important;
    animation: none !important;
}


/* 全局强制隐藏 el-upload 的原生 file input */
.el-upload input[type="file"],
.el-upload__input {
    display: none !important;
}

#app label{
    margin-bottom: 0;
}


.el-table th {
    background-color: #f5f7fa !important;
    color: #606266;
}

/* 表格样式 */
.page-container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: #f0f2f5;
    overflow: hidden;

}
.el-table__fixed-right-patch{
    background-color: #f5f7fa !important;
    border: 0 !important;
}

.table-main-box{
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: calc(100vh - 30px);
}

/* 搜索区域：高度由内容决定，不压缩 */

.common-search-table {
    flex-shrink: 0;
    background: #fff;
    padding: 15px 15px 0 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
}

.common-search-table .el-form-item {
    margin-bottom: 15px !important;
    display: inline-flex;
    vertical-align: middle;
}

.common-search-table .el-form-item__label {
    margin-bottom: 0 !important;
    line-height: 32px !important;
    font-weight: normal;
}

.common-search-table .el-form-item__content {
    line-height: 32px !important;
    vertical-align: middle;
}

.list-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 核心：防止卡片被表格撑长 */
}

.list-card .el-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
}

.toolbar {
    margin-top: 0;
    flex-shrink: 0;
    margin-bottom: 10px;
}

.table-main-container {
    flex: 1;
    overflow: hidden;
}

.czq button {
    padding: 5px 7px !important;
}

/*修复操作区高度不够的问题*/
.el-table__fixed-right{
 height: 100% !important;
}


/* 隐藏上传卡片占位：当已有图片时隐藏那个 + 号框 */
.hide-upload .el-upload--picture-card {
    display: none !important;
}

/* ========== 侧边栏底部钱包模块 ========== */
.main-sidebar > .sidebar {
    padding-bottom: 210px;
}
.sidebar-wallet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: #fff;
    font-size: 12px;
    border-top: 1px solid #e8e8e8;
}
.sidebar-wallet .wallet-inner {
    padding: 14px 14px 10px;
}
/* 每一行 */
.sidebar-wallet .wallet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}
.sidebar-wallet .wallet-row--col {
    flex-direction: column;
    align-items: stretch;
}
.sidebar-wallet .wallet-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* 图标盒子 */
.sidebar-wallet .wallet-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-wallet .wallet-icon svg {
    display: block;
}
.sidebar-wallet .wallet-icon--orange {
    background: #fff7e6;
    color: #f97316;
}
.sidebar-wallet .wallet-icon--blue {
    background: #eff6ff;
    color: #3b82f6;
}
.sidebar-wallet .wallet-icon--green {
    background: #f0fdf4;
    color: #22c55e;
}
/* 标签与值 */
.sidebar-wallet .wallet-label {
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}
.sidebar-wallet .wallet-row:not(.wallet-row--col) .wallet-value {
    text-align: right;
}
.sidebar-wallet .wallet-value {
    color: #1f2937;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 115px;
}
.sidebar-wallet .wallet-row--col {
    flex-direction: column;
    align-items: stretch;
    position: relative;
}
.sidebar-wallet .wallet-row--col > .wallet-value {
    position: absolute;
    right: 0;
    top: 6px;
    height: 28px;
    display: flex;
    align-items: center;
    font-size: 11px;
    max-width: 110px;
}
/* 套餐容量进度条 */
.storage-progress {
    padding-top: 8px;
}
.storage-progress .storage-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}
.storage-progress .storage-bar-fill {
    height: 100%;
    background: #409eff;
    border-radius: 2px;
    transition: width .3s;
}
.storage-progress .storage-detail {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10px;
    color: #c0c4cc;
}
/* 钱包按钮 - 浅蓝描边 */
.sidebar-wallet .wallet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 0;
    text-align: center;
    color: #409eff;
    background: #ecf5ff;
    border: 1px solid #d9ecff;
    font-size: 12px;
    font-weight: 500;
    transition: background .2s;
}
.sidebar-wallet .wallet-link:hover {
    background: #d9ecff;
    color: #409eff;
    text-decoration: none;
}

/* 侧边栏折叠时隐藏文字和进度条 */
.sidebar-collapse .sidebar-wallet .wallet-label,
.sidebar-collapse .sidebar-wallet .wallet-value,
.sidebar-collapse .sidebar-wallet .wallet-link span,
.sidebar-collapse .sidebar-wallet .wallet-link i,
.sidebar-collapse .sidebar-wallet .storage-progress,
.sidebar-collapse .sidebar-wallet .wallet-inner,
.sidebar-collapse .sidebar-wallet .wallet-row-left {
    display: none;
}
.sidebar-collapse .sidebar-wallet .wallet-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    text-align: center;
    background: #ecf5ff;
    border: 1px solid #d9ecff;
}
.sidebar-collapse .sidebar-wallet .wallet-link:after {
    content: "\f09d";
    font-family: FontAwesome;
    color: #409eff;
    font-size: 14px;
}
.sidebar-collapse .sidebar-wallet .wallet-link:hover {
    background: #d9ecff;
}
.sidebar-collapse .sidebar-wallet .wallet-icon {
    margin: 0 auto;
}
.sidebar-collapse .sidebar-wallet .wallet-row {
    display: block;
    text-align: center;
    padding: 2px 0;
}
.sidebar-collapse .sidebar-wallet {
    padding: 6px 6px;
    background: transparent;
    border-top-color: rgba(255,255,255,.08);
}