:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #f0f4f8;
  --line: #d9e2ec;
  --line-strong: #c5d2df;
  --text: #0b1f33;
  --muted: #65758a;
  --soft: #8796a8;
  --primary: #1597e5;
  --primary-dark: #0877bf;
  --primary-soft: #e5f5ff;
  --success: #45bfb5;
  --warning: #f5aa24;
  --danger: #ff5748;
  --shadow: 0 18px 40px rgba(15, 35, 55, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(21, 151, 229, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: -48px;
  z-index: 20;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 18px;
}

.site-header,
.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.05;
}

.header-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.header-actions {
  display: grid;
  justify-items: end;
  align-self: end;
  gap: 10px;
}

.text-link {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.header-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 14px;
}

.text-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.search-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 22px 26px;
  box-shadow: 0 1px 0 rgba(15, 35, 55, 0.03);
  overflow: visible;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 24px);
}

.section-copy {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--muted);
}

.section-heading--compact {
  margin: 24px 0 12px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--wide {
  grid-column: span 1;
}

.field span,
.field > label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.input-shell {
  position: relative;
  width: 100%;
}

.input-shell input {
  display: block;
}

.input-shell input,
.field input[type="date"] {
  padding-right: 58px;
}

.field input[type="date"] {
  cursor: pointer;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  width: 52px;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.input-trigger {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.input-trigger:hover {
  background: rgba(31, 159, 219, 0.1);
}

.combo-trigger::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--text);
}

.date-picker-trigger::before {
  content: "";
  width: 15px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) 0 4px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 8px / 2px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 9px 8px / 2px 2px no-repeat;
}

.itinerary-options {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 100%;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(11, 31, 51, 0.16);
  padding: 8px;
}

.itinerary-option,
.itinerary-option-empty {
  display: grid;
  width: 100%;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
}

.itinerary-option {
  cursor: pointer;
}

.itinerary-option:hover,
.itinerary-option:focus {
  background: var(--surface-muted);
}

.itinerary-option strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.itinerary-option small,
.itinerary-option-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 20px,
    calc(100% - 14px) 20px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  background: #edf8ff;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 20px;
  color: #405164;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-row label,
.view-switch label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.search-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.primary-button,
.ghost-button,
.load-more {
  min-height: 46px;
  border-radius: 8px;
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 900;
}

.primary-button {
  min-width: min(320px, 100%);
  background: var(--primary);
  color: #fff;
}

.search-page .search-actions .primary-button {
  min-width: min(240px, 100%);
}

.search-page .search-panel {
  padding: 18px 22px;
}

.search-page .field-grid {
  gap: 14px 22px;
}

.search-page .field {
  gap: 5px;
}

.search-page .field span,
.search-page .field > label {
  font-size: 13px;
}

.search-page .field input,
.search-page .field select {
  min-height: 42px;
  font-size: 14px;
}

.search-page .field select {
  background-position:
    calc(100% - 20px) 18px,
    calc(100% - 14px) 18px;
}

.search-page .checkbox-row {
  gap: 10px 22px;
  margin-top: 14px;
  font-size: 13px;
}

.search-page .checkbox-row label {
  min-height: 30px;
}

.search-page .search-actions {
  margin-top: 14px;
}

.search-page .primary-button,
.search-page .ghost-button {
  min-height: 42px;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.ghost-button {
  background: transparent;
  color: var(--primary-dark);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.home-page {
  padding-bottom: 72px;
}

.home-hero {
  display: grid;
  place-items: center;
  min-height: 420px;
  margin-bottom: 22px;
  border: 0;
  background:
    linear-gradient(90deg, rgba(3, 24, 42, 0.64), rgba(3, 24, 42, 0.2)),
    url("https://images.pexels.com/photos/31501186/pexels-photo-31501186/free-photo-of-diver-exploring-vibrant-underwater-coral-reef.jpeg?auto=compress&cs=tinysrgb&w=1800&h=900&fit=crop")
      center / cover;
  box-shadow: 0 24px 60px rgba(15, 35, 55, 0.16);
}

.home-search-box {
  width: min(940px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
  box-shadow: 0 24px 60px rgba(3, 24, 42, 0.26);
  backdrop-filter: blur(10px);
}

.home-search-grid {
  grid-template-columns: minmax(190px, 1fr) minmax(170px, 0.9fr) minmax(140px, 0.7fr) minmax(170px, 0.8fr);
  align-items: end;
  gap: 16px;
}

.home-search-button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.view-switch {
  display: flex;
  gap: 26px;
  margin: 16px 0;
  color: #405164;
  font-size: 14px;
  font-weight: 800;
}

.popular-panel,
.contact-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  padding: 22px 26px;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.popular-card {
  position: relative;
  display: block;
  min-height: 176px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(5, 41, 66, 0.05), rgba(3, 23, 38, 0.88)),
    var(--card-image),
    linear-gradient(135deg, #0877bf, #1597e5 52%, #45bfb5);
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 18px;
  text-align: left;
  box-shadow: 0 18px 34px rgba(8, 80, 122, 0.16);
}

.popular-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 70px at 80% 18%, rgba(255, 255, 255, 0.25), transparent 60%),
    repeating-linear-gradient(
      -12deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px,
      transparent 18px
    );
  opacity: 0.75;
}

.popular-card::after {
  content: "查看航期";
  position: absolute;
  right: 16px;
  bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
}

.popular-card span {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 1;
  display: grid;
  gap: 3px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.popular-card .country-english {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.popular-card strong {
  position: absolute;
  left: 18px;
  right: 112px;
  bottom: 16px;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.popular-card em {
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  font-weight: 800;
}

.popular-card small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.popular-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(8, 80, 122, 0.24);
}

.results {
  padding-bottom: 64px;
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  color: var(--muted);
}

.result-meta p {
  margin: 0;
}

.trip-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15, 35, 55, 0.03);
  overflow: hidden;
}

.trip-row {
  display: grid;
  grid-template-columns: 165px 230px minmax(230px, 1fr) 90px 110px 24px;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  padding: 18px 16px;
  text-align: left;
}

.trip-row:last-child {
  border-bottom: 0;
}

.trip-row:hover,
.trip-row:focus-visible {
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow);
}

.trip-row--selected {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.date-year,
.date-range,
.route-name,
.price-value {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
}

.date-year,
.date-range {
  display: block;
  white-space: nowrap;
}

.date-sub,
.route-port,
.ship-meta,
.price-prefix,
.detail-line,
.field-caption,
.date-label {
  color: var(--muted);
  font-size: 14px;
}

.date-block {
  display: grid;
  gap: 3px;
  justify-items: start;
}

.field-caption,
.date-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
}

.ship-name {
  display: block;
  color: var(--primary-dark);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-name {
  display: block;
}

.route-mark {
  color: var(--success);
}

.trip-row--detailed {
  grid-template-columns: 165px minmax(230px, 0.8fr) minmax(230px, 1.2fr) 90px 110px 24px;
}

.availability-block {
  display: grid;
  justify-items: start;
}

.availability-count {
  color: var(--muted);
  font-weight: 800;
}

.circle-row {
  display: flex;
  gap: 8px;
}

.circle {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 900;
}

.circle--success {
  color: var(--success);
}

.circle--warning {
  color: var(--warning);
}

.circle--danger {
  color: var(--danger);
}

.status-pill,
.deal-pill,
.cabin-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 800;
}

.cabin-pill {
  justify-self: start;
  width: fit-content;
  min-height: 28px;
  padding: 3px 14px;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill {
  background: #e6ebef;
  color: var(--muted);
}

.deal-pill {
  margin-top: 8px;
  background: #1fc091;
  color: #fff;
}

.price-cell {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
}

.price-prefix {
  display: grid;
  line-height: 1.05;
}

.price-value {
  font-size: 20px;
  font-weight: 900;
}

.row-menu {
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.load-more {
  display: block;
  margin: 22px auto 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 44px 24px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 20, 28, 0.52);
}

.trip-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(760px, 48vw);
  min-width: 620px;
  background: var(--surface);
  overflow: auto;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.16);
}

.drawer-content {
  padding: 36px 34px 58px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 30px;
  touch-action: manipulation;
}

.icon-button:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.drawer-close,
.modal-close {
  position: absolute;
  right: 22px;
  top: 18px;
  z-index: 2;
}

.drawer-title,
.modal-title {
  margin: 0;
  color: var(--text);
  font-size: 26px;
  line-height: 1.15;
}

.drawer-hero {
  display: grid;
  gap: 8px;
}

.drawer-vessel,
.drawer-route-title,
.drawer-port-meta,
.drawer-dive-meta {
  margin: 0;
}

.drawer-vessel {
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

.drawer-route-title {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.drawer-port-meta,
.drawer-dive-meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.drawer-port-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-dive-meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 2px 0 16px;
}

.link-button {
  min-height: 26px;
  border: none;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-weight: 800;
}

.drawer-link-muted {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  color: var(--muted);
  font-weight: 800;
}

.drawer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 0;
}

.copy-button {
  min-height: 44px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 0 24px;
  font-weight: 900;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0 0;
}

.cabin-list {
  display: grid;
  gap: 0;
}

.cabin-group {
  border-bottom: 1px solid var(--line);
  padding: 22px 0 18px;
}

.cabin-group:last-child {
  border-bottom: 0;
}

.cabin-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.cabin-group-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.cabin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 148px 108px;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

.cabin-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.cabin-thumb {
  width: 74px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-muted);
}

.cabin-price {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.cabin-pill--ok {
  background: #dff4f1;
  color: #078f84;
  box-shadow: 0 6px 16px rgba(69, 191, 181, 0.16);
}

.cabin-pill--full {
  background: rgba(255, 87, 72, 0.12);
  color: #d53d31;
}

.cabin-pill--consult {
  background: #e6ebef;
  color: var(--muted);
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
}

.detail-modal {
  position: relative;
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 10px;
  background: var(--surface);
  padding: 30px;
  overflow: auto;
  box-shadow: var(--shadow);
}

.detail-modal--cabin-types {
  width: min(520px, calc(100vw - 48px));
  padding: 26px 24px 34px;
}

.detail-modal--cabin-types .modal-title,
.detail-modal--deck-plan .modal-title {
  padding-right: 42px;
  font-size: 18px;
}

.detail-modal--deck-plan {
  width: min(760px, calc(100vw - 48px));
  padding: 34px 40px;
}

.deck-plan-list {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

.deck-plan-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-muted);
}

.deck-plan-image {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  object-position: center;
}

.cabin-types-list {
  display: grid;
  gap: 26px;
  margin-top: 20px;
}

.cabin-type-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.cabin-type-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cabin-type-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.cabin-type-head p {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cabin-type-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-muted);
}

.cabin-type-image,
.cabin-type-placeholder {
  display: block;
  width: 100%;
  height: 270px;
}

.cabin-type-image {
  object-fit: cover;
  object-position: center;
}

.cabin-type-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.cabin-type-arrow {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0;
  line-height: 0;
  padding: 0;
}

.cabin-type-arrow::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.cabin-type-arrow--prev {
  left: 10px;
}

.cabin-type-arrow--prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.cabin-type-arrow--next {
  right: 10px;
}

.cabin-type-arrow--next::before {
  transform: translateX(-2px) rotate(45deg);
}

.cabin-type-counter {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(11, 31, 51, 0.82);
  color: #fff;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 900;
}

.cabin-type-info {
  display: grid;
  gap: 8px;
  margin: 18px 0 8px;
  color: #26384d;
  font-size: 13px;
  line-height: 1.45;
}

.cabin-type-card--no-image .cabin-type-info {
  margin-top: 8px;
}

.cabin-type-info div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
}

.cabin-type-info dt {
  color: var(--muted);
  font-weight: 800;
}

.cabin-type-info dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cabin-list-link {
  min-height: 24px;
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.trip-summary-card,
.price-details-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.trip-summary-card {
  margin: 16px 0 22px;
}

.summary-head {
  display: grid;
  justify-items: start;
  gap: 6px;
  text-align: left;
}

.summary-ship {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.summary-route {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.summary-original {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.summary-image-wrap {
  position: relative;
  margin: 18px auto 0;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-muted);
}

.summary-ship-image {
  display: block;
  width: 100%;
  height: clamp(190px, 30vw, 280px);
  object-fit: cover;
  object-position: center;
}

.summary-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 31, 51, 0.18);
  cursor: pointer;
}

.summary-gallery-arrow::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.summary-gallery-arrow--prev {
  left: 14px;
}

.summary-gallery-arrow--prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.summary-gallery-arrow--next {
  right: 14px;
}

.summary-gallery-arrow--next::before {
  transform: translateX(-2px) rotate(45deg);
}

.summary-gallery-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(11, 31, 51, 0.82);
  color: #fff;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 900;
}

.summary-timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 18px;
}

.summary-date {
  display: grid;
  gap: 8px;
}

.summary-date p {
  margin: 0;
}

.summary-date--start {
  justify-items: start;
  text-align: left;
}

.summary-date--end {
  justify-items: end;
  text-align: right;
}

.timeline-line {
  height: 1px;
  width: 100%;
  background: var(--line-strong);
}

.price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0 22px;
}

.info-only {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.price-details-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.detail-column h3,
.program h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.detail-column ul {
  margin: 0;
  padding-left: 18px;
}

.detail-column li {
  margin: 0 0 8px;
  color: #26384d;
  font-size: 14px;
}

.program {
  display: grid;
  gap: 16px;
}

.program-day {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.program-day h4 {
  margin: 0 0 8px;
}

.program-day p {
  margin: 0;
  color: #26384d;
}

.original-toggle {
  margin: 14px 0 4px;
  min-height: 40px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 0 16px;
  font-weight: 900;
}

.contact-panel {
  margin-bottom: 72px;
}

.contact-lead {
  max-width: 820px;
  color: var(--muted);
}

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

.contact-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-muted);
  padding: 18px;
}

.contact-grid h3 {
  margin: 0 0 10px;
}

.service-rules-card {
  display: flex;
  flex-direction: column;
}

.service-rules-card ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.58;
}

.contact-grid p,
.contact-grid ul {
  margin: 0;
  color: #26384d;
}

.contact-grid p + p {
  margin-top: 10px;
}

.wechat-qr-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin: 12px 0;
}

.wechat-qr-image {
  display: block;
  width: min(180px, 100%);
  border-radius: 12px;
  background: #fff;
}

.wechat-qr-card figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-grid li + li {
  margin-top: 8px;
}

.service-rules-card li + li {
  margin-top: 0;
}

.contact-link {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0 30px;
  text-align: center;
}

.icp-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.icp-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.error-banner {
  border: 1px solid rgba(255, 87, 72, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 87, 72, 0.08);
  color: #a63027;
  padding: 14px 16px;
}

@media (max-width: 1100px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-note {
    text-align: left;
  }

  .header-actions {
    justify-items: start;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trip-row,
  .trip-row--detailed {
    grid-template-columns: 150px minmax(180px, 1fr) 160px;
  }

  .trip-row > :nth-child(6) {
    display: none;
  }

  .trip-drawer {
    width: min(700px, calc(100vw - 36px));
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding-top: 24px;
  }

  .search-panel {
    padding: 20px;
  }

  .field-grid,
  .home-search-grid,
  .price-details-card,
  .popular-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .search-actions,
  .result-meta,
  .drawer-toolbar,
  .cabin-group-header,
  .price-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    min-width: 0;
    width: 100%;
  }

  .trip-row,
  .trip-row--detailed {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .trip-row > :nth-child(2),
  .trip-row > :nth-child(6) {
    display: block;
  }

  .price-cell {
    justify-content: flex-start;
  }

  .trip-drawer {
    width: min(620px, calc(100vw - 18px));
  }

  .drawer-content {
    padding: 66px 18px 42px;
  }

  .cabin-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .detail-modal {
    padding: 56px 18px 28px;
  }

  .detail-modal--cabin-types {
    width: min(100%, calc(100vw - 28px));
  }

  .detail-modal--deck-plan {
    width: min(100%, calc(100vw - 28px));
    padding: 56px 18px 28px;
  }

  .cabin-type-image,
  .cabin-type-placeholder {
    height: 220px;
  }

  .summary-ship-image {
    height: 190px;
  }

  .summary-timeline {
    grid-template-columns: 1fr;
  }

  .timeline-line {
    display: none;
  }
}
