/* ============================================
   IRIS-Cloud 统一样式表
   整合所有HTML文件中的CSS样式
   ============================================ */

/* ============================================
   CSS 变量定义 - 品牌配置区域
   ============================================ */
:root {
    /* 品牌主色 - 控制中心层使用 */
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --primary-glow: rgba(59, 130, 246, 0.4);

    /* 辅助色 - 客户端层使用 (紫色系) */
    --secondary: #8B5CF6;
    --secondary-dark: #7C3AED;
    --secondary-light: #A78BFA;
    --secondary-glow: rgba(139, 92, 246, 0.4);

    /* 强调色 - 节点层使用 (绿色系) */
    --accent: #10B981;
    --accent-dark: #059669;
    --accent-light: #34D399;
    --accent-glow: rgba(16, 185, 129, 0.4);

    /* 背景色 */
    --bg-dark: #0F172A;
    --bg-secondary: #1E293B;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-glass: rgba(15, 23, 42, 0.9);

    /* 文字色 */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* 字体 */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

/* ============================================
   基础样式
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   粒子网格背景
   ============================================ */
.particle-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(59, 130, 246, 0.12) 1px, transparent 0);
    background-size: 40px 40px;
    animation: particle-float 20s linear infinite;
    pointer-events: none;
}

@keyframes particle-float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* ============================================
   光晕背景效果
   ============================================ */
.glow-bg {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.12), transparent),
            radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6, 182, 212, 0.08), transparent),
            radial-gradient(ellipse 50% 40% at 80% 80%, rgba(6, 182, 212, 0.08), transparent);
    pointer-events: none;
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================
   按钮样式
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   功能卡片
   ============================================ */
.feature-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.2);
}

/* 紫色主题卡片 */
.feature-card.purple:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 20px 40px -12px rgba(139, 92, 246, 0.2);
}

/* 绿色主题卡片 */
.feature-card.green:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px -12px rgba(16, 185, 129, 0.2);
}

/* 蓝色主题卡片 */
.feature-card.blue:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.2);
}

/* ============================================
   图标容器
   ============================================ */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: var(--primary);
}

.icon-box.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: var(--secondary);
}

.icon-box.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: var(--accent);
}

.icon-box.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: var(--primary);
}

/* ============================================
   分隔线
   ============================================ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
    margin: 0 auto;
    max-width: 800px;
}

/* ============================================
   响应式调整
   ============================================ */
@media (max-width: 768px) {
    .flow-connector {
        display: none;
    }
}

/* ============================================
   三层架构方块堆叠 - Hero 核心视觉
   ============================================ */
.architecture-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    perspective: 1200px;
    position: relative;
    z-index: 10;
}

/* 层级方块基础样式 */
.layer-block {
    width: 100%;
    max-width: 640px;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.layer-block:hover {
    transform: translateY(-4px) scale(1.01);
}

/* 客户端层 - 紫色主题 */
.layer-client {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
            0 0 0 1px rgba(139, 92, 246, 0.1),
            0 20px 50px -20px rgba(139, 92, 246, 0.25),
            inset 0 1px 0 rgba(255,255,255,0.05);
    animation: pulse-glow-purple 4s ease-in-out infinite;
}

@keyframes pulse-glow-purple {
    0%, 100% { box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.1), 0 20px 50px -20px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.05); }
    50% { box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 25px 60px -15px rgba(139, 92, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
}

/* 节点层 - 绿色主题 */
.layer-node {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow:
            0 0 0 1px rgba(16, 185, 129, 0.1),
            0 20px 50px -20px rgba(16, 185, 129, 0.25),
            inset 0 1px 0 rgba(255,255,255,0.05);
    animation: pulse-glow-green 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes pulse-glow-green {
    0%, 100% { box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1), 0 20px 50px -20px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255,255,255,0.05); }
    50% { box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), 0 25px 60px -15px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
}

/* 控制层 - 蓝色主题 */
.layer-controller {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
            0 0 0 1px rgba(59, 130, 246, 0.1),
            0 20px 50px -20px rgba(59, 130, 246, 0.25),
            inset 0 1px 0 rgba(255,255,255,0.05);
    animation: pulse-glow-blue 4s ease-in-out infinite;
    animation-delay: 1s;
}

@keyframes pulse-glow-blue {
    0%, 100% { box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.1), 0 20px 50px -20px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.05); }
    50% { box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 25px 60px -15px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
}

/* ============================================
   数据流光连线
   ============================================ */
.data-connector {
    position: relative;
    width: 2px;
    height: 50px;
    overflow: visible;
}

/* 连接线基础 */
.data-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
    transparent 0%,
    rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0.1) 80%,
    transparent 100%
    );
}

/* 向上流动的光点 (客户端→节点) */
.data-packet-up {
    position: absolute;
    width: 4px;
    height: 24px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: flow-up 2.5s linear infinite;
}

.data-packet-up.purple {
    background: linear-gradient(180deg, transparent, var(--secondary-light), var(--secondary), transparent);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.data-packet-up.green {
    background: linear-gradient(180deg, transparent, var(--accent-light), var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation-delay: 0.3s;
}

@keyframes flow-up {
    0% { bottom: -24px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { bottom: 100%; opacity: 0; }
}

/* 向下流动的光点 (控制→节点) */
.data-packet-down {
    position: absolute;
    width: 4px;
    height: 24px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: flow-down 2.5s linear infinite;
}

.data-packet-down.blue {
    background: linear-gradient(180deg, transparent, var(--primary), var(--primary-light), transparent);
    box-shadow: 0 0 10px var(--primary-glow);
}

@keyframes flow-down {
    0% { top: -24px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 双向流动指示 */
.flow-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   层级内部组件网格
   ============================================ */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.component-item {
    padding: 0.75rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.component-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.layer-client .component-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.layer-node .component-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.layer-controller .component-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

/* ============================================
   层级标签
   ============================================ */
.layer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.layer-badge.client {
    background: rgba(139, 92, 246, 0.15);
    color: var(--secondary-light);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.layer-badge.node {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.layer-badge.controller {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ============================================
   数据流步骤
   ============================================ */
.flow-step {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* 步骤间连接 */
.flow-connector {
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
    transform: translateY(-50%);
}

/* ============================================
   响应式调整 - 768px
   ============================================ */
@media (max-width: 768px) {
    .layer-block {
        padding: 1.5rem;
        max-width: 100%;
    }

    .component-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .data-connector {
        height: 40px;
    }
}

/* ============================================
   网格背景动画
   ============================================ */
.animated-grid {
    background-image:
            linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ============================================
   流光边框效果 - 核心技术卡片
   ============================================ */
.feature-highlight {
    position: relative;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(16, 185, 129, 0.05));
    border-radius: 16px;
    overflow: visible;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(90deg, #3B82F6, #10B981, #8B5CF6, #F59E0B, #3B82F6);
    background-size: 400% 400%;
    animation: border-flow 6s ease infinite;
    z-index: -1;
    opacity: 0.8;
}

.feature-highlight::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(90deg, #3B82F6, #10B981, #8B5CF6, #F59E0B, #3B82F6);
    background-size: 400% 400%;
    animation: border-flow 6s ease infinite;
    z-index: -2;
    filter: blur(10px);
    opacity: 0.4;
}

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

/* 主题色流光边框 */
.feature-highlight-green::before,
.feature-highlight-green::after {
    background: linear-gradient(90deg, #10B981, #34D399, #6EE7B7, #10B981);
    background-size: 300% 300%;
}

.feature-highlight-blue::before,
.feature-highlight-blue::after {
    background: linear-gradient(90deg, #3B82F6, #60A5FA, #93C5FD, #3B82F6);
    background-size: 300% 300%;
}

.feature-highlight-purple::before,
.feature-highlight-purple::after {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA, #C4B5FD, #8B5CF6);
    background-size: 300% 300%;
}

.feature-highlight-orange::before,
.feature-highlight-orange::after {
    background: linear-gradient(90deg, #F59E0B, #FBBF24, #FCD34D, #F59E0B);
    background-size: 300% 300%;
}

/* ============================================
   图标容器样式
   ============================================ */
.icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-container.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #10B981;
}

.icon-container.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    color: #3B82F6;
}

.icon-container.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: #8B5CF6;
}

.icon-container.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    color: #F59E0B;
}

.icon-container.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
    color: #06B6D4;
}

/* 大图标容器 */
.icon-container-large {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ============================================
   标签样式
   ============================================ */
.module-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.module-tag.client {
    background: rgba(139, 92, 246, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.module-tag.node {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.module-tag.platform {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ============================================
   架构图样式
   ============================================ */
.architecture-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.architecture-box:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 30px -10px rgba(59, 130, 246, 0.3);
}

.architecture-line {
    width: 2px;
    height: 2rem;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.1));
    margin: 0 auto;
}

.architecture-line-h {
    height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.1));
}

/* ============================================
   滚动提示动画
   ============================================ */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================
   代码块样式
   ============================================ */
.code-block {
    font-family: var(--font-mono);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.875rem;
    color: #94A3B8;
}

.code-block .comment { color: #64748B; }
.code-block .keyword { color: #C084FC; }
.code-block .string { color: #4ADE80; }

/* ============================================
   场景卡片
   ============================================ */
.scenario-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.scenario-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

/* ============================================
   星型拓扑图 - 企业组网核心视觉
   ============================================ */
.star-topology {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 500px;
    margin: 0 auto;
}

/* 中心节点 - HQ总部 */
.node-hq {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
    border: 2px solid rgba(59, 130, 246, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: pulse-hq 4s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
}

@keyframes pulse-hq {
    0%, 100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.2); }
    50% { box-shadow: 0 0 60px rgba(59, 130, 246, 0.4); }
}

/* DC数据中心节点 */
.node-dc {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05));
    border: 2px solid rgba(6, 182, 212, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    animation: pulse-dc 4s ease-in-out infinite 0.5s;
}

@keyframes pulse-dc {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.2); }
    50% { box-shadow: 0 0 40px rgba(6, 182, 212, 0.4); }
}

/* 分支节点 */
.node-branch {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(148, 163, 184, 0.05));
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.node-branch:hover {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

/* 四个分支节点位置 */
.branch-1 { top: 25%; left: 10%; }
.branch-2 { top: 25%; right: 10%; }
.branch-3 { bottom: 15%; left: 15%; }
.branch-4 { bottom: 15%; right: 15%; }

/* ============================================
   流光连线 - SVG动画
   ============================================ */
.topology-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* 主链路 - 实线流光 */
.flow-line-main {
    fill: none;
    stroke: url(#gradient-blue);
    stroke-width: 2;
    stroke-dasharray: 10 5;
    animation: flow-move 2s linear infinite;
    opacity: 0.8;
}

/* 备用链路 - 虚线流光 */
.flow-line-backup {
    fill: none;
    stroke: url(#gradient-cyan);
    stroke-width: 1.5;
    stroke-dasharray: 5 10;
    animation: flow-move 3s linear infinite reverse;
    opacity: 0.5;
}

@keyframes flow-move {
    to { stroke-dashoffset: -30; }
}

/* 流光数据包 */
.flow-packet {
    fill: var(--primary-light);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* ============================================
   多云拓扑图 - 中心Hub + 环绕云节点
   ============================================ */
.cloud-topology {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 550px;
    margin: 0 auto;
}

/* 中心 Hub 节点 */
.hub-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
    border: 2px solid rgba(139, 92, 246, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: pulse-hub 4s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
}

@keyframes pulse-hub {
    0%, 100% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), inset 0 0 30px rgba(139, 92, 246, 0.1); }
    50% { box-shadow: 0 0 70px rgba(139, 92, 246, 0.5), inset 0 0 50px rgba(139, 92, 246, 0.2); }
}

/* Hub 内核 */
.hub-inner {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 云节点 */
.cloud-node {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: all 0.3s ease;
}

.cloud-node:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
    transform: scale(1.05);
}

/* 云节点位置 - 圆形排列 */
.cloud-aws { top: 8%; left: 50%; transform: translateX(-50%); }
.cloud-tencent { top: 25%; right: 8%; }
.cloud-aliyun { bottom: 20%; right: 12%; }
.cloud-ct { bottom: 20%; left: 12%; }
.cloud-idc { top: 25%; left: 8%; }

/* ============================================
   流光连线 - 星型辐射
   ============================================ */
.flow-line {
    fill: none;
    stroke: url(#gradient-purple);
    stroke-width: 2;
    stroke-dasharray: 8 4;
    animation: flow-move 2s linear infinite;
    opacity: 0.7;
}

.flow-line-reverse {
    animation-direction: reverse;
    animation-duration: 2.5s;
}

/* 流光粒子 */
.flow-particle {
    fill: var(--primary-light);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* ============================================
   隧道拓扑图 - 远程办公核心视觉
   ============================================ */
.tunnel-topology {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

/* 远程用户组 */
.users-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
}

.user-device {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.05));
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.user-device:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.users-row {
    display: flex;
    gap: 1rem;
}

/* 安全隧道区域 */
.secure-tunnel {
    position: absolute;
    left: 25%;
    right: 25%;
    height: 200px;
    border-radius: 100px;
    background: linear-gradient(90deg,
    rgba(16, 185, 129, 0.05) 0%,
    rgba(16, 185, 129, 0.1) 20%,
    rgba(16, 185, 129, 0.15) 50%,
    rgba(16, 185, 129, 0.1) 80%,
    rgba(16, 185, 129, 0.05) 100%
    );
    border: 2px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: tunnel-pulse 3s ease-in-out infinite;
    overflow: hidden;
}

@keyframes tunnel-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), inset 0 0 30px rgba(16, 185, 129, 0.05);
        border-color: rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(16, 185, 129, 0.4), inset 0 0 50px rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.5);
    }
}

/* 隧道标签 */
.tunnel-label {
    text-align: center;
    z-index: 15;
}

/* 流光数据流 */
.data-streams {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 100px;
}

.data-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: tunnel-flow 3s linear infinite;
}

.data-packet:nth-child(1) { top: 30%; animation-delay: 0s; }
.data-packet:nth-child(2) { top: 50%; animation-delay: 0.5s; }
.data-packet:nth-child(3) { top: 70%; animation-delay: 1s; }
.data-packet:nth-child(4) { top: 40%; animation-delay: 1.5s; }
.data-packet:nth-child(5) { top: 60%; animation-delay: 2s; }

@keyframes tunnel-flow {
    0% { left: -10px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* 安全网关 */
.security-gateway {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border: 2px solid rgba(16, 185, 129, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: gateway-pulse 2s ease-in-out infinite;
}

@keyframes gateway-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.5); }
}

/* 企业核心业务区 */
.enterprise-core {
    width: 160px;
    height: 180px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

/* ============================================
   认证流程步骤
   ============================================ */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--primary-light);
}

.auth-arrow {
    color: var(--primary);
}

/* ============================================
   响应式调整 - 768px 拓扑图
   ============================================ */
@media (max-width: 768px) {
    .star-topology { height: 400px; }
    .node-hq { width: 100px; height: 100px; }
    .node-dc { width: 80px; height: 80px; top: 10%; }
    .node-branch { width: 70px; height: 70px; }
    .branch-1 { top: 20%; left: 5%; }
    .branch-2 { top: 20%; right: 5%; }
    .branch-3 { bottom: 10%; left: 10%; }
    .branch-4 { bottom: 10%; right: 10%; }

    .cloud-topology { height: 450px; }
    .hub-core { width: 120px; height: 120px; }
    .cloud-node { width: 85px; height: 85px; }
    .cloud-aws { top: 5%; }
    .cloud-tencent { top: 20%; right: 3%; }
    .cloud-aliyun { bottom: 15%; right: 5%; }
    .cloud-ct { bottom: 15%; left: 5%; }
    .cloud-idc { top: 20%; left: 3%; }

    .tunnel-topology {
        flex-direction: column;
        height: auto;
        gap: 2rem;
        padding: 1rem;
    }
    .users-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .user-device {
        width: 60px;
        height: 60px;
    }
    .secure-tunnel {
        position: relative;
        left: auto;
        right: auto;
        width: 80px;
        height: 300px;
        border-radius: 40px;
    }
    .data-packet {
        animation: tunnel-flow-vertical 3s linear infinite;
    }
    @keyframes tunnel-flow-vertical {
        0% { top: -10px; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 100%; opacity: 0; }
    }
    .security-gateway {
        left: 50%;
        transform: translateX(-50%);
    }
    .enterprise-core {
        width: 140px;
        height: 150px;
    }
    .auth-steps {
        flex-direction: column;
    }
    .auth-arrow {
        transform: rotate(90deg);
    }
}

/* ============================================
   性能优化：动画优化
   ============================================ */
.data-packet-up,
.data-packet-down {
    will-change: transform, opacity;
}

.layer-block {
    will-change: box-shadow;
}
