/*! XUNTU-SOFTWARE-NOTICE
 * 讯图金耳朵 Web 调音系统
 * Copyright © 2026 深圳市迅图电子科技有限公司。保留所有权利。
 * “讯图”“讯图金耳朵”为注册商标。
 * 本公司自有代码及素材适用专有许可；法律允许或另有授权的情形除外。
 * 第三方组件继续适用其原许可。完整声明见用户端 HTML 源码。
 */
.beginner-guide, .beginner-guide * { box-sizing: border-box; }
.beginner-guide { --guide-title: 26px; --guide-body: 16px; --guide-label: 18px; --guide-small: 14px; --guide-number: 30px; color-scheme: light; width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 22px 26px; border: 1px solid #ced4e8; border-radius: 20px; background: #f7f8ff; color: #26365b; box-shadow: 0 24px 90px #0008; font: var(--guide-body)/1.65 system-ui, "Microsoft YaHei", sans-serif; }
.beginner-guide::backdrop { background: #07111bba; backdrop-filter: blur(4px); }
.guide-heading { display: flex; justify-content: space-between; align-items: center; color: #65718c; font-size: var(--guide-small); }
.beginner-guide h2 { margin: 20px 0 12px; font-size: var(--guide-title); line-height: 1.4; outline: none; }
.beginner-guide p { margin: 12px 0; line-height: 1.65; font-size: var(--guide-body); white-space: pre-line; overflow-wrap: anywhere; }
.beginner-guide button { min-height: 46px; padding: 10px 16px; border: 1px solid #bdc9e1; border-radius: 12px; background: #fff; color: #35457a; cursor: pointer; font: inherit; white-space: normal; line-height: 1.5; }
.beginner-guide button:disabled { opacity: .45; cursor: not-allowed; }
.beginner-guide button:focus-visible, .beginner-guide a:focus-visible, .beginner-guide input:focus-visible { outline: 3px solid #8798ee; outline-offset: 3px; }
.beginner-guide .guide-primary { background: #5869b9; color: white; border-color: #5869b9; font-weight: 600; }
.beginner-guide #guideExit { min-height: 38px; border-color: transparent; padding: 4px 8px; background: transparent; color: #65718c; font-size: var(--guide-small); }
.guide-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; gap: 6px; padding: 0; margin: 16px 0 0; font-size: var(--guide-small); }
.guide-steps li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: start; gap: 3px; min-width: 0; color: #69758f; text-align: center; }
.guide-step-label { white-space: nowrap; }
.guide-steps li:not(:first-child)::before { content: ""; position: absolute; top: 13px; right: calc(50% + 26px); width: max(0px, calc(100% - 38px)); border-top: 2px dashed #c3ccdc; }
.guide-steps li:not(:first-child)::after { content: ""; position: absolute; top: 9px; left: calc(50% - 25px); width: 8px; height: 8px; border-top: 2px solid #8996af; border-right: 2px solid #8996af; transform: rotate(45deg); }
.guide-step-number { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border: 1px solid #cdd1e4; border-radius: 50%; color: #69758f; font-size: var(--guide-small); font-weight: 600; line-height: 1; }
.guide-steps li[aria-current] { color: #4e5da8; font-weight: 700; }
.guide-steps li[aria-current] .guide-step-number { color: #fff; background: #5968b8; border-color: #5968b8; font-weight: 750; }
.guide-steps li[aria-current]::before { border-color: #5968b8; }
.guide-steps li[aria-current]::after { border-color: #5968b8; }
.guide-steps li.is-done { color: #24745b; }
.guide-steps li.is-done .guide-step-number { color: #24745b; border-color: #a7d4bf; }
.guide-steps li.is-done::before { border-color: #a7d4bf; }
.guide-steps li.is-done::after { border-color: #6aa98c; }
.beginner-guide .guide-note { color: #65718c; font-size: var(--guide-small); }
.guide-music { display: inline-flex; padding: 10px 0; color: #455daa; text-decoration: underline; font-weight: 600; }
#guideActions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 14px; }
#guideActions:empty { display: none; }
#guideNavigation { display: flex; align-items: center; justify-content: center; gap: 40px; margin: 18px auto 0; }
#guideNavigation[hidden] { display: none; }
.beginner-guide .guide-page-arrow { width: 58px; height: 52px; padding: 10px; }
.guide-page-arrow svg { display: block; width: 28px; height: 28px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
#guideStatus { min-height: 24px; margin: 12px 0; font-size: var(--guide-small); color: #65718c; }
#guideStatus:empty { display: none; }
#guideStatus.is-error { color: #ac3731; }
#guideStatus.is-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid #c3cce8; border-top-color: #5869b9; border-radius: 50%; animation: guide-spin .9s linear infinite; }
.guide-listening { color: #3d7566; font-weight: 600; text-align: center; }
.is-map-step #guideContent { display: flex; flex-direction: column; }
.is-map-step .guide-note { margin: 4px 0; }
.guide-car-model { position: relative; width: 100%; max-width: 560px; height: clamp(300px, 43dvh, 400px); margin: 4px auto 10px; }
.guide-car-model > svg { height: 100%; width: auto; max-width: 62%; display: block; margin: 0 auto; overflow: visible; }
.guide-car-front-label { position: absolute; top: 0; left: 50%; transform: translateX(-50%); color: #748199; font-size: var(--guide-small); line-height: 1; }
.guide-car-door { cursor: pointer; }
.guide-door-leaf { transform-box: view-box; transform-origin: 0 0; transition: transform .55s cubic-bezier(.2,.7,.25,1); }
.guide-car-door.is-left.is-open .guide-door-leaf { transform: rotate(54deg); }
.guide-car-door.is-right.is-open .guide-door-leaf { transform: rotate(-54deg); }
.guide-door-speaker { opacity: 0; transition: opacity .3s; }
.guide-car-door.is-open .guide-door-speaker { opacity: 1; }
.guide-speaker-waves { opacity: 0; }
.guide-car-door.is-selected .guide-speaker-waves { opacity: 1; }
.guide-car-door.is-selected .guide-speaker-waves path { animation: guide-sound 1.25s ease-out infinite; }
.guide-car-door.is-selected .guide-speaker-waves path:nth-child(2) { animation-delay: .2s; }
.guide-car-door.is-selected .guide-speaker-waves path:nth-child(3) { animation-delay: .4s; }
.beginner-guide .guide-door-choice { position: absolute; z-index: 1; transform: translateY(-50%); width: 140px; min-height: 84px; padding: 10px; box-shadow: 0 3px 10px #35457a0b; border: 2px solid #aebee0; }
.guide-door-choice.is-front { top: 36%; }
.guide-door-choice.is-rear { top: 64%; }
.guide-door-choice.is-left { left: 0; }
.guide-door-choice.is-right { right: 0; }
.guide-door-choice::after { content: ""; position: absolute; width: 64px; top: 50%; border-top: 2px dashed #9baed0; pointer-events: none; }
.guide-door-choice.is-left::after { left: calc(100% + 5px); }
.guide-door-choice.is-right::after { right: calc(100% + 5px); }
.guide-door-choice-heading { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--guide-label); }
.guide-door-choice-heading svg { width: 24px; height: 24px; stroke: currentColor; fill: currentColor; stroke-width: 1.7; }
.guide-door-choice-status { display: block; margin-top: 4px; color: #60759b; font-size: var(--guide-small); }
.beginner-guide .guide-door-choice:hover:enabled { border-color: #5869b9; background: #edf1ff; box-shadow: 0 3px 14px #5869b92c; }
.beginner-guide .guide-door-choice.is-selected { opacity: 1; background: #e7f3ed; border-color: #78b69d; color: #286850; }
.guide-door-choice.is-selected .guide-door-choice-status { color: #347b61; }
.beginner-guide .guide-door-choice.is-speaking { background: #fff2d0; border-color: #d9aa4e; }
.guide-delay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.guide-delay-card { display: flex; flex-direction: column; border: 1px solid #dce1ee; border-radius: 14px; padding: 16px; background: white; }
.guide-delay-card h3 { margin: 0 0 8px; font-size: var(--guide-label); }
.guide-delay-card p { flex: 1; color: #65718c; margin: 0 0 12px; min-height: 0; }
.guide-delay-controls { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 7px; background: #f3f5fc; border-radius: 12px; }
.guide-delay-controls .guide-delay-input { width: 110px; min-width: 65px; flex: 1 1 110px; border: 1px solid #bdc9e3; border-radius: 8px; background: white; text-align: center; color: #35457a; padding: 10px 5px; font: 600 var(--guide-number)/1.25 system-ui; font-variant-numeric: tabular-nums; cursor: pointer; }
.guide-delay-controls .guide-delay-input.is-warning { color: #c51c30; font-weight: 800; }
.guide-delay-controls .guide-delay-input.is-critical { color: #fff28a; background: #a51c28; border-color: #8f1522; font-weight: 800; animation: guide-delay-danger 1.2s ease-in-out infinite; }
.guide-delay-unit { flex: 0 0 auto; font-size: var(--guide-small); }
.guide-key-coach { width: 74px; height: 67px; flex: 0 0 74px; visibility: hidden; opacity: 0; }
.guide-key-coach * { pointer-events: none; }
.guide-key-coach svg { display: block; width: 100%; height: 100%; }
.guide-delay-controls:focus-within .guide-key-coach { visibility: visible; opacity: 1; }
.guide-coach-finger { animation: guide-finger-keys 2.2s ease-in-out infinite; }
.guide-coach-up .guide-coach-cap { animation: guide-key-up 2.2s ease-in-out infinite; }
.guide-coach-down .guide-coach-cap { animation: guide-key-down 2.2s ease-in-out infinite; }
.guide-coach-up .guide-coach-face { animation: guide-key-up-face 2.2s ease-in-out infinite; }
.guide-coach-down .guide-coach-face { animation: guide-key-down-face 2.2s ease-in-out infinite; }
.guide-key-coach * { animation-play-state: paused; }
.guide-delay-controls:focus-within .guide-key-coach * { animation-play-state: running; }
.guide-key-help { display: block; color: #65718c; font-size: var(--guide-small); line-height: 1.6; margin-top: 12px; white-space: pre-line; }
.guide-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.guide-mode-grid button { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 142px; text-align: left; }
.guide-mode-number { font-size: var(--guide-small); opacity: .9; }
.guide-mode-name { font-size: var(--guide-body); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.guide-current-tag { margin-top: auto; font-size: var(--guide-small); color: #65718c; }
.is-current-mode .guide-current-tag { background: #e5f2ec; color: #34735d; padding: 2px 7px; border-radius: 5px; }
.guide-mode-grid .is-current-mode { border: 2px solid #71a78e; }
.guide-primary .guide-current-tag { color: #eef1ff; }
@keyframes guide-delay-danger { 0%, 100% { background-color: #a51c28; } 50% { background-color: #74101b; } }
@keyframes guide-finger-keys {
  0%, 8%, 37%, 100% { transform: translateY(0); }
  17%, 29% { transform: translateY(6px); }
  52%, 57%, 87% { transform: translateY(30px); }
  65%, 78% { transform: translateY(36px); }
}
@keyframes guide-key-up { 0%, 8%, 37%, 100% { transform: translateY(0); } 17%, 29% { transform: translateY(2px); } }
@keyframes guide-key-down { 0%, 57%, 87%, 100% { transform: translateY(0); } 65%, 78% { transform: translateY(2px); } }
@keyframes guide-key-up-face { 0%, 8%, 37%, 100% { fill: #f8faff; } 17%, 29% { fill: #bfceff; } }
@keyframes guide-key-down-face { 0%, 57%, 87%, 100% { fill: #f8faff; } 65%, 78% { fill: #bfceff; } }
@keyframes guide-sound { 0% { opacity: .15; transform: translateX(-3px); } 35% { opacity: 1; } 100% { opacity: .12; transform: translateX(8px); } }
@keyframes guide-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .beginner-guide { padding: 18px; --guide-title: 24px; } .guide-steps { gap: 3px; } .guide-delay-cards { grid-template-columns: 1fr; } .guide-mode-grid { grid-template-columns: repeat(2, 1fr); } .beginner-guide .guide-door-choice { width: 108px; padding: 8px 4px; } .guide-door-choice::after { width: 12px; } .guide-door-choice-heading { gap: 3px; } .guide-door-choice-heading svg { width: 19px; } }
@media (prefers-reduced-motion: reduce) { #guideStatus.is-busy::before, .guide-speaker-waves path, .guide-delay-input.is-critical, .guide-key-coach * { animation: none !important; } .guide-door-leaf { transition: none; } }
.guide-delay-card.is-current-door { border-color: #6979d1; box-shadow: 0 0 0 1px #6979d1; }

/* Guided listening: keep the current action and its result in one visual place. */
.beginner-guide {
  width: min(800px, calc(100vw - 24px));
  padding: 0 30px 24px;
  background: #f8f9fd;
  border-color: #d7deed;
  box-shadow: 0 28px 86px #07152670;
}
.guide-heading {
  position: sticky;
  z-index: 5;
  top: 0;
  min-height: 74px;
  padding: 14px 0;
  background: #f8f9fdf2;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e7f2;
}
.guide-brand { display: inline-flex; align-items: center; gap: 10px; color: #26365b; font-size: 16px; font-weight: 750; }
.guide-brand-mark { display: grid; width: 30px; height: 30px; place-items: center; overflow: hidden; border-radius: 9px; background: #5869b9; color: white; font-size: 0; }
.guide-brand-mark::after { content: "♫"; font-size: 20px; line-height: 1; }
.beginner-guide #guideExit { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px 6px 14px; border: 1px solid #d9dfed; border-radius: 10px; background: white; color: #455575; }
.beginner-guide #guideExit span { font-size: 20px; line-height: 1; }
.beginner-guide #guideExit:hover:enabled { border-color: #aebce0; background: #eef2fc; }
.guide-steps { margin: 21px 0 24px; gap: 7px; }
.guide-steps li { gap: 7px; font-size: 13px; }
.guide-steps li::before, .guide-steps li::after { display: none; }
.guide-step-number { width: 100%; height: 5px; flex-basis: 5px; overflow: hidden; border: 0; border-radius: 4px; background: #dce2ef; color: transparent; font-size: 0; }
.guide-steps li[aria-current] .guide-step-number { background: #5869b9; color: transparent; }
.guide-steps li.is-done .guide-step-number { background: #6ca88f; color: transparent; }
.guide-stage-heading { margin: 4px 0 12px; }
.guide-stage-eyebrow { display: block; color: #5869b9; font-size: 13px; font-weight: 750; letter-spacing: .06em; }
.beginner-guide h2 { margin: 5px 0 0; font-size: clamp(23px, 3vw, 28px); line-height: 1.35; color: #202f50; }
.beginner-guide p { margin: 10px 0; }
.guide-lead { color: #4c5d7b; font-size: 16px; }
.beginner-guide .guide-note { color: #53647f; }
.guide-ready-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 25px 0 13px; }
.guide-ready-item { display: flex; flex-direction: column; min-height: 122px; gap: 3px; padding: 15px; border: 1px solid #dce3f1; border-radius: 14px; background: white; }
.guide-ready-number { color: #6375ba; font-size: 13px; font-weight: 750; }
.guide-ready-item strong { color: #28395b; font-size: 17px; }
.guide-ready-item small { color: #64728a; font-size: 13px; line-height: 1.45; }
.guide-music { align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid #b5c1e5; border-radius: 10px; background: #eef1fc; text-decoration: none; }
.guide-music:hover { background: #e3e9fb; }
.guide-map-count { display: inline-flex; margin: 0 0 2px !important; padding: 3px 10px; border-radius: 30px; background: #e9edfa; color: #4b5eae; font-size: 13px !important; font-weight: 750; }
.guide-listening { display: block; width: fit-content; margin: 10px auto !important; padding: 7px 14px; border-radius: 30px; background: #e9f3ed; color: #286c50; font-size: 14px !important; }
.is-map-step .guide-listening { background: #fff1d6; color: #865f18; }
.beginner-guide .guide-door-choice { transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.beginner-guide .guide-door-choice:active:enabled { transform: translateY(-50%) scale(.97); }
.beginner-guide .guide-door-choice.is-speaking { box-shadow: 0 0 0 4px #e5bd6a44; }
.guide-delay-cards { gap: 12px; margin-top: 22px; }
.guide-delay-card { border-color: #e0e5ef; box-shadow: 0 2px 10px #263b6010; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.guide-delay-card.is-current-door { border: 2px solid #5869b9; background: #fff; box-shadow: 0 0 0 4px #5869b91a, 0 10px 24px #263b6016; }
.guide-delay-card:not(.is-current-door) { background: #f4f6fa; }
.guide-delay-controls { margin-top: auto; }
.guide-delay-controls .guide-delay-input { font-size: 34px; }
.guide-mode-grid { gap: 10px; margin: 18px 0; }
.guide-mode-grid button { min-height: 118px; border-color: #dce3f1; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.guide-mode-grid button:hover:enabled { border-color: #5869b9; box-shadow: 0 5px 16px #5363a522; }
.guide-mode-grid button:active:enabled, #guideNavigation button:active:enabled { transform: scale(.98); }
.guide-technical-note { margin: 12px 0 4px; color: #63718b; font-size: 13px; }
.guide-technical-note summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.guide-technical-note p { font-size: 13px; }
#guideStatus { margin: 14px 0 0; padding: 10px 13px; border: 1px solid #d8e2ef; border-radius: 10px; background: #eef3f9; color: #405575; }
#guideStatus:empty { display: none; }
#guideStatus.is-error { border-color: #efc5c5; background: #fff0f0; color: #a52b30; }
#guideStatus.is-busy { border-color: #c9d3ef; background: #eef1fc; }
#guideNavigation { justify-content: space-between; gap: 10px; margin-top: 21px; }
.beginner-guide .guide-page-arrow { display: inline-flex; width: auto; min-width: 124px; height: auto; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; font-weight: 700; }
.guide-page-arrow svg { width: 18px; height: 18px; margin: 0; stroke-width: 2.5; }
#guideNavigation .guide-page-arrow:last-child:first-child { margin-left: auto; }
#guideActions { margin-top: 15px; }
@media (max-width: 560px) {
  .beginner-guide { padding: 0 16px 18px; }
  .guide-heading { min-height: 62px; }
  .guide-steps { margin: 16px 0 18px; }
  .guide-steps li { font-size: 11px; }
  .guide-ready-list { grid-template-columns: 1fr; gap: 7px; margin-top: 18px; }
  .guide-ready-item { min-height: 0; display: grid; grid-template-columns: 32px 90px 1fr; align-items: center; padding: 10px; }
  .guide-delay-cards { grid-template-columns: 1fr; }
  .guide-mode-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .beginner-guide .guide-page-arrow { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .beginner-guide .guide-door-choice, .guide-delay-card, .guide-mode-grid button { transition: none; }
}
