* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.12);
    --text-primary: #1c1b1f;
    --text-secondary: #49454f;
    --accent-color: #6750a4;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --border-color: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-highlight: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(31, 38, 135, 0.15);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.08);
    --text-primary: #e6e1e5;
    --text-secondary: #cac4d0;
    --accent-color: #d0bcff;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] body::before {
    background: radial-gradient(circle at 20% 80%, rgba(208, 188, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 77, 255, 0.15) 0%, transparent 50%);
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    position: relative;
}

body.dynamic-bg {
    background-image: var(--dynamic-bg-url), linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

body.dynamic-bg::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(103, 80, 164, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(124, 77, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-highlight);
    border-right: 1px solid var(--glass-highlight);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 32px var(--shadow-light),
        0 4px 8px var(--glass-shadow),
        inset 0 0 80px rgba(255, 255, 255, 0.1),
        inset 0 2px 2px var(--glass-highlight);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: gentle-float 4s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.theme-toggle:hover {
    transform: scale(1.1) translateZ(20px);
    box-shadow: 
        0 16px 48px var(--shadow-medium),
        0 8px 16px var(--glass-shadow),
        inset 0 0 120px rgba(255, 255, 255, 0.15),
        inset 0 4px 4px var(--glass-highlight);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glass-highlight), transparent, var(--glass-highlight));
    z-index: -1;
    opacity: 0.6;
}

.theme-toggle .material-icons {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover .material-icons {
    transform: rotate(180deg);
}

.profile-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 2rem 3rem;
    box-shadow: 
        0 8px 32px var(--shadow-light),
        0 4px 8px var(--glass-shadow),
        inset 0 0 80px rgba(255, 255, 255, 0.1),
        inset 0 2px 2px var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-highlight);
    border-right: 1px solid var(--glass-highlight);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.profile-container:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow: 
        0 24px 80px var(--shadow-medium),
        0 12px 24px var(--glass-shadow),
        inset 0 0 120px rgba(255, 255, 255, 0.15),
        inset 0 4px 4px var(--glass-highlight);
}

.profile-container::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), #7c4dff, var(--accent-color));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    opacity: 0.6;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(103, 80, 164, 0.3), 0 0 0 4px rgba(103, 80, 164, 0.1);
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), #7c4dff, var(--accent-color));
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
    z-index: -1;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), #7c4dff, var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
    margin: 0;
    position: relative;
}

.name::after {
    content: '✨';
    position: absolute;
    right: -2rem;
    top: 0;
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.profile-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-btn {
    background: var(--glass-bg);
    color: var(--accent-color);
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-highlight);
    border-right: 1px solid var(--glass-highlight);
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(103, 80, 164, 0.2),
        0 4px 8px var(--glass-shadow),
        inset 0 0 80px rgba(255, 255, 255, 0.1),
        inset 0 2px 2px var(--glass-highlight);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.1;
    transition: left 0.3s ease;
}

.profile-btn:hover::before {
    left: 100%;
}

.profile-btn:hover {
    transform: translateY(-4px) scale(1.05) translateZ(10px);
    box-shadow: 
        0 12px 32px rgba(103, 80, 164, 0.4),
        0 6px 12px var(--glass-shadow),
        inset 0 0 120px rgba(255, 255, 255, 0.15),
        inset 0 4px 4px var(--glass-highlight);
}

.profile-btn:active {
    transform: translateY(0) scale(0.98);
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}



.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-color), #7c4dff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

.about-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px var(--shadow-light),
        0 4px 8px var(--glass-shadow),
        inset 0 0 80px rgba(255, 255, 255, 0.1),
        inset 0 2px 2px var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-highlight);
    border-right: 1px solid var(--glass-highlight);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-container:hover {
    transform: translateY(-6px) translateZ(15px);
    box-shadow: 
        0 20px 64px var(--shadow-medium),
        0 10px 20px var(--glass-shadow),
        inset 0 0 120px rgba(255, 255, 255, 0.15),
        inset 0 4px 4px var(--glass-highlight);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.skills-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-item {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 
        0 8px 32px var(--shadow-light),
        0 4px 8px var(--glass-shadow),
        inset 0 0 80px rgba(255, 255, 255, 0.1),
        inset 0 2px 2px var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-highlight);
    border-right: 1px solid var(--glass-highlight);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.02) translateZ(15px);
    box-shadow: 
        0 20px 64px var(--shadow-medium),
        0 10px 20px var(--glass-shadow),
        inset 0 0 120px rgba(255, 255, 255, 0.15),
        inset 0 4px 4px var(--glass-highlight),
        0 0 30px rgba(103, 80, 164, 0.3);
}

.skill-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-color), #7c4dff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-icon .material-icons {
    font-size: 1.5rem;
    color: white;
}

.skill-item h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.skill-item:hover h3 {
    color: var(--accent-color);
}

.skill-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.cards-grid .card {
    width: 100%;
}

.card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.card:nth-child(2) {
    animation: float 6s ease-in-out infinite 2s;
    transform: rotate(1deg);
}

.card:nth-child(3) {
    animation: float 6s ease-in-out infinite 4s;
    /* 移除旋转效果，因为第三个卡片现在居中显示 */
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.cards-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    transform: translateY(-50%);
    opacity: 0.3;
    z-index: -1;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px var(--shadow-light),
        0 4px 8px var(--glass-shadow),
        inset 0 0 80px rgba(255, 255, 255, 0.1),
        inset 0 2px 2px var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-highlight);
    border-right: 1px solid var(--glass-highlight);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    user-select: none;
    transform: translateY(0);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent-color, rgba(103, 80, 164, 0.2)), transparent);
    transition: left 0.5s ease;
}

.card:hover::after {
    left: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-15px) scale(1.02) translateZ(20px);
    box-shadow: 
        0 24px 80px var(--shadow-medium),
        0 12px 24px var(--glass-shadow),
        inset 0 0 120px rgba(255, 255, 255, 0.15),
        inset 0 4px 4px var(--glass-highlight),
        0 0 40px rgba(103, 80, 164, 0.3);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card:hover .card-content h3 {
    color: var(--accent-color);
}

.card:hover::before {
    opacity: 1;
}

.card:active {
    transform: translateY(-4px);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wechat-card .card-icon {
    background: linear-gradient(135deg, #07c160, #00d976);
}

.weibo-card .card-icon {
    background: linear-gradient(135deg, #e6162d, #ff4757);
}

.bilibili-card .card-icon {
    background: linear-gradient(135deg, #00a1d6, #0084ff);
}

.card-icon .material-icons {
    font-size: 1.5rem;
    color: white;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-action {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1c1b1f;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast .material-icons {
    font-size: 1.25rem;
    color: #4caf50;
}

.toast-message {
    font-size: 0.875rem;
    font-weight: 400;
}

/* 中等屏幕尺寸优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .cards-grid {
        max-width: 700px;
        gap: 1.25rem;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
        gap: 2rem;
    }
    
    .profile-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
        margin-top: 1rem;
    }
    
    .profile-info {
        align-items: center;
    }
    
    .name {
        font-size: 1.75rem;
        font-weight: 800;
    }
    
    .about-container {
        padding: 2rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .skill-item {
        padding: 1.75rem 1.25rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .card {
        padding: 1.5rem;
        min-height: 140px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
        gap: 1.5rem;
    }
    
    .profile-container {
        padding: 1.5rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 1.5rem;
        font-weight: 800;
    }
    
    .about-container {
        padding: 1.5rem;
    }
    
    .about-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .skills-grid {
        gap: 1rem;
    }
    
    .skill-item {
        padding: 1.5rem 1rem;
    }
    
    .skill-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .skill-icon .material-icons {
        font-size: 1.3rem;
    }
    
    .profile-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .profile-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .cards-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 1.25rem;
        min-height: 120px;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-container {
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:nth-child(1) {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.card:nth-child(2) {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.card:nth-child(3) {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

.theme-toggle {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.8s;
    animation-fill-mode: both;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.avatar {
    animation: pulse 4s ease-in-out infinite;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.card:hover::after {
    left: 100%;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.smooth-scroll {
    scroll-behavior: smooth;
}

body.theme-transitioning,
body.theme-transitioning * {
    transition: background 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                background-color 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                color 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 1.2s cubic-bezier(0.23, 1, 0.32, 1),
                backdrop-filter 1.2s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* 主题切换时的渐变遮罩效果 */
body.theme-transitioning::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: themeTransitionOverlay 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes themeTransitionOverlay {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0.3;
    }
    75% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
    }
}

.footer {
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 -8px 32px var(--shadow-light),
        0 -4px 8px var(--glass-shadow),
        inset 0 0 80px rgba(255, 255, 255, 0.1),
        inset 0 2px 2px var(--glass-highlight);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.footer-link:hover {
    color: var(--accent-color);
    background: rgba(103, 80, 164, 0.1);
    transform: translateY(-2px);
}

.footer-divider {
    color: var(--border-color);
    font-weight: bold;
}

.footer-info {
    margin-bottom: 2rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.icp-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.icp-info .material-icons {
    font-size: 1rem;
    color: var(--accent-color);
}

.icp-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: var(--accent-color);
}





@media (max-width: 768px) {
    .footer {
        margin-top: 3rem;
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-divider {
        display: none;
    }
}





.animate-in {
    animation: slideInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card:nth-child(even) {
    transform: translateY(20px);
}

.card:nth-child(odd) {
    transform: translateY(-10px);
}

.profile-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-medium);
}

.theme-toggle:active {
    transform: scale(0.95);
}

@media (hover: none) {
    .card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .name::after {
        right: -1rem;
        font-size: 1.2rem;
    }
    
    .cards-grid {
        gap: 1.5rem;
    }
}