* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e0f7fa, #f5f5f5);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    padding: 20px 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1s ease;
    width: 100%;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(to right, #1976d2, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 10 auto;
    line-height: 1.6;
    display: inline-block;
}

.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}
.map-controls {
    margin: 20px 0;
    text-align: center;
}

.map-controls label {
    font-weight: bold;
    margin-right: 10px;
}

.map-controls select {
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
/* 统一控件容器样式 */
.map-controls,
.search-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 分类选择框样式 */
.map-controls select {
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #bbb;
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 140px;
    appearance: none;
    /* 移除默认下拉箭头 */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23999' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.map-controls select:hover {
    border-color: #1976d2;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.map-controls select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.3);
}

/* 搜索输入框样式 */
.search-container input[type="text"] {
    padding: 10px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #bbb;
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 80vw;
}

.search-container input[type="text"]:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.3);
}

/* 搜索按钮样式 */
.search-container button {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #1976d2, #4caf50);
    color: white;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Hover 效果 */
.search-container button:hover {
    background: linear-gradient(135deg, #1565c0, #388e3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.25);
}

/* 按下效果 */
.search-container button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.info-panel {
    position: fixed;
    top: 20px;
    right: 30px;
    width: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
    backdrop-filter: blur(5px);
    border: 2px solid #1976d2;
    animation: slideInRight 0.5s ease;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3f2fd;
}

.panel-title {
    font-size: 1.8rem;
    color: #1976d2;
    font-weight: bold;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: #f44336;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
}

.student-list {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
    /* padding-bottom: 10px; */
}

.student-item {
    font-size: 1.05rem;
    background: #f5f9ff;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-left: 4px solid #4caf50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #e3f2fd;
}

.student-name {
    font-size: 1.15rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.school-name {
    font-size: 1rem;
    color: #1976d2;
    font-weight: 500;
}

.footer {
    text-align: center;
    margin-top: 15px;
    padding: 15px;
    color: #666;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    width: 100%;
}

.student-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: scaleIn 0.3s ease;
    position: relative;
}

.modal-header {
    background: #1976d2;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 2rem;
    font-weight: bold;
}

.modal-close {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.student-info {
    display: flex;
    gap: 40px;
    margin-bottom: 20px;
}

.student-photo {
    flex: 0 0 200px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #1976d2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-details {
    font-size: 1.15rem;
    flex: 1;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    font-size: 1.1rem;
    padding-left: 28px;
    white-space: pre-wrap;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 移动端样式 */
@media (max-width: 767px) {
    .info-panel {
        position: fixed;
        bottom: 0px;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 50%;
        border-radius: 15px 15px 0 0;
        padding: 20px;
        z-index: 101;
        animation: slideUp 0.5s ease;
        display: none;
    }
    h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        background: linear-gradient(to right, #1976d2, #4caf50);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    @keyframes slideDown {
        from {
            transform: translateY(0);
        }

        to {
            transform: translateY(100%);
        }
    }

    .panel-header {
        padding-top: 35px;
    }

    .panel-title {
        font-size: 1.4rem;
    }

    .close-btn {
        font-size: 1.3rem;
        top: 10px;
        right: 15px;
    }

    .student-item {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .student-list {
    max-height: 75%;
    overflow-y: auto;
    padding-right: 10px;
    /* padding-bottom: 10px; */
}

    .student-name {
        font-size: 1.1rem;
    }

    .school-name {
        font-size: 0.95rem;
    }
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-close {
        font-size: 1.5rem;
    }

    .student-info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .student-photo {
        flex: 0 0 120px;
        height: 120px;
    }

    .student-details {
        width: 100%;
    }

    .detail-value {
        padding-left: 0;
    }
        
}

/* 横竖屏适配 */
@media (orientation: portrait) {
    .map-container {
        height: 400px;
    }
}

@media (orientation: landscape) {
    .map-container {
        height: 600px;
    }
}