:root {
  --bg1: #f3f7f7;
  --bg2: #eaf1f2;
  --panel: #ffffff;
  --line: rgba(18, 46, 52, 0.1);
  --text: #16333a;
  --muted: #5f7880;
  --accent: #0e7c7b;
  --accent-strong: #0a5f5e;
  --accent-soft: #d8ecec;
  --gold: #c8973f;
  --gold-soft: #f5ead2;
  --price: #d9822b;
  --danger: #de3646;
  --good: #0e9f6e;
  --warn: #f2a33a;
  --shadow: 0 18px 40px rgba(12, 46, 52, 0.1);
  --shadow-soft: 0 8px 20px rgba(12, 46, 52, 0.07);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: 'Nunito Sans', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
  background:
    radial-gradient(circle at 14% 8%, rgba(14, 124, 123, 0.12), transparent 38%),
    radial-gradient(circle at 88% 4%, rgba(200, 151, 63, 0.14), transparent 36%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

h1,
h2,
h3 {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  margin-top: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.portal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 28px;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0a5f5e 0%, #0e7c7b 50%, #12464f 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 60, 60, 0.28);
  position: relative;
  overflow: hidden;
}

.promo-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 88% 20%, rgba(200, 151, 63, 0.35), transparent 46%);
}

.promo-banner > * {
  position: relative;
  z-index: 1;
}

.promo-tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--gold-soft);
  border: 1px solid rgba(200, 151, 63, 0.6);
  background: rgba(200, 151, 63, 0.14);
}

.promo-text {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.promo-text .promo-highlight {
  color: var(--gold-soft);
}

.promo-cta {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: linear-gradient(135deg, #f5ead2, #e7cf9a);
  box-shadow: 0 6px 16px rgba(200, 151, 63, 0.35);
  transition: 0.2s;
}

.promo-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.top-nav {
  position: sticky;
  top: 16px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.06em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(14, 124, 123, 0.3);
  border: 1px solid rgba(200, 151, 63, 0.5);
}

.top-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border-radius: 999px;
  background: rgba(14, 124, 123, 0.06);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: 0.2s;
}

.nav-icon {
  font-size: 15px;
  line-height: 1;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.7);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 6px 16px rgba(14, 124, 123, 0.28);
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--gold-soft);
}

.nav-link.active .nav-badge {
  color: var(--accent-strong);
  background: #fff;
}

main {
  display: grid;
  gap: 18px;
}

.hero {
  border-radius: calc(var(--radius) + 6px);
  padding: 44px 40px;
  background:
    radial-gradient(circle at 82% 18%, rgba(200, 151, 63, 0.4), transparent 48%),
    linear-gradient(135deg, #0a5f5e 0%, #0e7c7b 52%, #12464f 100%);
  color: #fff;
  box-shadow: 0 26px 60px rgba(10, 60, 60, 0.32);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.14), transparent 46%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(200, 151, 63, 0.5);
  background: rgba(200, 151, 63, 0.12);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.15;
}

.hero p {
  max-width: 640px;
  color: rgba(238, 246, 245, 0.92);
  font-size: 16px;
  margin: 0;
}

.hero-center {
  text-align: center;
}

.hero-center > * {
  margin-left: auto;
  margin-right: auto;
}

.hero-center p {
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 16px;
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
}

.hero-center .hero-stats {
  justify-content: center;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stats strong {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-soft);
}

.hero-stats span {
  font-size: 13px;
  color: rgba(238, 246, 245, 0.8);
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 24px 28px;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(circle at 90% 10%, rgba(200, 151, 63, 0.22), transparent 55%),
    linear-gradient(135deg, #0e7c7b, #0a5f5e);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-head .eyebrow {
  display: inline-block;
  margin: 0 0 6px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.page-head-sub {
  margin: 0;
  color: rgba(238, 246, 245, 0.85);
  font-size: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 -6px;
  padding-left: 14px;
  position: relative;
}

.section-head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.section-head h2 {
  margin: 0;
  font-size: 20px;
}

.section-clear {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  transition: 0.2s;
}

.section-clear:hover {
  background: var(--accent-soft);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.page-btn {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: 0.2s;
}

.page-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.page-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 6px 16px rgba(14, 124, 123, 0.28);
}

.page-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.page-ellipsis {
  color: var(--muted);
  padding: 0 2px;
}

.page-info {
  margin-left: 6px;
  font-size: 13px;
  color: var(--muted);
}

.search-card {
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

#search-form {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 12px;
}

#search-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

#search-form input,
#search-form select,
#login-form input,
#booking-form input,
#booking-form textarea,
#place-order-form input,
#place-order-form textarea,
button {
  border: 1px solid rgba(18, 46, 52, 0.18);
  background: #fbfdfd;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  width: 100%;
  transition: 0.2s;
}

#search-form input:hover,
#search-form select:hover {
  border-color: var(--accent);
}

#search-form input:focus,
#search-form select:focus,
#login-form input:focus,
#booking-form input:focus,
#place-order-form input:focus,
#booking-form textarea:focus,
#place-order-form textarea:focus,
button:focus-visible {
  outline: 2px solid rgba(14, 124, 123, 0.35);
  outline-offset: 2px;
  border-color: var(--accent);
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tour-cover {
  flex: 0 0 auto;
  width: 150px;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  text-decoration: none;
}

.tour-cover-image {
  transition: transform 0.45s ease;
}

.tour-card:hover .tour-cover-image {
  transform: scale(1.06);
}

.tour-cover-image {
  transition: transform 0.4s ease;
}

.tour-card:hover .tour-cover-image {
  transform: scale(1.06);
}

.tour-cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px dashed rgba(14, 124, 123, 0.35);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

.tour-cover-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.tour-card,
.panel,
.detail-panel {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
}

/* ---- 登录/注册面板 ---- */
.auth-panel {
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 36px 36px 28px;
  background: var(--panel);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(200, 151, 63, 0.5);
  box-shadow: 0 4px 14px rgba(14, 124, 123, 0.22);
}

.auth-logo span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(14, 124, 123, 0.07);
  margin-bottom: 24px;
}

.auth-tab {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--muted);
  transition: 0.2s;
}

.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 6px 16px rgba(14, 124, 123, 0.28);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.auth-field input {
  border: 1px solid rgba(18, 46, 52, 0.18);
  background: #fbfdfd;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  width: 100%;
  font-size: 15px;
  transition: 0.2s;
}

.auth-field input:focus {
  outline: 2px solid rgba(14, 124, 123, 0.32);
  outline-offset: 1px;
  border-color: var(--accent);
}

.auth-pw-wrap {
  position: relative;
  display: flex;
}

.auth-pw-wrap input {
  flex: 1;
  padding-right: 60px;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  width: auto;
  border-radius: 6px;
}

.pw-toggle:hover {
  background: var(--accent-soft);
}

.auth-submit {
  width: 100%;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.tour-card {
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: default;
}

.tour-card.is-visible:hover {
  transform: translateY(-4px);
  border-color: var(--accent-soft);
  box-shadow: 0 22px 45px rgba(12, 46, 52, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tour-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tour-title {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tour-title:hover {
  color: var(--accent);
}

.tour-body .meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.tour-body .meta .pin {
  color: var(--accent);
}

.stock {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tour-card .bottom {
  margin-top: auto;
  justify-content: flex-end;
}

.price {
  color: var(--price);
  font-weight: 800;
  font-size: 21px;
}

.price .cur {
  font-size: 13px;
  font-weight: 700;
  margin-right: 2px;
}

.tour-card.is-visible,
.panel.is-visible,
.detail-panel.is-visible,
.auth-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.45s ease;
}

.tour-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--gold);
  background: var(--gold-soft);
  margin-bottom: 10px;
}

.tour-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.tour-card .meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.desc {
  color: var(--text);
  font-size: 14px;
  min-height: 52px;
  margin: 0 0 12px;
}

.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
}

.tags span {
  font-size: 12px;
  color: var(--muted);
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}

.score {
  color: #2b2b2b;
  font-weight: 700;
}

.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.empty {
  border: 1px dashed #aec0ec;
  border-radius: 12px;
  padding: 22px;
  color: var(--muted);
  background: #f8fbff;
}

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 6px 16px rgba(14, 124, 123, 0.28);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(14, 124, 123, 0.32);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn.ghost {
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

button.ghost,
a.btn.ghost {
  width: auto;
}

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

.panel h2,
.detail-panel h2 {
  margin-bottom: 8px;
}

.order-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  margin-bottom: 12px;
}

.order-op {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.status.pending {
  color: #d18a13;
  background: #fff4da;
}

.status.paid {
  color: #0d8858;
  background: #dff8ec;
}

.status.cancelled {
  color: #ce3850;
  background: #fde7eb;
}

.status.good {
  color: #1a5bd2;
  background: #e7efff;
}

.order-meta p {
  color: var(--text);
  margin: 8px 0;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}

.detail-main {
  min-width: 0;
}

.detail-desc {
  font-family: 'Merriweather', Georgia, 'Times New Roman', 'PingFang SC', serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  letter-spacing: 0.01em;
  margin: 4px 0 8px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 234, 210, 0.5));
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
}

.detail-section {
  margin: 22px 0;
}

.detail-section h3 {
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--accent-strong);
}

.detail-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.detail-section ol,
.detail-section ul {
  margin-top: 4px;
  margin-bottom: 10px;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.85;
  font-size: 14.5px;
}

.detail-section ol li,
.detail-section ul li {
  margin-bottom: 6px;
}

.detail-section p {
  line-height: 1.85;
  font-size: 14.5px;
  color: var(--text);
  margin: 6px 0;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.booking-card h3 {
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--accent-strong);
}

.booking-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.booking-price .cur {
  font-size: 14px;
  font-weight: 700;
  color: var(--price);
}

.booking-price strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--price);
  line-height: 1;
}

.booking-price-unit {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-note {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.detail-gallery {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: #f8faff;
}

.detail-gallery-main {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.detail-gallery-thumbs {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.thumb {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb[aria-current='true'] {
  outline: 2px solid var(--accent);
}

.hidden {
  display: none !important;
}

#booking-form,
#place-order-form,
#login-form {
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

#booking-form label,
#place-order-form label,
#login-form label {
  display: grid;
  font-size: 13px;
  color: var(--muted);
}

#booking-form .sum,
#place-order-form .sum,
#booking-sum {
  margin: 6px 0 12px;
  font-size: 15px;
}

#booking-sum {
  color: var(--accent);
}

footer {
  margin-top: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
}

.footer-brand .brand-logo {
  width: 32px;
  height: 32px;
}

.footer-brand strong {
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
}

.footer-links span {
  position: relative;
}

.footer-links span + span::before {
  content: '·';
  position: absolute;
  left: -11px;
  color: var(--gold);
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 12px;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 15px;
  z-index: 20;
}

.toast.ok {
  border-color: #9ce0c0;
  color: #0e7f58;
}

.toast.error {
  border-color: #f7b6bf;
  color: #c22f4a;
}

.toast.warn {
  border-color: #ffd38f;
  color: #a16d03;
}

@media (max-width: 980px) {
  #search-form {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .detail-gallery-main {
    height: 220px;
  }

  .detail-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .top-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .portal-shell {
    width: min(100% - 18px, 1120px);
    margin-top: 12px;
  }

  #search-form {
    grid-template-columns: 1fr;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .tour-cover {
    width: 116px;
  }

  .tour-card {
    padding: 14px;
  }

  .hero {
    padding: 20px;
  }

  .top-nav {
    position: static;
    padding: 12px;
  }

  .top-nav nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-stats {
    gap: 14px;
  }

  .order-item {
    flex-direction: column;
  }

  .order-op {
    align-items: flex-start;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.7;
  }
}

/* ====== 订单列表页 ====== */
.orders-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.orders-header h2 { margin: 0; }

.orders-count {
  font-size: 13px;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.order-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.order-tab {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: 0.2s;
}

.order-tab.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}

.order-tab:hover:not(.active) {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.order-list-cover {
  width: 90px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.order-list-cover-placeholder {
  width: 90px;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--muted);
}

.order-item-cover {
  flex: 0 0 auto;
  text-decoration: none;
}

.order-item-main {
  flex: 1 1 auto;
  min-width: 0;
}

.order-item-main h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.order-item-main h3 a {
  color: var(--text);
  text-decoration: none;
}

.order-item-main h3 a:hover { color: var(--accent); }

.order-item-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.orders-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.price-text {
  color: var(--price);
  font-weight: 700;
  font-size: 16px;
}

/* ====== 订单详情页 ====== */
.order-detail-panel {
  padding: 28px;
}

.order-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.order-detail-header h2 { margin: 0 0 4px; }

.order-id-text {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.03em;
}

.order-steps {
  display: flex;
  align-items: center;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--bg1);
  border: 1px solid var(--line);
  overflow-x: auto;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: 0.25s;
}

.order-step.done .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.order-step.current .step-dot {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 151, 63, 0.2);
}

.order-step span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.order-step.done span { color: var(--accent); font-weight: 600; }

.step-line {
  flex: 1 1 auto;
  height: 2px;
  background: var(--line);
  min-width: 24px;
  margin: 0 4px;
  margin-bottom: 18px;
  transition: 0.25s;
}

.step-line.done { background: var(--accent); }

.order-cancelled-tip {
  text-align: center;
  padding: 10px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #fde7eb;
  color: #ce3850;
  font-weight: 600;
}

.order-product-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg1);
  margin-bottom: 16px;
}

.order-cover {
  width: 120px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
}

.order-product-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.order-product-info p {
  margin: 4px 0;
  font-size: 14px;
  color: var(--text);
}

.info-label {
  display: inline-block;
  min-width: 72px;
  color: var(--muted);
  font-size: 13px;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.order-info-block {
  padding: 14px;
  border-radius: 12px;
  background: var(--bg1);
  border: 1px solid var(--line);
}

.order-info-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-info-block p {
  margin: 5px 0;
  font-size: 14px;
}

.order-pay-btn {
  font-size: 16px;
  padding: 13px 28px;
  border-radius: 12px;
  font-weight: 700;
}

/* ====== 支付弹窗 ====== */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.pay-modal-box {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.22);
  text-align: center;
}

.pay-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--bg1);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  display: grid;
  place-items: center;
  width: auto;
}

.pay-modal-close:hover { background: var(--accent-soft); color: var(--accent); }

.pay-modal-amount {
  font-size: 15px;
  margin: 4px 0 18px;
  color: var(--muted);
}

.pay-modal-amount strong {
  font-size: 22px;
  color: var(--price);
}

.pay-methods {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border: 2px solid var(--line);
  background: var(--bg1);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
  width: auto;
}

.pay-method.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.pay-method-icon {
  font-size: 22px;
}

.pay-wechat { color: #07c160; }
.pay-alipay { color: #1677ff; }
.pay-bank { color: var(--gold); }

.pay-qr-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 18px;
}

.pay-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pay-qr-inner {
  width: 130px;
  height: 130px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.qr-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.qr-cell {
  border-radius: 1px;
  background: #f3f4f6;
}

.qr-cell.on {
  background: #111;
}

.qr-tip {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.pay-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-ring {
  position: relative;
  width: 64px;
  height: 64px;
}

.countdown-ring svg {
  width: 100%;
  height: 100%;
}

.countdown-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.countdown-arc {
  transition: stroke-dashoffset 1s linear;
}

.pay-countdown p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.pay-confirm-btn {
  width: 100%;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 10px;
}

.pay-safe-tip {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* ======= 管理后台 ======= */
.admin-shell {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  min-height: 75vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.admin-sidebar {
  background: #0a5f5e;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.admin-logo {
  padding: 20px 18px 14px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.admin-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
}

.admin-tab:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-tab.active { background: rgba(255,255,255,0.16); color: #fff; border-left: 3px solid var(--gold-soft); }

.admin-logout-btn {
  margin-top: auto;
  margin: auto 12px 16px;
  width: calc(100% - 24px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

.admin-body {
  background: var(--bg1);
  padding: 24px;
  overflow: auto;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  flex: 0 0 auto;
}

.stat-revenue { background: var(--gold-soft); color: var(--gold); }
.stat-commission { background: var(--accent-soft); color: var(--accent); }
.stat-order { background: #fde7eb; color: #ce3850; }
.stat-agent { background: #f0f7ff; color: #1677ff; }

.stat-label { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.stat-value { font-size: 20px; font-weight: 800; color: var(--text); margin: 0; }
.stat-sub { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

.admin-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.admin-stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--panel);
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.admin-table th {
  background: var(--bg1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(18,46,52,0.06);
  color: var(--text);
}

.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--bg1); }

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

.mono { font-family: 'Courier New', monospace; font-size: 12px; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-green { background: #dff8ec; color: #0d8858; }
.badge-gray { background: #f1f3f5; color: #888; }
.badge-teal { background: var(--accent-soft); color: var(--accent); }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }

.admin-link { color: var(--accent); font-size: 12px; }

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.admin-modal-box {
  background: var(--panel);
  border-radius: 16px;
  padding: 28px;
  width: min(420px, 94vw);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.admin-modal-box h3 { margin: 0 0 18px; }

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.admin-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.admin-field input,
.admin-field select {
  border: 1px solid var(--line);
  background: #fbfdfd;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  width: 100%;
  font: inherit;
}

.admin-field input:focus,
.admin-field select:focus {
  outline: 2px solid rgba(14,124,123,0.3);
  border-color: var(--accent);
}

.admin-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* ======= 代理中心 ======= */
.agent-center { padding: 24px 28px; }

.agent-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.agent-header h2 { margin: 0 0 4px; }

.agent-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.agent-stat {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.agent-withdraw-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gold-soft);
  border: 1px solid rgba(200,151,63,0.4);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.agent-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.agent-site-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
}

.agent-site-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.agent-site-link {
  display: flex;
  gap: 8px;
  align-items: center;
}

.agent-link-input {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bg1);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
}

.agent-apply {
  text-align: center;
  padding: 40px 0;
}

.agent-apply-icon { font-size: 48px; margin-bottom: 12px; }
.agent-apply h3 { margin: 0 0 8px; font-size: 22px; }
.agent-apply p { color: var(--muted); max-width: 380px; margin: 0 auto 16px; }

.agent-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 20px;
  text-align: left;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.agent-apply-tip { font-size: 13px; color: var(--muted); }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { flex-direction: row; flex-wrap: wrap; padding: 8px; gap: 4px; }
  .admin-logo { display: none; }
  .admin-tab { padding: 8px 12px; font-size: 12px; border-left: 0; }
  .admin-tab.active { border-left: 0; border-bottom: 2px solid var(--gold-soft); }
  .admin-logout-btn { margin: 4px; width: auto; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ======= 分类导航 ======= */
.cat-nav {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-nav-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--bg1);
  border: 1px solid var(--line);
  transition: 0.2s;
}

.cat-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cat-chip.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(14, 124, 123, 0.28);
}

@media (max-width: 700px) {
  .cat-nav { padding: 14px; }
  .cat-chip { font-size: 13px; padding: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
