/* 基础样式 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(-45deg, #f5f7fa 0%, #c3cfe291 100%);
    min-height: 100vh;
}

.detail-sis {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 登录容器 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 16px;
}

/* 登录卡片 */
.login-card {
    width: 100%;
    max-width: 375px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 20px;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 8px;
}

.subtitle {
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
}

/* 表单样式 */
.login-form {
    margin-bottom: 0;
}

/* 清除按钮 */
.clear-btn {
    color: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: color 0.3s;
}

.clear-btn:hover {
    color: rgba(0, 0, 0, 0.45);
}

/* 验证码按钮 */
.code-btn {
    color: #1890ff;
    padding: 0;
    height: auto;
}

/* 记住我行 */
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.forgot-password {
    color: #1890ff;
}

/* 登录按钮 */
.login-btn {
    height: 40px;
    font-size: 16px;
    margin-bottom: 16px;
}

/* 分割线 */
.divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
}

.divider-line {
    flex: 1;
    border-top: 1px solid #f0f0f0;
}

.divider-text {
    padding: 0 12px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
}

/* 微信按钮 */
.wechat-btn {
    height: 40px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.85);
}

.wechat-btn i {
    color: #07C160;
    margin-right: 8px;
}

/* 协议文本 */
.agreement {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    text-align: center;
    margin-top: 24px;
}

.agreement a {
    color: #1890ff;
    margin: 0 4px;
}

/* 隐藏元素 */
.hidden {
    display: none;
}

/* 动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* 倒计时动画 */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 登录容器 */
.login-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #001a33 0%, #003366 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 登录卡片 */
.login-card {
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
}

/* 粒子样式 - 通过JS动态添加 */
.particle {
    position: absolute;
    background-color: rgba(0, 122, 204, 0.6);
    border-radius: 50%;
    pointer-events: none;
}



/* 基础样式 - 保持原有样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.login-card {
    width: 400px;
    padding: 30px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    color: #666;
}

/* 新增登录方式切换样式 */
.login-tabs {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab-button.active {
    color: #1890ff;
    font-weight: 500;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1890ff;
}

/* 表单样式 - 保持原有样式 */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.ant-input-affix-wrapper {
    position: relative;
}

.ant-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.ant-input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.clear-btn {
    color: #999;
}

.toggle-password {
    color: #999;
}

/* 表单选项样式 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ant-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
}

.forgot-password {
    color: #1890ff;
    text-decoration: none;
}

/* 按钮样式 - 保持原有样式 */
.ant-btn {
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.ant-btn-primary {
    background-color: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.ant-btn-default {
    background-color: #fff;
    border-color: #d9d9d9;
}

.ant-btn-block {
    display: block;
    width: 100%;
}

.ant-btn-text {
    background: none;
    border: none;
    color: #1890ff;
    padding: 0;
}

.code-btn {
    font-size: 14px;
}

.wechat-btn {
    color: #52c41a;
    border-color: #52c41a;
}

/* 分割线样式 - 保持原有样式 */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: #e8e8e8;
}

.divider-text {
    padding: 0 10px;
    color: #999;
    font-size: 14px;
}

/* 错误提示样式 - 保持原有样式 */
.ant-form-item-explain-error {
    color: #f5222d;
    font-size: 12px;
    margin-top: 4px;
}

.hidden {
    display: none;
}

/* 自定义样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

.layout-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧导航栏 */
.sider {
    width: 220px;
    background: #fff;
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
}

.logo {
    height: 64px;
    line-height: 64px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #1890ff;
    border-bottom: 1px solid #f0f0f0;
}

.menu {
    border-right: none;
}

/* 右侧内容区 */
.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.header {
    height: 64px;
    line-height: 64px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

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

.user-name {
    margin-right: 16px;
}

.avatar {
    cursor: pointer;
}

/* 主内容区 */
.main-content {
    padding: 68px 5px 48px;
    flex: 1;
}

/* 功能卡片 */
.card-row {
    display: flex;
    margin-bottom: 24px;
}

.card {
    flex: 1;
    margin-right: 24px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

.card:last-child {
    margin-right: 0;
}

.card-primary {
    border-top: 3px solid #1890ff;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-icon {
    font-size: 18px;
    margin-right: 8px;
    color: #1890ff;
}

.card-desc {
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
    margin-bottom: 16px;
}

.card-action {
    color: #1890ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    background-color: #ff4d4f;
    color: #fff;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    display: inline-block;
}

/* 工单表格 */
.workorder-table {
    background: #fff;
    border-radius: 4px;
    padding: 16px 24px;
}

.table-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
}

.view-all {
    text-align: right;
    margin-top: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-row {
        flex-direction: column;
    }

    .card {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

.back-button{
    width:40px;
    height:32px;
    cursor:pointer;
}

/* home */
/* 基础响应式样式 */
body {
    font-size: 16px;
    overflow-x: hidden;
}

.layout-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 移动端导航栏样式 */
.sider {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* 默认隐藏，通过菜单按钮控制 */
}

.status-pending {
    background-color: #fff7e6;
    color: #fa8c16;
}

.status-assigned {
    background-color: #e6f7ff;
    color: #1890ff;
}

.status-waiting {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-rejected {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.status-accepted {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-returned {
    background-color: #fff7e6;
    color: #fa8c16;
}
.menu {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    margin: 0;
}

.menu-item {
    flex: 1 0 33%;
    text-align: center;
    padding: 10px 0;
    border-right: 1px solid #f0f0f0;
}

.menu-title {
    flex-direction: column;
    align-items: center;
}

.submenu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background: #fff;
}

/* 移动端内容区 */
.content-container {
    width: 100%;
    padding-bottom: 60px;
    /* 为底部导航留出空间 */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: block;
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: #1890ff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    z-index: 110;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 卡片响应式布局 */
.card-row {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    /* 为顶部导航留出空间 */
}

.card {
    width: 100%;
    margin-bottom: 15px;
}

/* 表格响应式处理 */
.workorder-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 600px;
}



/* 底部导航栏样式 */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 5px 0;
}

.nav-item,
.nav-item a {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-item i {
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.nav-item.active a {
    color: #1890ff;
}

/* 子菜单浮层样式 */
.submenu-overlay {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: bottom 0.3s;
    height: 100%;
}

.submenu-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
}

.submenu-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.submenu-close {
    text-align: center;
    padding: 10px;
    color: #1890ff;
    font-size: 20px;
}


/* 桌面端显示卡片 */
.desktop-only {
    display: none;
    /* 默认隐藏 */
}



.desktop-sider {
    transition: transform 0.3s ease;
}


/* 桌面端左侧导航样式 */
.desktop-sider {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: white;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 20px 0;
}

.sider-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: #666;
}

.sider-item.active {
    color: #1890ff;
    background: #e6f7ff;
}

.sider-icon {
    font-size: 18px;
    /* margin-right: 10px; */
}

/* 内容区域 */
.content {
    padding: 5px;
    padding-bottom: 60px;
    /* 为移动端导航留空间 */
}

/* 响应式调整 */
@media (min-width: 768px) {
    .desktop-sider+.container {
        margin-left: 200px;
    }

    .mobile-nav {
        display: none;
    }

    .desktop-sider {
        display: block;
    }

    .content {
        margin-left: 200px;
        padding-bottom: 20px;
    }
}

/* 响应式调整 - 桌面端隐藏底部导航 */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }

    /* 恢复原有桌面端侧边栏样式 */
    .sider {
        display: block;
        width: 200px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

}
@media (max-width: 767px) {
    .desktop-sider {
        transform: translateX(-100%);
    }

    .desktop-sider.show {
        transform: translateX(0);
    }
}
/* 媒体查询 - 平板及以上显示卡片 */
@media (min-width: 768px) {
    .desktop-only {
        display: flex;
    }

    .card-row {
        flex-direction: row;
        margin: 20px 0;
    }

    .card {
        width: calc(33.33% - 20px);
        margin-right: 20px;
    }
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }

    .desktop-sider {
        display: block;
    }

    .content {
        margin-left: 200px;
    }
}
/* 媒体查询 - 平板及以上 */
@media (min-width: 768px) {
    .layout-container {
        flex-direction: row;
    }

    .sider {
        display: block;
        width: 200px;
        height: 100vh;
        position: sticky;
        top: 0;
        bottom: auto;
        box-shadow: none;
    }

    .menu {
        display: block;
    }

    .menu-item {
        flex: none;
        text-align: left;
        border-right: none;
    }

    .content-container {
        padding-bottom: 0;
    }

    .header {
        /* position: static; */
        box-shadow: none;
    }

    .card-row {
        flex-direction: row;
        margin-top: 0;
    }

    .card {
        width: calc(33.33% - 20px);
        margin-right: 20px;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* 右侧内容区样式 */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

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

.user-info span {
    margin-right: 10px;
}


/* 筛选区域样式 */
.filter-area {
    background-color: white;
    padding: 16px 24px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.filter-row {
    display: flex;
    margin-bottom: 16px;
}

.filter-item {
    flex: 1;
    margin-right: 16px;
    display: flex;
    align-items: center;
}

.filter-item label {
    width: 100px;
    text-align: right;
    margin-right: 8px;
}

.ant-select, .ant-input {
    flex: 1;
    height: 32px;
    padding: 4px 11px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.ant-picker-range {
    display: flex;
    align-items: center;
    flex: 1;
}

.ant-picker-input {
    flex: 1;
    height: 32px;
    padding: 4px 11px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.separator {
    padding: 0 8px;
}

.search-btn {
    margin-left: auto;
}

/* 表格样式 */
.order-table {
    background-color: white;
    border-radius: 4px;
}

.ant-table {
    width: 100%;
    border-collapse: collapse;
}

.ant-table th, .ant-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.ant-table th {
    background-color: #fafafa;
    font-weight: 500;
}

.timeout-row {
    background-color: #fff1f0;
}

.ant-tag {
    padding: 0 8px;
    font-size: 12px;
    border-radius: 4px;
}

.ant-tag-red {
    color: #f5222d;
    background: #fff1f0;
    border-color: #ffa39e;
}

.ant-btn {
    height: 32px;
    padding: 4px 15px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.ant-btn-text {
    border: none;
    background: transparent;
}

.ant-btn-primary {
    color: white;
    background-color: #1890ff;
    border-color: #1890ff;
}

/* 模态框样式 */
.ant-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ant-modal-content {
    background-color: white;
    width: 520px;
    border-radius: 4px;
    margin: 300px auto 0;
}

.ant-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ant-modal-title {
    font-weight: 500;
    font-size: 16px;
}

.ant-modal-body {
    padding: 24px;
}

.ant-modal-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.form-item {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.form-item label {
    width: 120px;
    text-align: right;
    margin-right: 8px;
}

.cancel-btn {
    margin-right: 8px;
}
/* 新增分页样式 */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

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

.ant-pagination-prev, .ant-pagination-next {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 0 8px;
    height: 32px;
    margin: 0 8px;
    cursor: pointer;
    background-color: white;
}

.ant-pagination-item-container {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ant-pagination-item {
    min-width: 32px;
    height: 32px;
    margin-right: 8px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
}

.ant-pagination-item-active {
    border-color: #1890ff;
    background-color: #1890ff;
    color: white;
}

.ant-pagination-options {
    margin-left: 16px;
}

.ant-pagination-options-size-changer {
    height: 32px;
    padding: 0 11px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}



/* 类型标签样式 */
.type-tag {
    padding: 0 8px;
    font-size: 12px;
    border-radius: 4px;
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #d9d9d9;
}
.upload_info{
    margin-left: 10px;
    color: #cbcbcb;
}