/* 全局样式 */
.equipment-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 面包屑导航 */
.breadcrumb-container {
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb li {
    display: inline;
}

/* 筛选区域 */
.filter-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-option {
    background: #f5f7fa;
    border-radius: 16px;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.filter-option:hover {
    background: #e6f0ff;
    border-color: #c2d8ff;
}

.filter-option.active {
    background: #3498db;
    border-color: #3498db;
}

.filter-option.active .filter-link {
    color: #fff;
}

.filter-link {
    display: block;
    padding: 6px 14px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
}

/* 搜索区域 */
.search-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.search-form {
    width: 100%;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-button, .reset-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-button {
    background: #3498db;
    color: #fff;
    border: none;
}

.search-button:hover {
    background: #2980b9;
}

.reset-button {
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
}

.reset-button:hover {
    background: #f5f5f5;
}

.search-icon, .reset-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 设备列表 */
.equipment-list {
    margin-top: 20px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 设备卡片 */
.equipment-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.equipment-link {
    text-decoration: none;
    color: inherit;
}

.equipment-image {
    height: 180px;
    background: #f5f7fa;
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}

.equipment-info {
    padding: 16px;
}

.equipment-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.equipment-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.meta-icon {
    width: 14px;
    height: 14px;
    fill: #666;
}

.equipment-service-mode {
    margin-bottom: 16px;
}

.service-mode-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.mode-1 { background: #e3f2fd; color: #1976d2; } /* 外部共享 */
.mode-2 { background: #e8f5e9; color: #388e3c; } /* 内部共享 */
.mode-3 { background: #ffebee; color: #d32f2f; } /* 不共享 */

.view-detail-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-detail-button:hover {
    background: #2980b9;
}

.arrow-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    margin-left: 6px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.empty-state img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.empty-state p {
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .filter-options {
        gap: 6px;
    }

    .filter-option {
        padding: 5px 12px;
        font-size: 12px;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-button, .reset-button {
        width: 100%;
        justify-content: center;
    }
}