﻿/* ==================== 科技感增强样�?==================== */

/* 全局科技感背�?*/
body {
    background: linear-gradient(180deg, #f8fdf9 0%, #f5f5f5 50%, #f0f8f4 100%);
}

/* 科技感粒子背�?*/
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: none;
    display: none;
}

/* 科技感网格背�?*/
.tech-grid-bg {
    background-color: #f8fdf9;
}

/* 发光边框效果 */
.glow-border {
    position: relative;
    border: 1px solid rgba(10, 186, 181, 0.2);
    box-shadow:
        0 0 20px rgba(76, 175, 80, 0.1),
        inset 0 0 20px rgba(76, 175, 80, 0.05);
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #81D8D0, #0ABAB5, #008B8B, #0ABAB5, #81D8D0);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

.glow-border:hover::before {
    opacity: 0.3;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* 科技感卡�?*/
.tech-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fdf9 100%);
    border-radius: 16px;
    border: 1px solid rgba(10, 186, 181, 0.1);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #81D8D0, #0ABAB5, #008B8B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(10, 186, 181, 0.15),
        0 0 0 1px rgba(10, 186, 181, 0.2);
}

.tech-card:hover::before {
    transform: scaleX(1);
}

/* 霓虹发光文字 */
.neon-text {
    color: #0ABAB5;
    text-shadow:
        0 0 10px rgba(76, 175, 80, 0.5),
        0 0 20px rgba(76, 175, 80, 0.3),
        0 0 30px rgba(76, 175, 80, 0.2);
}

/* 科技感按�?*/
.tech-btn {
    position: relative;
    padding: 12px 30px;
    background: linear-gradient(135deg, #81D8D0 0%, #0ABAB5 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 186, 181, 0.3);
}

.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 {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 186, 181, 0.4);
}

.tech-btn:hover::before {
    left: 100%;
}

/* 数据流动�?*/
.data-flow {
    position: relative;
    overflow: hidden;
}

.data-flow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
    0% {
        left: -50%;
    }

    100% {
        left: 150%;
    }
}

/* 脉冲动画 */
.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
}

/* 科技感分割线 */
.tech-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #81D8D0, #0ABAB5, #81D8D0, transparent);
    margin: 40px 0;
    position: relative;
}

.tech-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #0ABAB5;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(10, 186, 181, 0.5);
}

/* 六边形装�?*/
.hex-decoration {
    position: relative;
}

.hex-decoration::before,
.hex-decoration::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 46px;
    background: rgba(10, 186, 181, 0.05);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-decoration::before {
    top: 20px;
    left: 20px;
}

.hex-decoration::after {
    bottom: 20px;
    right: 20px;
}

/* 电路板纹�?*/
.circuit-pattern {
    background: none;
}

/* 渐变遮罩 */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: none;
    display: none;
}

/* 科技感标�?*/
.tech-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.tech-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #81D8D0, #0ABAB5, transparent);
    border-radius: 2px;
}

.tech-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 8px;
    height: 8px;
    background: #81D8D0;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

/* 悬浮卡片效果 */
.float-card {
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 扫描线效�?*/
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.8), transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% {
        top: 0;
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* 科技感图标容�?*/
.tech-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #81D8D0 0%, #0ABAB5 100%);
    border-radius: 20px;
    position: relative;
    box-shadow:
        0 10px 30px rgba(10, 186, 181, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tech-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 17px;
}

.tech-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* 数字显示效果 */
.tech-number {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #0ABAB5;
    text-shadow: 0 0 10px rgba(10, 186, 181, 0.3);
    letter-spacing: 2px;
}

/* 进度条科技�?*/
.tech-progress {
    height: 6px;
    background: rgba(10, 186, 181, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.tech-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #81D8D0, #0ABAB5);
    border-radius: 3px;
    position: relative;
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
    }
}

/* 标签科技�?*/
.tech-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(10, 186, 181, 0.1) 100%);
    border: 1px solid rgba(10, 186, 181, 0.2);
    border-radius: 20px;
    color: #0ABAB5;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #81D8D0 0%, #0ABAB5 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(10, 186, 181, 0.3);
}

/* 响应式调�?*/
.tech-icon-wrapper svg {
    width: 30px;
    height: 30px;
}
}

/* Projects Grid - Migrated from inline styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-img-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.project-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.project-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(10, 186, 181, 0.1);
    color: #0ABAB5;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}