body.guide-on header { display: none !important; }
body.guide-on .pb-btn,
body.guide-on .pb-bar,
body.guide-on #page-back { display: none !important; }
.guide-fixed {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: calc(58px + env(safe-area-inset-top));
  padding: calc(9px + env(safe-area-inset-top)) 18px 9px;
  background: linear-gradient(180deg, rgba(252, 246, 238, .985), rgba(246, 246, 252, .94));
  border-bottom: 1px solid rgba(255, 255, 255, .64);
  box-shadow: 0 12px 26px -24px rgba(40, 48, 70, .42);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}
[data-scheme="dark"] .guide-fixed { background: linear-gradient(180deg, rgba(21, 27, 38, .99), rgba(24, 30, 43, .94)); border-bottom-color: rgba(255, 255, 255, .09); }
.guide-fixed-title { color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.guide-fixed-sub { padding: 3px 7px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; color: var(--muted); font-size: 10px; font-style: normal; }
.guide-page {
  padding: calc(64px + env(safe-area-inset-top)) 0 22px;
  --guide-accent: #3a7afe;
  --guide-card: rgba(255, 255, 255, .78);
  --guide-line: rgba(255, 255, 255, .82);
  --guide-shadow: 0 16px 36px -28px rgba(38, 50, 78, .38);
}
[data-scheme="dark"] .guide-page {
  --guide-accent: #8fb4ff;
  --guide-card: rgba(31, 38, 52, .74);
  --guide-line: rgba(255, 255, 255, .12);
  --guide-shadow: 0 16px 36px -24px rgba(0, 0, 0, .52);
}
.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 17px;
  border: 1px solid var(--guide-line);
  border-radius: 26px;
  background:
    radial-gradient(100% 125% at 0% 0%, rgba(112, 157, 255, .22), transparent 55%),
    linear-gradient(150deg, rgba(255, 255, 255, .88), rgba(248, 251, 255, .58));
  box-shadow: var(--guide-shadow), inset 0 1px 0 rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
}
.guide-hero::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -48px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 0 0 24px rgba(106, 149, 255, .08), 0 0 0 48px rgba(106, 149, 255, .04);
  pointer-events: none;
}
.guide-back {
  flex: 0 0 34px;
  position: static;
  width: 34px;
  height: 34px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  box-shadow: 0 10px 22px -10px rgba(27, 42, 34, .3), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
/* 课间小抄：和设置页共用玻璃卡片，不新开一套视觉 */
.set-wrap.guide-on > .acc-big { display: none !important; }
.set-wrap.guide-on .set-top { display: none; }
.guide-hero h2 {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 27px;
  line-height: 1.13;
  font-weight: 720;
  letter-spacing: -.04em;
  color: var(--ink);
}
.guide-hero p { position: relative; z-index: 1; margin: 9px 0 0; max-width: 30em; color: var(--muted); font-size: 12px; line-height: 1.62; }
.guide-hero-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 14px; color: var(--muted); font-size: 10.5px; }
.guide-hero-foot b { color: var(--guide-accent); font-weight: 700; }
.guide-toolbar { margin: 14px 0 9px; }
.guide-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--guide-line);
  border-radius: 15px;
  background: var(--guide-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.guide-search svg { flex: 0 0 17px; width: 17px; height: 17px; color: var(--muted); }
.guide-search input { width: 100%; min-width: 0; padding: 0 !important; margin: 0 !important; border: 0 !important; outline: 0; background: transparent !important; color: var(--ink); font: inherit; font-size: 12.5px; -webkit-appearance: none; appearance: none; border-radius: 0 !important; box-shadow: none !important; min-height: 0 !important; }
.guide-search input::-webkit-search-decoration, .guide-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.guide-search input::placeholder { color: var(--muted); opacity: .8; }
.guide-search input:focus, .guide-search input:focus-visible { outline: none !important; box-shadow: none !important; border: 0 !important; background: transparent !important; }
.guide-search:focus-within { border-color: rgba(37, 100, 83, .30) !important; box-shadow: 0 0 0 3px rgba(37, 100, 83, .09), inset 0 1px 0 rgba(255, 255, 255, .84) !important; }
.guide-chips { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 4px; margin: 0 0 12px; scrollbar-width: none; }
.guide-chips::-webkit-scrollbar { display: none; }
.guide-chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84);
}
.guide-chip.is-on { border-color: rgba(58, 122, 254, .28); background: rgba(58, 122, 254, .12); color: var(--guide-accent); }
.guide-chip:active { transform: scale(.96); }
.guide-list { display: flex; flex-direction: column; gap: 12px; }
.guide-section { display: flex; flex-direction: column; gap: 7px; }
.guide-section-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 0; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; }
.guide-section-head i { font-style: normal; font-weight: 500; letter-spacing: 0; opacity: .7; }
.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 13px 12px;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: var(--guide-card);
  box-shadow: 0 10px 28px -26px rgba(38, 50, 78, .42), inset 0 1px 0 rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.guide-num {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 122, 254, .16);
  border-radius: 10px;
  background: rgba(58, 122, 254, .07);
  color: var(--guide-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.guide-card-copy { min-width: 0; flex: 1 1 auto; }
.guide-card-meta { display: flex; align-items: center; gap: 6px; min-height: 16px; }
.guide-group { color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.guide-badge { padding: 2px 6px; border: 1px solid rgba(236, 157, 65, .28); border-radius: 999px; background: rgba(247, 183, 92, .12); color: #a46518; font-size: 9.5px; }
.guide-card h3 { margin: 3px 0 0; color: var(--ink); font-size: 14px; line-height: 1.35; font-weight: 640; letter-spacing: -.012em; }
.guide-card p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.58; }
.guide-try {
  margin: 7px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--guide-accent);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.guide-try span { padding-left: 3px; }
.guide-try:active { opacity: .6; }
.guide-empty { padding: 26px 18px; border: 1px dashed rgba(120, 133, 155, .25); border-radius: 18px; text-align: center; color: var(--muted); }
.guide-empty b { display: block; color: var(--ink); font-size: 13px; }
.guide-empty p { margin: 5px 0 0; font-size: 11.5px; }
.guide-reset { margin-top: 20px; text-align: center; }
.guide-reset button { border: 0; background: transparent; color: var(--guide-accent); font: inherit; font-size: 11.5px; padding: 5px 8px; }
.guide-reset p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.guide-coach {
  --guide-accent: #3a7afe;
  position: fixed;
  z-index: 90;
  left: max(12px, calc(50% - 330px));
  right: max(12px, calc(50% - 330px));
  bottom: calc(104px + env(safe-area-inset-bottom));
  padding: 13px 14px 13px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 19px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(250, 252, 255, .88));
  box-shadow: 0 20px 44px -20px rgba(28, 42, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  color: var(--ink);
  animation: guide-rise .28s cubic-bezier(.2, .8, .2, 1) both;
}
[data-scheme="dark"] .guide-coach { --guide-accent: #8fb4ff; border-color: rgba(255, 255, 255, .13); background: linear-gradient(150deg, rgba(38, 46, 62, .97), rgba(28, 35, 49, .92)); }
@keyframes guide-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.guide-coach-head { display: flex; align-items: center; justify-content: space-between; color: var(--guide-accent); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.guide-coach-x { flex: 0 0 24px; width: 24px; height: 24px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(120, 133, 155, .1); color: var(--muted); font-size: 16px; line-height: 1; }
.guide-coach strong { display: block; margin: 7px 0 0; font-size: 14.5px; line-height: 1.35; letter-spacing: -.015em; }
.guide-coach p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.guide-coach-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.guide-coach-more { min-height: 29px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 9px; background: rgba(255, 255, 255, .45); color: var(--muted); font: inherit; font-size: 10.5px; }
.guide-coach-done { min-height: 29px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--guide-accent); color: #fff; font: inherit; font-size: 10.5px; font-weight: 600; box-shadow: 0 6px 14px -8px rgba(58, 122, 254, .62); }
.guide-focus { outline: 2px solid rgba(58, 122, 254, .52); outline-offset: 3px; border-radius: 16px; box-shadow: 0 0 0 4px rgba(58, 122, 254, .08) !important; transition: outline-color .2s ease, box-shadow .2s ease; }
.guide-toast {
  position: fixed;
  left: 50%;
  bottom: calc(148px + env(safe-area-inset-bottom));
  z-index: 96;
  max-width: calc(100vw - 40px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(28, 36, 52, .88);
  color: #fff;
  font-size: 11.5px;
  line-height: 1.4;
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.guide-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* 我的页小问号 */
.my-guide {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(255, 255, 255, .52);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}
.my-guide:active { transform: scale(.94); }
[data-scheme="dark"] .my-guide { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); }
/* 同校合作空状态里的轻提示 */
.coop-guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  color: var(--muted);
  font-size: 10.5px;
  text-decoration: none;
}
[data-scheme="dark"] .coop-guide-link { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); }
/* 更新提示里的教程入口 */
.update-notice-actions a[data-guide-update] { color: var(--muted); }
@media (max-width: 380px) {
  .guide-hero h2 { font-size: 24px; }
  .guide-card { gap: 9px; }
  .guide-num { flex-basis: 27px; width: 27px; height: 27px; font-size: 9.5px; }
  .guide-coach { left: 10px; right: 10px; }
}
/* 深色：教程首页与筛选器跟随夜间模式，避免浅底白字 */
[data-scheme="dark"] .guide-hero {
  border-color: rgba(255, 255, 255, .14);
  background:
    radial-gradient(100% 125% at 0% 0%, rgba(78, 111, 184, .22), transparent 55%),
    linear-gradient(150deg, rgba(37, 45, 61, .92), rgba(29, 36, 49, .76));
  box-shadow: var(--guide-shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
}
[data-scheme="dark"] .guide-hero::after { border-color: rgba(255, 255, 255, .12); box-shadow: 0 0 0 24px rgba(106, 149, 255, .05), 0 0 0 48px rgba(106, 149, 255, .03); }
[data-scheme="dark"] .guide-back { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .1); }
[data-scheme="dark"] .guide-chip { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); }
[data-scheme="dark"] .guide-chip.is-on { border-color: rgba(143, 180, 255, .34); background: rgba(143, 180, 255, .14); }
[data-scheme="dark"] .guide-search { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
[data-scheme="dark"] .guide-search:focus-within { border-color: rgba(143, 180, 255, .3) !important; box-shadow: 0 0 0 3px rgba(143, 180, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .07) !important; }
[data-scheme="dark"] .guide-fixed-sub { border-color: rgba(255, 255, 255, .16); }
[data-scheme="dark"] .guide-fixed { --ink: #f5f8ff; --muted: rgba(230, 238, 250, .62); }
[data-scheme="dark"] .guide-page { --ink: #f5f8ff; --muted: rgba(230, 238, 250, .68); }

/* 3 步新手引导：聚光 + 进度 + 上一步/下一步 */
.guide-spot {
  position: fixed;
  z-index: 88;
  display: none;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 0 0 100vmax rgba(10, 16, 27, .32), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease, opacity .18s ease;
}
[data-scheme="dark"] .guide-spot { border-color: rgba(179, 205, 255, .32); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.guide-tour-count {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: .02em;
}
.guide-tour-dots { display: flex; align-items: center; gap: 5px; margin: 2px 0 12px; }
.guide-tour-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(110, 124, 146, .26); transition: width .2s ease, background .2s ease; }
.guide-tour-dots i.is-on { width: 15px; border-radius: 999px; background: var(--guide-accent, #5b7cfa); }
.guide-tour-actions { justify-content: space-between !important; gap: 10px; }
.guide-tour-buttons { display: flex; align-items: center; gap: 7px; }
.guide-tour-skip {
  border: 0;
  padding: 7px 2px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
}
.guide-tour-prev {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 11px;
  background: rgba(255, 255, 255, .56);
  color: var(--muted);
  font: inherit;
  font-size: 11.5px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.guide-tour-prev:disabled { opacity: .38; }
[data-scheme="dark"] .guide-tour-prev { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
[data-scheme="dark"] .guide-tour-dots i { background: rgba(221, 232, 250, .25); }

.guide-block {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: transparent;
  touch-action: none;
}
