/* ===== 首次使用引导弹窗 ===== */
.intro {
  position: absolute;
  inset: 0;
  z-index: var(--z-intro);
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.intro.show { display: flex; }
.intro-box {
  pointer-events: auto;
  width: 560px;
  max-width: 92vw;
  height: 480px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(15, 23, 42, .65));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  overflow: hidden;
  animation: intro-pop .5s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes intro-pop {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.intro.closing .intro-box {
  animation:
    intro-out-scale .42s cubic-bezier(.6, -0.28, 0.735, 0.045) forwards,
    intro-out-fade .22s ease-out .2s forwards;
}
@keyframes intro-out-scale {
  from { transform: scale(1); }
  to { transform: scale(.72); }
}
@keyframes intro-out-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}
.intro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.intro-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.intro-ico {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #c7d5ec;
}
.intro-close {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .55);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  width: 28px; height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.intro-close:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.intro-theme {
  position: relative;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
  width: 26px; height: 26px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.intro-theme .ico {
  width: 18px; height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
  display: block;
}
.intro-theme:hover { color: #fff; background: rgba(255, 255, 255, .12); }
/* hover 提示气泡 */
.intro-theme::after {
  content: "切换主题";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 9px;
  background: rgba(15, 23, 42, .96);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}
.intro-theme:hover::after { opacity: 1; }

/* 主体：左侧步骤 + 右侧内容 */
.intro-main {
  display: flex;
  flex: 1;
  min-height: 0;
}
.intro-steps {
  width: 130px;
  flex-shrink: 0;
  padding: 16px 0;
  border-right: 1px solid rgba(255, 255, 255, .06);
  display: flex;
  flex-direction: column;
  position: relative;
}
.step-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .4);
  font-size: 12px;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  position: relative;
  z-index: 1;
}
.step-item:hover { color: rgba(255, 255, 255, .75); }
.step-item.active { color: #fff; }
.step-num {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  opacity: .6;
  transition: all .2s;
}
.step-item.active .step-num {
  opacity: 1;
  color: var(--accent2);
}
.step-label { font-weight: 500; }
/* 步骤指示：毛玻璃穿梭块 + 左侧竖线 */
.step-glow {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 16px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
  z-index: 0;
}
.step-line {
  position: absolute;
  left: 0;
  top: 16px;
  width: 3px;
  height: 42px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 0 3px 3px 0;
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.intro-body {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}
.intro-track {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--t-slow) var(--ease);
}
.intro-panel {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 18px 22px;
}
.panel-h {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
}

/* 列表项：键值样式 */
.intro-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.intro-list li {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  padding: 7px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.intro-list .li-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--accent2);
  stroke: var(--accent2);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.intro-list .k {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 更新记录：时间线样式 */
.changelog { display: flex; flex-direction: column; gap: 14px; }
.log-item {
  display: flex;
  gap: 12px;
  position: relative;
}
.log-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 28px;
  bottom: -14px;
  width: 1px;
  background: rgba(255, 255, 255, .08);
}
.log-item:last-child::before { display: none; }
.log-item .ver {
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--accent-contrast);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.log-desc {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.log-item ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}
.log-item li { margin: 2px 0; line-height: 1.5; }

.intro-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.intro-check {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.intro-check input { accent-color: var(--accent); cursor: pointer; }
.intro-nav { display: flex; gap: 8px; }
.intro-nav-btn {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 9px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.intro-nav-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.intro-nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.intro-nav-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--accent-contrast);
  border-color: transparent;
  font-weight: 600;
}
.intro-nav-btn.primary:hover { filter: brightness(1.1); }
