/* 自定义样式 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background-color: #000;
    color: #06b6d4;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 25% 25%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
                      radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                      linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(139, 92, 246, 0.1) 100%);
    background-attachment: fixed;
}

/* 背景渐变类 */
.bg-gradient-1 {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.bg-gradient-2 {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.bg-gradient-3 {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(17, 24, 39, 0.95) 100%);
}

.bg-gradient-4 {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

/* 文本颜色类 */
.text-primary {
    color: #06b6d4;
}

.text-secondary {
    color: #3b82f6;
}

.text-accent {
    color: #8b5cf6;
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.text-danger {
    color: #ef4444;
}

.text-info {
    color: #60a5fa;
}

.text-light {
    color: #e2e8f0;
}

.text-dark {
    color: #1e293b;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #06b6d4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* 闪烁边框效果 */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(6, 182, 212, 0.7),
                    0 0 25px rgba(59, 130, 246, 0.5),
                    0 0 35px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(6, 182, 212, 0.9),
                    0 0 35px rgba(59, 130, 246, 0.7),
                    0 0 45px rgba(139, 92, 246, 0.5);
    }
}

/* 闪烁边框类 */
.glow-border {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(45deg, #06b6d4, #3b82f6, #8b5cf6, #06b6d4) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: glow 2s ease-in-out infinite;
    z-index: -1;
}

/* 强化版闪烁边框 */
.glow-border-strong {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.glow-border-strong::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    background: transparent;
    z-index: -1;
}

.animate-pulse {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 渐变文字 */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #06b6d4, #3b82f6);
    animation: gradient-shift 3s ease-in-out infinite alternate;
}

@keyframes gradient-shift {
    0% {
        background-image: linear-gradient(to right, #06b6d4, #3b82f6);
    }
    50% {
        background-image: linear-gradient(to right, #3b82f6, #8b5cf6);
    }
    100% {
        background-image: linear-gradient(to right, #8b5cf6, #06b6d4);
    }
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)) padding-box,
                linear-gradient(to right, #06b6d4, #3b82f6, #8b5cf6) border-box;
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.3),
                0 0 20px rgba(59, 130, 246, 0.2);
    border-color: transparent;
}

/* 按钮动画 */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

/* 导航栏滚动效果 */
nav {
    transition: all 0.3s ease;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95));
    border-bottom: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}

nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav:hover::after, nav.scrolled::after {
    transform: scaleX(1);
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2),
                0 0 30px rgba(59, 130, 246, 0.1);
}

nav a:hover {
    color: #8b5cf6 !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* 服务卡片样式 */
.service-card {
    border: 1px solid transparent;
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)) padding-box,
                linear-gradient(to right, #06b6d4, #3b82f6) border-box;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.1), transparent);
    transition: left 0.6s ease;
}

.service-card:hover {
    border-color: transparent;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4),
                0 0 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-5px) scale(1.02);
}

.service-card:hover::before {
    left: 100%;
}

/* 表格样式 */
table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #3b82f6;
    background: rgba(17, 24, 39, 0.8);
    border-radius: 8px;
    overflow: hidden;
}

table th {
    background: linear-gradient(to right, #111827, #0f172a);
    border-bottom: 2px solid #3b82f6;
    color: #06b6d4;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

table tr {
    transition: all 0.3s ease;
}

table tr:hover {
    background: rgba(6, 182, 212, 0.1);
    transform: scale(1.01);
}

table tr:nth-child(even) {
    background: rgba(59, 130, 246, 0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    border-top-color: #06b6d4;
    border-right-color: #3b82f6;
    border-bottom-color: #8b5cf6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 表单样式 */
form input,
form select,
form textarea {
    transition: all 0.3s ease;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid transparent;
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)) padding-box,
                linear-gradient(to right, #06b6d4, #3b82f6) border-box;
    color: #06b6d4;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2),
                0 0 15px rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* 图标样式 */
i.fas,
i.fab {
    transition: all 0.3s ease;
}

/* 按图标类型设置颜色 */
i.fas.fa-server,
i.fas.fa-laptop-code,
i.fas.fa-desktop {
    color: #06b6d4;
}

i.fas.fa-key,
i.fas.fa-tag,
i.fas.fa-tags {
    color: #3b82f6;
}

i.fas.fa-microchip,
i.fas.fa-cogs,
i.fas.fa-tools {
    color: #8b5cf6;
}

i.fas.fa-file-word,
i.fas.fa-file-alt {
    color: #10b981;
}

i.fas.fa-globe,
i.fas.fa-network-wired {
    color: #60a5fa;
}

i.fas.fa-film,
i.fas.fa-video {
    color: #f59e0b;
}

i.fas.fa-compress-alt,
i.fas.fa-wifi {
    color: #10b981;
}

i.fas.fa-gamepad,
i.fas.fa-rocket {
    color: #ef4444;
}

i.fas.fa-exchange-alt,
i.fas.fa-sync-alt {
    color: #8b5cf6;
}

i.fas.fa-broom,
i.fas.fa-tachometer-alt {
    color: #06b6d4;
}

i.fas.fa-shield-alt,
i.fas.fa-check-circle {
    color: #10b981;
}

i.fas.fa-clock,
i.fas.fa-headset {
    color: #3b82f6;
}

i.fas.fa-windows {
    color: #06b6d4;
}

i.fas.fa-download {
    color: #60a5fa;
}

i.fas.fa-sliders-h {
    color: #8b5cf6;
}

i.fas.fa-keyboard,
i.fas.fa-usb {
    color: #06b6d4;
}

i.fas.fa-bolt {
    color: #f59e0b;
}

i.fas.fa-signal {
    color: #10b981;
}

i.fas.fa-database,
i.fas.fa-box {
    color: #3b82f6;
}

i.fas.fa-tasks {
    color: #8b5cf6;
}

i.fas.fa-battery-full {
    color: #10b981;
}

i.fas.fa-chart-line {
    color: #60a5fa;
}

i.fas.fa-memory {
    color: #8b5cf6;
}

i.fas.fa-flag,
i.fas.fa-crown {
    color: #f59e0b;
}

i.fas.fa-ban {
    color: #ef4444;
}

i.fas.fa-balance-scale {
    color: #60a5fa;
}

i.fas.fa-eye {
    color: #06b6d4;
}

i.fas.fa-backup {
    color: #3b82f6;
}

i.fas.fa-user-tie,
i.fas.fa-graduation-cap {
    color: #8b5cf6;
}

i.fas.fa-heartbeat {
    color: #ef4444;
}

i.fas.fa-arrow-up {
    color: #10b981;
}

i.fas.fa-thermometer-half {
    color: #f59e0b;
}

i.fas.fa-brain {
    color: #8b5cf6;
}

i.fas.fa-code {
    color: #06b6d4;
}

i.fas.fa-paint-brush {
    color: #3b82f6;
}

/* 图标悬停效果 */
i.fas:hover,
i.fab:hover {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 15px currentColor;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    z-index: 1000;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 背景网格效果 */
.bg-grid {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzE5M2MzZiIgb3BhY2l0eT0iMC4xIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIiAvPjwvc3ZnPg==');
    background-size: 40px 40px;
}