/* 统一样式文件 - 确保整个项目样式一致性 */

/* 基础样式 */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%);
    min-height: 100vh;
}

/* 渐变文字效果 */
.gradient-text {
    background-image: linear-gradient(45deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 卡片悬停效果 - 统一版本 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 页眉样式 */
.header-style {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.5); /* 增加背景不透明度 */
    backdrop-filter: blur(16px); /* 增强模糊效果 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 导航链接样式 */
.nav-link {
    color: white;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #93c5fd;
}

/* 标题样式 */
.page-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .page-title {
        font-size: clamp(3rem, 6vw, 6rem);
    }
}

/* 副标题样式 */
.page-subtitle {
    font-size: 1.125rem;
    color: #dbeafe;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-subtitle {
        font-size: 1.25rem;
    }
}

/* 容器样式 */
.main-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

@media (min-width: 768px) {
    .main-container {
        padding: 5rem 1rem;
    }
}

/* 内容区域样式 */
.content-section {
    text-align: center;
    margin-bottom: 4rem;
}

/* 动画效果 */
@keyframes data-flow {
    to {
        stroke-dashoffset: -100;
    }
}

.flow-line {
    stroke-dasharray: 4 6;
    animation: data-flow 3s linear infinite;
}

@keyframes node-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease-out;
}

/* 响应式文字大小 */
.responsive-text-sm {
    font-size: 0.875rem;
}

.responsive-text-base {
    font-size: 1rem;
}

.responsive-text-lg {
    font-size: 1.125rem;
}

.responsive-text-xl {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .responsive-text-sm {
        font-size: 1rem;
    }
    
    .responsive-text-base {
        font-size: 1.125rem;
    }
    
    .responsive-text-lg {
        font-size: 1.25rem;
    }
    
    .responsive-text-xl {
        font-size: 1.5rem;
    }
}

/* 通用间距 */
.section-spacing {
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-spacing {
        margin-bottom: 4rem;
    }
}

/* 卡片基础样式 */
.base-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

/* 按钮样式 */
.primary-button {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* 主题切换按钮 */
.theme-toggle {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* 链接样式 */
.text-link {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}