/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
}

/* Projects Grid */
.projects-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
    width: 100%;
    margin: 0 auto;
}

/* Project Cards */
.project-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 400px;
    min-width: 0;
}

.project-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.status-badge.developing {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge.stopped {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e0;
}

/* Project Content */
.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #000000;
}

.project-description {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 0.9rem;
    flex: 1; /* 让描述占用剩余空间 */
}

/* Project Features */
.project-features {
    margin-bottom: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.feature-icon {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tech-tag {
    padding: 4px 8px;
    background: #f8fafc;
    color: #64748b;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

/* Project Actions - 始终在底部 */
.project-actions {
    display: flex;
    margin-top: auto; /* 推到底部 */
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-primary:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.btn-secondary {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Placeholder Card */
.project-card.placeholder {
    border: 1px dashed #cbd5e0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
}

.placeholder-content {
    text-align: center;
    color: #94a3b8;
}

.placeholder-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
    opacity: 0.6;
}

.placeholder-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #64748b;
}

.placeholder-content p {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-card {
        padding: 14px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .project-card {
        padding: 12px;
        height: 130px;
    }

    .project-icon {
        width: 20px;
        height: 20px;
    }

    .project-title {
        font-size: 0.9rem;
    }

    .project-description {
        font-size: 0.7rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    animation: fadeInUp 0.5s ease-out;
}

.project-card {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}