/* 页面基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f8f9ff;
}

/* 页面头部样式 */

.section-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* 设备卡片样式优化 */
.device-section {
    padding: 3rem 0;
    background: #f8f9ff;
}

.device-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 设备卡片样式 */
.device-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 设备图片样式 */
.device-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: #f8f9ff;
}

.device-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 20px;
}

.device-card:hover .device-image img {
    transform: scale(1.05);
}

/* 设备信息样式 */
.device-info {
    padding: 25px;
    background: linear-gradient(145deg, #f8f9ff 0%, #ffffff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.device-info h3 {
    font-size: 1.2rem;
    color: #010101;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.device-card:hover .device-info h3 {
    color: #4299e1;
}

.device-info p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 特性列表样式 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.feature-list li i {
    color: #4299e1;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* 参数表格样式优化 */
.device-info table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.device-info th {
    background: rgba(44, 82, 130, 0.05);  /* 更淡的表头背景 */
    color: #2c5282;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.device-info td {
    padding: 12px;
    color: #4a5568;
    border-top: 1px solid rgba(44, 82, 130, 0.08);
}

.device-info tr:hover {
    background: rgba(74, 144, 226, 0.02);  /* 更淡的悬停效果 */
}

/* 设备详情弹出框样式 */
.device-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    color: #2c5282;
    padding: 25px 30px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    width: max-content;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(44, 82, 130, 0.15);
    border: 1px solid rgba(44, 82, 130, 0.1);
}

/* 参数表格样式 */
.device-popup table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.device-popup table tr {
    border-bottom: 1px dashed rgba(44, 82, 130, 0.1);
}

.device-popup table tr:last-child {
    border-bottom: none;
}

.device-popup table td {
    padding: 8px 0;
}

.device-popup table td:first-child {
    color: #4a5568;
    font-weight: 500;
    width: 40%;
}

.device-popup h4 {
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(44, 82, 130, 0.1);
}

/* 显示弹窗时的状态 */
.device-card.active .device-popup {
    opacity: 1;
    visibility: visible;
}

/* 卡片遮罩效果 */
.device-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 82, 130, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(2px);
}

.device-card.active::before {
    opacity: 1;
    visibility: visible;
}

/* 查看详情提示样式 */
.learn-more {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 20px;
    color: #4299e1;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.learn-more i {
    margin-right: 6px;
    font-size: 1rem;
}

/* 悬浮效果 */
.device-card:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

.learn-more:hover {
    background: rgba(66, 153, 225, 0.2);
    color: #2b6cb0;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .device-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .device-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .device-image {
        height: 220px;
    }

    .device-image img {
        padding: 15px;
    }

    .device-info {
        padding: 20px;
    }

    .device-info h3 {
        font-size: 1.1rem;
    }

    .device-info p {
        font-size: 0.9rem;
    }

    .feature-list li {
        font-size: 0.85rem;
    }
}
