body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    margin: 0;
}
/* 核心：外层弹性布局 */
.layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}
.sidebar {
    /*position: fixed;*/
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: #001529;
    color: white;
    flex-shrink: 0; /* 不被压缩 */
}

.sidebar .logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.sidebar nav {
    padding: 10px 0;
}

.sidebar nav a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background: #1890ff;
    color: white;
}

.main {
    flex: 1;
    min-width: 0; /* 防止内容撑开溢出 */
}

.header {
    width: 100%;
    box-sizing: border-box;
    height: 64px;
    background: white;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.header h1 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.header .user-info {
    padding-right: 3vw;
}

.content {
    padding: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #1890ff;
}

.stat-label {
    color: #666;
    margin-top: 8px;
}

.table-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* 强制表格宽度受父容器控制 */
    /*table-layout: auto; */
}
table th, table td {
    word-wrap: break-word;   /* 长单词自动换行 */
    white-space: normal;     /* 允许自动换行 */
    overflow: hidden;        /* 隐藏超出部分（可选） */
}
/* 让勾选框所在的 th / td 宽度 最小化！ */
/*table th:first-child,*/
/*table td:first-child {*/
/*    width: auto !important;       !* 核心：自动收缩到最小 *!*/
/*    padding: 0 4px !important; !* 只留一点点边距 *!*/
/*    white-space: nowrap !important;*/
/*}*/
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background: #fafafa;
    font-weight: 500;
    color: #333;
}

tr:hover {
    background: #f5f5f5;
}


.form-container {
    background: white;
    padding: 24px;
    border-radius: 8px;
    max-width: 500px;
}

.form-group {
    margin-bottom: 16px;
    display: flex;       /* 关键：横向排列 */
    align-items: center; /* 垂直居中 */
    gap: 12px;           /* label 和输入框之间的间距 */
}

.form-group label {
    width: 100px;        /* label 固定宽度，可自己改 */
    flex-shrink: 0;      /* 不让 label 被挤压 */
    margin: 0;           /* 去掉原来的下边距 */
    color: #333;
    font-weight: 500;    /* 更美观 */
}

.form-group input,
.form-group textarea,
.form-group select {
    flex: 1;             /* 关键：占满剩余宽度 */
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    box-sizing: border-box;
}
.form-group textarea {
    resize: none;         /* 禁止用户手动拖拽右下角 */
    overflow-y: hidden;   /* 隐藏默认的滚动条 */
}
/* Label 独占一行 + 好看样式 */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

/* 输入框样式 */
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    box-sizing: border-box;
    transition: all 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.pagination {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pagination a {
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
}

.alert-error {
    background: #fff2f0;
    border: 1px solid #ffa39e;
    color: #ff4d4f;
}



pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 8px;
    overflow: auto;
    max-height: 600px;
    font-size: 12px;
    line-height: 1.5;
}

.toolbar {
    /*margin-bottom: 16px;*/
    display: flex;
    gap: 8px;
    margin: 6px;
}
/* 搜索条样式 */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

/* 搜索输入框 */
.filter-bar input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
    width: 240px;
    font-size: 14px;
}
.filter-bar input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* 搜索按钮统一风格 */
.filter-bar button {
    padding: 8px 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.filter-bar button:hover {
    background: #40a9ff;
}

/* 总数统计靠右 */
.filter-bar span {
    margin-left: auto;
    color: #666;
    font-size: 14px;
}

/* 遮罩层 */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center; /* 垂直 + 水平 居中 */
}

/* 弹窗容器：由内容自动撑开！不写宽高！ */
.modal-box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    /* 这里不写 width / height！完全靠内部撑开 */
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #555;
    color: white;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}
.close-btn:hover {
    background: #f56c6c;
}

/* iframe：自动适应内容大小 */
.iframe-auto {
    display: block;
    border: none;
    width: 100%;
    /* 这里关键：让 iframe 高度由内容撑开 */
    height: auto;
    min-height: 200px;
}

/* 用户信息下拉优化 */
.user-info {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
}
.user-info:hover {
    background: #f5f5f5;
}

/* 头像圆形 + 靠右 */
.user-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: auto;
}

/* 下拉框默认隐藏 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px 16px;
    display: none;
    z-index: 999;
}

/* 鼠标悬浮显示下拉 */
.user-info:hover .user-dropdown {
    display: block;
}

/* 下拉内容样式 */
.drop-item {
    padding: 6px 0;
    font-size: 14px;
    color: #333;
}
.drop-item.username {
    font-weight: 500;
    font-size: 15px;
}
.drop-item.email {
    color: #666;
    font-size: 13px;
}
.drop-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

/* 登出按钮 */
.logout-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 0;
    background: #ff4d4f;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 4px;
}
.logout-btn:hover {
    background: #d9363e;
}

/* ========== 通用基础样式 ========== */
/* 状态标签统一基础 */
.status-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

/* 按钮统一基础 */
.btn-comp {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

.btn {
    margin: 3px;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
}
.btn:hover {
    opacity: 0.92;
}
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}
a.btn {
    box-sizing: border-box;
    text-decoration: none !important;
    cursor: pointer;
}

/* 鼠标 hover 也不要样式 */
a.btn:hover {
    text-decoration: none !important;
}

/* 访问过也不要样式 */
a.btn:visited {
    text-decoration: none !important;
}

/* 镂空按钮基础 */
.btn-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* ========== 状态标签色值 ========== */
/* 审核通过 蓝 */
.status-approved {
    background-color: #e6f4ff;
    color: #1890ff;
}

/* 已完成 绿 */
.status-completed {
    background-color: #f0f9e8;
    color: #52c41a;
}

/* 已拒绝 红 */
.status-rejected {
    background-color: #fff2f2;
    color: #ff4d4f;
}

/* 业务成功 */
.status-success {
    background-color: #ecfdf3;
    color: #00b42a;
}

/* 进行中/处理中 橙 */
.status-pending {
    background-color: #fff7e6;
    color: #ff7d00;
}

/* 待审核/等待 深蓝 */
.status-wait {
    background-color: #f0f5ff;
    color: #2962ff;
}

/* 失败/驳回 */
.status-fail {
    background-color: #fee7e7;
    color: #f53f3f;
}

/* 禁用/关闭 */
.status-disable {
    background-color: #f2f3f5;
    color: #86909c;
}

/* 灰色默认 */
.status-default {
    background-color: #f7f8fa;
    color: #4e5969;
}

/* ========== 实心按钮 ========== */
/* 主按钮（蓝色）*/
.btn-primary {
    background-color: #1890ff;
    color: #fff;
}
.btn-primary:hover {
    background: #337ecc;
}
/* 危险按钮（红色）*/
.btn-danger {
    background-color: #ff4d4f;
    color: #fff;
}

/* 已审核 */
.btn-approved {
    background-color: #1890ff;
    color: #fff;
}

/* 已完成 */
.btn-completed {
    background-color: #52c41a;
    color: #fff;
}

/* 已拒绝 */
.btn-rejected {
    background-color: #ff4d4f;
    color: #fff;
}

/* 成功 */
.btn-success {
    background-color: #00b42a;
    color: #fff;
}

/* 处理中 */
.btn-pending {
    background-color: #ff7d00;
    color: #fff;
}

/* 等待 */
.btn-wait {
    background-color: #2962ff;
    color: #fff;
}

/* 失败 */
.btn-fail {
    background-color: #f53f3f;
    color: #fff;
}

/* 禁用 */
.btn-disable {
    background-color: #86909c;
    color: #fff;
}

/* 默认 */
.btn-default {
    background-color: #4e5969;
    color: #fff;
}

/* ========== 镂空按钮 ========== */
.btn-outline-primary {
    color: #1890ff;
    border-color: #1890ff;
    background: transparent;
}
.btn-outline-danger {
    color: #ff4d4f;
    border-color: #ff4d4f;
    background: transparent;
}
.btn-outline-approved {
    color: #1890ff;
    border-color: #1890ff;
}
.btn-outline-completed {
    color: #52c41a;
    border-color: #52c41a;
}
.btn-outline-rejected {
    color: #ff4d4f;
    border-color: #ff4d4f;
}
.btn-outline-success {
    color: #00b42a;
    border-color: #00b42a;
}
.btn-outline-pending {
    color: #ff7d00;
    border-color: #ff7d00;
}
.btn-outline-wait {
    color: #2962ff;
    border-color: #2962ff;
}
.btn-outline-fail {
    color: #f53f3f;
    border-color: #f53f3f;
}
.btn-outline-disable {
    color: #86909c;
    border-color: #86909c;
}
.btn-outline-default {
    color: #4e5969;
    border-color: #4e5969;
}

/* 余额 + 刷新图标 全局样式 */
.balance-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* 刷新图标样式 */
.refresh-btn {
    cursor: pointer;
    color: #1890ff;
    font-size: 14px;
    transition: transform 0.2s;
}
.refresh-btn:hover {
    transform: rotate(90deg); /*  hover 旋转效果 */
}

/* 侧边栏子菜单样式 */
.menu-item {
    position: relative;
}
.menu-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    cursor: pointer;
}
.menu-parent:hover {
    background: #1890ff;
    color: #fff;
}
.menu-parent::after {
    content: ">";
    font-size: 12px;
    transition: transform 0.2s;
}
.menu-parent.open::after {
    transform: rotate(90deg);
}

/* 子菜单默认关闭 */
.sub-menu {
    display: none;
    background: rgb(1, 96, 191);
    border-left: 2px solid #1890ff;
}
.sub-menu a {
    padding: 10px 20px 10px 30px;
    font-size: 14px;
}
.sub-menu a.active {
    background: #1890ff;
    color: #fff;
}

/* 自动展开 */
.sub-menu.open {
    display: block;
}

select {
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
/* 基础下拉框样式 */
.select-box {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    width: auto;
    min-width: 160px;
}

.select-box:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.1);
}

/* 推荐状态（主色/成功色）*/
.select-recommend {
    border-color: #67c23a;
    background-color: #f6ffed;
}

.select-recommend:focus {
    border-color: #67c23a;
    box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.1);
}

/* 警告/危险状态 */
.select-warning {
    border-color: #f56c6c;
    background-color: #fef0f0;
}

.select-warning:focus {
    border-color: #f56c6c;
    box-shadow: 0 0 0 3px rgba(245, 108, 108, 0.1);
}

/* 禁用状态 */
.select-box:disabled {
    background-color: #f5f7fa;
    border-color: #e4e7ed;
    color: #c0c4cc;
    cursor: not-allowed;
}

/* ========== 下拉选项样式 OPTION ========== */
option {
    padding: 8px;
    font-size: 14px;
}
option.option-primary {
    color: #1677ff;
    background: #e8f3ff;
}
/* 成功/推荐选项 */
option.option-success {
    color: #2d9c44;
    background: #f6ffed;
}

/* 警告/待处理选项 */
option.option-warning {
    color: #e6a500;
    background: #fffbf0;
}

/* 危险/失败选项 */
option.option-danger {
    color: #d03020;
    background: #fff1f0;
}

/* 禁用选项 */
option.option-disabled {
    color: #999;
    background: #f5f7fa;
}
span {
    padding: 8px;
    font-size: 14px;
}
span.span-primary {
    color: #1677ff;
    background: #e8f3ff;
}
/* 成功/推荐选项 */
span.span-success {
    color: #2d9c44;
    background: #f6ffed;
}

/* 警告/待处理选项 */
span.span-warning {
    color: #e6a500;
    background: #fffbf0;
}
span.span-pending {
    color: #e6a500;
    background: #fffbf0;
}

/* 危险/失败选项 */
span.span-danger {
    color: #d03020;
    background: #fff1f0;
}

/* 禁用选项 */
span.span-disabled {
    color: #999;
    background: #f5f7fa;
}

.input-comp {
    margin-bottom: 16px;
}
.input-comp label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}
.input-comp input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}
.input-comp select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
    appearance: none;       /* 去掉默认下拉箭头（更美观） */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* 聚焦效果和 input 保持统一 */
.input-comp select:focus {
    outline: none;
    border-color: #888;
}

/* 禁用状态样式 */
.input-comp select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    margin: 3px;
}
.stat-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.stat-card.success {
    background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%);
    color: #fff;
}
.stat-card.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}
.stat-card.info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}
.stat-card.orange {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #fff;
}
.stat-card.green {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #fff;
}
.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 14px;
    opacity: 0.9;
}
.stat-card a {
    box-sizing: border-box;
    /* 去掉下划线 */
    text-decoration: none !important;
    /* 去掉默认颜色，改成你想要的颜色 */
    color: inherit !important;
    /* 鼠标放上也不变色 */
    cursor: pointer;
}

/* 鼠标 hover 也不要样式 */
.stat-card a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* 访问过也不要样式 */
.stat-card a:visited {
    text-decoration: none !important;
    color: inherit !important;
}

/* 纯自定义精美勾选框 */
input[type="checkbox"].item-checkbox,
input[type="checkbox"]#checkAll {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

/* 全选框 半选中状态 (关键！) */
input[type="checkbox"]#checkAll:indeterminate {
    background-color: #409eff;
    border-color: #409eff;
}
input[type="checkbox"]#checkAll:indeterminate::after {
    content: "-";
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    font-weight: bold;
}

/* 选中状态 */
input[type="checkbox"].item-checkbox:checked,
input[type="checkbox"]#checkAll:checked {
    background-color: #409eff;
    border-color: #409eff;
}

/* 勾选 ✔ 图标 */
input[type="checkbox"].item-checkbox:checked::after,
input[type="checkbox"]#checkAll:checked::after {
    content: "✔";
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
}

/* hover 效果 */
input[type="checkbox"].item-checkbox:hover,
input[type="checkbox"]#checkAll:hover {
    border-color: #409eff;
}

div.select-link{
    /*display: flex;*/
}


/* 外层居中容器（可选，让卡片居中） */
.page-wrap {
    width: 100%;
    padding: 30px 15px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* 卡片主体 宽度50% */
.form-card {
    width: calc(50% - 12px);
    box-sizing: border-box;
    min-width: 420px; /* 小屏幕最小宽度，防止太窄 */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    overflow: hidden;
}

/* 卡片标题栏 */
.form-card-header {
    padding: 16px 24px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.form-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* 表单内容区域 */
.form-card-body {
    padding: 24px;
}
/* 表单通用样式（配套美化） */
.form-item {
    margin-bottom: 18px;
}
.form-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}
.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.15);
}



/* 开关容器 */
label.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
/* 隐藏原生复选框 */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
/* 滑轨背景 */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}
/* 滑块小圆点 */
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
/* 选中后背景变色 */
input:checked + .slider {
    background-color: #2196F3;
}
/* 选中后滑块右移 */
input:checked + .slider:before {
    transform: translateX(24px);
}

label.switch-text {
    all: unset;
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
}
.switch-text input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-text {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 28px;
    transition: 0.3s;
}
.slider-text:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 2;
}
/* 文字 */
.slider-text::after {
    content: "OFF";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: white;
}
input:checked + .slider-text {
    background: #00c853;
}
input:checked + .slider-text:before {
    transform: translateX(32px);
}
input:checked + .slider-text::after {
    content: "ON";
    left: 8px;
    right: auto;
}

.input-auto-text {
    width: 300px;
    min-height: 36px;
    max-height: 150px; /* 超过该高度出现滚动 */
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none; /* 禁止手动拖拽大小 */
    overflow-y: hidden;
    box-sizing: border-box;
    outline: none;
}


.qrcode-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    margin: 8px;
}
.qrcode-item canvas {
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.label-wrap > label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.copy-btn {
    cursor: pointer;
    padding: 2px 6px;
    font-size: 13px;
    color: #409eff;
    border: 1px solid #409eff;
    border-radius: 4px;
    background: #fff;
    user-select: none;
}
.copy-btn:hover {
    background: #ecf5ff;
}

/* 只隐藏 type=file 的原生输入框 */
input[type="file"] {
    /*display: none;*/
}

/* 自定义按钮样式随便写 */
.file-btn {
    padding: 8px 18px;
    background: #409eff;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.file-btn:hover {
    background: #337ecc;
}