/* 智慧数据大屏科技感风格样式 */

:root {
    --dashboard-bg: #050a1b; /* 根据图片调整为深蓝墨色 */
    --dashboard-card-bg: rgba(10, 15, 30, 0.4);
    --neon-blue: #0ea5e9;
    --neon-cyan: #22d3ee;
    --neon-gold: #fbbf24;
    --tech-border: rgba(14, 165, 233, 0.3);
    --tech-text: #f8fafc;
}

.data-page {
    background-color: var(--dashboard-bg);
    color: var(--tech-text);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    padding-top: 0 !important; /* 确保内容从顶部开始，与导航栏融合 */
}

/* 透明导航栏适配 */
.data-page .navbar {
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    z-index: 1000;
}

.data-page .navbar.navbar-scrolled {
    background-color: rgba(5, 10, 27, 0.15) !important; /* 同步更新为深蓝墨色的透明色 */
    backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.data-page .brand-text, 
.data-page .nav-link {
    color: #fff !important;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.data-page .navbar-brand:hover .brand-text {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.4) !important;
    transform: scale(1.1) translateX(5px) !important;
    font-weight: 700 !important;
    display: inline-block !important;
}

/* 手机端导航栏风格适配：深色科技感 + 透明度 */
@media (max-width: 991px) {
    .data-page .navbar-collapse {
        background: rgba(5, 10, 27, 0.9) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        margin-top: 15px;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid var(--tech-border) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(14, 165, 233, 0.1);
    }
    .data-page .navbar-collapse .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        border-bottom: 1px solid rgba(14, 165, 233, 0.1);
        padding: 12px 10px !important;
    }
    .data-page .navbar-collapse .nav-link.active,
    .data-page .navbar-collapse .nav-link:hover {
        color: var(--neon-cyan) !important;
        background: rgba(14, 165, 233, 0.05);
    }
    
    /* 增强移动端切换按钮可见性 */
    .data-page .navbar-toggler {
        border-color: rgba(34, 211, 238, 0.4) !important;
        background-color: rgba(14, 165, 233, 0.1) !important;
        padding: 4px 8px !important;
    }
    .data-page .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2834, 211, 238, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

.data-page .nav-link:hover,
.data-page .nav-link.active {
    color: var(--neon-cyan) !important;
}

.data-page .nav-link.active::after,
.data-page .nav-link:hover::after {
    background: var(--neon-cyan) !important;
}

/* 导航栏按钮科技感定制 */
.data-page .navbar .btn-primary {
    background: rgba(14, 165, 233, 0.2) !important;
    border: 1px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    border-radius: 4px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.data-page .navbar .btn-primary:hover {
    background: var(--neon-cyan) !important;
    color: var(--dashboard-bg) !important;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.5) !important;
    transform: translateY(-2px);
}

.data-page .navbar .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
}

.data-page .navbar .btn-primary:hover::before {
    left: 100%;
}

/* 科技感头部 */
.data-header {
    background: transparent;
    padding: 100px 0 40px;
    position: relative;
    z-index: 10;
}

.data-header-content {
    display: flex;
    flex-direction: column; /* 改回垂直排列 */
    align-items: flex-start; /* 靠左对齐 */
    justify-content: flex-start;
    gap: 10px; /* 减小间距 */
}

.data-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    white-space: nowrap;
    position: relative;
    display: inline-block;
    overflow: hidden;
    animation: titleColorCycle 12s infinite;
}

.data-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    animation: titleLightRun 8s infinite;
}

@keyframes titleColorCycle {
    0%, 22%, 100% { 
        color: #fff; 
        text-shadow: 0 0 15px rgba(14, 165, 233, 0.3); 
    }
    25%, 47% { 
        color: var(--neon-cyan); 
        text-shadow: 0 0 15px rgba(34, 211, 238, 0.4); 
    }
    50%, 72% { 
        color: var(--neon-blue); 
        text-shadow: 0 0 15px rgba(14, 165, 233, 0.4); 
    }
    75%, 97% { 
        color: var(--neon-gold); 
        text-shadow: 0 0 15px rgba(251, 191, 36, 0.4); 
    }
}

@keyframes titleLightRun {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

.data-header-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.data-subtitle {
    font-size: 1.1rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    opacity: 0.8;
    margin-bottom: 0; /* 移除底部间距 */
    white-space: nowrap;
}

/* 科技感筛选分类 */
.data-filter-section {
    padding: 25px 0;
    margin-top: 40px;
    position: relative;
    z-index: 100;
    background: transparent; /* 完全透明背景 */
    backdrop-filter: blur(4px); /* 降低模糊度，让背景线条更清晰 */
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.data-filter-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.data-filter-tab {
    padding: 10px 25px;
    color: var(--tech-text);
    border: 1px solid var(--tech-border);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(14, 165, 233, 0.03); /* 极低不透明度 */
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    font-weight: 500;
    letter-spacing: 1px;
}

.data-filter-tab.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.data-filter-tab:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: var(--neon-gold);
    color: var(--neon-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    transform: translateY(-2px);
}

/* 网格布局 */
.dashboard-grid {
    padding: 30px 0 100px;
    position: relative;
    z-index: 10;
}

.dashboard-item {
    margin-bottom: 40px;
}

/* 数据大屏卡片 */
.dashboard-card {
    background: rgba(5, 10, 27, 0.4); /* 大幅降低卡片背景不透明度 */
    backdrop-filter: blur(10px); /* 增加毛玻璃效果 */
    border: 1px solid var(--tech-border);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.dashboard-card:hover {
    color: inherit;
    text-decoration: none;
}

.dashboard-card::before, .dashboard-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 20; /* 提高层级，确保在遮罩层（z-index: 10）之上 */
    pointer-events: none;
    transition: all 0.3s ease;
}

.dashboard-card::before {
    top: 0;
    left: 0;
    border-top: 3px solid var(--neon-blue);
    border-left: 3px solid var(--neon-blue);
}

.dashboard-card::after {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid var(--neon-blue);
    border-right: 3px solid var(--neon-blue);
}

.dashboard-card:hover {
    transform: translateY(-15px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(14, 165, 233, 0.2);
}

.dashboard-card:hover::before, .dashboard-card:hover::after {
    width: 50px;
    height: 50px;
    border-color: var(--neon-gold); /* 恢复使用变量定义的金黄色，饱和度更适中 */
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6)); /* 适度的发光，不再刺眼 */
    border-width: 3px; /* 恢复适中的粗细 */
}

/* 扫描线动画 */
.scan-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.2), transparent);
    z-index: 4;
    pointer-events: none;
}

.dashboard-card:hover .scan-line {
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: -100px; }
    100% { top: 100%; }
}

/* 图片容器 */
.dashboard-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: #000;
}

.dashboard-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.dashboard-card:hover .dashboard-image img {
    transform: scale(1.15);
}

/* 遮罩层 */
.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 27, 0.4); /* 降低遮罩层不透明度 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.dashboard-card:hover .dashboard-overlay {
    opacity: 1;
}

/* 内容区域 */
.dashboard-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--tech-border);
}

.dashboard-category {
    font-size: 0.85rem;
    color: var(--neon-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: 600;
}

.dashboard-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.dashboard-desc {
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.7;
    margin-bottom: 0;
}

/* 科技感按钮 */
.tech-btn {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.tech-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.5s ease;
}

.tech-btn:hover::before {
    left: 100%;
}

.tech-btn:hover {
    background: var(--neon-cyan);
    color: #f1f5f9; /* 改为浅灰色 */
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px);
}

/* CPU 动画背景样式 */
.cpu-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 从 -1 改为 1，确保在页面背景之上 */
    pointer-events: none;
    opacity: 1; /* 增加整体不透明度 */
    background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
}

/* 数字核心 (CPU) 样式 */
.cpu-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    z-index: 5;
}

.cpu-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 165, 233, 0.1);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.4), inset 0 0 30px rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 4s ease-in-out infinite, cpuGlow 3s ease-in-out infinite alternate;
}

@keyframes cpuGlow {
    from {
        box-shadow: 0 0 30px rgba(14, 165, 233, 0.4), inset 0 0 20px rgba(14, 165, 233, 0.2);
    }
    to {
        box-shadow: 0 0 70px rgba(14, 165, 233, 0.8), inset 0 0 40px rgba(14, 165, 233, 0.4);
    }
}

.cpu-inner::before {
    content: '';
    position: absolute;
    width: 130%;
    height: 130%;
    border: 2px dashed var(--neon-cyan);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.cpu-inner::after {
    content: '';
    position: absolute;
    width: 160%;
    height: 160%;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-top: 3px solid var(--neon-blue);
    border-bottom: 3px solid var(--neon-blue);
    border-radius: 50%;
    animation: rotate-reverse 10s linear infinite;
    filter: blur(1px);
}

/* 在原有样式基础上增加反向旋转 */
@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.cpu-core-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20 L80 20 L80 80 L20 80 Z M30 30 L70 30 L70 70 L30 70 Z M45 45 L55 45 L55 55 L45 55 Z' fill='none' stroke='%2322d3ee' stroke-width='2'/%3E%3Cpath d='M50 10 L50 20 M10 50 L20 50 M50 80 L50 90 M80 50 L90 50' stroke='%2322d3ee' stroke-width='3'/%3E%3C/svg%3E") no-repeat center/contain;
    opacity: 0.8;
}

.cpu-core-text {
    font-family: monospace;
    font-size: 14px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    z-index: 10;
    font-weight: bold;
}

/* 数据节点 (Module) 样式 */
.data-node {
    position: absolute;
    width: 120px;
    height: 60px;
    background: rgba(14, 165, 233, 0.15); /* 改为极淡的青蓝色背景 */
    border: 1px solid var(--neon-cyan); /* 改为更亮的青色 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2); /* 减弱阴影，使其更轻盈 */
    transition: all 0.3s ease;
    z-index: 5;
    backdrop-filter: blur(4px); /* 添加微弱模糊 */
}

/* 小 CPU 节点装饰效果 */
.data-node::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid var(--neon-cyan);
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    opacity: 0.3;
    animation: nodePulse 2s ease-in-out infinite;
}

.data-node-icon {
    font-size: 18px;
    color: var(--neon-cyan);
    margin-bottom: 4px;
    animation: iconRotate 4s linear infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

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

.data-node:hover {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4);
    transform: scale(1.05);
}

.data-node-icon {
    font-size: 18px;
    color: var(--neon-cyan);
    margin-bottom: 4px;
}

.data-node-label {
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

/* 数据连线容器 */
.data-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.data-line-path {
    fill: none;
    stroke: var(--neon-blue);
    stroke-width: 1.5;
    stroke-dasharray: 10, 10;
    opacity: 0.8; /* 从 0.4 增加到 0.8，使线条更清晰 */
    filter: drop-shadow(0 0 8px var(--neon-blue)); /* 增强发光效果 */
}

.data-flow-path {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 2.5; /* 略微加粗流动线条 */
    stroke-dasharray: 8, 32;
    stroke-linecap: round;
    opacity: 1;
    animation: flowData 3s linear infinite;
}

@keyframes flowData {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .data-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .data-header {
        padding: 120px 0 50px;
    }
    .data-header-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }
    .data-header-divider {
        display: none;
    }
    .data-title {
        font-size: 2.2rem;
        letter-spacing: 4px;
        white-space: normal;
    }
    .data-subtitle {
        white-space: normal;
        letter-spacing: 2px;
    }
    .data-filter-section {
        margin-top: 20px;
    }
    .data-filter-tab {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
}

/* 页脚科技感定制 */
.data-page .footer {
    background-color: rgba(5, 10, 27, 0.6) !important;
    border-top: 1px solid var(--tech-border) !important;
    position: relative;
    z-index: 10;
}

.data-page .footer-brand-link,
.data-page .footer h4,
.data-page .footer-links a,
.data-page .contact-info span,
.data-page .copyright,
.data-page .copyright a {
    color: rgba(248, 250, 252, 0.8) !important;
}

.data-page .contact-info i {
    color: var(--neon-cyan) !important;
}

.data-page .footer-links a:hover i {
    color: var(--neon-cyan) !important;
}

.data-page .footer-brand-info h3 a {
    color: #fff !important;
    text-decoration: none;
}

.data-page .footer h4 {
    color: var(--neon-cyan) !important;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.data-page .footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.data-page .footer-links a:hover {
    color: var(--neon-cyan) !important;
    padding-left: 5px;
}

.data-page .mission-tag {
    background: rgba(14, 165, 233, 0.1) !important;
    border: 1px solid var(--tech-border) !important;
    color: var(--neon-cyan) !important;
}

.data-page .footer-consult-btn {
    background: rgba(14, 165, 233, 0.2) !important;
    border: 1px solid var(--neon-cyan) !important;
    color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2) !important;
}

.data-page .footer-consult-btn i {
    color: inherit !important;
}

.data-page .footer-consult-btn:hover {
    background: var(--neon-cyan) !important;
    color: var(--dashboard-bg) !important;
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.5) !important;
}

.data-page .footer-bottom {
    border-top: 1px solid rgba(14, 165, 233, 0.1) !important;
}

@media (max-width: 768px) {
    .data-page .footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
