body{    
    background-color: #fff;
    font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #1f2a37;
}

.contentBox {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

.page-loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(247, 249, 250, 0.78);
    backdrop-filter: blur(2px);
    z-index: 3200;
}

.page-loading-overlay__panel {
    min-width: 180px;
    min-height: 132px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 22px;
}

.page-loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: #e60039;
    animation: page-loading-spin 0.9s linear infinite;
}

.page-loading-text {
    font-size: 14px;
    color: #6b7280;
}

@keyframes page-loading-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.subNav {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.subNav span {
    color: #333;
    font-weight: bold;
}

.content {
    /* background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); */
}
      .filter-tabs {
        display: flex;
        background: #fff;
        border-radius: 18px;
        padding: 6px 12px;
        position: relative;
        margin-bottom: 24px;
        gap: 8px;
      }
      .filter-tabs button {
        border: none;
        background: #fff;
        color: #222;
        border-radius: 18px;
        padding: 0 22px;
        height: 36px;
        font-size: 16px;
        cursor: pointer;
    
      }
      .filter-tabs button.active {
        background: #e60039;
        color: #fff;
        font-weight: 500;
      }
.page-title {
    font-size: 28px;
    color: rgb(32, 33, 36);
    margin: 0 0 32px;
    text-align: center;
    font-weight: 400;
    line-height: 1.25;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;

    gap: 12px;
    /* width: 100%; */
}

.filter-group .el-select {
    min-width: 220px;
    /* width: 100%; */
}

.filter-select select {
    border: 1px solid #d9dbe1;
    border-radius:4px;
    padding: 10px 40px 10px 18px;
    font-size: 14px;
    background-color: #fff;
    min-width: 300px;
    color: #2A2B2E;
}

.filter-select .el-input__inner::placeholder {
    color: #2A2B2E;
}

.filter-select .el-input__inner {
    color: #2A2B2E;
}

.add-btn,
.add-btn-empty {
    background-color: #E60039;
    color: #fff;
    border: none;
    padding: 11px 32px;
    border-radius:4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 400;

}



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

.device-card {
    /* border: 1px solid rgba(255, 255, 255, 0.8); */
    border-radius: 8px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
max-width: 600px;
will-change: transform;
}



.delete-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    
    z-index: 10;
}



.card-body {
    display: flex;
    padding: 12px 12px 14px;
    background: #FAFBFC;
}

.device-image {
    width: 80px;
    height: 80px;
    margin-right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.device-image img {
    max-width: 100%;
    max-height: 100%;
}

.device-info {
    flex: 1;
}

.device-name-row {
    margin-bottom: 4px;
    padding-right: 20px;
    line-height: 1.5;
}

.device-name {
    font-size: 18px;
    color: #2A2B2E;
    font-weight: 600;
}

.device-category {
    font-size: 12px;
    color: #6b7280;
    margin-left: 8px;
}


.device-info p {

    font-size: 14px;
    color: #6A6B6D;
    line-height: 1.5;
}

.sn-number {

    margin-bottom: 4px;
}
.el-select .el-input__inner:focus{
    border-color: none;
}
.warranty-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.under-warranty {
    color: #6A6B6D;
    margin-left: 5px;
    .modal-btn.confirm {
        order: 1;
    }

    .modal-btn.cancel {
        order: 2;
    }
}



.more-details {
    color: #E60039;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.more-details:hover {
    color: #E60039;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}


.card-footer {
    display: flex;
    border-top: 1px solid #f3f4f6;
    background-color: #F7F9FA;
}

.card-btn {
    flex: 1;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    padding: 12px 0;
    text-transform: capitalize;
    font-weight: 500;
    position: relative;
}

/* 删除确认弹窗样式 */
.modal-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
/* 弹窗显示时锁定页面滚动（显示遮罩时给 html/body 添加该类） */
html.modal-overlay-open,
body.modal-overlay-open {

    .modal-btn.confirm {
        order: 1;
    }

    .modal-btn.cancel {
        order: 2;
    }
    overflow: hidden;
}
.modal-box {
    width: 600px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.modal-loading-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 5;
}
.modal-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:24px 24px 4px 24px;
    
}
.modal-title{
    font-size:28px;
    font-weight:400;
    color: #2a2b2e;
    display:flex;
    align-items:center;
    gap:10px;
}
.modal-title-icon{
    width:32px;
    height:32px;
    flex-shrink:0;
}
.close-modal{
    background:transparent;
    border:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:4px;
}
.close-modal img{
    width:24px;
    height:24px;
    display:block;
}
.modal-body{
    padding:20px 24px;
    color:#6A6B6D;
    font-size:16px;
    line-height:1.6;
}
.modal-footer{
    padding:20px 24px;
    display:flex;
    justify-content:flex-end;
    gap:12px;
   
}
.modal-btn{
    padding:12px 32px;
    border-radius:6px;
    border:none;
    cursor:pointer;
    font-size:16px;
    display:flex;
    align-items:center;
    gap:10px;
}
.modal-btn.cancel{
    background:#fff;
    border: 1px solid #E60039;
    color: #E60039;
}
.modal-btn.confirm{
    background:#e60039;
    color:#fff;
}

.modal-btn:disabled,
.close-modal:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.card-btn:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background-color: #E3E5E6;
}



.empty-state {
    text-align: center;
    padding: 80px 0;
}

.empty-icon img {
    width: 120px;
    margin-bottom: 20px;
}

.no-data-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 30px;
}

.filtered-no-data {
    margin-top: 24px;
    text-align: center;
    font-size: 16px;
    color: #999;
}

/* 覆盖 Element UI 下拉空数据提示文案 */
.el-select-dropdown__empty {
    font-size: 0;
}

.el-select-dropdown__empty::after {
    content: "NO date";
    font-size: 14px;
    color: #999;
}

.pagination {
    margin-top: 32px;
    display: none;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination button,
.pagination span {
    min-width: 30px;
    height: 30px;

    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.pagination button {
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}



.pagination button.active {
    background-color: #E60039;
    color: #fff;
    border-color: #E60039;
}

.pagination button:hover:not(:disabled):not(.active) {
    border-color: #E60039;
    color: #E60039;
}

.pagination span {
    border: none;
    background: transparent;
    cursor: default;
    min-width: 24px;
}

.pagination button.nav-btn {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 7px 13px;
}

.pagination button.nav-btn.icon-prev,
.pagination .pagination-nav.icon-prev {
    background-image: url('https://eo-sgp-cos.ruijie.com/site_style/userCenter/MyDevices/img/zuo.svg');
}

.pagination button.nav-btn.icon-next,
.pagination .pagination-nav.icon-next {
    background-image: url('https://eo-sgp-cos.ruijie.com/site_style/userCenter/MyDevices/img/you.svg');
}

@media (max-width: 1024px) {
    .device-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contentBox {
        padding: 36px 16px 64px;
    }

    .modal-box {
        width: auto;
        margin: 0 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-title-icon {
        width: 24px;
        height: 24px;
    }

    .modal-body {
        font-size: 14px;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 20px;
    }

    .modal-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-btn.confirm {
        order: 1;
    }

    .modal-btn.cancel {
        order: 2;
    }
.modal-header{
    padding: 12px 20px;
}
.modal-body{
     padding: 12px 20px;
}
    .page-title {
        font-size: 19px;
            margin: 0 0 36px
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch;
       
    }

    .filter-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .filter-group .el-select {
        min-width: 0;
    }

    .filter-select,
    .filter-select select {
        width: 100%;
    }

    .add-btn {
        width: 100%;
        text-align: center;
        order: -1;
    }

    .filter-group {
        width: 100%;
        order: 2;
    }

    .device-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .device-card {
       
      border-radius: 8px;
        padding: 0px;
      
    }
.device-name{
    font-size: 16px;
}
    .card-body {
        padding: 12px;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 12px;
        background-color: #FAFBFC;
        text-align: left;
    }

    .device-image {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .device-name-row {
        padding-right: 0;
        margin-bottom: 8px;
    }

    .warranty-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .more-details {
        margin-left: 0;
    }

    .more-details:hover {
        margin-left: 0;
    }

    .card-footer {
        /* flex-direction: column; */
        border-top: 1px solid transparent;
          background-color: #F7F9FA;

        gap: 8px;
    }

    .card-btn {
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid #f3f4f6;
    }

    /* Keep the divider visible on mobile */
    .card-btn:not(:last-child)::after {
        display: block;
    }

    .pagination {
        margin-top: 32px;
        gap: 0px;
        align-items: center;
    }

    .pagination .pagination-nav {
        width: 30px;
        height: 30px;
        border: 1px solid #dfe2e6;
        border-radius: 8px;
        background: #fff;
        color: #6a6b6d;
 margin-left:10px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
        background-repeat: no-repeat;
        background-position: center;
        background-size: 7px 13px;
    }

 

    .pagination .pagination-nav.icon-prev {
        background-image: url('https://eo-sgp-cos.ruijie.com/site_style/userCenter/MyDevices/img/zuo.svg');
    }

    .pagination .pagination-nav.icon-next {
        background-image: url('https://eo-sgp-cos.ruijie.com/site_style/userCenter/MyDevices/img/you.svg');
    }

    .pagination .pagination-current {
        min-width: 68px;
        height: 36px;
        
        border: 1px solid #dfe2e6;
        border-radius: 8px;
        background: #fff;
        color: #1f2937;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
     margin-left:16px;
    }

    .pagination .pagination-separator {
        display: inline-flex;
        align-items: center;
        width: 9px;
        height: 19px;
        background-image: url('https://eo-sgp-cos.ruijie.com/site_style/userCenter/MyDevices/img/xie.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 9px 19px;
    }

    .pagination .pagination-total {
        color: #2a2b2e;
        font-weight: 500;
        font-size: 14px;
    }
}

