body {
    background: linear-gradient(to bottom, skyblue, white);
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #333;
    margin-bottom: 5px;
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

/*自己新增的*/
/* 下拉框样式 */
.city-selector {
  margin: 30px auto;
  width: 300px;
}

#city-select {
  width: 100%;
  padding: 12px 15px;
  font-size: 1.1rem;
  border: 2px solid #0069c0;
  border-radius: 8px;
  background-color: #e0f7fa;
  color: #0069c0;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#city-select:hover {
  background-color: #b3e5fc;
}
/*自己新增的*/

.controls {
    margin: 15px 0;
}

.zoom-btn {
    /* 统一按钮大小：固定宽高，字体居中 */
    width: 60px;
    height: 42px;
    padding: 0; /* 使用固定尺寸 */
    font-size: 18px;
    line-height: 42px; /* 垂直居中 */
    text-align: center;
    cursor: pointer;
    border: 2px solid #333;
    background-color: white;
    margin: 0 6px;
    border-radius: 5px;
    box-sizing: border-box;
}

.map-container {
    border: 3px solid #333;
    background-color: white;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: grab;
    user-select: none;
}

.map-container:active {
    cursor: grabbing;
}

#subway-map {
    /* 使用绝对定位并以左上角作为缩放原点，配合 script.js 的坐标计算 */
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0; /* top-left */
    pointer-events: none;
    background-color: white;
    display: block;
}

.text-display {
    width: 90%;
    max-width: 1200px;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border: 2px solid #ccc;
    min-height: 100px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
