:root {
  color-scheme: light;
  --bg: #eef3f7;
  --panel: #ffffff;
  --panel-soft: #f8fafc;
  --text: #152033;
  --muted: #66768a;
  --line: #d6e0eb;
  --line-strong: #bdc9d8;
  --blue: #1c5fc7;
  --blue-dark: #153f8a;
  --teal: #0f766e;
  --teal-soft: #e4f4f1;
  --amber: #a85b00;
  --amber-soft: #fff1d8;
  --red: #b42318;
  --shadow: 0 18px 42px rgba(31, 45, 68, 0.11);
  --soft-shadow: 0 10px 28px rgba(31, 45, 68, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #e9eef4 0, #f7f9fc 360px, #eef3f7 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 22px 44px;
}

.search-band {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fff),
    linear-gradient(90deg, rgba(15, 118, 110, 0.08), rgba(28, 95, 199, 0.08));
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

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

.brand-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  filter: drop-shadow(0 10px 18px rgba(20, 32, 51, 0.14));
}

.eyebrow-title {
  color: var(--teal);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 7px;
}

h1 {
  font-size: 28px;
  line-height: 1.18;
  font-weight: 800;
}

.caption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.footer a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.search-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.search-form label {
  grid-column: span 2;
}

.search-form .city-field,
.search-form .wide-field {
  grid-column: span 3;
}

.search-form .price-field {
  grid-column: span 1;
}

.search-form .cache-field {
  grid-column: span 2;
}

label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #536579;
  font-size: 12px;
  font-weight: 760;
}

.suggest-field {
  position: relative;
}

.suggestion-box {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  display: grid;
  gap: 4px;
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 18px 34px rgba(25, 38, 63, 0.18);
}

.suggestion-item,
.suggestion-status {
  min-width: 0;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}

.suggestion-item {
  display: grid;
  gap: 4px;
}

.suggestion-item:hover,
.suggestion-item:focus {
  background: #f4f8fd;
  outline: none;
}

.suggestion-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 820;
}

.suggestion-meta,
.suggestion-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

input,
select {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

input:hover,
select:hover {
  border-color: var(--line-strong);
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(28, 95, 199, 0.13);
}

.cache-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0 11px;
  font-size: 13px;
  font-weight: 760;
}

.cache-toggle input {
  width: 17px;
  height: 17px;
  min-width: 17px;
  padding: 0;
  box-shadow: none;
  accent-color: var(--blue);
}

.primary-btn {
  grid-column: span 2;
  height: 42px;
  min-width: 118px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(180deg, #236bd6, var(--blue));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 20px rgba(28, 95, 199, 0.22);
}

.primary-btn:hover {
  background: linear-gradient(180deg, #1b58bd, var(--blue-dark));
}

.primary-btn:disabled {
  opacity: 0.68;
  cursor: wait;
  box-shadow: none;
}

.hot-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf1f5;
}

.hot-row-title {
  display: grid;
  gap: 4px;
  min-width: 110px;
  padding-top: 2px;
}

.hot-row-title span {
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
}

.hot-row-title small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.hot-chip {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  max-width: 264px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #253044;
  padding: 5px 10px;
  text-align: left;
  font-size: 12px;
}

.hot-chip:hover,
.hot-chip:focus {
  border-color: var(--blue);
  background: #f5f9ff;
  outline: none;
}

.hot-city {
  color: var(--teal);
  font-weight: 840;
  white-space: nowrap;
}

.hot-target {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-type {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.status-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 0.8fr 2.4fr;
  gap: 12px;
  margin: 16px 0;
}

.status-tile {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 13px 14px;
  box-shadow: var(--soft-shadow);
}

.status-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  margin-bottom: 8px;
}

.status-tile strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 820;
}

.compare-tile strong {
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.alert,
.loading,
.compare-notice,
.result-state,
.cache-status,
.price-status {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}

.alert {
  color: var(--red);
  background: #fff1f0;
  border: 1px solid #ffd2cc;
}

.loading {
  color: var(--blue-dark);
  background: #eef5ff;
  border: 1px solid #cadfff;
}

.result-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #184267;
  background: #eef8fb;
  border: 1px solid #bfe3ee;
}

.result-state strong {
  flex: 0 0 auto;
  color: #075985;
  font-size: 14px;
  font-weight: 860;
}

.result-state span {
  min-width: 0;
  color: #31536f;
  line-height: 1.45;
}

.result-state--found-incomplete {
  background: #effaf7;
  border-color: #bce4d7;
}

.result-state--target-selection-needed {
  color: #704600;
  background: #fff8e6;
  border-color: #f4d38f;
}

.result-state--target-selection-needed strong {
  color: #8a5200;
}

.compare-notice {
  color: #7a4a00;
  background: #fff8e6;
  border: 1px solid #f4d38f;
  font-weight: 760;
}

.price-status {
  color: #20416f;
  background: #f0f6ff;
  border: 1px solid #c8dcff;
  font-weight: 760;
}

.cache-status {
  display: grid;
  gap: 9px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.cache-status-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.cache-layer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cache-layer {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 4px 8px;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 6px 9px;
}

.cache-layer span {
  color: #536579;
  font-size: 12px;
  font-weight: 760;
}

.cache-layer strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 840;
}

.cache-layer em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.cache-layer--hit {
  border-color: #addcca;
  background: #effaf7;
}

.cache-layer--bypassed {
  border-color: #ead39e;
  background: #fff9eb;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 38px;
  margin: -4px 0 14px;
}

.export-pdf-btn {
  min-height: 34px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 820;
  box-shadow: 0 7px 18px rgba(31, 45, 68, 0.06);
}

.export-pdf-btn:hover,
.export-pdf-btn:focus {
  border-color: var(--blue);
  background: #f5f9ff;
  outline: none;
}

.export-pdf-btn:disabled {
  cursor: not-allowed;
  border-color: #dbe3ed;
  background: #f8fafc;
  color: #94a3b8;
  box-shadow: none;
}

.export-pdf-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.name-edit-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.26);
}

.name-edit-modal.hidden {
  display: none;
}

.name-edit-dialog {
  width: min(460px, 100%);
  display: grid;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.name-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.name-edit-head h2 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 840;
}

.name-edit-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.name-edit-close {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  line-height: 1;
}

.name-edit-dialog label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.name-edit-dialog input,
.name-edit-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--text);
  padding: 10px 11px;
  font: inherit;
  font-size: 14px;
}

.name-edit-dialog textarea {
  resize: vertical;
}

.name-edit-dialog input:focus,
.name-edit-dialog textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  outline: none;
}

.name-edit-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.name-edit-message--success {
  color: #08704f;
}

.name-edit-message--error {
  color: var(--red);
}

.name-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.primary-small-btn {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 820;
}

.primary-small-btn:disabled {
  opacity: 0.68;
  cursor: wait;
}

.result-jump-widget {
  position: fixed;
  top: 52%;
  right: 0;
  z-index: 18;
  display: grid;
  justify-items: end;
  transform: translateY(-50%);
}

.result-jump-toggle {
  min-width: 34px;
  min-height: 72px;
  border: 1px solid rgba(189, 201, 216, 0.72);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(37, 48, 68, 0.76);
  padding: 9px 7px;
  box-shadow: 0 8px 22px rgba(31, 45, 68, 0.09);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 820;
  writing-mode: vertical-rl;
}

.result-jump-toggle:hover,
.result-jump-toggle:focus,
.result-jump-widget.is-open .result-jump-toggle {
  border-color: rgba(15, 118, 110, 0.55);
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal);
  outline: none;
}

.result-jump-nav {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  display: grid;
  gap: 7px;
  width: 238px;
  padding: 8px;
  border: 1px solid rgba(214, 224, 235, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(31, 45, 68, 0.13);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.result-jump-widget.is-open .result-jump-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.result-jump-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #253044;
  padding: 0 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 820;
}

.result-jump-nav a:hover,
.result-jump-nav a:focus {
  border-color: #d6e0eb;
  background: #f6fbfa;
  color: var(--teal);
  outline: none;
}

.result-jump-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 7px;
  font-size: 12px;
  font-weight: 820;
}

.result-jump-nav a:hover span,
.result-jump-nav a:focus span {
  background: var(--teal-soft);
  color: var(--teal);
}

.hidden {
  display: none;
}

.result-section {
  margin-top: 20px;
  scroll-margin-top: 82px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.section-head h2 {
  font-size: 20px;
  line-height: 1.22;
  font-weight: 820;
}

.section-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.brand-coverage {
  margin-top: 7px;
  max-width: 680px;
}

.brand-coverage summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  border: 1px solid #cfdce8;
  border-radius: 8px;
  background: #fff;
  color: #354861;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}

.brand-coverage summary::-webkit-details-marker {
  display: none;
}

.brand-coverage summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.16s ease;
}

.brand-coverage[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.brand-coverage summary:hover,
.brand-coverage summary:focus {
  border-color: var(--teal);
  background: #f6fbfa;
  outline: none;
}

.brand-coverage summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.brand-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.brand-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #d8e3ed;
  border-radius: 7px;
  background: #f8fbfd;
  color: #334155;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.hotel-filter {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 690px;
  padding: 7px;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: rgba(248, 251, 253, 0.78);
}

.hotel-filter label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.hotel-filter .filter-keyword {
  width: 190px;
}

.hotel-filter .filter-price {
  width: 86px;
}

.hotel-filter .filter-sort {
  width: 96px;
}

.hotel-filter input,
.hotel-filter select {
  width: 100%;
  height: 30px;
  min-width: 0;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.hotel-filter select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 13px,
    calc(100% - 9px) 13px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 24px;
}

.hotel-filter input:focus,
.hotel-filter select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.ghost-btn {
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.ghost-btn:hover {
  color: var(--teal);
  background: var(--teal-soft);
}

.filter-count {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

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

.hotel-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 214px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(25, 38, 63, 0.08);
}

.hotel-card:hover {
  border-color: #c1cddc;
  box-shadow: 0 16px 34px rgba(25, 38, 63, 0.12);
}

.hotel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #dfeaf6, #fbfcfd 48%, #f8dfaf);
}

.hotel-image--placeholder {
  display: block;
}

.hotel-body {
  min-width: 0;
  padding: 14px;
}

.hotel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hotel-title-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.hotel-title-main h3 {
  min-width: 0;
  font-size: 16px;
  line-height: 1.38;
  font-weight: 820;
}

.name-edit-btn {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  padding: 0;
  font-size: 13px;
  line-height: 20px;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.hotel-card:hover .name-edit-btn,
.hotel-card:focus-within .name-edit-btn,
.name-edit-btn:focus-visible {
  opacity: 0.72;
}

.name-edit-btn:hover,
.name-edit-btn:focus-visible {
  background: #eef2f7;
  color: var(--teal);
  opacity: 1;
  outline: none;
}

.deal-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  font-weight: 820;
}

.deal-badge--positive {
  background: #dff6ed;
  color: #08704f;
}

.deal-badge--negative {
  background: #ffe7e2;
  color: var(--red);
}

.deal-badge--neutral {
  background: #eef2f7;
  color: #475569;
}

.hotel-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.name-verification {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: #7a4a00;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.name-verification i,
.price-pending-bar i {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1e3c8;
}

.name-verification i::before,
.price-pending-bar i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d89426, #1c5fc7);
  animation: name-progress 1.15s ease-in-out infinite;
}

.price-pending-bar {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: #20416f;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.price-pending-bar i {
  background: #d9e7fb;
}

.price-pending-bar i::before {
  background: linear-gradient(90deg, #1c5fc7, #0f766e);
}

@keyframes name-progress {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(240%);
  }
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.price-cell {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px;
  background: #fbfdff;
}

.price-cell--pending {
  border-color: #c8dcff;
  background: #f4f8ff;
}

.price-cell--pending strong {
  color: var(--blue);
}

.price-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.price-cell strong {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 820;
  word-break: keep-all;
}

.price-cell em {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.2;
}

.price-cell.price-delta {
  position: relative;
  overflow: hidden;
}

.price-cell.price-delta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
}

.price-cell.price-delta--positive {
  background: #f2fbf7;
  border-color: #bdebd9;
}

.price-cell.price-delta--positive::before {
  background: #0b8f63;
}

.price-cell.price-delta--positive span,
.price-cell.price-delta--positive strong {
  color: #08704f;
}

.price-cell.price-delta--negative {
  background: #fff5f3;
  border-color: #fec7bd;
}

.price-cell.price-delta--negative::before {
  background: var(--red);
}

.price-cell.price-delta--negative span,
.price-cell.price-delta--negative strong {
  color: var(--red);
}

.price-cell.price-delta--neutral {
  background: #f8fafc;
  border-color: #d8e2ee;
}

.price-cell.price-delta--neutral::before {
  background: #94a3b8;
}

.price-cell.price-delta--neutral strong {
  color: #475569;
}

.reason {
  margin-top: 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.58;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.trip-link,
.wechat-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 780;
  background: #fff;
}

.trip-link {
  color: var(--blue);
  text-decoration: none;
}

.wechat-share-btn {
  color: #08704f;
}

.trip-link:hover,
.wechat-share-btn:hover,
.wechat-share-btn:focus {
  border-color: var(--blue);
  background: #f5f9ff;
  outline: none;
}

.wechat-share-btn:disabled {
  cursor: wait;
  border-color: #bdebd9;
  background: #f2fbf7;
  color: #08704f;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 104px;
  border: 1px dashed #c6d1df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid #dfe6ee;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 0 11px;
  text-decoration: none;
  font-weight: 760;
}

@media (max-width: 1180px) {
  .search-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search-form label,
  .search-form .city-field,
  .search-form .price-field {
    grid-column: span 1;
  }

  .search-form .wide-field {
    grid-column: span 2;
  }

  .primary-btn {
    grid-column: span 1;
    width: 100%;
  }

  .hotel-list {
    grid-template-columns: 1fr;
  }

  .hotel-filter {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .shell {
    padding: 12px 10px 32px;
  }

  .search-band {
    padding: 15px 14px;
  }

  .title-row {
    display: grid;
    justify-items: start;
  }

  .brand-title {
    align-items: flex-start;
    gap: 10px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  h1 {
    font-size: 23px;
    line-height: 1.2;
  }

  .caption {
    font-size: 12px;
  }

  .search-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .search-form label {
    grid-column: auto;
  }

  .search-form .city-field,
  .search-form .wide-field,
  .search-form .date-field,
  .search-form .cache-field,
  .primary-btn {
    grid-column: 1 / -1;
  }

  .search-form .date-field {
    overflow: hidden;
  }

  .search-form .date-field input[type="date"] {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-inline-size: 0;
    max-inline-size: 100%;
    height: 42px;
    padding: 0 10px 0 12px;
    font-size: 14px;
    line-height: normal;
    text-align: left;
    text-align-last: left;
    appearance: none;
    -webkit-appearance: none;
  }

  .search-form .date-field input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    overflow: hidden;
    text-align: left;
    line-height: 40px;
  }

  .search-form .date-field input[type="date"]::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 4px;
  }

  .search-form .price-field,
  .search-form .filter-field {
    grid-column: auto;
  }

  input,
  select,
  .cache-toggle,
  .primary-btn {
    height: 42px;
    font-size: 15px;
  }

  .cache-toggle {
    justify-content: flex-start;
  }

  .hot-row {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .hot-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .hot-list::-webkit-scrollbar {
    display: none;
  }

  .hot-chip {
    min-width: 224px;
    max-width: 260px;
  }

  .status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 12px 0;
  }

  .status-tile {
    min-height: 66px;
    padding: 11px 10px;
  }

  .status-tile strong {
    font-size: 21px;
  }

  .compare-tile {
    grid-column: 1 / -1;
  }

  .compare-tile strong {
    font-size: 13px;
  }

  .result-state {
    align-items: flex-start;
    gap: 5px;
  }

  .cache-layer-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .result-actions {
    display: grid;
    justify-items: stretch;
    gap: 7px;
    margin: 0 0 12px;
  }

  .export-pdf-btn {
    width: 100%;
    min-height: 40px;
  }

  .export-pdf-hint {
    text-align: center;
  }

  .result-jump-widget {
    top: 62%;
    right: 0;
    bottom: auto;
    transform: translateY(-50%);
  }

  .result-jump-toggle {
    min-width: 32px;
    min-height: 64px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.66);
  }

  .result-jump-nav {
    top: 50%;
    right: calc(100% + 7px);
    bottom: auto;
    width: min(280px, calc(100vw - 48px));
  }

  .result-jump-nav a {
    min-height: 38px;
  }

  .hotel-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hotel-image {
    height: 168px;
  }

  .hotel-body {
    padding: 13px;
  }

  .hotel-title-row {
    display: grid;
    gap: 8px;
  }

  .hotel-title-main h3 {
    font-size: 15px;
  }

  .deal-badge {
    justify-self: start;
  }

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

  .price-cell {
    padding: 7px;
  }

  .price-cell strong {
    font-size: 15px;
  }

  .card-actions {
    justify-content: stretch;
  }

  .trip-link,
  .wechat-share-btn {
    flex: 1 1 0;
  }

  .section-head {
    display: grid;
    align-items: start;
    gap: 5px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .brand-coverage {
    max-width: none;
  }

  .brand-coverage summary {
    width: 100%;
    justify-content: space-between;
  }

  .hotel-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfd;
  }

  .hotel-filter input,
  .hotel-filter select {
    height: 34px;
    font-size: 14px;
  }

  .hotel-filter .filter-keyword,
  .filter-count {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hotel-filter .filter-price,
  .hotel-filter .filter-sort {
    width: 100%;
  }

  .hotel-filter input,
  .hotel-filter select,
  .ghost-btn {
    height: 40px;
  }

  .ghost-btn {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
  }

  .footer {
    display: grid;
    justify-items: center;
    flex-wrap: wrap;
    text-align: center;
  }
}
