/* ==========================================================================
   Voyara Travel — design system
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #070c14;
  --bg-2: #0a121c;
  --surface: #0f1a26;
  --surface-2: #14212f;
  --surface-3: #1a2a3a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eff4f8;
  --muted: #93a4b5;
  --muted-2: #6c7f92;
  --accent: #f5b942;
  --accent-2: #ffd479;
  --accent-ink: #17120a;
  --teal: #2ad4c1;
  --danger: #ff6b6b;
  --ok: #34d399;
  --blue: #2f6bff;
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 11px;
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.35);
  --max: 1240px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Manrope", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(245, 185, 66, 0.28); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.section-head p { max-width: 520px; margin-top: 14px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.94rem; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245, 185, 66, 0.22); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-fg: #0b1220; }
.btn-dark { --btn-bg: var(--surface-2); --btn-fg: var(--text); border-color: var(--line); }
.btn-sm { padding: 9px 17px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 11px; width: 44px; height: 44px; border-radius: 50%; }

/* ------------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  padding: 11px 0;
  background: rgba(7, 12, 20, 0.86);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.16rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #ff8a3d);
  color: #191307; font-size: 1rem; font-weight: 800;
  box-shadow: 0 8px 20px rgba(245, 185, 66, 0.32);
}
.nav { display: flex; align-items: center; gap: 6px; margin-left: 14px; }
.nav a {
  padding: 9px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s, background 0.18s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer;
}

/* --------------------------------------------------------- language switch */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 42px; padding: 0 15px 0 13px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 26, 40, 0.55);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover { background: rgba(18, 36, 54, 0.8); border-color: rgba(255, 255, 255, 0.36); }
.lang-btn svg.globe { width: 18px; height: 18px; opacity: 0.92; }
.lang-btn .chev { width: 12px; height: 12px; opacity: 0.7; transition: transform 0.22s ease; }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 246px;
  background: #fff; border-radius: 22px; padding: 8px;
  box-shadow: 0 26px 60px rgba(3, 12, 26, 0.38), 0 0 0 1px rgba(10, 20, 40, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.2s;
  z-index: 120;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-item {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 13px 15px; border: 0; background: none; cursor: pointer;
  border-radius: 15px; color: #1c2534; font-size: 0.95rem; font-weight: 500; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.lang-item:hover { background: #f4f6fa; }
.lang-item.active { background: #edf1fb; color: var(--blue); font-weight: 600; }
.lang-item svg { width: 18px; height: 18px; opacity: 0.85; flex: none; }
.lang-item.active svg { opacity: 1; }

/* --------------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(94vh, 900px); display: flex; align-items: center; padding: 140px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(5, 12, 22, 0.32) 0%, rgba(5, 12, 22, 0.78) 58%, #070c14 100%),
    linear-gradient(180deg, rgba(7, 12, 20, 0.72) 0%, rgba(7, 12, 20, 0.15) 34%, rgba(7, 12, 20, 0.92) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; }
.hero .kicker { color: var(--accent-2); }
.hero h1 { margin: 20px 0 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 22px; max-width: 560px; font-size: clamp(1rem, 1.5vw, 1.16rem); color: rgba(238, 245, 250, 0.82); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: 0.86rem; color: rgba(238, 245, 250, 0.72); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 15px; height: 15px; color: var(--teal); }

/* search bar */
.searchbar {
  position: relative; z-index: 3; margin-top: 44px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 2px;
  background: rgba(16, 28, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px; padding: 8px;
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg);
  max-width: 880px;
}
.sb-field { padding: 9px 16px; border-radius: 15px; position: relative; }
.sb-field + .sb-field::before {
  content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: rgba(255, 255, 255, 0.12);
}
.sb-field label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.sb-field input, .sb-field select {
  width: 100%; border: 0; background: none; color: #fff; font-size: 0.95rem; font-weight: 600;
  padding: 3px 0 0; outline: none; font-family: inherit;
}
.sb-field input::placeholder { color: rgba(255, 255, 255, 0.42); font-weight: 500; }
.sb-field input[type="date"] { color-scheme: dark; }
.sb-field select option { background: #0f1a26; color: #fff; }
.searchbar .btn { border-radius: 16px; height: 100%; padding: 0 26px; }
/* 只有一个输入框的搜索条（套餐页 / 酒店页） */
.searchbar.slim { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 24px; }
.searchbar.embed { margin-top: 0; background: transparent; border: 0; padding: 0; backdrop-filter: none; box-shadow: none; }
.searchbar.embed .sb-field { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }

/* ------------------------------------------------------------------- cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.grid-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tour-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
  display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-7px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.tour-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.tour-card:hover .tour-media img { transform: scale(1.07); }
.tour-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 12, 20, 0.05) 40%, rgba(7, 12, 20, 0.7) 100%); }
.chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(9, 17, 27, 0.62); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px); color: #fff;
}
.chip-tl { top: 14px; left: 14px; }
.chip-tr { top: 14px; right: 14px; background: rgba(245, 185, 66, 0.94); color: #1a1305; border-color: transparent; }
.chip-bl { bottom: 14px; left: 14px; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.25); }
.tour-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tour-loc { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tour-title { font-family: var(--display); font-size: 1.08rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.tour-sum { font-size: 0.87rem; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.price { display: flex; align-items: baseline; gap: 7px; }
.price b { font-family: var(--display); font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em; }
.price s { color: var(--muted-2); font-size: 0.82rem; }
.price span { font-size: 0.74rem; color: var(--muted); }
.rating { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 700; }
.rating svg { width: 13px; height: 13px; color: var(--accent); }
.rating span { color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- page hero */
.page-hero { position: relative; padding: 150px 0 60px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 100% at 15% 0%, rgba(42, 212, 193, 0.12), transparent 60%),
    radial-gradient(70% 90% at 85% 10%, rgba(245, 185, 66, 0.12), transparent 55%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-top: 16px; }
.page-hero p { margin-top: 14px; max-width: 620px; color: var(--muted); }

/* ------------------------------------------------------------------ panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.panel-tight { padding: 20px; }

/* ------------------------------------------------------------------ fields */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2);
  color: var(--text); font-size: 0.95rem; font-family: inherit; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(245, 185, 66, 0.7); box-shadow: 0 0 0 4px rgba(245, 185, 66, 0.12); background: rgba(255, 255, 255, 0.06);
}
.field input::placeholder { color: var(--muted-2); }
.field select option { background: #0f1a26; }
.field .hint { font-size: 0.76rem; color: var(--muted-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: 66px 0 34px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--font); font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: rgba(239, 244, 248, 0.74); font-size: 0.9rem; }
.footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 0.8rem; color: var(--muted-2); }

/* ------------------------------------------------------------------- toast */
.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 10px; }
.toast {
  padding: 13px 18px; border-radius: 14px; font-size: 0.88rem; font-weight: 600;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: var(--shadow-md); animation: toastIn 0.3s ease both;
}
.toast.err { border-color: rgba(255, 107, 107, 0.5); background: #2a1518; }
.toast.ok { border-color: rgba(52, 211, 153, 0.4); background: #0f2620; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------------- pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; border: 1px solid var(--line-2); }
.pill.pending { color: #ffcf70; border-color: rgba(245, 185, 66, 0.4); background: rgba(245, 185, 66, 0.12); }
.pill.confirmed { color: #6ee7d8; border-color: rgba(42, 212, 193, 0.4); background: rgba(42, 212, 193, 0.12); }
.pill.completed { color: #7ee2b8; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.12); }
.pill.cancelled, .pill.rejected { color: #ff9d9d; border-color: rgba(255, 107, 107, 0.4); background: rgba(255, 107, 107, 0.12); }
.pill.approved { color: #7ee2b8; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.12); }

/* ------------------------------------------------------------- tour detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 44px; align-items: start; }
.detail-hero-img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; }
.detail-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* 图集：大图 + 缩略图 */
.gal { display: grid; gap: 10px; }
.gal-main { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.gal-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-count {
  position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
  background: rgba(6, 11, 18, 0.72); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #eef4f8; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
}
.gal-count[hidden] { display: none; }
.gal-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gal-thumbs[hidden] { display: none; }
.gal-th {
  padding: 0; border: 2px solid transparent; border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2); cursor: pointer; aspect-ratio: 16 / 10; opacity: 0.62;
  transition: opacity 0.18s, border-color 0.18s, transform 0.18s;
}
.gal-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-th:hover { opacity: 1; transform: translateY(-1px); }
.gal-th.on { opacity: 1; border-color: var(--accent); }
.gal-th:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 每日行程：默认收起，点开才展开 */
.itin-box { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.itin-box > summary {
  list-style: none; cursor: pointer; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600;
  color: rgba(239, 244, 248, 0.92); user-select: none;
}
.itin-box > summary::-webkit-details-marker { display: none; }
.itin-box > summary::marker { content: ""; }
.itin-box > summary:hover { background: var(--surface-2); }
.itin-sum-t { flex: 1; }
.itin-box > summary b { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.itin-chev { color: var(--muted); flex: none; transition: transform 0.2s; }
.itin-box[open] .itin-chev { transform: rotate(180deg); }
.itin-box .itin { border: 0; border-radius: 0; border-top: 1px solid var(--line); }

.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.detail-body h3 { margin: 34px 0 14px; }
.detail-body p { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 0.91rem; color: rgba(239, 244, 248, 0.86); }
.feature-list svg { width: 17px; height: 17px; color: var(--teal); flex: none; }
.booking-box { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-md); }
.booking-box .price b { font-size: 1.9rem; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 13px; padding: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--surface-3); color: #fff; font-size: 1.1rem; cursor: pointer; }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper span { font-weight: 700; font-size: 0.98rem; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.total-row b { font-family: var(--display); font-size: 1.3rem; }

/* ---------------------------------------------------------------- checkout */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.steps { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.step-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.step-pill i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-style: normal; font-size: 0.74rem; }
.step-pill.on { color: var(--text); }
.step-pill.on i { background: var(--accent); color: var(--accent-ink); }
.traveller-block { border: 1px dashed var(--line-2); border-radius: var(--r-md); padding: 18px; margin-bottom: 14px; background: rgba(255, 255, 255, 0.02); }
.traveller-block h4 { font-family: var(--display); font-size: 0.98rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.traveller-block h4 span { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 0.72rem; color: var(--muted); }
.drop {
  display: flex; align-items: center; gap: 14px; padding: 15px;
  border: 1px dashed var(--line-2); border-radius: var(--r-md); cursor: pointer;
  background: rgba(255, 255, 255, 0.03); transition: border-color 0.18s, background 0.18s;
}
.drop:hover { border-color: rgba(245, 185, 66, 0.55); background: rgba(245, 185, 66, 0.05); }
.drop.has { border-style: solid; border-color: rgba(42, 212, 193, 0.45); background: rgba(42, 212, 193, 0.06); }
.drop svg { width: 26px; height: 26px; color: var(--muted); flex: none; }
.drop.has svg { color: var(--teal); }
.drop-main { flex: 1; min-width: 0; }
.drop-main b { display: block; font-size: 0.88rem; }
.drop-main small { color: var(--muted-2); font-size: 0.76rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop input { display: none; }
.summary-line { display: flex; justify-content: space-between; gap: 14px; font-size: 0.89rem; padding: 7px 0; }
.summary-line span:first-child { color: var(--muted); }
.summary-thumb { display: flex; gap: 13px; align-items: center; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.summary-thumb img { width: 66px; height: 66px; border-radius: 14px; object-fit: cover; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 720px; }
table.table th {
  text-align: left; padding: 14px 16px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 700;
  position: sticky; top: 0; background: var(--surface); backdrop-filter: blur(6px);
}
table.table td { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
table.table tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
table.table .num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* ------------------------------------------------------------------- admin */
.admin-body { background: var(--bg-2); }
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.admin-side { border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.admin-side .brand { padding: 4px 10px 20px; }
.admin-tab {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px;
  color: var(--muted); font-size: 0.89rem; font-weight: 600; cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
  transition: background 0.16s, color 0.16s;
}
.admin-tab:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.admin-tab.on { background: rgba(245, 185, 66, 0.12); color: var(--accent); }
.admin-tab svg { width: 17px; height: 17px; }
.admin-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted-2); }
.admin-main { padding: 26px 30px 60px; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 17px 18px; }
.stat small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 7px; font-weight: 700; }
.stat b { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.02em; }
.stat b em { font-style: normal; font-size: 0.9rem; color: var(--muted); font-family: var(--font); font-weight: 600; }
.admin-empty { padding: 54px 20px; text-align: center; color: var(--muted-2); font-size: 0.9rem; }
.doc-thumb { width: 46px; height: 34px; border-radius: 7px; object-fit: cover; background: var(--surface-3); border: 1px solid var(--line-2); cursor: pointer; }
.modal-back { position: fixed; inset: 0; background: rgba(3, 7, 12, 0.78); backdrop-filter: blur(6px); z-index: 300; display: grid; place-items: center; padding: 24px; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); max-width: 760px; width: 100%; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal-body { padding: 22px; }
.modal img.doc { width: 100%; border-radius: 12px; background: #000; }

/* ------------------------------------------------------------------ auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; }
.auth-art img { width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7, 12, 20, 0.55), rgba(7, 12, 20, 0.15)); }
.auth-art-txt { position: absolute; left: 48px; bottom: 52px; z-index: 2; max-width: 380px; }
.auth-art-txt h2 { font-size: 2rem; }
.auth-art-txt p { margin-top: 12px; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 100px 28px 60px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-card > p { margin-top: 10px; color: var(--muted); font-size: 0.93rem; }
.auth-form { margin-top: 28px; }
.auth-alt { margin-top: 20px; font-size: 0.88rem; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--accent); font-weight: 600; }
.auth-note { margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: rgba(42, 212, 193, 0.07); border: 1px solid rgba(42, 212, 193, 0.22); font-size: 0.78rem; color: #8fd8cf; line-height: 1.55; }

/* ------------------------------------------------------------------ misc */
.tabs { display: inline-flex; gap: 5px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { padding: 9px 16px; border-radius: 999px; border: 0; background: none; color: var(--muted); font-size: 0.84rem; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--surface-3); color: var(--text); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.search-input { flex: 1; min-width: 200px; padding: 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text); font-size: 0.9rem; outline: none; }
.search-input:focus { border-color: rgba(245, 185, 66, 0.6); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted-2); }
.loading { padding: 70px 0; text-align: center; color: var(--muted-2); font-size: 0.9rem; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: sp 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes sp { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .detail-grid, .checkout-grid { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-side .brand { padding: 0 12px 0 4px; }
  .admin-side-foot { display: none; }
  .admin-tab { width: auto; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; place-items: center; }
  .header-cta .btn { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .searchbar { grid-template-columns: 1fr; gap: 8px; }
  .sb-field + .sb-field::before { display: none; }
  .sb-field { padding: 10px 14px; background: rgba(255, 255, 255, 0.04); border-radius: 14px; }
  .searchbar .btn { height: 50px; }
  .hero { min-height: auto; padding: 128px 0 64px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .grid-3, .grid-quad { grid-template-columns: 1fr; }
  .brand { font-size: 0.98rem; white-space: nowrap; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 0.9rem; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .admin-main { padding: 18px 16px 50px; }
  .panel { padding: 20px; }
  .lang-menu { width: 220px; }
  h1 { font-size: 2.35rem; }
}

/* mobile nav drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 95; background: rgba(7, 12, 20, 0.97); backdrop-filter: blur(14px); padding: 100px 26px 40px; display: none; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 15px 4px; font-size: 1.3rem; font-family: var(--display); font-weight: 700; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Catalog: stats strip, quick tiles, destinations, packages, hotels
   ========================================================================== */

/* ---- hero 统计条 ---- */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 620px; }
.stat-strip > div {
  padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px); text-align: center;
}
.stat-strip b { display: block; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.stat-strip span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---- 快捷入口八宫格 ---- */
.quick-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 16px 6px 13px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.24s, border-color 0.24s, background 0.24s;
}
.quick:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.quick i {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; flex: none;
}
.quick i svg { width: 21px; height: 21px; }
.quick span { font-size: 0.78rem; font-weight: 600; text-align: center; line-height: 1.25; }

/* ---- 目的地磁贴 ---- */
.dest-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.dest {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); display: block;
}
.dest img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1); }
.dest:hover img { transform: scale(1.08); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,12,20,0) 35%, rgba(7,12,20,0.88) 100%); }
.dest-txt { position: absolute; left: 13px; right: 13px; bottom: 12px; z-index: 2; }
.dest-txt b { display: block; font-family: var(--display); font-size: 1rem; }
.dest-txt span { font-size: 0.7rem; color: rgba(255, 255, 255, 0.72); }

/* ---- 限时特惠条 ---- */
.deal {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 20px 24px; border-radius: var(--r-lg);
  background: linear-gradient(100deg, rgba(47, 107, 255, 0.22), rgba(42, 212, 193, 0.12) 55%, rgba(245, 185, 66, 0.14));
  border: 1px solid var(--line-2);
}
.deal-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; }
.deal-txt { flex: 1; min-width: 180px; }
.deal-txt b { font-family: var(--display); font-size: 1.1rem; }
.deal-txt p { font-size: 0.83rem; color: var(--muted); }
.timer { display: flex; gap: 7px; align-items: center; font-variant-numeric: tabular-nums; }
.timer span {
  min-width: 42px; padding: 7px 0; border-radius: 10px; text-align: center;
  background: rgba(7, 12, 20, 0.62); border: 1px solid var(--line-2);
  font-family: var(--display); font-weight: 800; font-size: 1.02rem;
}
.timer em { font-style: normal; color: var(--muted-2); font-weight: 700; }

/* ---- 国家筛选 chips ---- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip-row::-webkit-scrollbar { height: 5px; }
.chip-row::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.pill-btn {
  flex: none; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-size: 0.83rem; font-weight: 600; white-space: nowrap; transition: all 0.2s;
}
.pill-btn:hover { color: #fff; border-color: var(--line-2); }
.pill-btn.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }

/* ---- 主题浏览 ---- */
.theme-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.theme {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px; border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--line); transition: all 0.22s; text-align: center;
}
.theme:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.theme.on { border-color: var(--accent); background: rgba(245, 185, 66, 0.1); }
.theme i {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245, 185, 66, 0.13); color: var(--accent);
}
.theme i svg { width: 22px; height: 22px; }
.theme span { font-size: 0.77rem; font-weight: 600; line-height: 1.2; }
.theme small { font-size: 0.66rem; color: var(--muted-2); }

/* ---- 排序 / 加载更多 ---- */
.sortbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sortbar .grow { flex: 1; }
.load-more { display: flex; justify-content: center; margin-top: 30px; }

/* ---- 套餐卡片（左图右文） ---- */
.pkg-list { display: grid; gap: 16px; }

/* 首页短假专区（3 / 5 / 7 天）：8 张卡，双列紧凑排列，
   否则一行一张会把首页拉长到 2000px 以上。 */
.short-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.short-grid .pkg { grid-template-columns: 216px minmax(0, 1fr); }
.short-grid .pkg-media { min-height: 210px; background: linear-gradient(120deg, #141c28, #0c1219); }
.short-grid .pkg-body { padding: 16px 18px 14px; gap: 8px; }
.short-grid .pkg-title { font-size: 1.02rem; }
@media (max-width: 900px) {
  .short-grid { grid-template-columns: 1fr; }
  .short-grid .pkg { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .short-grid .pkg { grid-template-columns: 1fr; }
  .short-grid .pkg-media { min-height: 190px; }
}

.pkg {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color 0.26s, transform 0.26s, box-shadow 0.26s;
}
.pkg:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pkg-media { position: relative; display: block; overflow: hidden; min-height: 232px; }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.75s cubic-bezier(0.2, 0.8, 0.3, 1); }
.pkg:hover .pkg-media img { transform: scale(1.06); }
.pkg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,12,20,0.1) 45%, rgba(7,12,20,0.62)); }
.pkg-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; max-width: 75%; }
.flag { padding: 4px 9px; border-radius: 7px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.01em; }
.flag-hot { background: #e8443a; color: #fff; }
.flag-deal { background: var(--accent); color: var(--accent-ink); }
.pkg-score {
  position: absolute; right: 12px; bottom: 11px; z-index: 2;
  padding: 4px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.94); color: #17222e;
}
.pkg-score i { font-style: normal; opacity: 0.6; font-weight: 600; }
.pkg-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pkg-title { font-size: 1.12rem; line-height: 1.28; }
.pkg-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.78rem; color: var(--muted); }
.pkg-meta span { position: relative; }
.pkg-meta span + span::before { content: "·"; position: absolute; left: -9px; color: var(--muted-2); }
.pkg-inc { display: flex; flex-wrap: wrap; gap: 6px; }
.inc {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px;
  font-size: 0.72rem; color: #cfe0ef; background: rgba(42, 212, 193, 0.09);
  border: 1px solid rgba(42, 212, 193, 0.22);
}
.inc i { font-style: normal; color: var(--teal); font-weight: 800; }
.pkg-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.pkg-price { display: flex; flex-direction: column; gap: 1px; padding-top: 10px; }
.pkg-was { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; color: var(--muted-2); }
.pkg-was em { font-style: normal; color: var(--danger); font-weight: 800; background: rgba(255, 107, 107, 0.12); padding: 1px 6px; border-radius: 5px; }
.pkg-now { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.pkg-now span { font-family: var(--font); font-size: 0.74rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.pkg-sub { font-size: 0.72rem; color: var(--muted-2); }

/* ---- 酒店卡片 ---- */
.hotel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hotel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}
.hotel:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.hotel-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.hotel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.hotel:hover .hotel-media img { transform: scale(1.07); }
.hotel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,12,20,0.35) 0%, rgba(7,12,20,0) 40%, rgba(7,12,20,0.55)); }
.hotel-stars { position: absolute; top: 11px; left: 11px; z-index: 2; font-size: 0.72rem; letter-spacing: 1px; color: var(--accent); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hotel-score { position: absolute; right: 11px; bottom: 10px; z-index: 2; padding: 3px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: rgba(255,255,255,.94); color: #17222e; }
.hotel-score i { font-style: normal; opacity: .6; font-weight: 600; }
.hotel-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hotel-body h3 { font-size: 1rem; line-height: 1.3; }
.hotel-city { font-size: 0.76rem; color: var(--muted); }
.hotel-fac { display: flex; flex-wrap: wrap; gap: 5px; }
.hotel-fac span { font-size: 0.68rem; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }
.hotel-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.hotel-price small { display: block; font-size: 0.68rem; color: var(--muted-2); }
.hotel-price b { font-family: var(--display); font-size: 1.22rem; }
.hotel-price span { font-size: 0.7rem; color: var(--muted); }

/* ---- 酒店搜索过滤器 ---- */
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.filter-grid .field { min-width: 0; }
.fac-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- 移动端底部标签栏 ---- */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(10, 18, 28, 0.94); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--muted-2); font-size: 0.66rem; }
.tabbar .tab svg { width: 21px; height: 21px; }
.tabbar .tab.on { color: var(--accent); }

/* ---- 响应式 ---- */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hotel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg { grid-template-columns: 280px minmax(0, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tabbar { display: flex; }
  body { padding-bottom: 68px; }
  .pkg { grid-template-columns: 1fr; }
  .pkg-media { min-height: 0; aspect-ratio: 16 / 10; }
  .dest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal { padding: 16px 18px; }
}
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .quick { padding: 12px 4px 10px; }
  .quick i { width: 38px; height: 38px; border-radius: 12px; }
  .quick span { font-size: 0.7rem; }
  .theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotel-grid { grid-template-columns: 1fr; }
  .pkg-body { padding: 14px 15px 14px; }
  .pkg-title { font-size: 1.02rem; }
  .pkg-now { font-size: 1.3rem; }
  .filter-grid { grid-template-columns: 1fr; }
  .timer span { min-width: 36px; font-size: 0.92rem; }
}

/* ---- 详情页：包含项 / 行程 / 房型 ---- */
.inc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.inc-card {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
}
.inc-card span { color: var(--teal); flex: none; display: grid; place-items: center; }
.inc-card b { font-size: 0.88rem; font-weight: 600; }

.itin { display: grid; gap: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.itin-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 13px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.itin-row:last-child { border-bottom: 0; }
.itin-row:nth-child(even) { background: var(--surface-2); }
.itin-day { color: var(--accent); font-weight: 700; font-size: 0.82rem; }

.room-card {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
}
.room-card img { width: 132px; height: 92px; border-radius: 10px; object-fit: cover; }
.room-card h4 { font-size: 0.98rem; }
.room-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.76rem; color: var(--muted); margin-top: 6px; }
.room-price { text-align: right; }
.room-price b { display: block; font-family: var(--display); font-size: 1.16rem; }
.room-price span { font-size: 0.7rem; color: var(--muted); }
@media (max-width: 640px) {
  .inc-grid { grid-template-columns: 1fr; }
  .itin-row { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 11px 13px; }
  .room-card { grid-template-columns: 96px minmax(0, 1fr); }
  .room-card img { width: 96px; height: 76px; }
  .room-price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 8px; }
}

/* 详情页 meta 徽标（含“已有 N 人预订”） */
#meta .chip { background: var(--surface-2); color: var(--text); border-color: var(--line-2); font-weight: 600; }
#meta .chip-booked { color: var(--accent); border-color: rgba(245, 185, 66, 0.42); }

/* 结账页证件上传：护照单槽 / 身份证双槽 */
.doc-slots { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.doc-slots-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.doc-slots .drop { min-width: 0; }
.doc-slots-2 .drop { padding: 12px; gap: 10px; }
.doc-slots-2 .drop svg { width: 20px; height: 20px; }
.doc-slots-2 .drop-main b { font-size: 0.8rem; }
.doc-slots-2 .drop-main small { font-size: 0.7rem; }
@media (max-width: 640px) {
  .doc-slots-2 { grid-template-columns: minmax(0, 1fr); }
  /* 窄屏放下说明文字：允许换行，避免 nowrap 把整页撑宽 */
  .doc-slots .drop-main small { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------------------------------------------------------------- payment */
.pay-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
@media (max-width: 820px) { .pay-grid { grid-template-columns: minmax(0, 1fr); } }

.pay-card {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  padding: 18px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface);
  transition: border-color .18s, background .18s, transform .18s;
}
.pay-card:hover { border-color: rgba(245, 185, 66, .5); background: rgba(245, 185, 66, .05); transform: translateY(-1px); }
.pay-card.on { border-color: var(--accent); background: rgba(245, 185, 66, .08); box-shadow: inset 0 0 0 1px rgba(245, 185, 66, .35); }
.pay-card .pay-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.pay-card b { font-size: .98rem; }
.pay-card small { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.pay-badge { margin-top: 2px; font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(245, 185, 66, .4); border-radius: 999px; padding: 3px 9px; }

.bank-box { margin-top: 18px; padding: 20px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(255, 255, 255, .02); }
.bank-amount { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(245, 185, 66, .08); border: 1px solid rgba(245, 185, 66, .25); }
.bank-amount b { font-family: var(--display); font-size: 1.4rem; color: var(--accent); }
.bank-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.bank-row:last-child { border-bottom: 0; }
.bank-row .k { color: var(--muted); font-size: .82rem; }
.bank-row .v { font-size: .92rem; word-break: break-word; }
.bank-row .v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.copy-btn { border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: .74rem; padding: 5px 10px; border-radius: 9px; cursor: pointer; transition: color .16s, border-color .16s; }
.copy-btn:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 560px) {
  .bank-row { grid-template-columns: minmax(0, 1fr) auto; }
  .bank-row .k { grid-column: 1 / -1; margin-bottom: -6px; }
}

.pay-state { margin-top: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.pay-state b { display: block; margin-bottom: 6px; }
.pay-state p { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.pay-state.ok { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.pay-state.ok b { color: var(--ok); }
.pay-state.wait { border-color: rgba(245, 185, 66, .35); background: rgba(245, 185, 66, .08); }
.pay-state.wait b { color: var(--accent); }
.pay-state.bad { border-color: rgba(255, 107, 107, .38); background: rgba(255, 107, 107, .08); }
.pay-state.bad b { color: var(--danger); }

/* 48 小时付款倒计时 */
.pay-clock {
  margin-top: 16px; padding: 16px 20px; border-radius: 16px;
  border: 1px solid rgba(245, 185, 66, .28); background: rgba(245, 185, 66, .06);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.pay-clock[hidden] { display: none; }
.pay-clock-l { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pay-clock-nums { display: flex; align-items: baseline; gap: 10px; }
.pay-clock-nums > span { display: inline-flex; align-items: baseline; gap: 4px; }
.pay-clock-nums b {
  font-family: var(--display); font-size: 1.5rem; font-weight: 800;
  color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1;
  min-width: 2ch; text-align: right;
}
.pay-clock-nums i { font-style: normal; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pay-clock p { flex: 1 1 260px; margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.pay-clock.urgent { border-color: rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .07); }
.pay-clock.urgent .pay-clock-nums b { color: var(--danger); }
.pay-clock.done .pay-clock-nums b { color: var(--danger); }
.pay-expired-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.pay-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(6, 10, 16, .74); }
.pay-modal-in { width: 100%; max-width: 440px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.pay-modal-in h3 { font-size: 1.12rem; }

/* ==========================================================================
   前台客服窗口
   ========================================================================== */
.cs-widget { position: fixed; right: 24px; bottom: 24px; z-index: 150; }
body.cs-has-widget .toast-wrap { bottom: 100px; }

.cs-launch {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .5), 0 0 0 1px rgba(245, 185, 66, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cs-launch:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 185, 66, .5); }
.cs-launch svg { width: 26px; height: 26px; }
.cs-badge[hidden] { display: none; }
.cs-badge {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid var(--bg);
}

.cs-panel {
  position: absolute; right: 0; bottom: 72px;
  width: 372px; max-width: calc(100vw - 32px);
  height: min(562px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .6);
  animation: cs-in .22s ease both;
}
.cs-panel[hidden] { display: none; }
@keyframes cs-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.cs-head {
  display: flex; align-items: center; gap: 11px; padding: 14px 15px;
  background: linear-gradient(180deg, rgba(245, 185, 66, .12), rgba(245, 185, 66, 0));
  border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.cs-avatar {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  font-family: var(--display); font-weight: 800; font-size: 1rem; flex: 0 0 auto;
}
.cs-head-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-head-txt b { font-size: .92rem; }
.cs-status { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--muted); }
.cs-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.cs-status.off i { background: var(--muted-2); box-shadow: 0 0 0 3px rgba(108, 127, 146, .18); }
.cs-close {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.cs-close:hover { background: var(--surface-2); color: var(--text); }
.cs-close svg { width: 16px; height: 16px; }

.cs-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 15px 8px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.cs-body::-webkit-scrollbar { width: 6px; }
.cs-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.cs-hello { padding: 6px 2px 4px; }
.cs-hello b { display: block; font-family: var(--display); font-size: 1.02rem; margin-bottom: 6px; }
.cs-hello p { color: var(--muted); font-size: .84rem; line-height: 1.6; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.cs-chip {
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2);
  color: var(--text); font-size: .78rem; cursor: pointer; font-family: inherit;
}
.cs-chip:hover { border-color: rgba(245, 185, 66, .5); color: var(--accent); }

.cs-day { text-align: center; margin: 6px 0 2px; }
.cs-day span { font-size: .68rem; color: var(--muted-2); letter-spacing: .04em; text-transform: uppercase; }

.cs-msg { display: flex; flex-direction: column; gap: 3px; max-width: 84%; }
.cs-msg.me { align-self: flex-end; align-items: flex-end; }
.cs-msg.them { align-self: flex-start; align-items: flex-start; }
.cs-bubble {
  padding: 10px 13px; border-radius: 15px; font-size: .86rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}
.cs-msg.them .cs-bubble { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.cs-msg.me .cs-bubble { background: linear-gradient(140deg, var(--accent-2), var(--accent)); color: var(--accent-ink); font-weight: 600; border-bottom-right-radius: 5px; }
.cs-msg.pending .cs-bubble { opacity: .62; }
.cs-time { font-size: .66rem; color: var(--muted-2); padding: 0 3px; }
.cs-closed { text-align: center; font-size: .74rem; color: var(--muted-2); padding: 10px 0 2px; }

.cs-foot { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 11px 12px 13px; background: var(--surface); }
.cs-compose { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cs-row { display: flex; align-items: flex-end; gap: 8px; }
.cs-compose textarea {
  flex: 1 1 auto; resize: none; min-height: 42px; max-height: 120px; padding: 11px 13px;
  border-radius: 13px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text);
  font-family: inherit; font-size: .86rem; line-height: 1.4; outline: none;
}
.cs-compose textarea:focus { border-color: rgba(245, 185, 66, .55); }
.cs-send-btn {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; border: none; cursor: pointer;
  background: linear-gradient(140deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  display: grid; place-items: center;
}
.cs-send-btn:hover { filter: brightness(1.06); }
.cs-send-btn svg { width: 19px; height: 19px; }
.cs-send-btn[disabled] { opacity: .38; cursor: default; filter: none; }

/* ---- 发图：附件按钮 / 待发预览 / 气泡里的图 / 看大图 ---- */
.cs-clip {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted);
  display: grid; place-items: center;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.cs-clip:hover { color: var(--accent); border-color: rgba(245, 185, 66, .5); }
.cs-clip svg { width: 19px; height: 19px; }
.cs-clip .cs-spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--accent);
  animation: cs-spin .7s linear infinite;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* 文件框必须留在页面里、还得能点到：display:none / hidden 的 input
   在部分安卓和微信内核里会让「点按钮 → 弹相机相册」整条链路失效 */
.cs-file-ir {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 1px;
  opacity: 0; overflow: hidden; pointer-events: none; border: 0; padding: 0; margin: 0;
}

.cs-att {
  position: relative; display: flex; align-items: center; gap: 9px;
  padding: 7px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--bg-2);
}
.cs-att img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; }
.cs-att-n {
  font-size: .76rem; color: var(--muted); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-att-x {
  margin-left: auto; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.cs-att-x:hover { background: var(--surface-2); color: var(--danger); }
.cs-att-x svg { width: 13px; height: 13px; }

.cs-hint { font-size: .68rem; color: var(--muted-2); padding-left: 2px; }

.cs-msg.has-img { max-width: 88%; }
.cs-bubble:has(.cs-shot) { padding: 5px; }
.cs-shot {
  display: block; width: auto; height: auto;
  /* 竖图（3:4 的手机照片）按 208 宽算要 277 高，半屏抽屉的消息区只有 260 上下，
     不封顶就会被裁掉一截，所以宽度和高度都给上限 */
  max-width: 208px; max-height: 220px;
  border-radius: 11px; cursor: zoom-in; background: var(--surface-2);
}
.cs-msg .cs-text { padding: 4px 8px 5px; }
.cs-msg.has-img .cs-text { padding-top: 6px; }

.cs-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(6, 10, 16, .86);
  display: grid; place-items: center; padding: 4vmin; cursor: zoom-out;
  backdrop-filter: blur(3px);
}
.cs-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.cs-lb-x {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .1); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}
.cs-lb-x svg { width: 18px; height: 18px; }
.cs-panel.drop::after {
  content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(245, 185, 66, .75);
  border-radius: 16px; pointer-events: none;
}

.cs-gate { display: grid; gap: 8px; }
.cs-gate-t { font-size: .86rem; font-weight: 700; }
.cs-gate-s { font-size: .74rem; color: var(--muted); line-height: 1.45; margin-bottom: 2px; }
.cs-gate input {
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  color: var(--text); font-family: inherit; font-size: .86rem; outline: none;
}
.cs-gate input:focus { border-color: rgba(245, 185, 66, .55); }
.cs-gate .cs-send-btn {
  width: 100%; height: 42px; border-radius: 12px; font-weight: 800; font-size: .86rem;
  font-family: var(--display);
}
.cs-err { font-size: .74rem; color: var(--danger); }

/* 手机端底部的「抓手」，桌面隐藏 */
.cs-grab { display: none; }
.cs-backdrop { display: none; }
@keyframes cs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cs-sheet-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .cs-widget { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* 手机上不再铺满整屏：改成底部抽屉，只占七成高度，
     上面留出页面背景（半透明遮罩），点遮罩 / 下滑 / 右上角× 三种方式都能关。 */
  .cs-backdrop { display: block; position: fixed; inset: 0; z-index: 1; background: rgba(6, 10, 16, .58); animation: cs-fade .18s ease both; }
  .cs-backdrop[hidden] { display: none; }

  .cs-panel {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 2;
    width: auto; max-width: none;
    height: min(55vh, 560px);
    min-height: 360px;                 /* 横屏或小屏时别缩成一条缝 */
    max-height: calc(100dvh - 76px);
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    box-shadow: 0 -18px 60px rgba(0, 0, 0, .62);
    animation: none;
    transition: transform .22s cubic-bezier(.22, .8, .3, 1);
  }
  /* 入场动画单独挂在 sheet-in 上，播完由 JS 摘掉，
     否则 fill 会一直压着 transform，拖动就拖不动了 */
  .cs-panel.sheet-in { animation: cs-sheet-in .26s cubic-bezier(.22, .8, .3, 1) both; }
  .cs-panel.dragging { animation: none; transition: none; }

  .cs-grab {
    display: block; position: absolute; top: 0; left: 0; right: 0; height: 18px; z-index: 3;
    touch-action: none; cursor: grab;
  }
  .cs-grab::before {
    content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 4px; border-radius: 999px; background: var(--line-2);
  }
  .cs-head { padding: 18px 14px 10px; touch-action: none; }
  /* 抽屉只有半屏，头部和输入区都得压薄，把高度让给消息 */
  .cs-avatar { width: 32px; height: 32px; border-radius: 10px; font-size: .92rem; }
  .cs-head-txt b { font-size: .88rem; }
  .cs-status { font-size: .68rem; }
  .cs-body { padding: 12px 13px 6px; gap: 8px; }
  .cs-hello { padding: 2px 1px 2px; }
  .cs-hello b { font-size: .95rem; margin-bottom: 4px; }
  .cs-hello p { font-size: .79rem; line-height: 1.5; }
  .cs-chips { margin-top: 9px; gap: 6px; }
  .cs-chip { padding: 6px 10px; font-size: .74rem; }
  .cs-foot { padding: 9px 12px calc(10px + env(safe-area-inset-bottom)); }
  .cs-gate { gap: 6px; }
  .cs-gate-t { font-size: .82rem; }
  .cs-gate-s { font-size: .7rem; line-height: 1.4; margin-bottom: 0; }
  .cs-gate input { padding: 9px 12px; font-size: .84rem; }
  .cs-gate .cs-send-btn { height: 38px; }
  .cs-row { gap: 7px; }
  .cs-compose textarea { min-height: 40px; padding: 10px 12px; }
  .cs-clip, .cs-send-btn { width: 40px; height: 40px; }
  /* 手机上「粘贴或拖进来」没意义，省下这一行的位置 */
  .cs-hint { display: none; }
  /* × 做得像按钮，别让人找不到关的地方 */
  .cs-close {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  }
  .cs-close svg { width: 17px; height: 17px; }
  .cs-foot { padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
  .cs-widget.open .cs-launch { display: none; }
  body.cs-has-widget .toast-wrap { bottom: 90px; }

  /* 抽屉开着就别让底下的页面跟着滚 */
  html.cs-lock, html.cs-lock body { overflow: hidden; }
}

/* ==========================================================================
   后台客服工作台
   ========================================================================== */
.cs-admin {
  display: grid; grid-template-columns: 320px minmax(0, 1fr);
  height: calc(100vh - 190px); min-height: 520px;
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: var(--surface);
}
.csa-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); min-height: 0; }
.csa-tools { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.csa-search {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font-family: inherit; font-size: .84rem; outline: none;
}
.csa-search:focus { border-color: rgba(245, 185, 66, .5); }
.csa-filters { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.csa-chip {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font-size: .74rem; cursor: pointer; font-family: inherit;
}
.csa-chip.on { background: rgba(245, 185, 66, .14); border-color: rgba(245, 185, 66, .5); color: var(--accent); }
.csa-items { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.csa-items::-webkit-scrollbar { width: 6px; }
.csa-items::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.csa-item {
  width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left;
  padding: 12px 14px; border: none; border-bottom: 1px solid var(--line);
  background: transparent; cursor: pointer; font-family: inherit; color: var(--text);
}
.csa-item:hover { background: var(--surface-2); }
.csa-item.on { background: rgba(245, 185, 66, .09); box-shadow: inset 3px 0 0 var(--accent); }
.csa-ava {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--muted); font-weight: 800; font-family: var(--display); font-size: .88rem;
}
.csa-item.on .csa-ava { background: rgba(245, 185, 66, .2); color: var(--accent); }
.csa-main { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.csa-row1 { display: flex; align-items: center; gap: 6px; }
.csa-row1 b { font-size: .84rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.csa-row1 em { margin-left: auto; font-style: normal; font-size: .68rem; color: var(--muted-2); flex: 0 0 auto; }
.csa-dot {
  font-style: normal; background: var(--danger); color: #fff; font-size: .64rem; font-weight: 800;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; flex: 0 0 auto;
}
.csa-prev { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.csa-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg-2); }
.csa-blank { margin: auto; color: var(--muted-2); font-size: .86rem; }
.csa-thead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); flex: 0 0 auto;
}
.csa-thead-l b { font-size: .95rem; }
.csa-thead-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.csa-msgs { flex: 1 1 auto; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.csa-msgs::-webkit-scrollbar { width: 6px; }
.csa-msgs::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.csa-compose { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); flex: 0 0 auto; }
/* 文件框留在 DOM 里且可点，label[for] 才能在手机上正常唤起相机/相册 */
.csa-file-ir {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 1px;
  opacity: 0; overflow: hidden; pointer-events: none; border: 0; padding: 0; margin: 0;
}
label#csaClip { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.csa-row { display: flex; gap: 10px; align-items: flex-end; }
.csa-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.csa-att { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-2); }
.csa-att[hidden] { display: none; }
.csa-att img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.csa-att span { font-size: .76rem; color: var(--muted); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csa-compose textarea {
  flex: 1 1 auto; resize: none; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font-family: inherit; font-size: .86rem; line-height: 1.5; outline: none;
}
.csa-compose textarea:focus { border-color: rgba(245, 185, 66, .5); }
.csa-compose .btn { height: 38px; flex: 0 0 auto; }

@media (max-width: 900px) {
  .cs-admin { grid-template-columns: 1fr; grid-template-rows: 280px minmax(0, 1fr); height: auto; }
  .csa-side { border-right: none; border-bottom: 1px solid var(--line); }
  .csa-msgs { max-height: 52vh; }
}
