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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    padding-top: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

.schools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.school-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.school-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.school-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.school-card h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.school-card p {
    color: #666;
    font-size: 1em;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideDown 0.3s;
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #999;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

#modalTitle {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 30px;
}

.qr-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

#qrImage {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.notice {
    color: #ff6b6b;
    font-size: 1em;
    margin-top: 20px;
    font-weight: bold;
}

.last-update {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

footer {
    text-align: center;
    color: white;
    margin-top: 50px;
    padding: 20px;
}

footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .schools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
    }
}
