:root {
  --green: #063a25;
  --green-deep: #002e1d;
  --green-soft: #e8f0eb;
  --red: #c94231;
  --ice: #dbeaec;
  --ink: #17211d;
  --muted: #6d7772;
  --paper: #f5f4ef;
  --white: #ffffff;
  --line: #dfe4df;
  --shadow: 0 22px 70px rgba(0, 43, 27, .14);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 5vw;
  background: var(--green-deep);
  color: white;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand { width: 300px; display: block; overflow: hidden; }
.brand img { display: block; width: 100%; height: 50px; object-fit: cover; object-position: center; }
nav { display: flex; align-self: stretch; }
.nav-link {
  color: rgba(255,255,255,.7);
  background: transparent;
  border: 0;
  padding: 0 18px;
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
}
.nav-link.active { color: white; }
.nav-link.active::after {
  content: ""; position: absolute; height: 3px; bottom: 0; left: 18px; right: 18px; background: var(--red);
}
.nav-link span { background: rgba(255,255,255,.15); border-radius: 12px; padding: 1px 7px; margin-left: 4px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.data-status { font-size: 12px; color: rgba(255,255,255,.72); }
.data-status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #77d6a2; margin-right: 7px; box-shadow: 0 0 0 4px rgba(119,214,162,.12); }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: white; background: rgba(255,255,255,.1); font-size: 12px; display:flex; align-items:center; justify-content:center; text-decoration:none; }

.hero { height: 430px; position: relative; overflow: hidden; background: var(--green); }
.hero-photo { position: absolute; inset: 0; background: url("assets/antarctica-hero.jpg") center 47%/cover no-repeat; filter: saturate(.7) contrast(1.04); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,42,26,.92) 0%, rgba(0,42,26,.62) 46%, rgba(0,42,26,.05) 84%); }
.hero-content { position: relative; color: white; width: min(1180px,90%); margin: 0 auto; padding-top: 78px; }
.eyebrow, .step-label { letter-spacing: .18em; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.eyebrow { color: rgba(255,255,255,.72); margin: 0 0 20px; }
.hero h1 { font-family: "Songti SC", "STSong", serif; font-size: clamp(40px,5vw,70px); line-height: 1.08; letter-spacing: .02em; margin: 0; font-weight: 500; }
.hero-kicker { margin: 18px 0 0; color: white; font-family: "Songti SC", "STSong", serif; font-size: clamp(22px,2.2vw,32px); }
.hero-content > p:last-child { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 16px; }

.search-shell {
  width: min(1180px, 90%);
  margin: -54px auto 0;
  position: relative;
  z-index: 3;
  background: white;
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 30px 34px 34px;
}
.search-intro, .results-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.step-label { color: var(--red); }
.search-intro h2, .results-heading h2, .compare-header h2 { font-family: "Songti SC", "STSong", serif; margin: 7px 0 0; font-size: 27px; font-weight: 600; }
.text-button { border: 0; background: transparent; color: var(--muted); }
.filters { display: grid; grid-template-columns: .75fr 1.25fr 1.35fr 1.2fr auto; gap: 14px; margin-top: 25px; align-items: start; }
.filters label, .export-bar label { display: flex; flex-direction: column; gap: 8px; }
.filters label > span, .export-bar label > span { font-size: 12px; color: var(--muted); font-weight: 600; }
.filters input, .filters select, .export-bar input {
  width: 100%; min-height: 48px; border: 1px solid var(--line); background: #fafbf9; border-radius: 3px; padding: 0 14px; color: var(--ink); outline: none;
}
.filters input:focus, .filters select:focus, .export-bar input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(6,58,37,.08); }
.filters small { color: #929a96; font-size: 10px; }
.input-with-unit { display: flex; position: relative; }
.input-with-unit b { position: absolute; right: 14px; top: 15px; font-size: 12px; color: var(--muted); }
.budget-line { display: grid; grid-template-columns: 76px 1fr; }
.budget-line select { border-right: 0; border-radius: 3px 0 0 3px; padding: 0 8px; }
.budget-line input { border-radius: 0 3px 3px 0; }
.primary-button, .secondary-button, .compare-button {
  min-height: 48px; border-radius: 3px; padding: 0 19px; border: 1px solid var(--green); font-weight: 700;
}
.primary-button { background: var(--green); color: white; display: flex; align-items: center; justify-content: center; gap: 28px; }
.primary-button:hover { background: #0a4d32; }
.secondary-button { color: var(--green); background: white; }
.filters > .primary-button { margin-top: 20px; min-width: 150px; }

.results-section { width: min(1180px,90%); margin: 66px auto 90px; }
.results-heading { margin-bottom: 24px; }
.results-heading p { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
.view-actions { display: flex; gap: 9px; align-items: center; }
.filter-chip { border: 1px solid var(--line); background: transparent; border-radius: 20px; padding: 9px 14px; color: var(--muted); font-size: 12px; }
.filter-chip.active { background: var(--green-soft); border-color: transparent; color: var(--green); font-weight: 700; }
.compare-button { background: var(--green); color: white; min-height: 38px; font-size: 12px; }
.compare-button:disabled { opacity: .32; cursor: default; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.voyage-card { background: white; border: 1px solid transparent; border-radius: 5px; overflow: hidden; display: grid; grid-template-columns: 42% 58%; min-height: 278px; transition: .25s ease; position: relative; }
.voyage-card:hover { transform: translateY(-3px); border-color: #cbd6cf; box-shadow: 0 16px 36px rgba(5,48,30,.08); }
.card-image { position: relative; background-size: cover; background-position: center; min-height: 278px; }
.match-badge { position: absolute; left: 13px; top: 13px; background: rgba(0,42,26,.9); color: white; border-radius: 2px; padding: 8px 10px; font-size: 11px; }
.match-badge.high::before { content:""; display:inline-block; width:6px; height:6px; background:#83d6a7; border-radius:50%; margin-right:6px; }
.offer-badge { position:absolute; right:13px; top:13px; padding:8px 10px; border-radius:2px; background:var(--red); color:white; font-size:11px; font-weight:800; }
.card-body { padding: 21px 22px 18px; display: flex; flex-direction: column; }
.operator { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.card-body h3 { font-family: "Songti SC", "STSong", serif; font-size: 21px; line-height: 1.28; margin: 0; }
.ship-line { color: var(--muted); font-size: 12px; margin: 6px 0 15px; }
.meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 13px; }
.meta-row span { display: block; color: #8a928e; font-size: 9px; margin-bottom: 3px; }
.meta-row b { font-size: 12px; font-weight: 600; }
.price-line { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; padding-top: 15px; }
.price-line small { display: block; color: var(--muted); font-size: 9px; }
.price-line del { display:block; margin-top:3px; color:#919894; font-size:11px; }
.price-line strong { font-size: 22px; color: var(--green); }
.price-line strong em { font-size: 11px; font-style: normal; font-weight: 500; margin-left: 3px; color: var(--muted); }
.offer-note { display:block; margin-top:3px; color:var(--red); font-size:9px; font-weight:700; }
.card-buttons { display: flex; gap: 7px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); background: white; color: var(--green); border-radius: 2px; }
.icon-button.selected { background: var(--green-soft); border-color: var(--green); }
.details-button { height: 36px; border: 0; color: white; background: var(--green); border-radius: 2px; padding: 0 13px; font-size: 11px; font-weight: 700; }
.empty-state { text-align: center; background: white; padding: 75px 20px; color: var(--muted); }
.empty-state div { font-size: 42px; color: var(--green); }
.empty-state h3 { color: var(--ink); }

.seo-guide { width:min(1180px,90%); margin:-25px auto 90px; padding:54px; background:#fff; border:1px solid var(--line); }
.seo-guide-heading { max-width:760px; }
.seo-guide-heading h2, .seo-faq h2 { font-family:"Songti SC","STSong",serif; color:var(--green); font-size:30px; margin:8px 0 14px; }
.seo-guide-heading > p:last-child { color:var(--muted); line-height:1.85; margin:0; }
.seo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:32px; }
.seo-card { padding:25px; background:var(--paper); border-top:3px solid var(--green); }
.seo-card > span { color:var(--red); font-size:11px; font-weight:800; letter-spacing:.15em; }
.seo-card h3 { margin:10px 0 8px; font-size:17px; }
.seo-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.75; }
.seo-faq { margin-top:42px; max-width:900px; }
.seo-faq details { border-top:1px solid var(--line); padding:18px 0; }
.seo-faq details:last-child { border-bottom:1px solid var(--line); }
.seo-faq summary { cursor:pointer; color:var(--ink); font-weight:700; }
.seo-faq details p { color:var(--muted); font-size:13px; line-height:1.8; margin:12px 0 0; }
.seo-links { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }
.seo-links a { color:white; background:var(--green); text-decoration:none; padding:12px 18px; border-radius:2px; font-size:13px; font-weight:700; }

.detail-panel, .modal { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0; transition: .22s ease; }
.detail-panel.open, .modal.open { pointer-events: auto; opacity: 1; }
.panel-backdrop, .modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(0,30,19,.66); width: 100%; }
.panel-card { position: absolute; right: 0; top: 0; height: 100%; width: min(720px,92vw); background: var(--paper); overflow-y: auto; transform: translateX(100%); transition: .28s ease; }
.detail-panel.open .panel-card { transform: translateX(0); }
.panel-close { position: absolute; right: 18px; top: 15px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 24px; color: var(--green); }
.detail-hero { height: 290px; background-size: cover; background-position: center; position: relative; color: white; padding: 160px 38px 28px; }
.detail-hero::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(0,38,23,.9),transparent 76%); }
.detail-hero > * { position:relative; z-index:1; }
.detail-hero h2 { font-family:"Songti SC","STSong",serif; font-size:32px; margin:8px 0; }
.detail-hero p { margin:0; color:rgba(255,255,255,.8); }
.detail-content { padding: 30px 38px 60px; }
.detail-stats { display:grid; grid-template-columns:repeat(4,1fr); background:white; border:1px solid var(--line); }
.detail-stats div { padding:15px; border-right:1px solid var(--line); }
.detail-stats div:last-child { border:0; }
.detail-stats span { display:block; font-size:9px; color:var(--muted); margin-bottom:6px; }
.detail-stats b { font-size:13px; }
.detail-section { margin-top:30px; }
.detail-section h3 { font-family:"Songti SC","STSong",serif; font-size:20px; }
.timeline { border-left:1px solid #b9ccc0; margin-left:7px; }
.day { position:relative; padding:0 0 22px 23px; }
.day::before { content:""; position:absolute; width:9px; height:9px; border-radius:50%; background:var(--green); left:-5px; top:5px; box-shadow:0 0 0 5px var(--paper); }
.day b { font-size:12px; color:var(--green); }
.day h4 { margin:4px 0; font-size:14px; }
.day p { margin:0; color:var(--muted); line-height:1.65; font-size:12px; }
.include-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.include-box { background:white; padding:18px; border:1px solid var(--line); }
.include-box h4 { margin:0 0 10px; color:var(--green); }
.include-box.excluded h4 { color:var(--red); }
.include-box ul { padding-left:17px; margin:0; color:var(--muted); font-size:12px; line-height:1.75; }
.source-link { display:inline-flex; color:var(--green); font-weight:700; text-decoration:none; border-bottom:1px solid var(--green); padding-bottom:3px; }

.compare-sheet { position:relative; width:min(1080px,94vw); max-height:90vh; overflow:auto; margin:5vh auto; background:var(--paper); border-radius:5px; padding:38px; transform:translateY(20px); transition:.22s ease; }
.modal.open .compare-sheet { transform:translateY(0); }
.compare-header p { color:var(--muted); font-size:13px; }
.compare-table { width:100%; border-collapse:collapse; margin:25px 0; background:white; font-size:12px; }
.compare-table th, .compare-table td { border:1px solid var(--line); padding:13px; text-align:left; vertical-align:top; }
.compare-table th { color:var(--muted); width:115px; background:#f6f8f5; }
.compare-table td strong { color:var(--green); }
.export-bar { display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:end; }
.export-bar .primary-button { min-width:130px; }

footer { background:var(--green-deep); color:rgba(255,255,255,.6); padding:45px 5vw; display:flex; align-items:center; gap:30px; font-size:11px; }
footer img { width:260px; height:40px; object-fit:cover; }
footer p:last-child { margin-left:auto; }
.footer-links { display:flex; gap:16px; }
.footer-links a { color:rgba(255,255,255,.78); text-decoration:none; }
.footer-links a:hover { color:white; }

@media (max-width: 950px) {
  nav, .data-status { display:none; }
  .filters { grid-template-columns:repeat(2,1fr); }
  .filters > .primary-button { margin-top:0; }
  .results-grid { grid-template-columns:1fr; }
  .voyage-card { grid-template-columns:38% 62%; }
  .seo-grid { grid-template-columns:1fr; }
  .footer-links { display:none; }
}
@media (max-width: 650px) {
  .topbar { padding:0 18px; height:66px; }
  .brand { width:210px; }
  .hero { height:380px; }
  .hero-content { padding-top:80px; }
  .search-shell { width:94%; padding:24px 19px; }
  .filters { grid-template-columns:1fr; }
  .results-section { width:94%; margin-top:48px; }
  .results-heading { align-items:flex-start; gap:18px; flex-direction:column; }
  .view-actions { flex-wrap:wrap; }
  .voyage-card { grid-template-columns:1fr; }
  .card-image { min-height:210px; }
  .detail-content { padding:25px 20px 50px; }
  .detail-hero { padding-left:20px; }
  .detail-stats { grid-template-columns:1fr 1fr; }
  .detail-stats div:nth-child(2) { border-right:0; }
  .include-grid { grid-template-columns:1fr; }
  .compare-sheet { padding:28px 18px; }
  .export-bar { grid-template-columns:1fr 1fr; }
  .export-bar label { grid-column:1 / -1; }
  .seo-guide { width:94%; padding:34px 20px; margin-top:-20px; }
  .seo-guide-heading h2, .seo-faq h2 { font-size:25px; }
  footer { flex-direction:column; align-items:flex-start; }
  footer p:last-child { margin-left:0; }
}

@media print {
  html, body { background:#fff !important; }
  body > * { display:none !important; }
  #printDocument { display:block !important; }
  @page { size:A4; margin:16mm 15mm 18mm; }
}
.detail-waiting { color:#7b8580; font-size:13px; line-height:1.8; }
.print-document { color:#17211d; font-family:"PingFang SC","Hiragino Sans GB",sans-serif; font-size:10.5pt; line-height:1.72; }
.print-voyage { page-break-before:always; }
.print-voyage-first { page-break-before:auto; }
.print-voyage-header { position:relative; min-height:72mm; box-sizing:border-box; margin:0 0 7mm; padding:35mm 8mm 8mm; background-size:cover; background-position:center; color:white; display:flex; flex-direction:column; justify-content:flex-end; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.print-logo { position:absolute; top:6mm; left:7mm; width:32mm; height:8mm; overflow:hidden; }
.print-logo img { display:block; width:32mm; max-width:100%; height:auto; }
.print-label { color:#ef5a48; font-size:8pt; font-weight:700; letter-spacing:2px; text-transform:uppercase; }
.print-voyage-header h2 { font-family:"Songti SC","STSong",serif; color:white; font-size:24pt; line-height:1.25; font-weight:600; margin:3mm 0 2mm; }
.print-voyage-header p { margin:0; color:rgba(255,255,255,.88); font-size:10pt; }
.print-facts { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid #d6dfda; margin-bottom:9mm; }
.print-facts div { padding:4mm 5mm; border-right:1px solid #d6dfda; }
.print-facts div:last-child { border:0; }
.print-facts span { display:block; color:#7b8580; font-size:7.5pt; margin-bottom:1.5mm; }
.print-facts strong { color:#063a25; font-size:10.5pt; }
.print-section { margin:0 0 9mm; }
.print-section > h3 { font-family:"Songti SC","STSong",serif; color:#063a25; font-size:16pt; margin:0 0 4mm; padding-bottom:2mm; border-bottom:1px solid #cbd7d1; }
.print-summary { margin:0; text-align:justify; line-height:1.9; }
.print-day { display:grid; grid-template-columns:25mm 1fr; gap:5mm; padding:4mm 0; border-bottom:1px solid #e2e8e4; break-inside:avoid; page-break-inside:avoid; }
.print-day > div { color:#c94231; font-weight:700; font-size:9pt; }
.print-day h4 { color:#17211d; font-size:10.5pt; margin:0 0 1.5mm; }
.print-day p { color:#4f5c56; margin:0; line-height:1.75; text-align:justify; }
.print-fees { page-break-before:auto; }
.print-fee-grid { display:grid; grid-template-columns:1fr 1fr; gap:6mm; align-items:start; }
.print-fee-grid > div { border-top:3px solid #0b593d; background:#f3f6f4; padding:5mm; break-inside:avoid; page-break-inside:avoid; }
.print-fee-grid > .excluded { border-color:#c94231; }
.print-fee-grid h4 { color:#0b593d; font-size:11pt; margin:0 0 3mm; }
.print-fee-grid .excluded h4 { color:#c94231; }
.print-fee-grid ul { margin:0; padding-left:5mm; }
.print-fee-grid li { margin-bottom:1.5mm; line-height:1.55; }
.print-source { border:1px solid #d6dfda; padding:4mm 5mm; font-size:8pt; line-height:1.55; break-inside:avoid; overflow-wrap:anywhere; }
.print-source b { display:block; color:#063a25; margin-bottom:1mm; }
.print-source span { color:#65716b; }
.print-disclaimer { margin-top:10mm; border-top:1px solid #cbd7d1; padding-top:4mm; color:#7b8580; font-size:7.5pt; line-height:1.6; }
.sync-summary { color:#65716b; font-size:12px; margin-top:7px; }
.sync-summary .ok { color:#07563a; }
.sync-summary .warn { color:#c94231; }
.live-total { display:block; color:#07563a; font-weight:700; margin-bottom:8px; }
.source-status-list { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:8px; }
.source-state { padding:4px 8px; border-radius:20px; background:#e8ece9; color:#65716b; }
.detail-export-actions > div { display:flex; gap:12px; flex-wrap:wrap; }
.detail-export-actions .primary-button, .detail-export-actions .secondary-button { min-width:150px; min-height:46px; }
.itinerary-notice { margin:22px 0 0; padding:14px 16px; color:#65716b; background:#f3f6f4; border-left:2px solid #8eaaa0; line-height:1.75; }
.print-itinerary-notice { margin:5mm 0 0; padding:3mm 4mm; color:#65716b; background:#f3f6f4; border-left:1.5mm solid #8eaaa0; line-height:1.7; break-inside:avoid; page-break-inside:avoid; }
.source-state.ok { background:#e4f2eb; color:#07563a; }
.source-state.failed { background:#fae9e5; color:#b8382b; }
.primary-button:disabled { opacity:.65; cursor:wait; }
