/* 传感器选择页面专用样式 */

/* Hero区域样式 */
.hero-section {
    background: linear-gradient(135deg, rgba(42, 175, 219, 0.9) 0%, rgba(79, 164, 116, 0.9) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.3;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.platform-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.feature-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* 传感器选择区域 */
.sensors-section {
    padding: 100px 0;
    background-color: #f7f9fc;
    position: relative;
}

.sensors-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, rgba(79, 164, 116, 0.08) 100%);
    border-radius: 50%;
    z-index: 0;
}

.sensors-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(79, 164, 116, 0.08) 0%, rgba(42, 175, 219, 0.08) 100%);
    border-radius: 50%;
    z-index: 0;
}

.sensors-section .container {
    position: relative;
    z-index: 1;
}

.sensors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* 传感器卡片样式 */
.sensor-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sensor-card.available {
    cursor: pointer;
}

.sensor-card.available:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 113, 227, 0.2);
    border-color: rgba(0, 113, 227, 0.3);
}

.sensor-card.developing {
    opacity: 0.7;
    filter: grayscale(0.3);
}

.sensor-card.developing:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 传感器状态标签 */
.sensor-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.developing-status {
    background: linear-gradient(135deg, #FF9800, #F57C00) !important;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3) !important;
}

/* 传感器图片 */
.sensor-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f2f5 0%, #e1e7ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sensor-image::before {
    content: '🔧';
    font-size: 3rem;
    color: rgba(0, 113, 227, 0.3);
    position: absolute;
    z-index: 1;
}

.sensor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2;
}

.sensor-card.available:hover .sensor-image img {
    transform: scale(1.05);
}

/* 传感器内容 */
.sensor-content {
    padding: 25px;
}

.sensor-content h3 {
    color: #0071e3;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.sensor-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.spec-item {
    background: rgba(0, 113, 227, 0.1);
    color: #0071e3;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.sensor-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 传感器按钮 */
.sensor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0071e3, #0353a4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.sensor-btn:visited {
    color: white;
}

.sensor-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: 0;
}

.sensor-btn:hover::before {
    left: 100%;
}

.sensor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 113, 227, 0.4);
}

.sensor-btn span {
    position: relative;
    z-index: 1;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.sensor-btn:hover .btn-arrow {
    transform: translateX(3px);
}

.sensor-btn.disabled {
    background: linear-gradient(135deg, #9E9E9E, #757575);
    cursor: not-allowed;
    box-shadow: 0 2px 6px rgba(158, 158, 158, 0.3);
}

.sensor-btn.disabled:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(158, 158, 158, 0.3);
}

.sensor-btn.disabled .btn-arrow {
    transform: none !important;
}

/* 编程指南区域 */
.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.guide-item {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 113, 227, 0.15);
    border-color: rgba(0, 113, 227, 0.2);
}

.guide-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.guide-item h3 {
    color: #0071e3;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.guide-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .platform-features {
        gap: 25px;
    }
    
    .sensors-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .sensor-image {
        height: 180px;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .sensors-section {
        padding: 60px 0;
    }
    
    .sensor-content {
        padding: 20px;
    }
    
    .sensor-content h3 {
        font-size: 1.2rem;
    }
    
    .platform-features {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* 不同传感器类型的特定样式 */
.sensor-card[data-sensor="force"] .sensor-image {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.sensor-card[data-sensor="force"] .sensor-image::before {
    content: '⚖️';
}

.sensor-card[data-sensor="pressure"] .sensor-image {
    background: linear-gradient(135deg, #f3e5f5 0%, #ce93d8 100%);
}

.sensor-card[data-sensor="pressure"] .sensor-image::before {
    content: '🌡️';
}

.sensor-card[data-sensor="voltage"] .sensor-image {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
}

.sensor-card[data-sensor="voltage"] .sensor-image::before {
    content: '⚡';
}

.sensor-card[data-sensor="temperature"] .sensor-image {
    background: linear-gradient(135deg, #ffebee 0%, #ef5350 100%);
}

.sensor-card[data-sensor="temperature"] .sensor-image::before {
    content: '🌡️';
}

.sensor-card[data-sensor="humidity"] .sensor-image {
    background: linear-gradient(135deg, #e8f5e8 0%, #66bb6a 100%);
}

.sensor-card[data-sensor="humidity"] .sensor-image::before {
    content: '💧';
}

.sensor-card[data-sensor="light"] .sensor-image {
    background: linear-gradient(135deg, #fff8e1 0%, #ffc107 100%);
}

.sensor-card[data-sensor="light"] .sensor-image::before {
    content: '💡';
} 