/* 南京班德班丁软件公司 - 通用样式 */
body {
    background: linear-gradient(135deg, #0A0A0F 0%, #1A1A24 100%);
    font-family: 'Rajdhani', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* 背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(184, 38, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* 扫描线效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00F0FF, transparent);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1000;
}

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

.font-heading {
    font-family: 'Orbitron', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 机器人头像动画效果 */
.robot-head-container {
    filter: drop-shadow(0 0 60px rgba(0, 240, 255, 0.6)) 
            drop-shadow(0 0 120px rgba(184, 38, 255, 0.3));
}

.robot-eye {
    background-color: #00F0FF;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
    animation: blink 2s infinite;
}

.robot-eye:hover {
    animation: blink 0.2s infinite;
    box-shadow: 0 0 30px rgba(0, 240, 255, 1);
}

@keyframes blink {
    0%, 90%, 100% { opacity: 1; }
    95% { opacity: 0.3; }
}

/* 赛博朋克卡片样式 */
.cyber-card {
    background-color: rgba(26, 26, 36, 0.8);
    border: 1px solid #4A4A5C;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4), 
        0 0 1px rgba(0, 240, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 卡片发光边框动画 */
.cyber-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 240, 255, 0.3), transparent, rgba(184, 38, 255, 0.3), transparent);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderGlow 3s linear infinite;
}

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

.cyber-card:hover {
    border-color: #00F0FF;
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.6), 
        0 0 32px rgba(0, 240, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.cyber-card:hover::before {
    opacity: 1;
}

/* 产品图标样式 */
.product-icon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8));
    transform: scale(1.1) rotate(5deg);
}

/* 产品卡片悬停效果增强 */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.product-card:hover::after {
    left: 100%;
}

/* 按钮样式增强 */
.btn-primary {
    background: linear-gradient(135deg, #00F0FF 0%, #00D4E6 100%);
    color: #0A0A0F;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary::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;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00D4E6 0%, #00F0FF 100%);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
}

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

.btn-secondary {
    background: transparent;
    color: #00F0FF;
    padding: 14px 32px;
    border: 2px solid #00F0FF;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #00F0FF;
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: #0A0A0F;
    border-color: #00F0FF;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.btn-secondary:hover::before {
    left: 0;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #4A4A5C;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #00F0FF;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, #00F0FF 0%, #B826FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 发光效果增强 */
.glow {
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.5),
        0 0 40px rgba(0, 240, 255, 0.3),
        0 0 60px rgba(0, 240, 255, 0.1);
    animation: glowPulse 2s ease-in-out infinite alternate;
}

.glow-purple {
    box-shadow: 
        0 0 20px rgba(184, 38, 255, 0.5),
        0 0 40px rgba(184, 38, 255, 0.3),
        0 0 60px rgba(184, 38, 255, 0.1);
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        box-shadow: 
            0 0 20px rgba(0, 240, 255, 0.5),
            0 0 40px rgba(0, 240, 255, 0.3),
            0 0 60px rgba(0, 240, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 30px rgba(0, 240, 255, 0.8),
            0 0 60px rgba(0, 240, 255, 0.4),
            0 0 90px rgba(0, 240, 255, 0.2);
    }
}

/* 筛选按钮增强 */
.filter-btn {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

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

.filter-btn.active {
    background: linear-gradient(135deg, #00F0FF 0%, #00D4E6 100%);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

.filter-btn:not(.active):hover {
    border-color: #00F0FF;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cyber-card {
        margin-bottom: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
}

/* 页面内容间距 */
.page-content {
    padding-top: 80px; /* 为固定导航栏留出空间 */
    min-height: 100vh;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* 特殊效果增强 */
.neon-border {
    border: 2px solid #00F0FF;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.4),
        inset 0 0 20px rgba(0, 240, 255, 0.1);
    animation: neonFlicker 3s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(0, 240, 255, 0.4),
            inset 0 0 20px rgba(0, 240, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 0 30px rgba(0, 240, 255, 0.6),
            inset 0 0 30px rgba(0, 240, 255, 0.2);
    }
}

.cyber-text {
    text-shadow: 
        0 0 10px rgba(0, 240, 255, 0.8),
        0 0 20px rgba(0, 240, 255, 0.6),
        0 0 30px rgba(0, 240, 255, 0.4);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 
            0 0 10px rgba(0, 240, 255, 0.8),
            0 0 20px rgba(0, 240, 255, 0.6),
            0 0 30px rgba(0, 240, 255, 0.4);
    }
    to {
        text-shadow: 
            0 0 15px rgba(0, 240, 255, 1),
            0 0 30px rgba(0, 240, 255, 0.8),
            0 0 45px rgba(0, 240, 255, 0.6);
    }
}

/* 页面标题增强 */
h1.gradient-text {
    background: linear-gradient(135deg, #00F0FF 0%, #B826FF 50%, #00F0FF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

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

/* 加载动画增强 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00F0FF;
    border-right-color: #B826FF;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

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

/* 页面进入动画 */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品卡片进入动画 */
.product-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1.0s; }
