@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.border-gradient {
    position: relative;
    background: linear-gradient(45deg, transparent 30%, #000 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 5px;
}

.tag-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.tag-card:hover {
    background: #f0f0f0;
    border-color: #000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

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

.typing-effect {
    overflow: hidden;
    border-right: 2px solid #000;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #000 }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.experience-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

.experience-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* 语言切换按钮样式 */
.lang-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-switch span {
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-switch span:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-switch span.active {
    background-color: #000;
    color: #fff;
    font-weight: 500;
}

/* 移动端语言切换按钮 */
.lang-switch-mobile {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px;
    border-radius: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.lang-switch-mobile span {
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.lang-switch-mobile span:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-switch-mobile span.active {
    background-color: #000;
    color: #fff;
    font-weight: 500;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 隐藏桌面版语言切换按钮 */
    .lang-switch {
        display: none;
    }
    
    /* 显示移动端语言切换按钮 */
    .lang-switch-mobile {
        display: flex;
    }
}

@media (min-width: 769px) {
    /* 桌面版隐藏移动端语言切换按钮 */
    .lang-switch-mobile {
        display: none;
    }
}

/* 为可翻译元素添加过渡效果 */
[data-lang-key] {
    transition: opacity 0.3s ease;
}