/* 个人联系方式展示页面 - 主样式文件 */

body {
    font-family: 'Inter', sans-serif;
}

/* ===== 基础动画效果 ===== */

/* 渐变背景动画 */
.gradient-bg {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 卡片悬浮效果 */
.hover-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 图标呼吸动画 */
.breathe {
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 加载动画 */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== 响应式设计 ===== */

/* 移动端优化 */
@media (max-width: 768px) {
    .mobile-compact {
        padding: 1rem;
    }

    .mobile-header {
        margin-bottom: 2rem;
    }

    .mobile-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .mobile-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .mobile-contact-item {
        padding: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .mobile-icon-section {
        margin-bottom: 0.75rem;
    }

    .mobile-title {
        font-size: 1.125rem;
    }

    .mobile-avatar {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1rem;
    }

    .mobile-main-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .mobile-subtitle {
        font-size: 0.875rem;
        line-height: 1.4;
    }
}

/* ===== 滚动效果 ===== */

/* 头部滚动效果 */
.main-header {
    /* 动态控制，无需transition */
}

/* 滚动顶栏 */
.scroll-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 0;
    transform: translateY(-100%);
    z-index: 1000;
}

.scroll-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.scroll-header-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.scroll-header-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.scroll-header-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    text-align: center;
    max-width: 400px;
    line-height: 1.4;
}

.scroll-header-theme-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-header-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .scroll-header {
        padding: 12px 0;
    }

    .scroll-header-title {
        font-size: 1.125rem;
    }

    .scroll-header-subtitle {
        font-size: 0.8rem;
        max-width: 300px;
    }

    .scroll-header-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }

    .scroll-header-theme-toggle {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .scroll-header-content {
        position: relative;
    }
}

/* ===== 暗黑模式 ===== */

.dark .bg-white {
    background-color: #1f2937;
}

.dark .text-gray-800 {
    color: #f9fafb;
}

.dark .text-gray-600 {
    color: #d1d5db;
}

.dark .border-gray-200 {
    border-color: #374151;
}