/* 专业编辑器 · 导览多线路面板 */
#panoSettingModal.editor-pro .visite.ep-open {
  width: 340px !important;
  max-width: 340px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(18, 22, 30, 0.96) !important;
  border-left: 1px solid rgba(255,255,255,.08);
}
#panoSettingModal.editor-pro .visite .ep-tg-legacy-hide {
  display: none !important;
}
#epTourPanel {
  display: none;
  height: 100%;
  color: #e8eef5;
  font-size: 13px;
}
#panoSettingModal.editor-pro #epTourPanel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
#epTourPanel .ep-tg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
#epTourPanel .ep-tg-back {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
#epTourPanel .ep-tg-back:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
#epTourPanel .ep-tg-view > .ep-tg-back {
  width: auto;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 32px;
  color: rgba(255,255,255,.85);
}
#epTourPanel .ep-tg-title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}
#epTourPanel .ep-tg-help {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.45);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  cursor: default;
}
#epTourPanel .ep-tg-body {
  flex: 1;
  overflow: auto;
  padding: 14px 14px 20px;
  min-height: 0;
}
#epTourPanel .ep-tg-view {
  display: none;
}
#epTourPanel .ep-tg-view.is-on {
  display: block;
}
#epTourPanel .ep-tg-sec {
  margin-bottom: 20px;
}
#epTourPanel .ep-tg-sec-title {
  position: relative;
  margin: 0 0 12px;
  padding-left: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
#epTourPanel .ep-tg-sec-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 2px;
  background: #2f7cf6;
}
#epTourPanel .ep-tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #e8eef5;
  font-size: 13px;
  cursor: pointer;
}
#epTourPanel .ep-tg-btn:hover {
  background: rgba(47,124,246,.18);
  border-color: rgba(47,124,246,.45);
}
#epTourPanel .ep-tg-btn-coral {
  background: #e87a6a;
  border-color: #e87a6a;
  color: #fff;
  font-weight: 600;
  height: 44px;
}
#epTourPanel .ep-tg-btn-coral:hover {
  background: #f08a7a;
  border-color: #f08a7a;
}
#epTourPanel .ep-tg-route-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#epTourPanel .ep-tg-route-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
#epTourPanel .ep-tg-route-item.is-on {
  border-color: #2f7cf6;
  box-shadow: 0 0 0 1px rgba(47,124,246,.35);
}
#epTourPanel .ep-tg-route-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
#epTourPanel .ep-tg-route-ops {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
#epTourPanel .ep-tg-ico {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  font-size: 13px;
}
#epTourPanel .ep-tg-ico:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* 全局设置 · 上传 */
#epTourPanel .ep-tg-upload-hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
#epTourPanel .ep-tg-upload-hd span {
  color: rgba(255,255,255,.4);
  font-size: 12px;
}
#epTourPanel .ep-tg-upload {
  position: relative;
  height: 120px;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  border: 1px dashed rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  cursor: pointer;
  overflow: hidden;
}
#epTourPanel .ep-tg-upload img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#epTourPanel .ep-tg-upload.has-img img {
  display: block;
}
#epTourPanel .ep-tg-upload.has-img .ep-tg-up-hint,
#epTourPanel .ep-tg-upload.has-img .ep-tg-up-btn {
  display: none;
}
#epTourPanel .ep-tg-up-hint {
  color: rgba(255,255,255,.4);
  font-size: 12px;
}
#epTourPanel .ep-tg-up-btn {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #2f7cf6;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
#epTourPanel .ep-tg-upload-clear {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: none;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  cursor: pointer;
}
#epTourPanel .ep-tg-upload.has-img .ep-tg-upload-clear {
  display: block;
}
#epTourPanel .ep-tg-dur {
  margin: 8px 0 16px;
  padding: 10px 12px;
  background: rgba(0,0,0,.22);
  border-radius: 10px;
}
#epTourPanel .ep-tg-dur-lab {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.8);
  margin-bottom: 6px;
  font-weight: 400;
}
#epTourPanel .ep-tg-dur-lab b {
  color: #7dd3c0;
  font-weight: 700;
}
#epTourPanel .ep-tg-dur input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: #2f9e6e;
}
#epTourPanel .ep-tg-dur-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,.45);
}
#epTourPanel .ep-tg-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #c8d2de;
  font-weight: 400;
  cursor: pointer;
}
#epTourPanel .ep-tg-check input {
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: #2f7cf6;
}
#epTourPanel .ep-tg-field {
  margin-bottom: 12px;
}
#epTourPanel .ep-tg-field label {
  display: block;
  margin-bottom: 6px;
  color: #c8d2de;
  font-weight: 400;
}
#epTourPanel .ep-tg-field .form-control,
#epTourPanel .ep-tg-field input[type="number"],
#epTourPanel .ep-tg-field input[type="color"],
#epTourPanel .ep-tg-field select {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #e8eef5;
  padding: 0 10px;
}
#epTourPanel .ep-tg-speed {
  display: flex;
  gap: 8px;
}
#epTourPanel .ep-tg-speed label {
  flex: 1;
  height: 36px;
  line-height: 34px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  color: #c8d2de;
}
#epTourPanel .ep-tg-speed input {
  display: none;
}
#epTourPanel .ep-tg-speed label.is-on {
  border-color: #2f7cf6;
  color: #fff;
  background: rgba(47,124,246,.22);
}

/* 线路编辑 */
#epTourPanel .ep-tg-tip {
  margin: 10px 0 8px;
  font-size: 12px;
  color: #f0a35a;
  line-height: 1.45;
}
#epTourPanel .ep-tg-meta {
  margin: 0 0 12px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}
#epTourPanel .ep-tg-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#epTourPanel .ep-tg-pt {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 0;
}
#epTourPanel .ep-tg-pt-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
#epTourPanel .ep-tg-pt-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 90, 90, 0.85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  flex-shrink: 0;
}
#epTourPanel .ep-tg-pt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
}
#epTourPanel .ep-tg-pt-gap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0 6px 24px;
  position: relative;
}
#epTourPanel .ep-tg-pt-line {
  width: 2px;
  height: 28px;
  background: rgba(255,255,255,.2);
  margin-right: 4px;
  flex-shrink: 0;
}
#epTourPanel .ep-tg-gap-time {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#epTourPanel .ep-tg-pt-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 2px;
}
#epTourPanel .ep-tg-pt-time-row > label {
  flex-shrink: 0;
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
}
#epTourPanel .ep-tg-mt-range {
  flex: 1;
  min-width: 0;
  height: 4px;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,.18);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
#epTourPanel .ep-tg-mt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7eb6ff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  cursor: grab;
}
#epTourPanel .ep-tg-mt-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #7eb6ff;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  cursor: grab;
}
#epTourPanel .ep-tg-mt-val,
#epTourPanel .ep-tg-pt-time {
  min-width: 36px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
}
#epTourPanel .ep-tg-pt-set {
  border: 0;
  background: transparent;
  color: #7eb6ff;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
#epTourPanel .ep-tg-pt-set:hover {
  color: #fff;
}

/* 中部时间轴：可拖动调整移动时间的连线 */
#home5 .line_add.ep-tg-line-timed {
  height: 3px;
  border-width: 3px;
  box-sizing: content-box;
  cursor: ew-resize;
  transition: width .05s linear;
}
#home5 .line_add .ep-tg-line-time {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
#home5 .line_add .square_blue,
#home5 .line_add .square_red {
  width: 12px;
  height: 12px;
  top: -6px;
  cursor: ew-resize;
  z-index: 3;
}
#epTourPanel .ep-tg-bgm-btn {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  color: #c8d2de;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}
#epTourPanel .ep-tg-bgm-btn:hover {
  border-color: rgba(47,124,246,.5);
  color: #fff;
}
#epTourPanel .ep-tg-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 16px 0;
}

/* 主题风格（与导航一致） */
#epTourPanel .ep-tg-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 10px;
}
#epTourPanel .ep-tg-chip {
  height: 36px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
#epTourPanel .ep-tg-chip span { pointer-events: none; }
#epTourPanel .ep-tg-chip.is-on { outline: 2px solid #276ff9; outline-offset: 1px; }
#epTourPanel .ep-tg-chip-custom {
  background: #1f6b4a !important;
  border-color: #2ecc71;
}
#epTourPanel .ep-tg-more-colors {
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #276ff9;
  color: #fff;
  font-size: 12px;
  margin-bottom: 8px;
  cursor: pointer;
}
#epTourPanel .ep-tg-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
#epTourPanel .ep-tg-color-grid button {
  height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px;
  color: #fff;
  font-size: 10px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
#epTourPanel .ep-tg-mini-label {
  display: block;
  margin: 10px 0 6px;
  color: #c8d2de;
  font-weight: 400;
  font-size: 12px;
}
#epTourPanel .ep-tg-color-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#epTourPanel .ep-tg-color-row input[type=color] {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  background: transparent;
}
#epTourPanel .ep-tg-color-row .form-control {
  flex: 1;
  min-width: 72px;
  height: 34px;
}
#epTourPanel .ep-tg-grad-check {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: #c8d2de;
  white-space: nowrap;
  font-weight: 400;
  cursor: pointer;
}
#epTourPanel .ep-tg-scale-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
#epTourPanel .ep-tg-scale-row input[type=number] {
  width: 64px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #e8eef5;
  padding: 0 8px;
}
#epTourPanel .ep-tg-scale-row input[type=range] {
  flex: 1;
  accent-color: #276ff9;
}
#epTourPanel .ep-tg-theme-preview {
  margin-top: 12px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.12);
}
#epTourPanel .ep-tg-pt-desc-wrap {
  margin-top: 8px;
}
#epTourPanel .ep-tg-pt-desc-wrap label {
  display: block;
  margin-bottom: 4px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 400;
}
#epTourPanel .ep-tg-pt-desc {
  width: 100%;
  min-height: 52px;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.28);
  color: #e8eef5;
  padding: 8px 10px;
  font-size: 12px;
}

/* 浏览端 · 导览目标提示（加大、可滚动长文） */
.ep-tour-tip {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 100px;
  top: auto;
  transform: translateX(-50%);
  z-index: 3200;
  width: min(680px, 94vw);
  min-width: min(300px, 92vw);
  max-width: min(720px, 94vw);
  max-height: min(46vh, 420px);
  padding: 16px 20px 18px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  pointer-events: auto;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(143, 211, 154, 0.94), rgba(78, 174, 104, 0.94));
  box-shadow: 0 12px 36px rgba(20, 40, 30, 0.28);
  box-sizing: border-box;
}
.ep-tour-tip.is-on {
  display: flex;
}
.ep-tour-tip.is-pos-top {
  top: 72px;
  bottom: auto;
  transform: translateX(-50%);
}
.ep-tour-tip.is-pos-middle {
  top: 48%;
  bottom: auto;
  transform: translate(-50%, -50%);
}
.ep-tour-tip.is-pos-bottom {
  top: auto;
  bottom: 100px;
  transform: translateX(-50%);
}
.ep-tour-tip__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}
.ep-tour-tip__head-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}
.ep-tour-tip__title {
  flex: 0 1 auto;
  max-width: 80%;
  min-width: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-tour-tip__dots {
  display: flex;
  gap: 5px;
  padding-top: 4px;
  flex-shrink: 0;
}
.ep-tour-tip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  animation: epTourDotPulse 1.2s infinite ease-in-out;
}
.ep-tour-tip__dot:nth-child(2) { animation-delay: .2s; }
.ep-tour-tip__dot:nth-child(3) { animation-delay: .4s; }
@keyframes epTourDotPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.ep-tour-tip__step {
  display: none;
}
.ep-tour-tip__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  min-width: 72px;
  flex: 1 1 auto;
}
.ep-tour-tip__progress-track {
  flex: 1;
  min-width: 48px;
  max-width: none;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.ep-tour-tip__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72));
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
  transition: width 0.35s ease;
}
.ep-tour-tip__progress-pct {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.95;
  letter-spacing: 0.02em;
  min-width: 2.6em;
  text-align: right;
}
/* 名称过长（超过主区约 80%）时：进度条换到下一行，并拉满胶囊主区宽度 */
.ep-tour-tip__head-main.is-progress-below {
  flex-wrap: wrap;
  row-gap: 8px;
}
.ep-tour-tip__head-main.is-progress-below .ep-tour-tip__title {
  flex: 1 1 100%;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.ep-tour-tip__head-main.is-progress-below .ep-tour-tip__progress {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}
.ep-tour-tip__text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: min(30vh, 280px);
  padding-right: 4px;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
}
.ep-tour-tip__text::-webkit-scrollbar {
  width: 5px;
}
.ep-tour-tip__text::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.35);
  border-radius: 4px;
}

@media (max-width: 640px) {
  .ep-tour-tip {
    width: 94vw;
    max-height: min(50vh, 380px);
    bottom: 92px;
    padding: 14px 14px 16px;
    border-radius: 14px;
  }
  .ep-tour-tip.is-pos-bottom {
    bottom: 92px;
  }
  .ep-tour-tip__title { font-size: 17px; }
  .ep-tour-tip__text {
    max-height: min(34vh, 260px);
    font-size: 17px;
  }
  .ep-tour-tip__progress { min-width: 64px; }
}

/* 浏览端线路选择 */
#epTourRoutePick {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
}
#epTourRoutePick.is-open {
  display: flex;
}
#epTourRoutePick .ep-trp-box {
  width: min(360px, 90vw);
  background: #1a2130;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  padding: 18px;
  color: #e8eef5;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
#epTourRoutePick h4 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #fff;
}
#epTourRoutePick .ep-trp-item {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition: filter .15s ease, transform .15s ease;
}
#epTourRoutePick .ep-trp-item:hover {
  filter: brightness(1.08);
}
#epTourRoutePick .ep-trp-cancel {
  margin-top: 6px;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: transparent;
  color: #c8d2de;
  font-size: 14px;
  cursor: pointer;
}

/* ========== 浏览端 · 导览起止图浮层 / 迷你按钮 ========== */
.ep-tour-img-ov {
  position: absolute;
  inset: 0;
  z-index: 920;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s ease;
}
.ep-tour-img-ov.is-on {
  display: flex;
  pointer-events: auto;
}
.ep-tour-img-ov__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}
.ep-tour-img-ov__stage {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 720px);
  max-height: min(86vh, 720px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
  transform-origin: center center;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.ep-tour-img-ov.is-shrinking .ep-tour-img-ov__stage {
  transform: scale(.08) translateY(42vh);
  opacity: 0;
}
.ep-tour-img-ov.is-fadeout {
  opacity: 0;
  transition: opacity .3s ease;
}
.ep-tour-img-ov.is-fadeout .ep-tour-img-ov__stage {
  transform: scale(.96);
  opacity: 0;
}
.ep-tour-img-ov__stage img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #111;
}
.ep-tour-img-ov__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.ep-tour-img-ov__cd {
  position: absolute;
  top: 12px;
  right: 54px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 14px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  z-index: 2;
}
/* 导览说明：落在底部暂停/停止按钮前方 */
#tour_btn_wrap.vrshow_tour_btn_wrap {
  width: auto;
  max-width: 96vw;
  margin-left: 0;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  white-space: nowrap;
  text-align: center;
}
#tour_btn_wrap .vrshow_tour_btn_oper {
  float: none;
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
  width: auto;
  min-width: 88px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  line-height: 34px;
  border: 1px solid rgba(78, 174, 104, 0.85);
  background: linear-gradient(180deg, rgba(143, 211, 154, 0.92), rgba(78, 174, 104, 0.92));
  box-shadow: 0 4px 12px rgba(78, 174, 104, 0.28);
  color: #fff;
  box-sizing: border-box;
}
#tour_btn_wrap .vrshow_tour_btn_oper .btn_tour_text {
  width: auto;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
#tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini {
  display: none;
  width: auto;
  min-width: 88px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(78, 174, 104, 0.85);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(143, 211, 154, 0.92), rgba(78, 174, 104, 0.92));
  box-shadow: 0 4px 12px rgba(78, 174, 104, 0.28);
  overflow: visible;
  cursor: pointer;
  position: relative;
  z-index: 801;
  line-height: 34px;
}
#tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini.is-on {
  display: inline-block;
}
#tour_btn_wrap #ep_tour_img_mini .btn_tour_text {
  width: 100%;
  font-size: 14px;
}
body.cnav-navigating #ep_tour_img_mini { display: none !important; }

/* ========== 导览 UI 跟随分组样式 data-group-style ========== */
#fullscreenid[data-group-style="gov"] .ep-tour-tip,
#fullscreenid[data-group-style="gov"] #tour_btn_wrap .vrshow_tour_btn_oper,
#fullscreenid[data-group-style="gov"] #tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini {
  background: linear-gradient(180deg, rgba(143, 211, 154, 0.92), rgba(78, 174, 104, 0.92));
  border-color: rgba(78, 174, 104, 0.9);
  box-shadow: 0 6px 18px rgba(78, 174, 104, 0.32);
  color: #fff;
}
#fullscreenid[data-group-style="gov"] #epTourRoutePick .ep-trp-box {
  border-color: rgba(78, 174, 104, 0.35);
}
#fullscreenid[data-group-style="gov"] #epTourRoutePick .ep-trp-item {
  background: linear-gradient(180deg, rgba(143, 211, 154, 0.95), rgba(78, 174, 104, 0.95));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
#fullscreenid[data-group-style="gov"] #epTourRoutePick .ep-trp-cancel {
  border-color: rgba(78, 174, 104, 0.55);
  color: #c8efd0;
}

#fullscreenid[data-group-style="blue_pill"] .ep-tour-tip,
#fullscreenid[data-group-style="blue_pill"] #tour_btn_wrap .vrshow_tour_btn_oper,
#fullscreenid[data-group-style="blue_pill"] #tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini {
  background: linear-gradient(180deg, rgba(90, 163, 255, 0.92), rgba(47, 123, 255, 0.92));
  border-color: rgba(47, 123, 255, 0.9);
  box-shadow: 0 6px 18px rgba(47, 123, 255, 0.32);
  color: #fff;
}
#fullscreenid[data-group-style="blue_pill"] #epTourRoutePick .ep-trp-item {
  background: linear-gradient(180deg, rgba(90, 163, 255, 0.95), rgba(47, 123, 255, 0.95));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
#fullscreenid[data-group-style="blue_pill"] #epTourRoutePick .ep-trp-cancel {
  border-color: rgba(90, 163, 255, 0.55);
  color: #cfe2ff;
}

#fullscreenid[data-group-style="orange_pill"] .ep-tour-tip,
#fullscreenid[data-group-style="orange_pill"] #tour_btn_wrap .vrshow_tour_btn_oper,
#fullscreenid[data-group-style="orange_pill"] #tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini {
  background: linear-gradient(180deg, rgba(255, 192, 77, 0.95), rgba(246, 166, 0, 0.95));
  border-color: rgba(246, 166, 0, 0.9);
  box-shadow: 0 6px 18px rgba(246, 166, 0, 0.32);
  color: #fff;
}
#fullscreenid[data-group-style="orange_pill"] #epTourRoutePick .ep-trp-item {
  background: linear-gradient(180deg, rgba(255, 192, 77, 0.95), rgba(246, 166, 0, 0.95));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
#fullscreenid[data-group-style="orange_pill"] #epTourRoutePick .ep-trp-cancel {
  border-color: rgba(246, 166, 0, 0.55);
  color: #ffe6b0;
}

#fullscreenid[data-group-style="classic"] .ep-tour-tip,
#fullscreenid[data-group-style="wheel"] .ep-tour-tip,
#fullscreenid[data-group-style="classic"] #tour_btn_wrap .vrshow_tour_btn_oper,
#fullscreenid[data-group-style="wheel"] #tour_btn_wrap .vrshow_tour_btn_oper,
#fullscreenid[data-group-style="classic"] #tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini,
#fullscreenid[data-group-style="wheel"] #tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini {
  background: linear-gradient(180deg, rgba(91, 147, 247, 0.92), rgba(61, 126, 245, 0.92));
  border-color: rgba(61, 126, 245, 0.9);
  box-shadow: 0 6px 18px rgba(61, 126, 245, 0.32);
  color: #fff;
}
#fullscreenid[data-group-style="classic"] #epTourRoutePick .ep-trp-item,
#fullscreenid[data-group-style="wheel"] #epTourRoutePick .ep-trp-item {
  background: linear-gradient(180deg, rgba(91, 147, 247, 0.95), rgba(61, 126, 245, 0.95));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
#fullscreenid[data-group-style="classic"] #epTourRoutePick .ep-trp-cancel,
#fullscreenid[data-group-style="wheel"] #epTourRoutePick .ep-trp-cancel {
  border-color: rgba(91, 147, 247, 0.55);
  color: #d3e2ff;
}

#fullscreenid[data-group-style="glass_pill"] .ep-tour-tip,
#fullscreenid[data-group-style="glass_pill"] #tour_btn_wrap .vrshow_tour_btn_oper,
#fullscreenid[data-group-style="glass_pill"] #tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini {
  background: rgba(40, 44, 52, 0.72);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}
#fullscreenid[data-group-style="glass_pill"] #epTourRoutePick .ep-trp-box {
  background: rgba(30, 34, 42, 0.88);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#fullscreenid[data-group-style="glass_pill"] #epTourRoutePick .ep-trp-item {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

#fullscreenid[data-group-style="tabs"] .ep-tour-tip,
#fullscreenid[data-group-style="tabs"] #tour_btn_wrap .vrshow_tour_btn_oper,
#fullscreenid[data-group-style="tabs"] #tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini {
  background: linear-gradient(180deg, rgba(58, 51, 72, 0.95), rgba(28, 22, 40, 0.95));
  border-color: rgba(255, 138, 31, 0.75);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 -2px 0 #ff8a1f;
  color: #fff;
}
#fullscreenid[data-group-style="tabs"] #epTourRoutePick .ep-trp-item {
  background: linear-gradient(180deg, rgba(58, 51, 72, 0.95), rgba(28, 22, 40, 0.95));
  border-color: rgba(255, 138, 31, 0.55);
  color: #fff;
  box-shadow: inset 0 -2px 0 #ff8a1f;
}

#fullscreenid[data-group-style="estate"] .ep-tour-tip,
#fullscreenid[data-group-style="estate"] #tour_btn_wrap .vrshow_tour_btn_oper,
#fullscreenid[data-group-style="estate"] #tour_btn_wrap #ep_tour_img_mini.ep-tour-img-mini {
  background: linear-gradient(135deg, rgba(75, 108, 255, 0.92), rgba(42, 63, 212, 0.92));
  border-color: rgba(42, 63, 212, 0.9);
  box-shadow: 0 6px 18px rgba(42, 63, 212, 0.35);
  color: #fff;
}
#fullscreenid[data-group-style="estate"] #epTourRoutePick .ep-trp-item {
  background: linear-gradient(135deg, rgba(75, 108, 255, 0.95), rgba(42, 63, 212, 0.95));
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
#fullscreenid[data-group-style="estate"] #epTourRoutePick .ep-trp-cancel {
  border-color: rgba(75, 108, 255, 0.55);
  color: #d4dcff;
}

/* —— 编辑器 · 时间线设置遮罩（对齐 ep-link-overlay） —— */
#timeModal.ep-tl-overlay {
  z-index: 2800 !important;
  pointer-events: auto !important;
}
#timeModal.ep-tl-overlay .modal-dialog {
  position: relative !important;
  width: min(560px, 94vw) !important;
  max-width: min(560px, 94vw) !important;
  margin: 8vh auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#timeModal.ep-tl-overlay .modal-content {
  background: #1a2130 !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.55) !important;
  color: #e8eef5 !important;
  overflow: hidden;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}
#timeModal.ep-tl-overlay .modal-header {
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  padding: 14px 18px !important;
  background: transparent !important;
}
#timeModal.ep-tl-overlay .modal-title {
  color: #fff !important;
  font-size: 16px !important;
  margin: 0 !important;
  font-weight: 600;
}
#timeModal.ep-tl-overlay .close {
  color: #fff !important;
  opacity: .7;
  text-shadow: none;
  font-size: 22px;
}
#timeModal.ep-tl-overlay .close:hover { opacity: 1; }
#timeModal.ep-tl-overlay .modal-body {
  padding: 16px 18px !important;
  max-height: min(68vh, 560px);
  overflow: auto;
  color: #e8eef5 !important;
  background: transparent !important;
}
#timeModal.ep-tl-overlay .modal-footer {
  border-top: 1px solid rgba(255,255,255,.08) !important;
  padding: 12px 18px 16px !important;
  background: transparent !important;
  text-align: right;
}
#timeModal.ep-tl-overlay .modal-footer .btn-primary {
  background: #2f7cf6 !important;
  border-color: #2f7cf6 !important;
  color: #fff !important;
  border-radius: 8px;
  min-width: 88px;
}
#timeModal.ep-tl-overlay .modal-footer .btn-default {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #e8eef5 !important;
  border-radius: 8px;
  min-width: 72px;
}
#timeModal.ep-tl-overlay .form-control {
  background: rgba(0,0,0,.28) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #e8eef5 !important;
  border-radius: 8px;
  box-shadow: none !important;
  width: 100% !important;
  display: block !important;
  height: auto;
  min-height: 34px;
  padding: 7px 10px;
  line-height: 1.4;
}
#timeModal.ep-tl-overlay textarea.form-control {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}
.ep-tl-sec { margin: 0 0 16px; }
.ep-tl-sec:last-child { margin-bottom: 4px; }
.ep-tl-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #dce6f2;
}
.ep-tl-label-sub {
  font-weight: 400;
  font-size: 11px;
  color: rgba(255,255,255,.42);
}
.ep-tl-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.ep-tl-row #tl_move_time {
  width: 96px !important;
  flex: 0 0 96px;
  text-align: center;
}
.ep-tl-unit {
  color: rgba(255,255,255,.65);
  font-size: 13px;
}
.ep-tl-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,.42);
  line-height: 1.4;
}
.ep-tl-music-name {
  display: inline-block;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.1);
  color: #c5d2e2;
  font-size: 12px;
}
.ep-tl-link {
  color: #7eb6ff !important;
  font-size: 13px;
  text-decoration: none;
}
.ep-tl-link:hover { color: #a8ceff !important; text-decoration: underline; }
.ep-tl-link-danger { color: #f28b8b !important; }
.ep-tl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.ep-tl-field-full { grid-column: 1 / -1; }
.ep-tl-field-lab {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.ep-tl-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ep-tl-color-row input[type="color"] {
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.ep-tl-color-row #myColor4 {
  flex: 1;
  min-width: 0;
}
.ep-tl-seg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ep-tl-seg button {
  flex: 1;
  min-width: 64px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: #c8d4e4;
  font-size: 12px;
  cursor: pointer;
}
.ep-tl-seg button.is-on {
  background: rgba(47, 124, 246, .28);
  border-color: rgba(47, 124, 246, .65);
  color: #fff;
  font-weight: 600;
}
.ep-tl-preview {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(47, 124, 246, .22);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  word-break: break-word;
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
}

