:root {
  --navy: #0e3d91;
  --blue: #1f7ae0;
  --sky: #6fb1ff;
  --gold: #f5b301;
  --bg: #f4f7fc;
  --ink: #1a2b3c;
  --muted: #7a8aa0;
  --line: #e3eaf3;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

header.nav {
  background: var(--white);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { display: block; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: 2px; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 4px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink); font-size: 15px; font-weight: 600; padding: 6px 2px; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-bottom-color: var(--gold); }

main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 70px; }

.hero {
  background: linear-gradient(135deg, #0c2f72 0%, #1f7ae0 60%, #5aa8ff 100%);
  border-radius: 18px;
  color: #fff;
  padding: 54px 40px;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: 44px; letter-spacing: 6px; font-weight: 900; }
.hero p { margin-top: 14px; font-size: 16px; opacity: .92; max-width: 560px; }
.hero .pill {
  display: inline-block;
  margin-top: 22px;
  background: var(--gold);
  color: #5b4400;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
}
.hero .plane {
  position: absolute;
  right: 30px;
  bottom: 18px;
  opacity: .25;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(14, 61, 145, .06);
  padding: 26px;
  margin-top: 26px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-title::before {
  content: "";
  width: 6px;
  height: 22px;
  background: var(--gold);
  border-radius: 3px;
}

/* 公告栏 */
.board { display: grid; gap: 12px; }
.board-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  transition: transform .15s;
}
.board-item:hover { transform: translateX(4px); }
.board-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
  background: #eaf2ff;
}
.board-item h4 { font-size: 15px; color: var(--navy); }
.board-item .tag {
  font-size: 11px;
  color: #fff;
  background: var(--gold);
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 2px;
  font-weight: 700;
}
.board-item p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.board-item .date { margin-left: auto; font-size: 12px; color: #aeb9c8; white-space: nowrap; }

/* 抽奖转盘 */
.lottery-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.wheel-box { display: grid; place-items: center; position: relative; }
.wheel {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  position: relative;
}
.wheel canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 10px #fff, 0 0 0 12px var(--line), 0 12px 30px rgba(14,61,145,.25);
  transition: transform 4.2s cubic-bezier(.15,.8,.2,1);
}
.wheel .pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border: 4px solid #fff;
  z-index: 6;
}
.spin-btn {
  display: block;
  margin: 18px auto 0;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), #ffca44);
  color: #4a3500;
  font-size: 17px;
  font-weight: 800;
  padding: 13px 40px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(245,179,1,.4);
}
.spin-btn:disabled { filter: grayscale(.6); cursor: not-allowed; }
.lottery-info h3 { font-size: 20px; color: var(--navy); }
.lottery-info p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.lottery-info .steps { margin-top: 16px; list-style: none; display: grid; gap: 10px; }
.lottery-info .steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: center;
}
.lottery-info .steps b { color: var(--blue); }

/* modal */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 51, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 400px;
  width: 90%;
  padding: 34px 30px 28px;
  text-align: center;
  animation: pop .3s ease;
  position: relative;
}
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .ico { font-size: 56px; }
.modal h3 { font-size: 20px; color: var(--navy); margin-top: 8px; }
.modal p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.modal .prize { font-size: 44px; font-weight: 900; color: var(--gold); margin-top: 6px; }
.modal .btn-row { display: flex; gap: 12px; margin-top: 22px; justify-content: center; }
.btn {
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 999px;
  display: inline-block;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { background: #eef3fa; color: var(--navy); }
.btn-ghost:hover { background: #dfe9f7; }
.btn-primary:hover { background: #1768c7; }
.btn-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 22px;
  color: #b7c2d1;
  cursor: pointer;
}

/* flights */
.flight-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px 22px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(14,61,145,.04);
}
.flight-no {
  width: 74px;
  font-weight: 800;
  color: var(--navy);
  font-size: 16px;
  text-align: center;
  padding: 12px 6px;
  background: #eaf2ff;
  border-radius: 10px;
}
.route {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 700;
}
.route .arrow { color: var(--sky); font-size: 20px; }
.flight-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.price-box { text-align: right; }
.price-old { color: #aeb9c8; font-size: 13px; text-decoration: line-through; }
.price-now { color: #ff4d2e; font-size: 24px; font-weight: 900; }
.price-now small { font-size: 13px; }
.disc-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: #fff;
  background: var(--gold);
  border-radius: 4px;
  padding: 1px 7px;
  font-weight: 700;
}
.buy-btn {
  margin-top: 10px;
  border: 0;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 999px;
}
.buy-btn:hover { background: #1768c7; }

/* booking form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 16px; }
.form-grid label { font-size: 14px; color: var(--navy); font-weight: 600; display: block; margin-bottom: 6px; }
.form-grid input, .form-grid select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fbfdff;
  outline: none;
}
.form-grid input:focus, .form-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,122,224,.12); }
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.summary-line b { color: var(--ink); }
.summary-line .cut { color: #ff4d2e; font-weight: 700; }
.total-row {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}
.pay-btn {
  width: 100%;
  margin-top: 20px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #ff5a2e, #ff8a2e);
  font-size: 17px;
  font-weight: 800;
  padding: 14px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255,90,46,.35);
}
.pay-btn:hover { filter: brightness(1.05); }

/* ticket */
.ticket {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(14,61,145,.18);
}
.ticket-head {
  background: linear-gradient(135deg, var(--navy), #1f7ae0);
  color: #fff;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-head h2 { font-size: 22px; letter-spacing: 3px; }
.ticket-head .no { font-size: 13px; opacity: .85; }
.ticket-body { padding: 26px; }
.ticket-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ticket-city { text-align: center; }
.ticket-city .name { font-size: 30px; font-weight: 900; color: var(--navy); }
.ticket-city .time { font-size: 16px; color: var(--muted); margin-top: 2px; }
.ticket-flight { text-align: center; flex: 1; }
.ticket-flight .line { height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 14px); position: relative; margin-top: 14px; }
.ticket-flight .plane-ico { position: absolute; top: 7px; right: -6px; transform: translateY(-50%); }
.ticket-flight .fn { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
  background: #f7faff;
  border-radius: 12px;
  padding: 18px;
}
.ticket-grid .item .label { font-size: 12px; color: var(--muted); }
.ticket-grid .item .val { font-size: 16px; font-weight: 800; color: var(--navy); margin-top: 2px; }
.ticket-foot {
  display: flex;
  justify-content: space-between;
  padding: 16px 26px;
  background: #f4f8ff;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.qr {
  width: 92px;
  height: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 2px;
  padding: 6px;
}
.qr i { background: var(--navy); border-radius: 1px; }

/* coupon */
.coupon {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-top: 16px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(14,61,145,.05);
}
.coupon-left {
  width: 150px;
  padding: 22px 12px;
  text-align: center;
  color: #fff;
  display: grid;
  place-items: center;
}
.coupon-left .amount { font-size: 34px; font-weight: 900; line-height: 1.1; }
.coupon-left .unit { font-size: 12px; opacity: .9; }
.coupon-body { flex: 1; padding: 18px 20px; }
.coupon-body h4 { font-size: 15px; color: var(--navy); }
.coupon-body p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.coupon-body .meta { font-size: 12px; color: #aeb9c8; margin-top: 8px; }
.coupon-btn {
  align-self: center;
  margin-right: 20px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 999px;
}
.coupon-btn:hover { background: #eaf2ff; }
.coupon-btn.used { border-color: #c3cdd9; color: #b7c2d1; cursor: default; }
.gradient-blue { background: linear-gradient(135deg, #1f7ae0, #0e3d91); }
.gradient-gold { background: linear-gradient(135deg, #f5b301, #ff8a2e); }
.gradient-green { background: linear-gradient(135deg, #2ec27e, #17945f); }
.gradient-purple { background: linear-gradient(135deg, #8a5cf6, #5a32d6); }

.redeem { display: flex; gap: 12px; margin-top: 16px; }
.redeem input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
}
.redeem button {
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 0 26px;
  border-radius: 12px;
}

footer.site {
  background: var(--navy);
  color: #bcd0ef;
  margin-top: 40px;
  padding: 30px 0;
}
footer.site .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
footer.site .copy { font-size: 11px; color: #8aa6d6; margin-top: 6px; }
footer.site a:hover { color: #fff; }

/* custom route */
.custom-route {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-top: 12px;
}
.custom-route .field { flex: 1; min-width: 160px; }
.custom-route label { font-size: 13px; color: var(--navy); font-weight: 600; display: block; margin-bottom: 6px; }
.custom-route input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fbfdff;
  outline: none;
}
.custom-route input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,122,224,.12); }
.custom-route button {
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 26px;
  border-radius: 999px;
}
.custom-route button:hover { background: #122c66; }

/* intro & fleet */
.intro-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; margin-top: 10px; }
.intro-text p { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.intro-facts {
  background: #f4f8ff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.intro-facts .fact { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #dce7f7; font-size: 14px; }
.intro-facts .fact:last-child { border-bottom: 0; }
.intro-facts .fact b { color: var(--navy); font-weight: 700; }
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.fleet-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fbfdff;
  transition: transform .15s;
}
.fleet-card:hover { transform: translateY(-3px); }
.fleet-card .fc-top { display: flex; align-items: center; gap: 12px; }
.fleet-card .fc-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.fleet-card h4 { font-size: 16px; color: var(--navy); }
.fleet-card .code { font-size: 12px; color: #aeb9c8; }
.fleet-card ul { margin-top: 12px; list-style: none; }
.fleet-card li { font-size: 13px; color: var(--muted); padding: 4px 0; display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); }
.fleet-card li b { color: var(--ink); font-weight: 600; }
.lottery-note {
  margin-top: 12px;
  background: #fff8e1;
  border: 1px solid #f5b301;
  color: #7a5a00;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}
.lottery-note b { color: #b24100; }

/* seat map */
.seatmap { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 8px; max-width: 400px; }
.seat {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid #c9d6ea;
  background: #eef3fa;
  cursor: pointer;
  font-size: 11px;
  color: #5a6b80;
  display: grid;
  place-items: center;
  user-select: none;
}
.seat:hover { border-color: var(--blue); }
.seat.taken { background: #dfe5ee; color: #aeb9c8; cursor: not-allowed; text-decoration: line-through; }
.seat.sel { background: var(--gold); color: #4a3500; border-color: #f5b301; font-weight: 700; box-shadow: 0 2px 8px rgba(245,179,1,.5); }
.seat.aisle { pointer-events: none; background: transparent; border: 0; color: #aeb9c8; display: grid; place-items: center; font-size: 11px; }
.seat-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.seat-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 4px; vertical-align: -2px; border: 1px solid #c9d6ea; }
.seat-dot.free { background: #eef3fa; }
.seat-dot.sel { background: var(--gold); border-color: #f5b301; }
.seat-dot.taken { background: #dfe5ee; }

@media (max-width: 820px) {
  .lottery-wrap { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; flex-wrap: wrap; }
  .hero h1 { font-size: 30px; }
  .flight-card { grid-template-columns: 1fr; }
  .price-box { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: 1fr 1fr; }
  .coupon { flex-direction: column; }
  .coupon-left { width: 100%; }
  .coupon-btn { margin: 0 0 16px; }
  .wheel { width: 260px; height: 260px; }
  .intro-grid { grid-template-columns: 1fr; }
}