/* 科技感样式表 - Tech Style */

:root {
    --tech-primary: #00f0ff;
    --tech-secondary: #7b2cbf;
    --tech-accent: #ff00ff;
    --tech-dark-bg: #0a0e27;
    --tech-dark-card: #121938;
    --tech-glow: rgba(0, 240, 255, 0.3);
    --tech-gradient: linear-gradient(135deg, #00f0ff 0%, #7b2cbf 50%, #ff00ff 100%);
    --tech-gradient-hover: linear-gradient(135deg, #7b2cbf 0%, #ff00ff 50%, #00f0ff 100%);
}

/* 深色背景主题 */
body {
    background: var(--tech-dark-bg);
    color: #e0e0e0;
}

/* 霓虹发光效果 */
.neon-glow {
    box-shadow: 0 0 5px var(--tech-glow),
                0 0 10px var(--tech-glow),
                0 0 20px var(--tech-glow),
                0 0 40px rgba(0, 240, 255, 0.1);
}

.neon-text {
    text-shadow: 0 0 10px var(--tech-primary),
                 0 0 20px var(--tech-primary),
                 0 0 30px var(--tech-primary);
}

/* 渐变背景 */
.tech-gradient-bg {
    background: var(--tech-gradient);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
}

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

/* 科技感网格背景 */
.tech-grid-bg {
    position: relative;
    background: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.tech-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--tech-dark-bg) 100%);
    pointer-events: none;
}

/* 科技感卡片 */
.tech-card {
    background: var(--tech-dark-card);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.tech-card::before {
    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.5s ease;
}

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

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2),
                0 0 20px rgba(123, 44, 191, 0.3);
    border-color: var(--tech-primary);
}

/* 科技感按钮 */
.tech-btn {
    background: var(--tech-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.tech-btn:hover {
    background: var(--tech-gradient-hover);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5),
                0 0 40px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

/* 科技感边框效果 */
.tech-border {
    position: relative;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.tech-border::before,
.tech-border::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--tech-primary);
    transition: all 0.3s ease;
}

.tech-border::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.tech-border::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.tech-border:hover::before,
.tech-border:hover::after {
    width: 100%;
    height: 100%;
}

/* 扫描线动画效果 */
.tech-scanline {
    position: relative;
    overflow: hidden;
}

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

@keyframes scanline {
    0% { top: -5px; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* 科技感标题 */
.tech-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--tech-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.tech-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--tech-gradient);
}

/* 粒子背景效果 */
.tech-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--tech-primary);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 科技感导航栏 */
.tech-nav {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.tech-nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.tech-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--tech-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.tech-nav-link:hover {
    color: var(--tech-primary);
    text-shadow: 0 0 10px var(--tech-primary);
}

/* 科技感图标容器 */
.tech-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--tech-dark-card);
    border: 2px solid var(--tech-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.tech-icon-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--tech-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.tech-icon-box:hover {
    box-shadow: 0 0 30px var(--tech-glow);
    transform: scale(1.1);
}

/* 科技感页脚 */
.tech-footer {
    background: linear-gradient(180deg, var(--tech-dark-card) 0%, var(--tech-dark-bg) 100%);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tech-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--tech-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tech-gradient-hover);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .tech-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
