/* 全局样式 */
:root {
    --primary-color: #8A2BE2;    /* 更深的紫色 */
    --secondary-color: #4A90E2;  /* 保持蓝色作为辅助 */
    --dark-color: #1E0B3C;      /* 更深的紫色背景 */
    --light-color: #F4F0FF;     /* 带紫色的白色 */
    --accent-color: #00F0FF;    /* 保持青色点缀 */
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --text-color: #333;
    --max-width: 1200px;
    --purple-bright: #B24BF3;   /* 明亮的紫色 */
    --purple-glow: #D4A6FF;     /* 发光紫色 */
    --gradient-primary: linear-gradient(45deg, #8A2BE2, #4A90E2);
    --gradient-dark: linear-gradient(45deg, #1E0B3C, #8A2BE2);
    --gradient-glow: linear-gradient(45deg, #B24BF3, #00F0FF);
    --neon-shadow: 0 0 20px rgba(178, 75, 243, 0.5);
    --purple-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
    --box-shadow: 0 8px 32px rgba(30, 11, 60, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
}

.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.section-header p {
    font-size: 18px;
    color: #666;
}

.bg-light {
    background-color: var(--light-color);
}

/* 导航栏样式 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 11, 60, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid rgba(178, 75, 243, 0.2);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

.logo h1::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--light-color);
    font-weight: 500;
    position: relative;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--purple-bright);
}

nav ul li a:hover::before {
    width: 100%;
}

/* 活动导航项样式 */
nav ul li a.active {
    color: var(--purple-bright);
    text-shadow: 0 0 10px rgba(178, 75, 243, 0.5);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 首页部分样式 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: var(--dark-color);
    overflow: hidden;
    color: white;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, 
            rgba(74, 144, 226, 0.1) 0%,
            rgba(155, 109, 255, 0.1) 100%);
    animation: gradientMove 15s ease infinite;
}

.hero-content h1 {
    text-shadow: var(--neon-shadow);
    animation: glow 2s ease-in-out infinite alternate;
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
}

/* 关于我们部分样式 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    color: var(--primary-color);
}

/* 产品介绍部分样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

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

.product-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neon-shadow);
    transition: all 0.3s ease;
}

.icon-circle i {
    font-size: 32px;
    color: white;
}

.product-card:hover .icon-circle {
    transform: rotate(360deg) scale(1.1);
}

/* 服务部分样式 */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.service-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-right: 20px;
}

.service-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

/* 成功案例部分样式 */
.cases-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(30, 11, 60, 0.2);
    border-color: var(--purple-bright);
}

.case-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(30, 11, 60, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.case-category {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 18px;
}

.case-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 14px;
}

.mt-40 {
    margin-top: 40px;
}

/* 联系我们部分样式 */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 50px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
}

.contact-text h3 {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    border-radius: 5px;
    font-size: 16px;
    background: rgba(26, 27, 75, 0.05);
    color: var(--dark-color);
}

.form-group textarea {
    height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: var(--neon-shadow);
}

/* 页脚样式 */
#footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    .about-content,
    .services-container {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .hero-content p {
        font-size: 18px;
    }

    .cases-container {
        grid-template-columns: 1fr;
    }
    
    .case-image {
        height: 180px;
    }
}

/* 粒子效果容器 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    mix-blend-mode: screen;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* 添加动画关键帧 */
@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px var(--primary-color);
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--primary-color);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes textGlow {
    from {
        text-shadow: 
            0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            0 0 30px var(--primary-color),
            0 0 40px var(--primary-color);
    }
    to {
        text-shadow: 
            0 0 5px var(--accent-color),
            0 0 10px var(--accent-color),
            0 0 15px var(--primary-color),
            0 0 20px var(--primary-color);
    }
}

/* 添加滚动动画类 */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 科技感文字效果 */
.tech-title {
    position: relative;
    color: var(--purple-bright);
    text-shadow: 2px 2px 4px rgba(138, 43, 226, 0.3);
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
}

.tech-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        transparent 40%, 
        rgba(178, 75, 243, 0.1) 45%, 
        rgba(178, 75, 243, 0.2) 50%, 
        rgba(178, 75, 243, 0.1) 55%, 
        transparent 60%
    );
    filter: blur(4px);
    animation: shine 3s linear infinite;
}

/* 故障文字效果 */
.glitch-text {
    position: relative;
    color: var(--purple-bright);
    text-shadow: 
        0 0 5px var(--purple-bright),
        0 0 10px var(--purple-bright),
        0 0 20px var(--purple-glow);
    font-weight: 700;
    letter-spacing: 2px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

/* 3D 卡片效果 */
.tech-card {
    perspective: 1000px;
    background: rgba(26, 27, 75, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(178, 75, 243, 0.2);
    box-shadow: var(--box-shadow);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.tech-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 发光按钮效果 */
.glow-btn {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    border: 1px solid var(--purple-bright);
    box-shadow: 0 0 15px rgba(178, 75, 243, 0.4);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 30px;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 240, 255, 0.2);
    transform: rotate(45deg);
    animation: glow-sweep 2s infinite;
}

.glow-btn:hover {
    background: var(--gradient-glow);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(178, 75, 243, 0.6);
}

/* 统计数字圆形容器 */
.stat-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: var(--neon-shadow);
}

.stat-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0.1;
    animation: rotate 4s linear infinite;
}

/* 动画关键帧 */
@keyframes glow-sweep {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 添加新的动画效果 */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--accent-color);
    }
}

/* 更新新闻卡片样式 */
.news-card:hover {
    border-color: var(--purple-bright);
    box-shadow: 0 0 30px rgba(178, 75, 243, 0.3);
    transform: translateY(-5px);
}

/* 网格背景效果 */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(transparent 97%, var(--accent-color) 97%),
        linear-gradient(90deg, transparent 97%, var(--accent-color) 97%);
    background-size: 40px 40px;
    opacity: 0.1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(40px);
    }
}

/* 动态边框效果 */
.tech-border {
    position: relative;
    border: 1px solid var(--accent-color);
    overflow: hidden;
}

.tech-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-glow);
    animation: borderFlow 2s linear infinite;
}

@keyframes borderFlow {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 添加新的动画效果 */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 更新浮动元素样式 */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.float-item {
    position: absolute;
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(30, 11, 60, 0.8);
    border: 1px solid var(--purple-bright);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    color: var(--light-color);
    transform-origin: center;
    animation: floatDiscreteAppear 8s ease-in-out infinite;
    opacity: 0;
}

/* 智能设备样式更新 */
.device-item {
    position: absolute;
    background: rgba(30, 11, 60, 0.8);
    border: 1px solid var(--purple-bright);
    border-radius: 15px;
    padding: 15px;
    color: var(--light-color);
    backdrop-filter: blur(8px);
    box-shadow: var(--neon-shadow);
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
    min-width: 180px;
    z-index: 3;
    animation: deviceDiscreteAppear 10s ease-in-out infinite;
}

/* 优化动画效果 */
@keyframes floatDiscreteAppear {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px);
    }
    5% { 
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    15%, 85% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    95% { 
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
}

/* 添加平滑过渡 */
.float-item, .device-item {
    transition: top 0.5s ease, left 0.5s ease, transform 0.3s ease, opacity 0.5s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .float-item, .device-item {
        transition: none; /* 禁用移动设备上的位置过渡 */
    }
}

/* 科技圆环 */
.tech-circles .circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--purple-bright);
    opacity: 0.15;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation: rotate 20s linear infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
    animation: rotate 15s linear infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 40%;
    animation: pulse 3s ease-in-out infinite;
}

/* 特性展示 */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-color);
}

.feature i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--purple-bright);
    text-shadow: 0 0 10px var(--purple-glow);
}

/* 科技装饰线条 */
.tech-line {
    position: absolute;
    background: linear-gradient(90deg, 
        transparent,
        var(--purple-bright),
        transparent);
    height: 1px;
    width: 150px;
    animation: lineScan 3s linear infinite;
}

.line-1 { top: 25%; left: -50px; transform: rotate(-30deg); }
.line-2 { bottom: 35%; right: -50px; transform: rotate(30deg); }

/* 脉冲圆圈 */
.pulse-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--purple-bright);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGrow 2s ease-out infinite;
}

/* 动画关键帧 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes streamMove {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes lineScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulseGrow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 不规则设备位置 */
.device-item:nth-child(1) { top: 20%; left: 15%; animation-delay: 1s; }
.device-item:nth-child(2) { top: 35%; right: 10%; animation-delay: 3s; }
.device-item:nth-child(3) { top: 52%; left: 12%; animation-delay: 5s; }
.device-item:nth-child(4) { top: 30%; left: 45%; animation-delay: 2s; }
.device-item:nth-child(5) { top: 68%; right: 15%; animation-delay: 4s; }
.device-item:nth-child(6) { top: 45%; right: 22%; animation-delay: 6s; }

.device-icon {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.device-icon i {
    font-size: 24px;
    margin-right: 10px;
    color: var(--purple-bright);
    text-shadow: 0 0 10px var(--purple-glow);
}

.device-data {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.data-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

.data-unit {
    font-size: 14px;
    margin-left: 5px;
    opacity: 0.8;
}

.device-status {
    text-align: center;
    font-size: 14px;
    padding: 4px 8px;
    background: rgba(178, 75, 243, 0.2);
    border-radius: 10px;
    margin-top: 5px;
}

/* 连接线动画 */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lines-svg {
    width: 100%;
    height: 100%;
    position: absolute;
}

.connection-line {
    stroke: var(--purple-bright);
    stroke-width: 0.5;
    stroke-dasharray: 10;
    animation: lineAppear 8s ease-in-out infinite;
    opacity: 0;
    filter: drop-shadow(0 0 2px var(--purple-bright));
}

/* 添加数据流动画 */
@keyframes dashMove {
    to {
        stroke-dashoffset: -1000;
    }
}

/* 设备状态指示器动画 */
.device-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    margin-right: 5px;
    animation: statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 添加新的动画效果 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 离散消失和渐现动画 */
@keyframes deviceDiscreteAppear {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.8) translateY(0);
    }
    5% { 
        opacity: 0;
        transform: scale(0.8) translateY(0);
    }
    15%, 85% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    90% { 
        opacity: 0.5;
        transform: scale(0.9) translateY(0);
    }
    95% { 
        opacity: 0;
        transform: scale(0.8) translateY(0);
    }
}

/* 数据流效果增强 */
.data-streams .stream {
    animation: streamMoveDiscrete 6s linear infinite;
    opacity: 0;
}

.stream-1 { left: 25%; top: -100px; animation-delay: 0s; }
.stream-2 { left: 55%; top: -150px; animation-delay: 2s; }
.stream-3 { right: 35%; top: -120px; animation-delay: 4s; }
.stream-4 { left: 40%; top: -80px; animation-delay: 1s; }
.stream-5 { right: 20%; top: -90px; animation-delay: 3s; }

@keyframes streamMoveDiscrete {
    0%, 100% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0;
    }
    20%, 80% {
        opacity: 0.5;
    }
    90% {
        opacity: 0;
    }
    100% {
        transform: translateY(100vh);
    }
}

/* 连接线动画优化 */
.connection-line {
    opacity: 0;
    animation: lineAppear 8s ease-in-out infinite;
}

@keyframes lineAppear {
    0%, 100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
    20%, 80% {
        opacity: 0.3;
    }
    40%, 60% {
        opacity: 0.4;
    }
    100% {
        stroke-dashoffset: -1000;
    }
} 