/* 深圳个元科技有限公司官方网站 - 自定义样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* 渐变文字效果 - 优化渐变色彩过渡 */
.gradient-text {
    background: linear-gradient(135deg, #00D4FF 0%, #0099FF 30%, #0066FF 60%, #CC00FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% auto;
    animation: gradient 4s ease infinite;
}

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

/* 导航栏样式 - 增强玻璃态效果 */
.navbar-glass {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #0066FF 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.5), 0 5px 15px rgba(0, 102, 255, 0.3);
    filter: brightness(1.1);
}

.btn-outline {
    border: 2px solid #ffffff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

/* 卡片样式 - 增强玻璃态和发光效果 */
.card-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
}

/* 背景渐变效果 - 增强深度感 */
.hero-gradient {
    background: linear-gradient(135deg, #000000 0%, #0a0a1e 25%, #1a1a2e 50%, #16213e 75%, #0f1729 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(204, 0, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* 响应式文字大小 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* 加载动画 */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #00D4FF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* 语言切换器样式 */
.language-switcher {
    position: relative;
    cursor: pointer;
}

.language-switcher::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00D4FF, #CC00FF);
    transition: width 0.3s ease;
}

.language-switcher:hover::after {
    width: 100%;
}

/* 图片悬停效果 - 增强交互性 */
.image-hover {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    overflow: hidden;
    position: relative;
}

.image-hover:hover {
    transform: scale(1.08);
    filter: brightness(1.15) contrast(1.05);
}

.image-hover::after {
    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.5s;
}

.image-hover:hover::after {
    left: 100%;
}

/* 分割线样式 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #00D4FF, #CC00FF, transparent);
    margin: 2rem 0;
}

/* 滚动条样式 - 增强视觉效果 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00D4FF 0%, #0066FF 50%, #CC00FF 100%);
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00E8FF 0%, #0099FF 50%, #E600FF 100%);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* 无障碍访问支持 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 焦点样式 */
.focus-visible:focus {
    outline: 2px solid #00D4FF;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}