* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
    opacity: 0.9;
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.home-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.home-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.home-card-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.home-card h2 {
    font-size: 24px;
    color: #667eea;
    margin-bottom: 10px;
}

.home-card p {
    color: #666;
    font-size: 14px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-btn:hover {
    background: #667eea;
    color: white;
    transform: translateX(-5px);
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #667eea;
    margin: 20px 0 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.district-group, .category-group {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.group-title {
    font-size: 22px;
    color: #764ba2;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #764ba2;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.project-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.project-card-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
}

.project-card-info {
    padding: 12px;
    text-align: center;
}

.project-card-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.project-card-level {
    font-size: 12px;
    color: #666;
}

.level-国家级 {
    color: #e74c3c;
}

.level-省级 {
    color: #e67e22;
}

.level-市级 {
    color: #3498db;
}

.detail-page {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.detail-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: white;
}

.detail-title {
    text-align: center;
    font-size: 32px;
    color: #667eea;
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
}

.detail-description {
    font-size: 17px;
    line-height: 2;
    color: #444;
    text-align: justify;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.page-transition {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #app {
        padding: 10px;
    }

    header h1 {
        font-size: 22px;
    }

    header p {
        font-size: 14px;
    }

    .home-cards {
        grid-template-columns: 1fr;
    }

    .home-card {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 22px;
    }

    .group-title {
        font-size: 18px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-meta {
        gap: 15px;
    }

    .meta-item {
        font-size: 14px;
    }

    .detail-description {
        font-size: 15px;
        padding: 15px;
    }

    .detail-image {
        height: 200px;
        font-size: 60px;
    }
}