/* 科技感十足的CSS样式 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600&display=swap');

:root {
    --primary-color: #00f3ff;
    --secondary-color: #7700ff;
    --accent-color: #0033aa;
    --dark-bg: #0a0a1a;
    --darker-bg: #050510;
    --card-bg: rgba(20, 20, 40, 0.8);
    --text-color: #e0e0ff;
    --text-secondary: #a0a0c0;
    --neon-glow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 30px var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(119, 0, 255, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, var(--darker-bg) 25%, transparent 25%),
        linear-gradient(-45deg, var(--darker-bg) 25%, transparent 25%);
    background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
    background-position: 0 0, 0 0, 0 0, 30px 30px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 网格背景效果 */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* 头部样式 */
.tech-header {
    background: linear-gradient(135deg, rgba(10, 10, 26, 0.9) 0%, rgba(5, 5, 16, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
    letter-spacing: 2px;
}

/* 导航栏 */
.tech-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    color: var(--primary-color);
}

/* 主要内容区域 */
.tech-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 科技卡片 */
.tech-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* 数据展示样式 */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.data-item {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.data-item:hover {
    background: rgba(0, 243, 255, 0.2);
    transform: scale(1.05);
}

.data-value {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
    margin: 10px 0;
}

.data-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 按钮样式 */
.tech-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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: left 0.5s ease;
}

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

.tech-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
}

/* 页脚 */
.tech-footer {
    background: linear-gradient(180deg, transparent, rgba(5, 5, 16, 0.9));
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 243, 255, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}

.scanline {
    position: relative;
    overflow: hidden;
}

.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanline 2s linear infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tech-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-card {
        padding: 20px;
    }
}

/* 特殊效果 */
.neon-text {
    text-shadow: var(--neon-glow);
}

.glow-border {
    border: 1px solid var(--primary-color);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.3),
                0 0 20px rgba(0, 243, 255, 0.2);
}

.hologram-effect {
    background: linear-gradient(45deg, 
        rgba(0, 243, 255, 0.1) 0%,
        rgba(119, 0, 255, 0.1) 25%,
        rgba(255, 0, 170, 0.1) 50%,
        rgba(119, 0, 255, 0.1) 75%,
        rgba(0, 243, 255, 0.1) 100%);
    background-size: 400% 400%;
    animation: hologram 10s ease infinite;
}

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