:root {
  --blue: #3a82ef;
  --dark: #333;
  --orange: #ff862f;
  --page: #eef3f8;
  --line: #dbe3ec;
  --text: #172334;
  --muted: #7f8da0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 1280px;
  color: var(--text);
  background: var(--page);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.ctrip-header {
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 28px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(45, 70, 100, .08);
}
.logo {
  width: 220px;
  color: var(--blue);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}
.dolphin {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 5px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  vertical-align: 3px;
}
.global-search {
  width: 355px;
  display: grid;
  grid-template-columns: 1fr 58px;
}
.global-search input {
  height: 36px;
  padding: 0 16px;
  border: 1px solid #9ec1fb;
  border-right: 0;
  border-radius: 7px 0 0 7px;
  color: #9aa8b7;
}
.global-search button {
  border: 0;
  border-radius: 0 7px 7px 0;
  color: #fff;
  background: var(--blue);
  font-size: 25px;
}
.user-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #111827;
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f4ff;
  color: #1c6ed4;
}
.user-bar i {
  width: 1px;
  height: 20px;
  background: #dbe3ec;
}
.user-bar em {
  display: inline-block;
  min-width: 26px;
  margin-left: -2px;
  padding: 1px 5px;
  border-radius: 10px;
  color: #fff;
  background: #ee3b35;
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.home-view {
  display: grid;
  grid-template-columns: 172px 1fr;
  min-height: calc(100vh - 62px);
}
.left-nav {
  background: #fff;
  border-right: 1px solid #e4ebf2;
  padding-top: 8px;
}
.left-nav button {
  width: 54px;
  height: 46px;
  margin-left: 20px;
  border: 0;
  background: #fff;
  font-size: 25px;
  color: #6e7782;
}
.left-nav a {
  display: block;
  margin: 8px 14px;
  padding: 12px 14px;
  border-radius: 23px;
  color: #42566d;
  text-decoration: none;
}
.left-nav a.active {
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}
.left-nav div {
  padding-left: 62px;
  display: grid;
  gap: 15px;
  color: #6d7786;
}
.left-nav .active-text { color: var(--blue); font-weight: 700; }
.home-main {
  padding: 18px 0 40px;
  background: linear-gradient(#f0f3f7, #eef3f8);
}
.home-tabs {
  width: 1200px;
  height: 50px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px repeat(5, 1fr);
  overflow: hidden;
  border-radius: 7px 7px 0 0;
}
.home-tabs button {
  border: 0;
  color: #fff;
  background: #363636;
  font-size: 17px;
  font-weight: 700;
}
.home-tabs button.active {
  color: #222;
  background: #fff;
}
.home-search-card {
  position: relative;
  width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 50px;
  border-radius: 0 0 7px 7px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(33, 74, 120, .12);
}
.trip-line {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #2d3b4f;
}
.trip-line input[type="radio"] {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  vertical-align: -4px;
}
.trip-line .direct { margin-left: auto; }
.trip-line select {
  width: 130px;
  height: 30px;
  border: 0;
  color: #4d5969;
}
.search-fields {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 250px 42px 250px 230px 130px 210px;
  gap: 14px;
  align-items: center;
}
.search-fields label,
.summary-fields label {
  height: 64px;
  display: block;
  padding: 12px 18px;
  border: 1px solid #eef1f5;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(52, 78, 110, .08);
  background: #fff;
}
.search-fields span,
.summary-fields span {
  display: block;
  color: #929ca9;
  font-size: 13px;
}
.search-fields input,
.summary-fields input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #0f1828;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
}
.swap {
  width: 42px;
  height: 42px;
  border: 1px solid #e3e8ef;
  border-radius: 50%;
  color: #7b8798;
  background: #fff;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(47, 70, 98, .12);
}
.date-field { position: relative; }
.date-field b {
  position: absolute;
  left: 116px;
  top: 35px;
  color: #99a3b2;
  font-size: 14px;
}
.add-return {
  height: 64px;
  border: 1px solid #eef1f5;
  border-radius: 6px;
  color: #a0a7b3;
  background: #fff;
}
.big-search {
  position: absolute;
  left: 50%;
  bottom: -27px;
  transform: translateX(-50%);
  width: 178px;
  height: 58px;
  border: 0;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(90deg, #ffb23d, #ff7c2e);
  box-shadow: 0 8px 18px rgba(255, 124, 46, .3);
  font-size: 22px;
  font-weight: 700;
}
.history-title {
  width: 1200px;
  margin: 56px auto 10px;
  color: #2a3748;
}
.history-title button {
  margin-left: 22px;
  border: 0;
  color: #7f8da0;
  background: transparent;
}
.history-grid {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.history-grid div {
  height: 76px;
  padding: 16px;
  border-radius: 5px;
  background: #fff;
}
.history-grid strong, .history-grid span { display: block; }
.history-grid b {
  float: right;
  color: #367ff2;
  font-size: 18px;
}
.history-grid span { margin-top: 10px; color: #8b96a7; font-size: 13px; }
.history-grid em { float: right; margin-top: -18px; color: #41a16d; font-style: normal; font-size: 13px; }
.history-grid .up { color: #f07b35; }

.result-view { background: #eef3f8; min-height: calc(100vh - 62px); }
.search-summary {
  background: #fff;
  padding: 20px 28px 38px;
}
.notice {
  max-width: 1300px;
  height: 52px;
  margin: 0 auto 18px;
  padding: 16px 20px;
  color: #627284;
  background: #fff8eb;
}
.notice button { float: right; border: 0; background: transparent; color: #8e99a8; }
.result-search {
  max-width: 1300px;
  margin: 0 auto;
}
.summary-fields {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 280px 42px 280px 430px 230px;
  gap: 14px;
  align-items: center;
}
.date-strip {
  max-width: 1300px;
  height: 76px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 70px repeat(7, 1fr) 70px 150px;
  background: #fff;
}
.date-strip > * {
  border: 0;
  border-right: 1px solid #e2e8ef;
  background: #fff;
}
.date-strip div {
  display: grid;
  place-items: center;
  padding: 10px 0;
}
.date-strip span { font-size: 13px; color: #2e3a4c; }
.date-strip b { color: #2977f5; }
.date-strip .low { color: #f26e2e; }
.date-strip .active {
  margin: 10px 0;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
}
.date-strip .active span, .date-strip .active b { color: #fff; }
.more-date { font-size: 17px; }
.result-wrap {
  max-width: 1300px;
  margin: 20px auto 0;
}
.route-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 10px 18px;
}
.route-head h1 { margin: 0; font-size: 27px; }
.route-head h1 span { margin-left: 10px; color: #555; font-size: 21px; font-weight: 400; }
.route-head p { margin: 0; color: #222; }
.filter-bar {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  border-radius: 6px 6px 0 0;
  background: #fff;
}
.filter-bar button {
  height: 36px;
  padding: 0 15px;
  border: 1px solid #dde5ef;
  border-radius: 5px;
  background: #fff;
}
.filter-bar nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}
.filter-bar nav button {
  border: 0;
  color: #222;
}
.filter-bar nav .active { color: #2b73f0; }
.flight-list {
  background: #fff;
}
.flight-row {
  min-height: 102px;
  display: grid;
  grid-template-columns: 300px 390px 150px 120px 145px;
  align-items: center;
  padding: 18px 26px;
  border-top: 1px solid #e2e8ef;
}
.carrier {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}
.carrier-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #d43f62;
  font-weight: 800;
}
.carrier strong { display: block; font-size: 17px; }
.carrier span { display: block; color: #2878f0; font-size: 13px; line-height: 1.6; }
.time-route {
  display: grid;
  grid-template-columns: 120px 110px 120px;
  align-items: center;
  text-align: center;
}
.time-route b {
  display: block;
  color: #000;
  font-size: 31px;
  line-height: 1.1;
}
.time-route span {
  display: block;
  margin-top: 6px;
  color: #222;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-mid {
  color: #333;
  font-size: 12px;
}
.route-mid i {
  display: block;
  height: 4px;
  margin: 8px 0;
  border-radius: 10px;
  background: #e8edf3;
}
.duration { color: #111; text-align: center; }
.detail-link { color: #2878f0; text-align: center; }
.price {
  display: grid;
  grid-template-columns: 1fr 72px;
  align-items: center;
  gap: 10px;
  text-align: right;
}
.price strong {
  color: #ff7f2a;
  font-size: 30px;
}
.price span { display: block; color: #8c96a6; font-size: 12px; }
.price button {
  width: 70px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: var(--orange);
  font-size: 19px;
  font-weight: 700;
}
.empty, .error { min-height: 150px; display: grid; place-items: center; padding: 36px; color: #7f8da0; text-align: center; font-size: 18px; }
.error { color: #cf2b25; }

.passenger-page, .service-page {
  min-height: 100vh;
  background: #eaf1f6;
}
.step-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(40, 60, 80, .15);
}
.steps {
  width: 570px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #b4bcc8;
}
.steps span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #d9dde5;
}
.steps .active { color: #ff7f2a; }
.steps .active::before { background: #ff7f2a; }
.order-layout {
  width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 860px 420px;
  gap: 22px;
}
.order-main { padding-top: 12px; }
.safe-text { margin: 0 0 16px; color: #43546a; }
.warn {
  height: 54px;
  margin-bottom: 8px;
  padding: 17px 24px;
  background: #fff8eb;
  color: #63748a;
}
.warn.green { background: #fff; }
.warn.green b { color: #29ae66; }
.warn.strong { color: #ff5630; }
.warn span { float: right; color: #2878f0; }
.passenger-title {
  display: flex;
  align-items: center;
  margin-top: 26px;
}
.passenger-title h2 { margin: 0 12px 0 0; font-size: 26px; }
.passenger-title em { color: #ff5b35; font-style: normal; }
.passenger-title button {
  margin-left: auto;
  border: 0;
  border-bottom: 1px solid #2d76ff;
  color: #6e7785;
  background: transparent;
  font-size: 18px;
}
.passenger-chips {
  height: 126px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px 12px;
  margin: 14px 0;
}
.passenger-chips button {
  border: 1px solid #cfd8e5;
  border-radius: 3px;
  background: #fff;
  color: #334255;
}
.passenger-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 300px;
  padding: 16px;
  background: #fff;
}
.passenger-side {
  display: grid;
  place-items: center;
  border-right: 1px dashed #c5ceda;
  color: #9aa5b3;
}
.passenger-side span { font-size: 38px; font-style: italic; }
.face { font-size: 42px; color: #c5d5e7; }
.passenger-side b { color: #111; font-weight: 400; }
.passenger-fields {
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.passenger-fields label span, .contact-card span {
  display: block;
  color: #bdc2cb;
}
.passenger-fields input, .passenger-fields select, .contact-card input, .contact-card select {
  width: 100%;
  height: 38px;
  border: 0;
  border-bottom: 1px solid #aebbd0;
  outline: 0;
  background: transparent;
  font-size: 17px;
}
.radio-row {
  display: flex;
  align-items: end;
  gap: 18px;
}
.radio-row input { width: 16px; height: 16px; }
.add-passenger {
  width: 112px;
  height: 36px;
  margin-top: 10px;
  border: 1px solid #2e73f8;
  color: #2e73f8;
  background: #fff;
}
.rule-text { margin-left: 20px; color: #7890a8; }
.section-title { margin: 26px 0 12px; font-size: 25px; }
.contact-card {
  min-height: 95px;
  display: grid;
  grid-template-columns: 160px 220px 1fr;
  gap: 22px;
  padding: 18px 24px;
  background: #fff;
}
.contact-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #7e8fa5;
}
.next-step, .pay-button {
  width: 100%;
  height: 62px;
  margin-top: 22px;
  border: 0;
  color: #fff;
  background: #3a78ea;
  font-size: 24px;
}
.itinerary-card {
  min-height: 620px;
  padding: 28px 32px;
  background: #f8fbfe;
  border-left: 1px solid #ccd8e4;
  border-right: 1px solid #ccd8e4;
}
.itinerary-card a { color: #2e73f8; }
.itinerary-card h3 {
  margin: 16px 0 12px;
  text-align: center;
  font-size: 20px;
}
.segment-box {
  margin-top: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d9e2ec;
}
.segment-airline {
  color: #6f8095;
  text-align: center;
}
.timeline {
  display: grid;
  grid-template-columns: 1fr 95px 1fr;
  align-items: center;
  margin-top: 18px;
  text-align: center;
}
.timeline b { font-size: 28px; color: #111; }
.timeline span { display: block; margin-top: 8px; color: #1b2b3d; }
.plane-line { color: #96a6b8; }
.plane-line i {
  display: block;
  height: 4px;
  margin-top: 10px;
  background: #dce4ed;
}
.transfer {
  margin: 18px 0;
  padding: 5px 12px;
  color: #ff5b35;
  background: #e9eef4;
}
.rules {
  display: flex;
  gap: 18px;
  margin: 24px 0;
  color: #345;
  font-size: 13px;
}
.total {
  margin-top: 36px;
  text-align: right;
}
.total span { margin-right: 12px; color: #111; }
.total strong {
  color: #ff7f2a;
  font-size: 38px;
}

.lock-card {
  margin-top: 22px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(45, 60, 80, .1);
}
.lock-card {
  padding: 16px 22px;
  color: #657386;
}
.lock-card button { float: right; border: 0; background: transparent; color: #c2cad4; font-size: 24px; }
.lock-card p { margin: 24px 0 0; color: #1b2d3f; font-size: 18px; }
.slogan {
  margin: 26px 0;
  text-align: center;
  color: #c1ccd8;
  font-size: 22px;
}
.service-box {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  padding: 28px 24px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(45, 60, 80, .08);
}
.service-box.small { margin-top: 34px; align-items: start; }
.illustration h2 { color: #2f79f5; font-size: 28px; }
.illustration p { color: #536277; }
.service-list {
  display: grid;
  gap: 14px;
}
.service-list article, .service-box.small article {
  position: relative;
  min-height: 90px;
  padding: 16px 180px 16px 18px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 8px rgba(40, 60, 80, .08);
}
.service-list h3, .service-box.small h3 { margin: 0; font-size: 20px; }
.service-list h3 span, .service-box.small span { color: #7b8ca2; font-size: 13px; font-weight: 400; }
.service-list h3 a { margin-left: 18px; color: #2e73f8; font-size: 14px; font-weight: 400; }
.service-list h3 b, .service-box.small b {
  float: right;
  color: #ff7f2a;
  font-size: 15px;
}
.service-list p { color: #586a80; line-height: 1.8; }
.service-list button {
  position: absolute;
  right: 18px;
  top: 38px;
  width: 112px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: #3a82ef;
}
.skip-extra {
  grid-column: 1 / -1;
  color: #657386;
}
.skip-extra input, .terms input {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}
.muted { color: #6d7d92; }
.terms {
  display: block;
  margin: 12px 0;
  color: #2f74ef;
}
.pay-button { background: #ff862f; }
.price-detail .fare-lines {
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid #dbe3ec;
  border-bottom: 1px solid #dbe3ec;
}
.fare-lines div {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  color: #718197;
}
