@import url("custom.css");

.tab-container {
  /* margin: 20px;
  font-family: 'Helvetica Neue', Helvetica, sans-serif;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden; */
}
.title {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 24px;
  margin: 10px 10px;
}
.link {
  color: #40a9ff;
  text-decoration: none;
  cursor: pointer;
}
/* 标题背景和字体 */
.route-container {
  display: flex;
  align-items: center;
  padding: 16px 24px 16px 20px;
  /* background-color: #f5f8fc; */
  font-family: 'Microsoft Yahei', sans-serif;
  user-select: none;
  border-bottom: 1px solid #e7e7e7;
  margin-bottom: 16px;
}
.route-number {
  width: 45px;
  display: none;
  height: 17px;
  border: 2px solid #000;
  border-radius: 18px;
  margin-right: 15px;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  outline: 1.5px solid #000;
}
.route {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}
.route-name {
  flex: 1;
  font-weight: 600;
  font-size: 16px;
  color: #222;
  user-select: none;
}
.special-note {
  background: #edf1f4;
  padding: 2px 4px;
  border-radius: 5px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  display: none;
  margin-right:20px;
  max-width: fit-content;
}
.station-count {
  font-size: 14px;
  color: #222;
  font-weight: 600;
  margin-right: 12px;
  user-select: none;
  white-space: nowrap;
}
.arrow-icon {
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  display: none;
}

.routeStep-box {
  margin-bottom: 40px;
}
.routeStep-cell {
  position: relative;
  display: flex;
  width: 100%;
  /* padding-bottom: 16px; */
}
.routeStep-cell:last-child {
  padding-bottom: 0;
}
.routeStep-cell:last-child .routeStep-line {
  display: none;
}
.routeStep-line {
  position: absolute;
  left: 30px;
  top: 21px;
  bottom: 0;
  width: 4px;
  height: 100%;
  background: var(--line-bg-color);
}
.routeStep-icon {
  position: absolute;
  top: 21px;
  left: 21px;
  width: 22px;
  height: 12px;
  border: 2px solid #2c353d;
  border-radius: 8px;
  background-color: #fff;
  box-sizing: border-box;
}
.routeStep-main-head {
  width: 100%;
  border-bottom: 1px solid #e7e7e7;
  display: flex;
  padding: 0 24px 0 50px;
  justify-content: space-between;
  height: 53px;
  align-items: center;
}

/* 站点名样式 */
.station-name {
  font-weight: 600;
  font-size: 16px;
  color: #303133;
}

.hrDiv {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.hrRemark {
  font-size: 12px;
  font-weight: 700;
  color: #818181;
}

/* 分隔线 */
hr {
  border: none;
  border-top: 1px solid #ebeef5;
  margin: 8px 0 16px 0;
}

.remarks {
  position: fixed;
  bottom: 0;
  max-width: 1000px;
  width: 100%;
  max-height: 150px;
  background-color: #ffffff;
}
.remark-container {
  padding: 10px 20px 60px 25px;
  max-height: 150px;
  /* font-weight: 600; */
  font-size: 12px;
  color: #303133;
  white-space: pre-line;
  user-select: none;
  overflow-y:auto;
}
.remarks-content1 {
  white-space: pre-line;
  word-wrap: break-word;
  line-height: 1.6;
  padding: 5px 0;
}
.simple-mask {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9;
  display: none;
}
.popup-legend {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 1000px;
  background-color: #ffffff;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 10;
  transition: transform 0.3s ease-out;
}

/* 弹窗显示状态 */
.popup-legend.show {
  transform: translateX(-50%) translateY(0);
}

/* 弹窗头部 */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #ecf0f3;
  border-bottom: 1px solid #e7e7e7;
  font-weight: 700;
  font-size: 16px;
  color: #000;
}

.popup-close {
  cursor: pointer;
  font-size: 30px;
  color: #666;
  font-weight: 300;
}

.popup-close:hover {
  color: #333;
}

/* 弹窗内容 */
.popup-content {
  padding: 16px 20px 30px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #303133;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.legend-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}

.legend-text {
  flex: 1;
}

.legend-chinese {
  font-weight: 700;
  color: #2c353d;
}

.legend-english {
  font-size: 12px;
  color: #6e8699;
}

.list-icon {
  width: auto;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}