.yao-tour-root {
  position: fixed;
  inset: 0;
  z-index: 100000002;
  pointer-events: none;
  font-family: inherit;
  color: #17181c;
  --yao-tour-bg: #ffffff;
  --yao-tour-fg: #17181c;
  --yao-tour-muted: #62656d;
  --yao-tour-border: rgba(23, 24, 28, 0.1);
  --yao-tour-accent: var(--primary, #25291f);
  --yao-tour-accent-fg: #ffffff;
  --yao-tour-danger: #b3261e;
  --yao-tour-dim: rgba(9, 10, 12, 0.55);
  --yao-tour-radius: 16px;
}
.yao-tour-root[data-theme='dark'] {
  color: #f3f3ef;
  --yao-tour-bg: #1d1f1c;
  --yao-tour-fg: #f3f3ef;
  --yao-tour-muted: #a9aca6;
  --yao-tour-border: rgba(255, 255, 255, 0.14);
  --yao-tour-accent: var(--primary, #d7dccb);
  --yao-tour-accent-fg: #14160f;
  --yao-tour-danger: #ff8a80;
  --yao-tour-dim: rgba(4, 5, 4, 0.62);
}
.yao-tour-panel {
  position: fixed;
  background: var(--yao-tour-dim);
  pointer-events: auto;
  transition: opacity 160ms ease;
}
.yao-tour-hole {
  position: fixed;
  border-radius: 14px;
  pointer-events: none;
  box-shadow:
    0 0 0 2px var(--yao-tour-accent),
    0 0 0 6px color-mix(in srgb, var(--yao-tour-accent) 18%, transparent),
    0 18px 48px rgba(0, 0, 0, 0.24);
  transition:
    top 180ms ease,
    left 180ms ease,
    width 180ms ease,
    height 180ms ease;
}
.yao-tour-bubble {
  position: fixed;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 24px));
  padding: 16px 16px 14px;
  border-radius: var(--yao-tour-radius);
  background: var(--yao-tour-bg);
  color: var(--yao-tour-fg);
  border: 1px solid var(--yao-tour-border);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  outline: none;
  font-size: 14px;
  line-height: 1.6;
  animation: yao-tour-in 160ms ease both;
}
@keyframes yao-tour-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .yao-tour-bubble { animation: none; }
  .yao-tour-panel,
  .yao-tour-hole { transition: none; }
}
.yao-tour-bubble[data-mobile='true'] {
  left: 12px !important;
  right: 12px;
  bottom: 12px;
  top: auto !important;
  width: auto;
  max-height: min(52vh, 420px);
  overflow-y: auto;
}
.yao-tour-bubble[data-mobile='true'] .yao-tour-arrow { display: none; }
.yao-tour-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--yao-tour-bg);
  border-left: 1px solid var(--yao-tour-border);
  border-top: 1px solid var(--yao-tour-border);
  transform: rotate(45deg);
}
.yao-tour-bubble[data-placement='bottom'] .yao-tour-arrow {
  top: -7px;
  border-left: none;
  border-top: none;
  border-right: 1px solid var(--yao-tour-border);
  border-bottom: 1px solid var(--yao-tour-border);
  transform: rotate(-135deg);
}
.yao-tour-bubble[data-placement='top'] .yao-tour-arrow { bottom: -7px; }
.yao-tour-bubble[data-placement='right'] .yao-tour-arrow {
  left: -7px;
  transform: rotate(-45deg);
}
.yao-tour-bubble[data-placement='left'] .yao-tour-arrow {
  right: -7px;
  transform: rotate(135deg);
}
.yao-tour-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.yao-tour-progress {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--yao-tour-muted);
  font-variant-numeric: tabular-nums;
}
.yao-tour-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--yao-tour-accent);
}
.yao-tour-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--yao-tour-muted);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.yao-tour-close:hover { background: color-mix(in srgb, var(--yao-tour-fg) 8%, transparent); }
.yao-tour-close:focus-visible { outline: 2px solid var(--yao-tour-accent); outline-offset: 2px; }
.yao-tour-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--yao-tour-fg);
}
.yao-tour-desc {
  margin: 0;
  color: var(--yao-tour-muted);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}
.yao-tour-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--yao-tour-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.yao-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.yao-tour-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.yao-tour-btn {
  appearance: none;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  background: transparent;
  color: var(--yao-tour-muted);
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.yao-tour-btn:hover { background: color-mix(in srgb, var(--yao-tour-fg) 7%, transparent); }
.yao-tour-btn:focus-visible { outline: 2px solid var(--yao-tour-accent); outline-offset: 2px; }
.yao-tour-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}
.yao-tour-btn-primary {
  background: var(--yao-tour-accent);
  color: var(--yao-tour-accent-fg);
  border-color: var(--yao-tour-accent);
}
.yao-tour-btn-primary:hover {
  background: color-mix(in srgb, var(--yao-tour-accent) 88%, #000);
  color: var(--yao-tour-accent-fg);
}
.yao-tour-btn-danger { color: var(--yao-tour-danger); }
.yao-tour-btn-danger:hover {
  background: color-mix(in srgb, var(--yao-tour-danger) 12%, transparent);
  color: var(--yao-tour-danger);
}
.yao-tour-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 639px) {
  .yao-tour-bubble { width: calc(100vw - 24px); }
}
/*
 * 教程运行期间收起常驻浮层。
 * 教程启动按钮是右下角 fixed 的浮层，会盖住贴着右下角的锚点
 * （例如教程中心自身的卡片），遮罩是 pointer-events: none 的，
 * 点击会落到浮层上而不是目标，用户就卡在那一步点不动。
 */
body[data-yao-tour='active'] [data-yao-tour='tour-launcher']:not([data-yao-tour-target='true']) {
  display: none !important;
}
/*
 * 教程运行期间收起「公告弹窗」。
 * 公告弹窗是 Teleport 到 body 的 fixed 全屏遮罩（z-120），会盖住所有锚点，
 * 用户走到交互步会点不动；弹窗本身是登录后的一次性提醒，教程结束后若仍未读会再出现。
 */
body[data-yao-tour='active'] .yao-announcement-popup,
body[data-yao-tour='active'] .yao-popup-mask,
body[data-yao-tour='active'] .yy-sun,
body[data-yao-tour='active'] .driver-popover,
body[data-yao-tour='active'] .driver-overlay {
  display: none !important;
}


.yao-tour-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100000001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: var(--primary, #f97316);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.32), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}
.yao-tour-launcher:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4), 0 2px 8px rgba(0, 0, 0, 0.14);
}
.yao-tour-launcher:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.yao-tour-launcher[hidden] { display: none !important; }
.yao-tour-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
}
.yao-tour-center {
  position: fixed;
  right: 16px;
  top: 64px;
  bottom: 20px;
  z-index: 100000001;
  display: flex;
  flex-direction: column;
  width: 400px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border: 1px solid rgba(23, 24, 28, 0.1);
  border-radius: 20px;
  background: #fff;
  color: #17181c;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 64px rgba(0, 0, 0, 0.24);
  animation: yao-tour-center-in 160ms ease both;
}
@keyframes yao-tour-center-in {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .yao-tour-center { animation: none; }
  .yao-tour-launcher { transition: none; }
}
.yao-tour-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}
.yao-tour-center-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.yao-tour-center-sub {
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 12px;
}
.yao-tour-center-close {
  appearance: none;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.yao-tour-center-close:hover { background: rgba(23, 24, 28, 0.06); color: #17181c; }
.yao-tour-progress-box {
  margin: 0 18px 12px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 24, 28, 0.07);
  border-radius: 13px;
  background: #f8f9fb;
}
.yao-tour-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: #6b7280;
  font-size: 12px;
}
.yao-tour-progress-label strong {
  color: #17181c;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.yao-tour-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 24, 28, 0.09);
}
.yao-tour-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--primary, #f97316);
  transition: width 220ms ease;
}
.yao-tour-search {
  position: relative;
  margin: 0 18px 10px;
}
.yao-tour-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 15px;
  pointer-events: none;
}
.yao-tour-search-input {
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  padding: 0 12px 0 33px;
  border: 1px solid rgba(23, 24, 28, 0.12);
  border-radius: 11px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.yao-tour-search-input::placeholder { color: #9ca3af; }
.yao-tour-search-input:focus {
  border-color: var(--primary, #f97316);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.yao-tour-center-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 14px;
  overscroll-behavior: contain;
}
.yao-tour-section-title {
  padding: 6px 6px 7px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.yao-tour-lessons {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.yao-tour-ops { display: flex; flex-direction: column; gap: 7px; }
@media (max-width: 620px) {
  .yao-tour-lessons { grid-template-columns: minmax(0, 1fr); }
}
.yao-tour-card {
  appearance: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(23, 24, 28, 0.08);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.yao-tour-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: #fffaf5;
  transform: translateY(-1px);
}
.yao-tour-card:focus-visible {
  outline: 2px solid var(--primary, #f97316);
  outline-offset: 1px;
}
.yao-tour-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.yao-tour-card-title {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}
.yao-tour-card-meta {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.yao-tour-card-summary {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.yao-tour-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(233, 104, 53, 0.1);
  color: #c84722;
  font-size: 10.5px;
  font-weight: 600;
}
.yao-tour-card-badge[data-level='intermediate'] {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}
.yao-tour-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  color: #9ca3af;
  font-size: 11px;
}
.yao-tour-card-cta { color: #e96835; font-weight: 600; }
.yao-tour-op {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 1px dashed rgba(23, 24, 28, 0.14);
  border-radius: 11px;
  background: #fbfbfc;
  color: inherit;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.yao-tour-op:hover { border-color: var(--primary, #f97316); background: #fffaf5; }
.yao-tour-op-step { color: #9ca3af; font-size: 11px; white-space: nowrap; }
.yao-tour-empty {
  padding: 22px 12px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}
html.dark .yao-tour-center,
html[data-theme='dark'] .yao-tour-center {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1d1f1c;
  color: #f3f3ef;
}
html.dark .yao-tour-center-sub,
html[data-theme='dark'] .yao-tour-center-sub,
html.dark .yao-tour-card-summary,
html[data-theme='dark'] .yao-tour-card-summary,
html.dark .yao-tour-progress-label,
html[data-theme='dark'] .yao-tour-progress-label {
  color: #a9aca6;
}
html.dark .yao-tour-progress-box,
html[data-theme='dark'] .yao-tour-progress-box {
  border-color: rgba(255, 255, 255, 0.09);
  background: #242622;
}
html.dark .yao-tour-progress-label strong,
html[data-theme='dark'] .yao-tour-progress-label strong { color: #f3f3ef; }
html.dark .yao-tour-progress-track,
html[data-theme='dark'] .yao-tour-progress-track { background: rgba(255, 255, 255, 0.12); }
html.dark .yao-tour-search-input,
html[data-theme='dark'] .yao-tour-search-input {
  border-color: rgba(255, 255, 255, 0.14);
  background: #242622;
  color: #f3f3ef;
}
html.dark .yao-tour-card,
html[data-theme='dark'] .yao-tour-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: #242622;
}
html.dark .yao-tour-card:hover,
html[data-theme='dark'] .yao-tour-card:hover { background: #2b2e29; }
html.dark .yao-tour-op,
html[data-theme='dark'] .yao-tour-op {
  border-color: rgba(255, 255, 255, 0.15);
  background: #242622;
}
html.dark .yao-tour-center-close,
html[data-theme='dark'] .yao-tour-center-close { color: #a9aca6; }
/* 旧版 Vue 教程宿主的兜底隐藏：JS 会优先把节点移除，CSS 防止首屏闪一下。 */
[data-yao-tour='tour-launcher']:not(.yao-tour-launcher),
[data-yao-tour='tour-center']:not(.yao-tour-center) {
  display: none !important;
}
@media (max-width: 480px) {
  .yao-tour-center {
    right: 10px;
    left: 10px;
    top: 56px;
    bottom: 72px;
    width: auto;
  }
  .yao-tour-launcher { right: 12px; bottom: 12px; }
}
