:root {
  color-scheme: light;
  --ink: #17242b;
  --muted: #63747c;
  --line: #d8e4e8;
  --panel: #ffffff;
  --soft: #f2f7f8;
  --teal: #1f6f7e;
  --teal-dark: #174c59;
  --gold: #d99545;
  --green: #267a58;
  --blue: #3765a3;
  --red: #a34949;
  --shadow: 0 18px 50px rgba(21, 58, 72, .12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7fafb;
  color: var(--ink);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0;
}

.site-title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 850;
}

.topbar__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__meta span,
.tag {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 24px;
  align-items: stretch;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f3fafb 100%);
  box-shadow: var(--shadow);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.hero__copy p {
  max-width: 680px;
  color: #3d515a;
  font-size: 17px;
  line-height: 1.8;
}

.hero img {
  width: 100%;
  min-height: 250px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #edf7f8;
}

.searchbar {
  display: grid;
  grid-template-columns: 1fr 168px 150px;
  gap: 10px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  min-height: 46px;
  border: 1px solid #cbdbe0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

button {
  min-height: 40px;
  border: 1px solid #bdd3da;
  border-radius: 6px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  border-color: var(--teal);
}

.button-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bdd3da;
  border-radius: 6px;
  background: #fff;
  color: var(--teal-dark);
  font-weight: 800;
  padding: 0 12px;
  text-decoration: none;
  white-space: nowrap;
}

.button-link:hover {
  border-color: var(--teal);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.stats div {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.stats span {
  display: block;
  font-size: 28px;
  font-weight: 850;
  color: var(--teal-dark);
}

.stats p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid #ead2ae;
  background: #fff8ed;
  color: #5c4526;
  margin-bottom: 18px;
}

.notice p {
  line-height: 1.7;
}

.ad-banner {
  display: block;
  margin: 18px 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ad-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 12px;
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.airline {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.code {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f5f7;
  color: var(--teal-dark);
  font-weight: 850;
}

.airline h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 0;
}

.airline p {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.badge.verified {
  background: #eaf6ef;
  color: var(--green);
}

.badge.partial {
  background: #eef3fb;
  color: var(--blue);
}

.badge.pending {
  background: #f8eeee;
  color: var(--red);
}

.facts {
  display: grid;
  gap: 8px;
}

.fact {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  color: #33474f;
  font-size: 14px;
  line-height: 1.6;
}

.fact strong {
  color: var(--muted);
  font-size: 13px;
}

.card__bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.source-count {
  color: var(--muted);
  font-size: 13px;
}

.empty {
  padding: 44px 0;
  text-align: center;
  color: var(--muted);
}

dialog {
  width: min(780px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 80px rgba(10, 32, 42, .32);
}

dialog::backdrop {
  background: rgba(13, 31, 38, .46);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.dialog-content {
  padding: 26px;
}

.dialog-content h2 {
  padding-right: 42px;
}

.dialog-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.dialog-section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.dialog-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.dialog-section p {
  line-height: 1.7;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sources a {
  display: inline-block;
  color: var(--teal-dark);
  border: 1px solid #bed8df;
  border-radius: 6px;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 14px;
}

.detail-shell {
  width: min(960px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}

.detail-hero {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 26px;
}

.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.detail-title h1 {
  max-width: 760px;
  line-height: 1.16;
}

.detail-code {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f5f7;
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 900;
}

.detail-summary {
  margin-top: 14px;
  color: #3d515a;
  font-size: 16px;
  line-height: 1.8;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.detail-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
}

.detail-card h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.detail-card p {
  color: #33474f;
  line-height: 1.75;
}

.detail-card.full {
  grid-column: 1 / -1;
}

.seo-note {
  margin-top: 18px;
  border: 1px solid #ead2ae;
  background: #fff8ed;
  color: #5c4526;
  padding: 16px 18px;
  line-height: 1.75;
}

@media (max-width: 860px) {
  .topbar,
  .card__top,
  .card__bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar__meta {
    justify-content: flex-start;
  }

  .hero,
  .cards,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-title {
    flex-direction: column-reverse;
  }

  .searchbar,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .searchbar input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }

  .hero,
  .table-wrap,
  .detail-hero {
    padding: 14px;
  }

  .searchbar,
  .stats,
  .notice,
  .fact {
    grid-template-columns: 1fr;
  }
}
