/* ==================== 尖端仪器列表页样式 ==================== */

/* 英雄轮播区 */
.equipment-hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.equipment-hero-carousel .swiper-slide {
    position: relative;
    height: 500px;
}

.equipment-hero-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-hero-content {
    text-align: center;
    color: #fff;
}

.equipment-hero-content h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.equipment-hero-content .divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #f5deb3);
    margin: 0 auto 20px;
}

.equipment-hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

.equipment-hero-content .hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-size: 14px;
}

.hero-badge i {
    color: #d4a574;
}

/* 轮播按钮样式 */
.equipment-hero-carousel .swiper-button-next,
.equipment-hero-carousel .swiper-button-prev {
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
}

.equipment-hero-carousel .swiper-button-next:hover,
.equipment-hero-carousel .swiper-button-prev:hover {
    background: rgba(212,165,116,0.8);
}

.equipment-hero-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
}

.equipment-hero-carousel .swiper-pagination-bullet-active {
    background: #d4a574;
}

/* 页面导航 */
.equipment-nav {
    background: #f8f8f8;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.equipment-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.equipment-nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.equipment-nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.equipment-nav-link:hover,
.equipment-nav-link.active {
    color: #d4a574;
    background: rgba(212,165,116,0.1);
}

.equipment-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #d4a574;
}

/* PLACEHOLDER_EQ2 */

/* 搜索框 */
.equipment-search {
    position: relative;
    max-width: 300px;
}

.equipment-search input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.equipment-search input:focus {
    border-color: #d4a574;
}

.equipment-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* 模块区域 */
.equipment-section {
    padding: 80px 0;
}

.equipment-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.equipment-section .section-title {
    font-size: 36px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.equipment-section .section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #f5deb3);
    margin: 0 auto 20px;
}

.equipment-section .section-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 仪器网格布局 */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 仪器卡片 */
.equipment-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* PLACEHOLDER_EQ3 */

.equipment-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.equipment-card:hover .equipment-img {
    transform: scale(1.05);
}

.equipment-info {
    padding: 25px;
}

.equipment-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 12px;
}

.equipment-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d4a574, transparent);
}

.equipment-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.equipment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.equipment-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(212,165,116,0.1);
    color: #d4a574;
    font-size: 12px;
    border-radius: 15px;
}

/* PLACEHOLDER_EQ4 */

/* 热门标签 */
.hot-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    border-radius: 15px;
    z-index: 10;
}

.new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: #27ae60;
    color: #fff;
    font-size: 12px;
    border-radius: 15px;
    z-index: 10;
}

/* 分类展示区 */
.category-section {
    padding: 60px 0;
    background: #fafafa;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: #d4a574;
}

/* 特色展示 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d4a574, #c4956a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: #fff;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .equipment-hero-carousel,
    .equipment-hero-carousel .swiper-slide {
        height: 350px;
    }

    .equipment-hero-content h1 {
        font-size: 32px;
    }

    .equipment-nav-list {
        gap: 15px;
    }

    .equipment-nav-link {
        font-size: 14px;
        padding: 8px 15px;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .equipment-nav-container {
        flex-direction: column;
    }

    .equipment-search {
        width: 100%;
        max-width: none;
    }
}

/* Toast 样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
