* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #FFF8E9 0%, #FFEBCB 100%);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== 头部 ========== */
.header {
  flex-shrink: 0;
}

.header-pc {
  background: linear-gradient(90deg, #CAA349 0%, #FAD55F 100%);
}

.header-h5 {
  background: linear-gradient(90deg, #C9A248 0%, #FBD65F 100%);
}

.header-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* PC 头部 */
.header-pc {
  display: block;
  width: 100%;
  min-width: 1000px;
}

.header-pc .header-inner {
  width: 1000px;
  padding: 0;
  min-height: 89px;
  align-items: center;
}

.logo-img {
  display: block;
  height: auto;
  width: auto;
}

.nav-banks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.nav-banks a {
  background: linear-gradient(180deg, #f75e5f 0%, #c00002 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  padding: 0 12px;
}

.nav-banks a:hover {
  opacity: 0.85;
}

.nav-banks .sep {
  color: #000;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

/* 移动端头部 */
.header-h5 {
  display: none;
}

.header-h5 .header-inner {
  padding: 10px 16px;
  position: relative;
  max-width: 375px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.header-h5 .home-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  gap: 2px;
  z-index: 1;
}

.header-h5 .home-btn img {
  width: 19px;
  height: 19px;
}

.header-h5 .logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header-h5 .logo-img {
  width: 100px;
  height: 28px;
  object-fit: contain;
}

/* ========== 主内容 ========== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 20px;
  position: relative;
}

/* 搜索框 */
.search-box {
  width: 100%;
  max-width: 680px;
  padding: 0 20px;
}

.search-form {
  width: 100%;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #c9a84c;
  border-radius: 50px;
  padding: 4px 4px 4px 16px;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.15);
}

.search-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-right: 10px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color:#787670;
  background: transparent;
  min-width: 0;
}

.search-input::placeholder {
  color: #a9a686;
}

.search-btn {
  flex-shrink: 0;
  background: #c01f1f;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 28px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.search-btn:hover {
  opacity: 0.9;
}

.search-btn:active {
  opacity: 0.8;
}

.search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ========== 线路页 ========== */
.page-route {
  height: 100vh;
  overflow: hidden;
}

.page-route .main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-start;
  padding-top: 60px;
}

.route-box {
  width: 100%;
  max-width: 680px;
  padding: 0 20px;
}

.page-route .route-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.page-route .route-box:has(.route-list--scrollable) {
  box-sizing: border-box;
}

.page-route .route-title {
  flex-shrink: 0;
}

.route-list-outer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.route-list-gutter {
  display: none;
  flex-shrink: 0;
}

.route-list-outer:has(.route-list--scrollable) .route-list-gutter {
  display: block;
}

.route-title {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.17px;
  color: #000;
  margin-bottom: 24px;
  text-align: center;
}

.route-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.route-list--scrollable {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(97, 43, 6, 0.5) rgba(97, 43, 6, 0.08);
}

.route-list--scrollable::-webkit-scrollbar {
  width: 6px;
}

.route-list--scrollable::-webkit-scrollbar-track {
  background: rgba(97, 43, 6, 0.08);
  border-radius: 3px;
}

.route-list--scrollable::-webkit-scrollbar-thumb {
  background: rgba(97, 43, 6, 0.45);
  border-radius: 3px;
}

.route-item {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid #612b06;
  border-radius: 50px;
  padding: 5px 5px 5px 20px;
  overflow: hidden;
  cursor: pointer;
}

.route-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-right: 10px;
}

.route-name {
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  color: #000;
}

.route-go {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f75e5f 0%, #c00002 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(192, 0, 2, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.route-go img {
  width: 23px;
  height: auto;
  display: block;
}

.route-loading,
.route-empty,
.route-error {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 40px 0;
}

.route-error {
  color: #c41e1e;
}

/* ========== 底部 ========== */
.footer {
  flex-shrink: 0;
  width: 100%;
  height: 214px;
  background: url("../images/footer-bg-h5.png") no-repeat center bottom;
  background-size: cover;
}

/* ========== PC 页面 ========== */
@media (min-width: 769px) {
  .page-home,
  .page-route {
    min-width: 1000px;
    background: linear-gradient(180deg, #FFF8E9 0%, #FFEBCB 100%);
  }

  .page-home .header-pc,
  .page-route .header-pc {
    min-height: 89px;
  }

  .page-home .header-pc .logo-img,
  .page-route .header-pc .logo-img {
    height: 38px;
    width: auto;
  }

  .page-home .main {
    min-width: 1000px;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 0 0 214px;
    margin: 0;
    min-height: calc(100vh - 89px);
  }

  .page-home .search-box {
    width: 620px;
    max-width: none;
    padding: 0;
    margin: 0 auto;
  }

  .page-home .search-input-wrap {
    width: 620px;
    height: 72px;
    border: 1px solid #612b06;
    border-radius: 50px;
    padding: 11px;
    background-color: transparent;
    background-image: url("../images/ico-search.png");
    background-repeat: no-repeat;
    background-position: left 21px center;
    background-size: 30px 30px;
    box-shadow: none;
  }

  .page-home .search-icon {
    display: none;
  }

  .page-home .search-input {
    flex: 1;
    width: auto;
    height: 50px;
    line-height: 50px;
    padding: 0 16px 0 55px;
    font-size: 16px;
    font-weight: 500;
    color: #787670;
  }

  .page-home .search-input::placeholder {
    font-size: 16px;
    color: #787670;
  }

  .page-home .search-btn {
    width: 140px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    border-radius: 63px;
    background: linear-gradient(180deg, #f75e5f 0%, #c00002 100%);
    box-shadow: 0 2px 6px rgba(192, 0, 2, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  .page-home .search-btn:hover {
    opacity: 1;
    filter: brightness(1.05);
  }

  .footer {
    background: url("../images/footer-bg-pc.png") repeat-x center bottom;
    background-size: auto 214px;
  }

  .page-home .footer,
  .page-route .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 214px;
  }

  .page-home .header,
  .page-home .main,
  .page-route .header,
  .page-route .main {
    position: relative;
    z-index: 1;
  }

  .page-route .main {
    min-width: 1000px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    justify-content: flex-start;
    align-items: center;
    padding: 80px 0 0px;
    margin: 0;
  }

  .page-route .route-box {
    width: 620px;
    max-width: none;
    padding: 0;
    margin: 0 auto;
    overflow: visible;
  }

  .page-route .route-title {
    font-size: 34px;
    line-height: 30px;
    letter-spacing: -0.17px;
    margin-bottom: 71px;
  }

  .page-route .route-list {
    width: 620px;
    gap: 36px;
  }

  .page-route .route-list-outer:has(.route-list--scrollable) {
    width: calc(620px + 32px + 48px);
    margin-right: -80px;
  }

  .page-route .route-list--scrollable {
    width: calc(620px + 32px);
    flex: none;
    max-height: calc(72px * 5 + 36px * 4);
    padding-right: 0;
    box-sizing: border-box;
  }

  .page-route .route-list-outer:has(.route-list--scrollable) .route-list-gutter {
    display: block;
    width: 48px;
    flex-shrink: 0;
  }

  .page-route .route-item {
    width: 620px;
    max-width: 620px;
    box-sizing: border-box;
    height: 72px;
    padding: 11px 11px 11px 28px;
    border-radius: 50px;
    overflow: hidden;
  }

  .page-route .route-icon {
    width: 32px;
    height: 32px;
    margin-right: 16px;
  }

  .page-route .route-name {
    font-size: 18px;
    font-weight: 500;
  }

  .page-route .route-go {
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 6px rgba(192, 0, 2, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

/* ========== H5 页面 ========== */
@media (max-width: 768px) {
  .header-pc {
    display: none;
  }

  .header-h5 {
    display: block;
  }

  .page-home,
  .page-route {
    background: linear-gradient(180deg, #FFF8E9 0%, #FFEBCB 100%);
    min-height: 100vh;
  }

  .page-route {
    height: 100vh;
    overflow: hidden;
  }

  .page-home .main {
    flex: 1;
    justify-content: flex-start;
    padding: 118px 0 251px;
    margin: 0;
  }

  .page-home .search-box {
    width: 100%;
    max-width: 375px;
    padding: 0 15px;
  }

  .page-home .search-input-wrap {
    height: 50px;
    border: 1px solid #612b06;
    border-radius: 50px;
    padding: 5px;
    background-color: transparent;
    background-image: url("../images/ico-search-h5.png");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 24px 24px;
    box-shadow: none;
  }

  .page-home .search-icon {
    display: none;
  }

  .page-home .search-input {
    height: 40px;
    line-height: 40px;
    padding: 0 8px 0 42px;
    font-size: 14px;
    font-weight: 500;
    color: #787670;
  }

  .page-home .search-input::placeholder {
    font-size: 14px;
    color: #787670;
  }

  .page-home .search-btn {
    width: 96px;
    height: 40px;
    line-height: 40px;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    border-radius: 22px;
    background: linear-gradient(180deg, #f75e5f 0%, #c00002 100%);
    box-shadow: 0 2px 4px rgba(192, 0, 2, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  .page-home .footer,
  .page-route .footer {
    position: fixed;
    bottom: -5px;
    left: 0;
    z-index: 0;
    height: 251px;
    background: url("../images/footer-bg-h5.png") no-repeat center bottom;
    background-size: 100% auto;
  }

  .page-home .header,
  .page-home .main,
  .page-route .header,
  .page-route .main {
    position: relative;
    z-index: 1;
  }

  .main {
    padding-top: 80px;
    justify-content: flex-start;
  }

  .search-input-wrap {
    padding: 3px 3px 3px 12px;
  }

  .search-btn {
    padding: 8px 18px;
    font-size: 14px;
  }

  .page-route .main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    padding: 60px 0 0px;
    margin: 0;
  }

  .page-route .route-box {
    width: 100%;
    max-width: 375px;
    padding: 0 15px;
    height: 100%;
  }

  .page-route .route-box:has(.route-list--scrollable) {
    overflow: visible;
  }

  .page-route .route-title {
    font-size: 20px;
    line-height: 18px;
    letter-spacing: -0.17px;
    margin-bottom: 43px;
  }

  .page-route .route-list {
    width: 100%;
    gap: 24px;
  }

  .page-route .route-list-outer:has(.route-list--scrollable) {
    width: calc(100% + 80px);
    margin-right: -80px;
  }

  .page-route .route-list--scrollable {
    width: calc(100% - 48px);
    flex: 1;
    min-width: 0;
    min-height: 0;
    max-height: none;
    padding-bottom: 80px;
    box-sizing: border-box;
  }

  .page-route .route-list-outer:has(.route-list--scrollable) .route-list-gutter {
    display: block;
    width: 48px;
    flex-shrink: 0;
  }

  .page-route .route-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: 50px;
    padding: 5px 5px 5px 20px;
    overflow: hidden;
  }

  .page-route .route-list--scrollable .route-item {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }

  .page-route .route-icon {
    width: 28px;
    height: 28px;
    margin-right: 10px;
  }

  .page-route .route-name {
    font-size: 16px;
  }

  .page-route .route-go {
    width: 40px;
    height: 40px;
  }

  .footer {
    height: 251px;
    background: url("../images/footer-bg-h5.png") no-repeat center bottom;
    background-size: 100% auto;
  }
}

