/* 物联网硬件开发入门页面增强样式 */

/* 页面整体样式 - 紫色科技主题 */
.iot-intro-container {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 50%, #ce93d8 100%);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

.iot-intro-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%239c27b0" opacity="0.3"/><path d="M10 10L40 10M40 10L40 40M40 40L10 40" stroke="%239c27b0" opacity="0.1" stroke-width="0.5" fill="none"/><circle cx="40" cy="40" r="1" fill="%239c27b0" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.iot-intro-content {
    position: relative;
    z-index: 2;
}

/* 主标题样式 - 科技感 */
.iot-intro-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7b1fa2, #9c27b0, #ba68c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 0 4px 8px rgba(123, 31, 162, 0.1);
}

.iot-intro-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.iot-intro-title::before {
    content: '⚡';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #9c27b0;
    animation: electric-pulse 2s ease-in-out infinite;
}

@keyframes electric-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

/* 增强卡片样式 */
.iot-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(156, 39, 176, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 16px rgba(156, 39, 176, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.iot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9c27b0, transparent);
    transition: left 0.6s ease;
}

.iot-card:hover::before {
    left: 100%;
}

.iot-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(156, 39, 176, 0.2);
    border-color: rgba(156, 39, 176, 0.3);
}

.iot-card-body {
    padding: 2.5rem;
}

/* 时间线样式增强 - 科技主题 */
.iot-timeline {
    position: relative;
    padding: 3rem 0;
}

.iot-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #9c27b0, #ba68c8, #9c27b0);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.4);
    animation: timeline-glow 3s ease-in-out infinite;
}

@keyframes timeline-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(156, 39, 176, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(156, 39, 176, 0.6);
    }
}

.iot-timeline-item {
    position: relative;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.iot-timeline-item:nth-child(1) { animation-delay: 0.2s; }
.iot-timeline-item:nth-child(2) { animation-delay: 0.4s; }
.iot-timeline-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iot-timeline-icon {
    position: absolute;
    left: 35px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    border: 4px solid white;
    box-shadow: 
        0 8px 20px rgba(156, 39, 176, 0.3),
        0 0 0 8px rgba(156, 39, 176, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.iot-timeline-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation: icon-shine 2s ease-in-out infinite;
}

@keyframes icon-shine {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.iot-timeline-item:hover .iot-timeline-icon {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 
        0 12px 28px rgba(156, 39, 176, 0.4),
        0 0 0 12px rgba(156, 39, 176, 0.15);
}

.iot-timeline-content {
    margin-left: 100px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(156, 39, 176, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.iot-timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(156, 39, 176, 0.1);
    transform: rotate(45deg);
    border-right: none;
    border-bottom: none;
}

.iot-timeline-item:hover .iot-timeline-content {
    transform: translateX(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(156, 39, 176, 0.2);
}

.iot-timeline-content h3 {
    color: #7b1fa2;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.iot-timeline-content h3::before {
    content: '🔧';
    font-size: 1.2rem;
}

.iot-timeline-content p {
    color: #616161;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 硬件卡片样式 */
.hardware-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(156, 39, 176, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.hardware-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #9c27b0, #ba68c8, #9c27b0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.hardware-card:hover::after {
    transform: scaleX(1);
}

.hardware-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.hardware-card .card-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.hardware-card .fas {
    color: #9c27b0;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(156, 39, 176, 0.2));
    position: relative;
}

.hardware-card .fas::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
    opacity: 0.3;
}

.hardware-card:hover .fas {
    transform: scale(1.15) rotate(5deg);
    color: #7b1fa2;
    filter: drop-shadow(0 6px 12px rgba(156, 39, 176, 0.3));
}

.hardware-card:hover .fas::after {
    transform: translate(-50%, -50%) scale(1.5);
}

.hardware-card h3 {
    color: #7b1fa2;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.hardware-card p {
    color: #616161;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* 技术列表样式 */
.tech-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.tech-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    color: #424242;
}

.tech-list li:hover {
    transform: translateX(5px);
    color: #7b1fa2;
}

.tech-list li i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
    position: relative;
}

.tech-list li i::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(156, 39, 176, 0.3);
    border-radius: 50%;
    animation: tech-pulse 2s ease-in-out infinite;
}

@keyframes tech-pulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 开发工具卡片 */
.tool-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(156, 39, 176, 0.1);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(156, 39, 176, 0.2);
}

.tool-card .card-body {
    padding: 2rem;
}

.tool-card h3 {
    color: #7b1fa2;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.tool-card h3::before {
    content: '⚙️';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

/* 增强按钮样式 - 紫色主题 */
.enhanced-btn-purple {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    position: relative;
    overflow: hidden;
}

.enhanced-btn-purple::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: left 0.6s ease;
}

.enhanced-btn-purple:hover::before {
    left: 100%;
}

.enhanced-btn-purple:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #7b1fa2, #9c27b0);
}

.enhanced-btn-purple:active {
    transform: translateY(0) scale(0.98);
}

.enhanced-btn-purple-lg {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 16px;
}

/* 科技背景效果 */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><linearGradient id="grid" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%239c27b0;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%237b1fa2;stop-opacity:0.05"/></linearGradient></defs><rect width="200" height="200" fill="url(%23grid)"/><path d="M20 20L180 20M20 60L180 60M20 100L180 100M20 140L180 140M20 180L180 180" stroke="%239c27b0" stroke-width="0.5" opacity="0.2"/><path d="M20 20L20 180M60 20L60 180M100 20L100 180M140 20L140 180M180 20L180 180" stroke="%239c27b0" stroke-width="0.5" opacity="0.2"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* 浮动装饰元素 - 科技主题 */
.floating-decoration-iot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(156, 39, 176, 0.4);
    border-radius: 2px;
    animation: float-tech 10s ease-in-out infinite;
    z-index: 1;
}

.floating-decoration-iot:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    border-radius: 50%;
}

.floating-decoration-iot:nth-child(2) {
    top: 70%;
    right: 8%;
    animation-delay: 3s;
    transform: rotate(45deg);
}

.floating-decoration-iot:nth-child(3) {
    bottom: 20%;
    left: 12%;
    animation-delay: 6s;
    border-radius: 2px;
}

.floating-decoration-iot:nth-child(4) {
    top: 40%;
    right: 20%;
    animation-delay: 9s;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

@keyframes float-tech {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.5;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .iot-intro-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .iot-card-body {
        padding: 1.5rem;
    }
    
    .iot-timeline-content {
        margin-left: 80px;
        padding: 1.5rem;
    }
    
    .iot-timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hardware-card .card-body,
    .tool-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .enhanced-btn-purple-lg {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .iot-intro-title {
        font-size: 2rem;
    }
    
    .iot-timeline-content {
        margin-left: 60px;
        padding: 1rem;
    }
    
    .iot-timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        left: 32px;
    }
    
    .iot-timeline::before {
        left: 32px;
        width: 3px;
    }
    
    .hardware-card .card-body,
    .tool-card .card-body {
        padding: 1.5rem 1rem;
    }
}

/* 连接线动画 */
.connection-line {
    position: absolute;
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, #9c27b0, transparent);
    animation: data-flow 3s ease-in-out infinite;
}

@keyframes data-flow {
    0%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: translateY(20px);
    }
}

/* 代码块样式 - 科技主题 */
.code-block-iot {
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Fira Code', 'Consolas', monospace;
    color: #e8eaf6;
    position: relative;
    overflow: hidden;
}

.code-block-iot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9c27b0, #ba68c8, #9c27b0);
    animation: code-glow 2s ease-in-out infinite;
}

@keyframes code-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(156, 39, 176, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(156, 39, 176, 0.8);
    }
}

.code-block-iot .language-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
} 