/* 全局样式 */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --dark-bg: #1a202c;
    --darker-bg: #0f1420;
    --light-text: #f7fafc;
    --muted-text: #cbd5e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
}

/* 导航样式 */
.nav-link {
    position: relative;
    color: var(--muted-text);
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 模块通用样式 */
.module {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.module-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--light-text);
    position: relative;
    display: inline-block;
}

.module-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 3px;
    bottom: -10px;
    left: 20%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.accent {
    color: var(--accent-color);
    font-weight: 600;
}

.secondary {
    color: var(--secondary-color);
    font-weight: 600;
}

/* 卡片样式 */
.tech-card {
    background: rgba(26, 32, 44, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(99, 179, 237, 0.2);
    backdrop-filter: blur(10px);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.2);
}

/* 图标容器 */
.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* 数据指标动画 */
.data-metric {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.data-metric:hover {
    color: var(--accent-color);
}

/* 动态效果 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .module {
        padding: 3rem 0;
    }
    
    .module-title {
        font-size: 1.75rem;
    }
    
    .data-metric {
        font-size: 2rem;
    }
}

/* 模块内部内容特殊样式 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0.5rem 0 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1.5s ease-in-out;
}

/* 图片样式 */
.rounded-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.rounded-image:hover {
    transform: scale(1.02);
} 