body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  /* 动态渐变背景动画 */
  background: linear-gradient(120deg, #e0e7ff, #f7f7f7, #c3dafe, #f7f7f7);
  background-size: 400% 400%;
  animation: gradientBG 12s ease-in-out infinite;
  padding-top: 50px;
}

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* 全屏遮罩弹窗 */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245, 247, 255, 0.98);
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}
.modal.show {
  display: flex;
}

.container {
  max-width: 420px;
  min-width: 280px;
  width: 100%;
  margin: 0 15px;
  padding: 24px 18px 16px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(80, 112, 255, 0.08);
  /* margin-top: 36px; */
  box-sizing: border-box;
}

h1 {
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 28px;
  color: #2d3a4b;
  letter-spacing: 1px;
}

#line-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f7fe;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(80,112,255,0.04);
  padding: 16px 14px;
  margin-bottom: 14px;
  font-size: 1.08rem;
  transition: box-shadow 0.2s;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.line-item.best {
  border: 2px solid #4f8cff;
  box-shadow: 0 2px 8px rgba(80,112,255,0.10);
  background: #eaf2ff;
}
.line-name {
  font-weight: 600;
  color: #2d3a4b;
  letter-spacing: 0.5px;
}
.line-status {
  min-width: 70px;
  text-align: right;
  font-weight: bold;
  font-size: 1rem;
}
.line-status.testing {
  color: #2979ff;
}
.line-status.success {
  color: #27ae60;
}
.line-status.timeout {
  color: #e67e22;
}
.line-status.error {
  color: #e74c3c;
}
.tip {
  text-align: center;
  color: #e74c3c;
  font-size: 1rem;
  margin-top: 18px;
  min-height: 24px;
}

/* 右下角切换线路按钮 */
.switch-btn {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 1100;
  background: #4f8cff;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 18px 12px 18px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px rgba(80,112,255,0.18);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.switch-btn:active {
  background: #217dbb;
}
.switch-btn .switch-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  fill: #fff;
}
.switch-btn .switch-label {
  font-size: 1.08rem;
  font-weight: 500;
  margin-right: 2px;
} 