.activity-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1rem;
}

.activity-card:hover {
    transform: translateY(-4px);
}

.gradient-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
}

.light .gradient-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.gradient-card:hover::before {
    left: 100%;
}

.neon-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border: 2px solid transparent;
    border-radius: 1rem;
    background-image: linear-gradient(var(--card-bg), var(--card-bg)), linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    position: relative;
}

.neon-card::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(45deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2), rgba(58, 134, 255, 0.2));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(20px);
}

.neon-card:hover::after {
    opacity: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.light .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.dark .glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.light .glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.dark .glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 玻璃卡片文字颜色 */
.glass-card .glass-title {
    color: var(--text-color);
}

.glass-card .glass-description {
    color: var(--text-muted);
}

.glass-card .glass-time {
    color: var(--text-muted);
}

.light .glass-card .glass-title {
    color: #1f2937;
}

.light .glass-card .glass-description {
    color: #6b7280;
}

.light .glass-card .glass-time {
    color: #6b7280;
}

.dark .glass-card .glass-title {
    color: #f8fafc;
}

.dark .glass-card .glass-description {
    color: #cbd5e1;
}

.dark .glass-card .glass-time {
    color: #cbd5e1;
}

.tech-card {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 1.5rem;
    position: relative;
}

.light .tech-card {
    background: #f8fafc;
    border: 2px solid #0ea5e9;
    color: #1e293b;
}

.dark .tech-card {
    background: #1e293b;
    border: 1px solid #334155;
    color: #f8fafc;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: tech-scan 3s linear infinite;
}

@keyframes tech-scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.tech-card:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
}

.three-d-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    cursor: pointer;
}

.three-d-card::after {
    content: '';
    position: absolute;
    inset: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 1rem;
    transform: translateZ(-20px);
    z-index: -1;
}

.three-d-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.animated-card {
    background: var(--card-bg);
    padding: 1.5rem;
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.animated-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 200% 100%;
    animation: gradient-flow 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
    background-size: 200% 100%;
    animation: gradient-flow 3s linear infinite reverse;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.animated-card:hover::before,
.animated-card:hover::after {
    opacity: 1;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.progress-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
}

.dark .progress-card {
    background: #1e293b;
    border: 1px solid #475569;
}

.light .progress-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.dark .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.light .progress-bar {
    background: #e2e8f0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .activity-card {
        margin-bottom: 1rem;
    }

    .gradient-card,
    .neon-card,
    .glass-card,
    .tech-card,
    .three-d-card,
    .animated-card,
    .progress-card {
        padding: 1.25rem;
    }
}