* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', -apple-system, Arial, sans-serif;
    line-height: 1.6;
    background: #1a1a2e;
    color: #fff;
    min-height: 1200px;
    position: relative;
    overflow-x: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

.districts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    min-height: 1200px;
}

.districts-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 5;
}

.title {
    font-size: 3rem;
    color: #e94560;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 10px rgba(233, 69, 96, 0.5);
}

.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.district-btn,
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #e94560 0%, #932741 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
    z-index: 10;
}

.district-btn:hover,
.back-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.6);
}

.arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.district-btn:hover .arrow,
.back-btn:hover .arrow {
    transform: translateX(5px);
}

.back-btn {
    margin: 0 auto;
    display: block;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 20;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    font-size: 2rem;
    color: #e94560;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(233, 69, 96, 0.5);
}

.modal-description {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 20px;
}

.modal-qr {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
    font-size: 1.2rem;
    line-height: 3rem;
    color: #fff;
    background: linear-gradient(90deg, #e94560 0%, #932741 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

@media (max-width: 768px) {
    .districts-section {
        padding: 30px;
    }

    .title {
        font-size: 2.2rem;
    }

    .district-btn,
    .back-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-qr {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .districts-section {
        padding: 20px;
    }

    .title {
        font-size: 1.8rem;
    }
}