/* 设备中心页面样式 */
.equipment-main {
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: auto;
}

.equipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.equipment-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.equipment-actions {
    display: flex;
}

.add-btn,
.import-btn,
.export-btn {
    height: 36px;
    padding: 0 15px;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
    border: none;
    cursor: pointer;
}

.add-btn {
    background-color: #52c41a;
}

.import-btn {
    background-color: #2fb3ff;
}

.export-btn {
    background-color: #722ed1;
}

.equipment-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.equipment-tabs .tab {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.equipment-tabs .tab.active {
    color: #2fb3ff;
}

.equipment-tabs .tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background-color: #2fb3ff;
}

.equipment-overview {
    display: flex;
    margin-bottom: 20px;
}

.overview-card {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
    margin-right: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.overview-card:last-child {
    margin-right: 0;
}

.overview-card:nth-child(1) {
    border-left: 3px solid #1890ff;
}

.overview-card:nth-child(2) {
    border-left: 3px solid #52c41a;
}

.overview-card:nth-child(3) {
    border-left: 3px solid #faad14;
}

.overview-card:nth-child(4) {
    border-left: 3px solid #f5222d;
}

.card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.card-value {
    font-size: 24px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-status {
    font-size: 12px;
    color: #999;
}

.card-status span {
    font-weight: 500;
}

.normal-status span {
    color: #1890ff;
}

.used-status span {
    color: #52c41a;
}

.warning-status span {
    color: #faad14;
}

.danger-status span {
    color: #f5222d;
}

.equipment-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 240px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    margin-right: 10px;
}

.search-btn {
    height: 36px;
    padding: 0 15px;
    background-color: #2fb3ff;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.filter-items {
    display: flex;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.filter-item span {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.filter-item select {
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    min-width: 120px;
}

.equipment-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.equipment-table table {
    width: 100%;
    border-collapse: collapse;
}

.equipment-table th,
.equipment-table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.equipment-table th {
    color: #666;
    font-weight: normal;
    background-color: #f9f9f9;
}

.equipment-table td {
    color: #333;
}

.status-normal,
.status-maintaining,
.status-to-scrap,
.status-scrapped {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
}

.status-normal {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-maintaining {
    background-color: #e6f7ff;
    color: #1890ff;
}

.status-to-scrap {
    background-color: #fff7e6;
    color: #fa8c16;
}

.status-scrapped {
    background-color: #fff1f0;
    color: #f5222d;
}

.action-links {
    display: flex;
}

.action-links a {
    margin-right: 10px;
    color: #2fb3ff;
    text-decoration: none;
}

.action-links a:hover {
    text-decoration: underline;
}

.maintain-link {
    color: #1890ff !important;
}

.complete-link {
    color: #52c41a !important;
}

.scrap-link {
    color: #f5222d !important;
}

.record-link {
    color: #722ed1 !important;
}

.equipment-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page, .prev-page, .next-page {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.page.active {
    background-color: #2fb3ff;
    color: #fff;
    border-color: #2fb3ff;
}

.page-info {
    margin-left: 15px;
    font-size: 14px;
    color: #999;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .equipment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .equipment-actions {
        margin-top: 15px;
    }
    
    .equipment-search {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-items {
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    .filter-item {
        margin-left: 0;
        margin-right: 20px;
        margin-bottom: 10px;
    }
    
    .equipment-overview {
        flex-wrap: wrap;
    }
    
    .overview-card {
        flex: 1 0 45%;
        margin-bottom: 15px;
    }
    
    .equipment-table {
        overflow-x: auto;
    }
} 