/* ============================================
   光伏劳务管理系统 - 通用样式库
   主色：#409eff  风格：蓝色商务风
   尺寸：缩小20%优化版
   ============================================ */

/* ========== 1. 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    font-family: "Microsoft Yahei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #303133;
    background-color: #f5f7fa;
    line-height: 1.5;
}
a {
    color: #409eff;
    text-decoration: none;
}
a:hover {
    color: #66b1ff;
}
img {
    border: none;
    vertical-align: middle;
}
ul, ol {
    list-style: none;
}
input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}
table {
    border-collapse: collapse;
}

/* ========== 2. 按钮组件 ========== */
.btn {
    display: inline-block;
    padding: 6px 13px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    text-align: center;
    transition: all 0.2s;
    line-height: 1;
    user-select: none;
}
.btn:hover {
    color: #409eff;
    border-color: #c6e2ff;
    background: #ecf5ff;
}
.btn:active {
    color: #3a8ee6;
    border-color: #3a8ee6;
}
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.btn-primary {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}
.btn-primary:hover {
    background: #66b1ff;
    border-color: #66b1ff;
    color: #fff;
}
.btn-primary:active {
    background: #3a8ee6;
    border-color: #3a8ee6;
    color: #fff;
}
.btn-success {
    background: #67c23a;
    color: #fff;
    border-color: #67c23a;
}
.btn-success:hover {
    background: #85ce61;
    border-color: #85ce61;
    color: #fff;
}
.btn-danger {
    background: #f56c6c;
    color: #fff;
    border-color: #f56c6c;
}
.btn-danger:hover {
    background: #f78989;
    border-color: #f78989;
    color: #fff;
}
.btn-warning {
    background: #e6a23c;
    color: #fff;
    border-color: #e6a23c;
}
.btn-warning:hover {
    background: #ebb563;
    border-color: #ebb563;
    color: #fff;
}
.btn-info {
    background: #909399;
    color: #fff;
    border-color: #909399;
}
.btn-info:hover {
    background: #a6a9ad;
    border-color: #a6a9ad;
    color: #fff;
}
.btn-large {
    padding: 10px 16px;
    font-size: 14px;
}
.btn-small {
    padding: 5px 10px;
    font-size: 11px;
}
.btn-mini {
    padding: 3px 6px;
    font-size: 11px;
}
.btn-text {
    border: none;
    background: transparent;
    padding: 3px 6px;
    color: #409eff;
    font-size: 12px;
}
.btn-text:hover {
    background: transparent;
    color: #66b1ff;
}
.btn-group {
    display: inline-flex;
}
.btn-group .btn {
    border-radius: 0;
    margin-left: -1px;
}
.btn-group .btn:first-child {
    border-radius: 3px 0 0 3px;
    margin-left: 0;
}
.btn-group .btn:last-child {
    border-radius: 0 3px 3px 0;
}

/* ========== 3. 表单组件 ========== */
.form-item {
    margin-bottom: 14px;
}
.form-item label {
    display: block;
    margin-bottom: 5px;
    color: #606266;
    font-size: 12px;
    line-height: 1.5;
}
.form-item label.required::before {
    content: "*";
    color: #f56c6c;
    margin-right: 4px;
}
.form-item input[type="text"],
.form-item input[type="password"],
.form-item input[type="number"],
.form-item input[type="date"],
.form-item input[type="datetime-local"],
.form-item select,
.form-item textarea {
    width: 100%;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    font-size: 12px;
    color: #606266;
    transition: border-color 0.2s;
    background: #fff;
}
.form-item textarea {
    height: auto;
    padding: 6px 10px;
    resize: vertical;
    min-height: 64px;
    line-height: 1.5;
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    border-color: #409eff;
}
.form-item input:disabled,
.form-item select:disabled,
.form-item textarea:disabled {
    background: #f5f7fa;
    color: #c0c4cc;
    cursor: not-allowed;
}
.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    align-items: flex-end;
}
.form-inline .form-item {
    margin-bottom: 0;
}
.radio-group,
.checkbox-group {
    display: flex;
    gap: 13px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}
.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #606266;
}
.radio-item input,
.checkbox-item input {
    cursor: pointer;
}
.form-tip {
    font-size: 11px;
    color: #909399;
    margin-top: 3px;
}
.form-error {
    font-size: 11px;
    color: #f56c6c;
    margin-top: 3px;
}
.input-group {
    display: flex;
}
.input-group-prepend,
.input-group-append {
    padding: 0 10px;
    background: #f5f7fa;
    border: 1px solid #dcdfe6;
    color: #909399;
    display: flex;
    align-items: center;
    font-size: 12px;
}
.input-group-prepend {
    border-right: none;
    border-radius: 3px 0 0 3px;
}
.input-group-append {
    border-left: none;
    border-radius: 0 3px 3px 0;
}
.input-group input {
    flex: 1;
    border-radius: 0;
}

/* ========== 4. 表格组件 ========== */
.table-wrap {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.data-table th {
    background: #f5f7fa;
    color: #606266;
    font-weight: 500;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
    white-space: nowrap;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
    color: #606266;
}
.data-table tr:hover td {
    background: #f5f7fa;
}
.data-table tr.selected td {
    background: #ecf5ff;
}
.data-table-striped tbody tr:nth-child(even) td {
    background: #fafafa;
}
.data-table-striped tbody tr:nth-child(even):hover td {
    background: #f5f7fa;
}
.table-actions {
    display: flex;
    gap: 6px;
}
.table-actions .btn-text {
    padding: 0;
}
.table-empty {
    text-align: center;
    padding: 32px 16px;
    color: #909399;
}
.table-index {
    width: 50px;
    text-align: center !important;
    color: #909399;
}
.table-status {
    width: 80px;
}
.table-op {
    width: 150px;
}
.table-op-small {
    width: 100px;
}

/* ========== 5. 分页组件 ========== */
.pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: #fff;
}
.pagination .page-info {
    color: #606266;
    font-size: 12px;
    margin-right: 6px;
}
.pagination .page-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    border: 1px solid #dcdfe6;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    color: #606266;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pagination .page-btn:hover {
    color: #409eff;
    border-color: #c6e2ff;
}
.pagination .page-btn.active {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}
.pagination .page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    color: #c0c4cc;
}
.pagination .page-size {
    height: 28px;
    padding: 0 6px;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    background: #fff;
    color: #606266;
    font-size: 11px;
}
.pagination .page-jump {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #606266;
    font-size: 11px;
}
.pagination .page-jump input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #dcdfe6;
    border-radius: 3px;
    font-size: 11px;
}

/* ========== 6. 状态标签 ========== */
.tag {
    display: inline-block;
    padding: 1px 7px;
    font-size: 11px;
    border-radius: 2px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.tag-success {
    background: #f0f9eb;
    color: #67c23a;
    border-color: #e1f3d8;
}
.tag-warning {
    background: #fdf6ec;
    color: #e6a23c;
    border-color: #faecd8;
}
.tag-danger {
    background: #fef0f0;
    color: #f56c6c;
    border-color: #fde2e2;
}
.tag-info {
    background: #f4f4f5;
    color: #909399;
    border-color: #e9e9eb;
}
.tag-primary {
    background: #ecf5ff;
    color: #409eff;
    border-color: #d9ecff;
}
.tag-round {
    border-radius: 8px;
}
.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.dot-success { background: #67c23a; }
.dot-warning { background: #e6a23c; }
.dot-danger { background: #f56c6c; }
.dot-primary { background: #409eff; }
.dot-info { background: #909399; }

/* ========== 7. 卡片组件 ========== */
.card {
    background: #fff;
    border-radius: 3px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.card-header {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-title {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
}
.card-body {
    color: #606266;
    font-size: 12px;
}
.card-footer {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #ebeef5;
    text-align: right;
}
.card-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.card-plain {
    box-shadow: none;
    border: 1px solid #ebeef5;
}
.stat-card {
    background: #fff;
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.stat-card .stat-num {
    font-size: 22px;
    font-weight: bold;
    color: #409eff;
    margin: 6px 0;
}
.stat-card .stat-label {
    color: #606266;
    font-size: 12px;
}
.stat-card .stat-desc {
    color: #909399;
    font-size: 11px;
    margin-top: 6px;
}

/* ========== 8. 工具栏 & 搜索栏 ========== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    margin-bottom: 12px;
    border-radius: 3px;
    flex-wrap: wrap;
    gap: 10px;
}
.toolbar-left {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-end;
    padding: 12px;
    background: #fff;
    margin-bottom: 12px;
    border-radius: 3px;
}
.search-bar .form-item {
    margin-bottom: 0;
    min-width: 160px;
}
.search-bar .search-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ========== 9. 弹窗/模态框 ========== */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-box {
    background: #fff;
    border-radius: 4px;
    min-width: 420px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.modal-header {
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.modal-title {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
}
.modal-close {
    cursor: pointer;
    font-size: 18px;
    color: #909399;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #f56c6c;
}
.modal-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}
.modal-footer {
    padding: 10px 16px;
    border-top: 1px solid #ebeef5;
    text-align: right;
    flex-shrink: 0;
}
.modal-footer .btn {
    margin-left: 8px;
}
.modal-small .modal-box {
    min-width: 340px;
}
.modal-large .modal-box {
    min-width: 680px;
}
.modal-full .modal-box {
    width: 95vw;
    height: 90vh;
    min-width: auto;
    max-width: none;
    max-height: none;
}

/* ========== 10. 抽屉 ========== */
.drawer-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
.drawer-box {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
}
.drawer-header {
    padding: 12px 16px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-title {
    font-size: 14px;
    font-weight: 500;
    color: #303133;
}
.drawer-close {
    cursor: pointer;
    font-size: 18px;
    color: #909399;
}
.drawer-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}
.drawer-footer {
    padding: 10px 16px;
    border-top: 1px solid #ebeef5;
    text-align: right;
}

/* ========== 11. 标签页 ========== */
.tabs {
    border-bottom: 1px solid #e4e7ed;
    margin-bottom: 12px;
}
.tabs-nav {
    display: flex;
    gap: 0;
}
.tab-item {
    padding: 8px 16px;
    cursor: pointer;
    color: #606266;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.tab-item:hover {
    color: #409eff;
}
.tab-item.active {
    color: #409eff;
    border-bottom-color: #409eff;
    font-weight: 500;
}
.tab-content {
    padding-top: 12px;
}

/* ========== 12. 面包屑 ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #606266;
    font-size: 12px;
    margin-bottom: 12px;
}
.breadcrumb-item {
    color: #606266;
}
.breadcrumb-item.active {
    color: #303133;
    font-weight: 500;
}
.breadcrumb-separator {
    color: #c0c4cc;
}

/* ========== 13. 进度条 ========== */
.progress {
    width: 100%;
    height: 6px;
    background: #ebeef5;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: #409eff;
    border-radius: 3px;
    transition: width 0.3s;
}
.progress-success .progress-bar {
    background: #67c23a;
}
.progress-warning .progress-bar {
    background: #e6a23c;
}
.progress-danger .progress-bar {
    background: #f56c6c;
}
.progress-text {
    font-size: 11px;
    color: #909399;
    margin-top: 3px;
    text-align: right;
}

/* ========== 14. 步骤条 ========== */
.steps {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.step-item {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}
.step-item:last-child {
    flex: none;
}
.step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c0c4cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}
.step-item.active .step-circle {
    background: #409eff;
}
.step-item.done .step-circle {
    background: #67c23a;
}
.step-title {
    margin-left: 8px;
    color: #606266;
    font-size: 12px;
}
.step-item.active .step-title {
    color: #409eff;
    font-weight: 500;
}
.step-line {
    flex: 1;
    height: 2px;
    background: #c0c4cc;
    margin: 0 8px;
}
.step-item.done .step-line {
    background: #67c23a;
}

/* ========== 15. 空状态 & 加载 ========== */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: #909399;
}
.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}
.empty-state .empty-text {
    font-size: 12px;
}
.loading {
    text-align: center;
    padding: 32px;
    color: #909399;
}
.loading-spinner {
    display: inline-block;
    width: 26px;
    height: 26px;
    border: 2px solid #ebeef5;
    border-top-color: #409eff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin-bottom: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 16. 消息提示 ========== */
.message {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 16px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 10000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
}
.message-success {
    background: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}
.message-warning {
    background: #fdf6ec;
    color: #e6a23c;
    border: 1px solid #faecd8;
}
.message-error {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}
.message-info {
    background: #edf2fc;
    color: #409eff;
    border: 1px solid #d9ecff;
}

/* ========== 17. 上传组件 ========== */
.upload-wrap {
    border: 1px dashed #d9d9d9;
    border-radius: 3px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s;
}
.upload-wrap:hover {
    border-color: #409eff;
}
.upload-icon {
    font-size: 26px;
    color: #8c939d;
    margin-bottom: 6px;
}
.upload-text {
    color: #606266;
    font-size: 12px;
}
.upload-tip {
    color: #909399;
    font-size: 11px;
    margin-top: 3px;
}
.upload-list {
    margin-top: 10px;
}
.upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f5f7fa;
    border-radius: 3px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #606266;
}
.upload-item .upload-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.upload-item .upload-del {
    color: #f56c6c;
    cursor: pointer;
    margin-left: 8px;
}

/* ========== 18. 树形结构 ========== */
.tree {
    font-size: 12px;
    color: #606266;
}
.tree-node {
    padding: 5px 0;
}
.tree-node-label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    cursor: pointer;
    border-radius: 3px;
}
.tree-node-label:hover {
    background: #f5f7fa;
}
.tree-node-label.active {
    background: #ecf5ff;
    color: #409eff;
}
.tree-arrow {
    width: 14px;
    text-align: center;
    color: #c0c4cc;
    font-size: 11px;
}
.tree-children {
    padding-left: 16px;
}

/* ========== 19. 徽章/角标 ========== */
.badge {
    position: relative;
    display: inline-block;
}
.badge-dot {
    position: absolute;
    top: -1px;
    right: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f56c6c;
    border: 1px solid #fff;
}
.badge-count {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    background: #f56c6c;
    color: #fff;
    font-size: 11px;
    border-radius: 8px;
    text-align: center;
    line-height: 16px;
    border: 1px solid #fff;
}

/* ========== 20. 时间线 ========== */
.timeline {
    padding-left: 16px;
    border-left: 2px solid #e4e7ed;
    margin-left: 8px;
}
.timeline-item {
    position: relative;
    padding-bottom: 16px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #409eff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #409eff;
}
.timeline-item.success::before {
    background: #67c23a;
    box-shadow: 0 0 0 2px #67c23a;
}
.timeline-item.warning::before {
    background: #e6a23c;
    box-shadow: 0 0 0 2px #e6a23c;
}
.timeline-item.danger::before {
    background: #f56c6c;
    box-shadow: 0 0 0 2px #f56c6c;
}
.timeline-time {
    color: #909399;
    font-size: 11px;
    margin-bottom: 3px;
}
.timeline-content {
    color: #606266;
    font-size: 12px;
}

/* ========== 21. 布局工具类 ========== */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-start { display: flex; align-items: center; justify-content: flex-start; }
.flex-end { display: flex; align-items: center; justify-content: flex-end; }
.flex-1 { flex: 1; }
.flex-column { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }

.gap-4 { gap: 3px; }
.gap-8 { gap: 6px; }
.gap-12 { gap: 10px; }
.gap-16 { gap: 13px; }
.gap-20 { gap: 16px; }
.gap-24 { gap: 20px; }
.gap-32 { gap: 26px; }

.m-0 { margin: 0; }
.mt-4 { margin-top: 3px; }
.mt-8 { margin-top: 6px; }
.mt-12 { margin-top: 10px; }
.mt-16 { margin-top: 13px; }
.mt-20 { margin-top: 16px; }
.mt-24 { margin-top: 20px; }
.mt-32 { margin-top: 26px; }
.mb-4 { margin-bottom: 3px; }
.mb-8 { margin-bottom: 6px; }
.mb-12 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 13px; }
.mb-20 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 26px; }
.ml-4 { margin-left: 3px; }
.ml-8 { margin-left: 6px; }
.ml-16 { margin-left: 13px; }
.mr-4 { margin-right: 3px; }
.mr-8 { margin-right: 6px; }
.mr-16 { margin-right: 13px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-4 { padding: 3px; }
.p-8 { padding: 6px; }
.p-12 { padding: 10px; }
.p-16 { padding: 13px; }
.p-20 { padding: 16px; }
.p-24 { padding: 20px; }
.pt-8 { padding-top: 6px; }
.pt-16 { padding-top: 13px; }
.pb-8 { padding-bottom: 6px; }
.pb-16 { padding-bottom: 13px; }
.pl-8 { padding-left: 6px; }
.pl-16 { padding-left: 13px; }
.pr-8 { padding-right: 6px; }
.pr-16 { padding-right: 13px; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.w-50 { width: 50%; }
.w-25 { width: 25%; }
.w-33 { width: 33.33%; }
.w-66 { width: 66.67%; }
.w-75 { width: 75%; }
.min-h-100 { min-height: 100%; }

/* ========== 22. 文字工具类 ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-justify { text-align: justify; }

.text-success { color: #67c23a; }
.text-danger { color: #f56c6c; }
.text-warning { color: #e6a23c; }
.text-primary { color: #409eff; }
.text-info { color: #909399; }
.text-white { color: #fff; }
.text-muted { color: #909399; }

.font-12 { font-size: 11px; }
.font-13 { font-size: 11px; }
.font-14 { font-size: 12px; }
.font-16 { font-size: 13px; }
.font-18 { font-size: 14px; }
.font-20 { font-size: 16px; }
.font-24 { font-size: 19px; }
.font-28 { font-size: 22px; }
.font-32 { font-size: 26px; }

.font-bold { font-weight: bold; }
.font-normal { font-weight: normal; }
.font-500 { font-weight: 500; }

.line-height-1 { line-height: 1; }
.line-height-15 { line-height: 1.5; }
.line-height-2 { line-height: 2; }

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.text-underline { text-decoration: underline; }
.text-through { text-decoration: line-through; }
.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }

/* ========== 23. 背景/边框工具类 ========== */
.bg-white { background: #fff; }
.bg-gray { background: #f5f7fa; }
.bg-primary { background: #409eff; }
.bg-success { background: #67c23a; }
.bg-warning { background: #e6a23c; }
.bg-danger { background: #f56c6c; }

.border { border: 1px solid #ebeef5; }
.border-top { border-top: 1px solid #ebeef5; }
.border-bottom { border-bottom: 1px solid #ebeef5; }
.border-left { border-left: 1px solid #ebeef5; }
.border-right { border-right: 1px solid #ebeef5; }
.border-none { border: none; }

.rounded { border-radius: 3px; }
.rounded-lg { border-radius: 6px; }
.rounded-full { border-radius: 50%; }
.rounded-none { border-radius: 0; }

/* ========== 24. 显示/隐藏 ========== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* ========== 25. 定位 ========== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; top: 0; }

.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }

.z-10 { z-index: 10; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }

/* ========== 26. 其他 ========== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.pointer-events-none { pointer-events: none; }

.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }

.select-none { user-select: none; }
.select-all { user-select: all; }

.float-left { float: left; }
.float-right { float: right; }
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #909399;
}
::-webkit-scrollbar-track {
    background: #f5f7fa;
}

.transition {
    transition: all 0.2s ease;
}
.transition-fast {
    transition: all 0.1s ease;
}
.transition-slow {
    transition: all 0.3s ease;
}

/* ========== 27. 框架布局组件 ========== */
.layout-wrap {
    display: flex;
    height: 100%;
    flex-direction: column;
}
.layout-header {
    height: 42px;
    background: #2b579a;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 13px;
    justify-content: space-between;
    flex-shrink: 0;
}
.layout-header-left {
    display: flex;
    align-items: center;
    gap: 13px;
}
.layout-header-right {
    display: flex;
    align-items: center;
    gap: 13px;
}
.logo-text {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}
.btn-collapse {
    cursor: pointer;
    font-size: 17px;
    padding: 0 6px;
    user-select: none;
    color: #fff;
}
.user-info {
    font-size: 12px;
    color: #fff;
}
.btn-logout {
    cursor: pointer;
    color: #fff;
    opacity: 0.9;
}
.btn-logout:hover {
    opacity: 1;
}
.layout-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.layout-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========== 28. 侧边栏菜单 ========== */
.layout-sidebar {
    width: 180px;
    background: #203048;
    transition: width 0.25s;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.layout-sidebar.collapse {
    width: 50px;
}
.sidebar-search {
    padding: 8px 10px;
    flex-shrink: 0;
    position: relative;
}
.sidebar-search input {
    width: 100%;
    height: 28px;
    padding: 0 8px 0 24px;
    border-radius: 3px;
    border: none;
    background: #33445c;
    color: #fff;
    font-size: 11px;
    outline: none;
}
.sidebar-search input::placeholder {
    color: #99a2b0;
}
.sidebar-search::before {
    content: "🔍";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    opacity: 0.6;
}
.menu-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.menu-container::-webkit-scrollbar {
    width: 3px;
}
.menu-container::-webkit-scrollbar-thumb {
    background: #4a5a70;
    border-radius: 2px;
}
.menu-item {
    color: #c0c6cf;
}
.menu-parent {
    padding: 10px 13px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    transition: background 0.2s;
}
.menu-parent:hover {
    background: #2a3a52;
    color: #fff;
}
.menu-parent .menu-arrow {
    font-size: 9px;
    transition: transform 0.2s;
}
.menu-parent.open .menu-arrow {
    transform: rotate(180deg);
}
.menu-parent-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.menu-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}
.menu-child-wrap {
    background: #1a273a;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s;
}
.menu-child-wrap.open {
    max-height: 500px;
}
.menu-child {
    padding: 8px 13px 8px 36px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
    border-left: 3px solid transparent;
}
.menu-child:hover {
    background: #2a3a52;
    color: #fff;
}
.menu-child.active {
    background: #1890ff;
    color: #fff;
    border-left-color: #fff;
}
.layout-sidebar.collapse .menu-parent {
    justify-content: center;
    padding: 12px 0;
}
.layout-sidebar.collapse .menu-parent-title span:not(.menu-icon) {
    display: none;
}
.layout-sidebar.collapse .menu-arrow {
    display: none;
}
.layout-sidebar.collapse .menu-child-wrap {
    display: none;
}
.layout-sidebar.collapse .sidebar-search {
    display: none;
}

/* ========== 29. 顶部多标签页（iframe版） ========== */
.tabs-wrap {
    height: 30px;
    background: #fff;
    border-bottom: 1px solid #e4e7ed;
    display: flex;
    align-items: center;
    overflow-x: auto;
    flex-shrink: 0;
}
.tabs-wrap::-webkit-scrollbar {
    height: 0;
}
.tab-item {
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    border-right: 1px solid #e4e7ed;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    color: #606266;
}
.tab-item.active {
    background: #409eff;
    color: #fff;
}
.tab-close {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 12px;
    text-align: center;
    border-radius: 50%;
}
.tab-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.iframe-container {
    flex: 1;
    background: #f5f7fa;
}
.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== 30. 首页组件 ========== */
.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}
.quick-item {
    background: #fff;
    border-radius: 4px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.quick-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}
.quick-icon {
    font-size: 24px;
    margin-bottom: 6px;
}
.quick-text {
    font-size: 12px;
    color: #606266;
}