:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #64717b;
  --line: #d7e0e2;
  --paper: #f8faf8;
  --white: #ffffff;
  --green: #126b56;
  --green-dark: #0c4b40;
  --gold: #d9971e;
  --coral: #dd6043;
  --sky: #d9ecf2;
  --shadow: 0 18px 45px rgba(19, 45, 52, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(215, 224, 226, 0.86);
  background: rgba(248, 250, 248, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--coral));
  box-shadow: 0 10px 24px rgba(18, 107, 86, 0.22);
}
.brand strong, .brand small { display: block; }
.brand small, .route-meta, .route-desc { color: var(--muted); }
.brand small { font-size: 12px; }

.nav-links, .header-tools, .hero-actions, .toolbar, .admin-stats, .row-actions, .lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.lang-switch { gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang-btn {
  min-height: 38px;
  min-width: 42px;
  border: 0;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn.active { color: var(--white); background: var(--green); }
.lang-btn:hover:not(.active) { color: var(--green-dark); background: #eaf3ef; }
.nav-links { justify-content: flex-end; color: var(--muted); font-size: 14px; }
.nav-links a { padding: 8px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--green-dark); background: #eaf3ef; }

.btn, .filter-chip, .admin-tab {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover, .filter-chip:hover, .admin-tab:hover { transform: translateY(-1px); }
.btn.primary { color: var(--white); background: var(--green); box-shadow: 0 12px 28px rgba(18, 107, 86, 0.22); }
.btn.secondary, .btn.ghost { color: var(--green-dark); border-color: rgba(18, 107, 86, 0.28); background: rgba(255, 255, 255, 0.92); }
.link-btn { border: 0; color: var(--green-dark); background: transparent; cursor: pointer; }
.user-pill {
  border: 1px solid #c7dad5;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--green-dark);
  background: #eff7f4;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #102a30;
}
.hero-slides, .hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s ease, transform 1.8s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 27, 31, 0.12), rgba(12, 27, 31, 0.8));
  z-index: 1;
}
.hero-dots {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dot.active { background: var(--white); border-color: var(--white); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  border: 0;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 36px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.32); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100% - 36px));
  margin: 0 auto 72px;
  color: var(--white);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: clamp(52px, 8vw, 96px); line-height: 1; }
.hero-copy { max-width: 720px; margin: 18px 0 28px; color: rgba(255,255,255,0.9); font-size: 20px; line-height: 1.7; }

.metrics {
  width: min(1120px, calc(100% - 36px));
  margin: -34px auto 48px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.metrics article { padding: 24px; background: var(--white); }
.metrics strong { display: block; color: var(--green-dark); font-size: 30px; }
.metrics span { color: var(--muted); }

.section { width: min(1180px, calc(100% - 36px)); margin: 0 auto 70px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
h3 { margin: 0 0 16px; }
.search-box { display: grid; gap: 6px; min-width: min(320px, 100%); color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
}

.toolbar { margin-bottom: 22px; }
.filter-chip { color: var(--green-dark); border-color: #c7dad5; background: #eff7f4; }
.filter-chip.active { color: var(--white); background: var(--green); }
.route-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.planner-panel, .admin-form, .chart-panel, .contact-section, .lead-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}
.planner-panel { position: sticky; top: 94px; display: grid; gap: 18px; }
.planner-panel label, .admin-form label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.route-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 32, 38, 0.06);
}
.route-image { min-height: 190px; background-position: center; background-size: cover; }
.route-body { padding: 18px; }
.route-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.route-title h3 { margin: 0 0 4px; font-size: 21px; }
.rating { white-space: nowrap; color: var(--gold); font-weight: 800; }
.tags, .spot-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag, .spot {
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--green-dark);
  background: #edf6f2;
  font-size: 12px;
}
.route-meta, .route-desc { line-height: 1.65; }
.route-signup { width: 100%; margin-top: 14px; }

.destination-band { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.destination-card { border-left: 4px solid var(--coral); border-radius: 8px; padding: 18px; background: var(--white); }

.private-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: start;
  padding: 42px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12,75,64,0.92), rgba(18,107,86,0.8)),
    url("https://images.unsplash.com/photo-1528127269322-539801943592?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
}
.private-section .eyebrow, .private-section p { color: rgba(255,255,255,0.86); }
.private-form, .contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.private-form textarea, .private-form button, .private-form output, .contact-form textarea, .contact-form button, .contact-form output { grid-column: 1 / -1; }
output { min-height: 44px; padding: 12px; border-radius: 8px; color: var(--green-dark); background: rgba(255,255,255,0.92); }
.contact-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 32px; }

.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); }
.admin-sidebar { border-right: 1px solid var(--line); padding: 24px; background: #eef5f1; }
.admin-brand { margin-bottom: 28px; }
.admin-tab {
  width: 100%;
  margin-bottom: 10px;
  text-align: left;
  color: var(--green-dark);
  background: transparent;
}
.admin-tab.active { color: var(--white); background: var(--green); }
.admin-workspace { padding: 30px clamp(18px, 4vw, 44px); }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.admin-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-form .wide, .admin-form button { grid-column: 1 / -1; }
.stat-pill { border-radius: 8px; padding: 12px 14px; color: var(--green-dark); background: var(--sky); }
.admin-list { display: grid; gap: 12px; margin: 16px 0; }
.admin-row, .lead-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}
.admin-home-link { display: inline-flex; justify-content: center; margin-top: 12px; }
.alert-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
  font-size: 13px;
  font-weight: 600;
}
.admin-toolbar { margin-bottom: 14px; }
.admin-filter { min-width: 180px; }
.table-wrap select, .table-wrap input, .table-wrap textarea {
  min-width: 120px;
  padding: 8px 10px;
  font-size: 13px;
}
.table-wrap textarea { min-height: 72px; resize: vertical; }
#order-table { min-width: 1180px; }
#user-table { min-width: 720px; }
.icon-btn { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--green-dark); background: var(--white); cursor: pointer; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--green-dark); background: #eef7f4; }
.chart-panel { margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 40px; gap: 12px; align-items: center; margin: 12px 0; }
.bar-row div { height: 12px; overflow: hidden; border-radius: 99px; background: #e3ecec; }
.bar-row i { display: block; height: 100%; border-radius: inherit; background: var(--coral); }

.modal-backdrop[hidden] { display: none !important; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 22, 24, 0.45);
}
.modal-card {
  position: relative;
  width: min(560px, 100%);
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}
.modal-form { display: grid; gap: 12px; }
.modal-step { margin: 10px 0 16px; color: var(--green-dark); font-weight: 700; }
.modal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.modal-grid .wide { grid-column: 1 / -1; }
.modal-grid label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.modal-summary {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #f8fbfa;
}
.modal-summary p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.modal-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.modal-summary-grid div { border-radius: 8px; padding: 10px 12px; background: var(--white); }
.modal-summary-grid span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.modal-summary-grid strong { color: var(--green-dark); }
.modal-note { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.auth-switch { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.form-feedback {
  margin: 0 0 14px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
.form-feedback.error { color: #8c2f22; background: #fde8e2; }
.form-feedback.success { color: var(--green-dark); background: #e8f4ef; }

.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 30; }
.chat-toggle { border: 0; border-radius: 8px; padding: 14px 18px; color: var(--white); background: var(--coral); box-shadow: var(--shadow); cursor: pointer; font-size: 15px; }
.chat-panel {
  width: min(480px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; color: var(--white); background: var(--green); }
.chat-messages { max-height: 450px; min-height: 160px; overflow: auto; padding: 14px; }
.chat-messages p { margin: 0 0 10px; padding: 10px; border-radius: 8px; background: #eef7f4; font-size: 14px; line-height: 1.7; }
.chat-messages .mine { color: var(--white); background: var(--green); }
.chat-welcome { margin-bottom: 10px; padding: 12px; border-radius: 8px; background: #f0f7f4; border: 1px solid #c7dad5; line-height: 1.7; font-size: 13px; color: var(--green-dark); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--green-dark);
}

@media (max-width: 980px) {
  .site-header, .section-head { align-items: flex-start; flex-direction: column; }
  .metrics, .destination-grid, .private-section, .contact-section, .route-layout, .admin-shell { grid-template-columns: 1fr; }
  .planner-panel { position: static; }
  .route-grid { grid-template-columns: 1fr; }
  .admin-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .private-section, .contact-section, .admin-form { padding: 24px; }
  .private-form, .contact-form, .admin-form, .chat-form, .modal-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 22px; }
  .modal-summary-grid { grid-template-columns: 1fr; }
}

.modal-card--detail {
  width: min(840px, 100%);
  padding: 0;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-card--detail .modal-close { z-index: 5; color: var(--white); font-size: 32px; top: 16px; right: 16px; }
.detail-shell { display: grid; }
.detail-gallery { position: relative; }
.detail-main-img {
  min-height: 320px;
  background-position: center;
  background-size: cover;
}
.detail-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.detail-thumb {
  width: 80px;
  height: 56px;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s;
}
.detail-thumb:hover { border-color: var(--green); }
.detail-body { padding: 24px 28px 28px; }
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.detail-header h2 { margin: 8px 0 4px; font-size: 26px; }
.detail-price { text-align: right; }
.detail-price strong { display: block; color: var(--coral); font-size: 32px; }
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.detail-stats strong { color: var(--green-dark); font-size: 18px; margin-right: 4px; }
.detail-section { margin-bottom: 24px; }
.detail-section h3 { font-size: 18px; color: var(--green-dark); margin-bottom: 12px; }
.itinerary-list { display: grid; gap: 12px; }
.itinerary-day {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafdfb;
}
.day-badge {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.itinerary-day p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: var(--white);
}
.service-icon { display: block; font-size: 28px; margin-bottom: 8px; }
.service-item strong { display: block; margin-bottom: 4px; color: var(--green-dark); }
.service-item p { margin: 0; color: var(--muted); font-size: 13px; }
.color-palette { display: flex; align-items: center; gap: 14px; }
.color-swatch { width: 48px; height: 48px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.review-list { display: grid; gap: 10px; }
.review-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.detail-cta { padding-top: 20px; border-top: 1px solid var(--line); }
.detail-cta .btn { width: 100%; min-height: 52px; font-size: 17px; }
.route-image[data-route-detail], .route-title[data-route-detail] { cursor: pointer; }
.route-image[data-route-detail]:hover { opacity: 0.92; }

@media (max-width: 640px) {
  .modal-card--detail { max-height: 95vh; }
  .detail-main-img { min-height: 200px; }
  .detail-body { padding: 18px; }
  .detail-header { flex-direction: column; }
  .detail-price { text-align: left; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .itinerary-day { grid-template-columns: 54px 1fr; }
  .detail-stats { gap: 12px; }
}
