/* 真实界面 — the homepage product tour (tools/product-tour.mjs). Self-contained, prefix sg-tour.
   Contrast (WCAG AA, Z20): the template's global `p { opacity: .7 }` reached the lead, the product label and the
   note, and .55 on the step numbers, which left 2.5 to 4.3:1 on #f5f5f5 / #fff. Those lines now set opacity 1 and a
   colour that lands just past 4.5:1 (#6f6f6f 4.6:1 on #f5f5f5; #1f5eff 4.7:1; numbers .58 = #737373 4.7:1 on white). */
.sg-tour { position: relative; z-index: 3; background: #f5f5f5; color: #0d0d0d; padding: 120px 20px 110px; font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
.sg-tour-inner { max-width: 1560px; margin: 0 auto; }
.sg-tour-head { max-width: 860px; margin: 0 auto 44px; text-align: center; }
.sg-tour-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; margin: 0 0 18px; }
.sg-tour-title { font-size: clamp(36px, 5vw, 72px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; margin: 0 0 22px; text-wrap: balance; }
.sg-tour-lead { font-size: 18px; line-height: 1.6; color: #6f6f6f; opacity: 1; margin: 0; text-wrap: pretty; }

.sg-tour-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 auto 36px; flex-wrap: wrap; }
.sg-tour-tab { appearance: none; border: 1px solid #d9d9d9; background: #fff; color: #0d0d0d; border-radius: 999px; padding: 12px 20px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: background .2s, color .2s, border-color .2s; }
.sg-tour-tab:hover { border-color: #0d0d0d; }
.sg-tour-tab[aria-selected="true"] { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.sg-tour-tab:focus-visible { outline: 2px solid #1f5eff; outline-offset: 3px; }
.sg-tour-num { font-size: 12px; opacity: .58; font-variant-numeric: tabular-nums; }

.sg-tour-panel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
.sg-tour-panel[hidden] { display: none; }
.sg-tour-panel.is-in .sg-tour-stage { animation: sg-tour-in .45s ease both; }
@keyframes sg-tour-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* a wide capture fills its column (as a flex item it would otherwise shrink to the picture's own width) */
.sg-tour-stage > .sg-tour-window { flex: 1 1 auto; min-width: 0; }
.sg-tour-window { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); }
.sg-tour-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f7f7f8; border-bottom: 1px solid #ececec; }
.sg-tour-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e0e0e0; }
.sg-tour-bar i:nth-child(1) { background: #b7a0ff; } .sg-tour-bar i:nth-child(2) { background: #8fa8ff; } .sg-tour-bar i:nth-child(3) { background: #6fc7f2; }
.sg-tour-bar span { margin-left: 10px; font-size: 12px; color: #6f6f6f; font-weight: 500; }
.sg-tour-pic { position: relative; line-height: 0; }
.sg-tour-img { display: block; width: 100%; height: auto; }

.sg-tour-stage { display: flex; justify-content: center; gap: 28px; }
.is-phone .sg-tour-stage { padding: 10px 0; }
.sg-tour-phone { width: min(260px, 44%); border-radius: 34px; padding: 9px; background: #111; box-shadow: 0 30px 70px -25px rgba(0,0,0,.45); }
.sg-tour-phone .sg-tour-pic { border-radius: 26px; overflow: hidden; }

.sg-tour-pin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: #1f5eff; color: #fff; font-size: 13px; font-weight: 700; line-height: 28px; text-align: center; box-shadow: 0 0 0 4px rgba(31,94,255,.25), 0 4px 12px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s; pointer-events: none; }
/* on the capture: a ring around the spot, so the words under it stay readable, numbered on its edge */
.sg-tour-pic .sg-tour-pin { width: 38px; height: 38px; background: rgba(31,94,255,.07); border: 2px solid #1f5eff; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 4px 14px rgba(31,94,255,.25); line-height: 0; transition: transform .2s, background .2s, box-shadow .2s; }
.sg-tour-pic .sg-tour-pin b { position: absolute; left: -11px; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: #1f5eff; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.25); }
.sg-tour-pic .sg-tour-pin::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(31,94,255,.5); animation: sg-tour-ping 2.4s ease-out infinite; }
@keyframes sg-tour-ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.sg-tour-pic .sg-tour-pin.is-on { transform: translate(-50%, -50%) scale(1.15); background: rgba(31,94,255,.14); box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 18px rgba(31,94,255,.35); }

.sg-tour-product { font-size: 13px; font-weight: 600; color: #1f5eff; opacity: 1; margin: 0 0 10px; }
.sg-tour-h3 { font-size: 28px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; margin: 0 0 24px; text-wrap: balance; }
.sg-tour-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sg-tour-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.55; color: #333; padding: 10px 12px; border-radius: 10px; cursor: default; transition: background .2s; }
.sg-tour-points li.is-on { background: #fff; color: #0d0d0d; }
.sg-tour-points .sg-tour-pin { position: static; transform: none; width: 26px; height: 26px; line-height: 26px; font-size: 12px; box-shadow: none; margin-top: 1px; }

.sg-tour-foot { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #e2e2e2; padding-top: 26px; }
.sg-tour-note { margin: 0; font-size: 13px; color: #6f6f6f; opacity: 1; }
.sg-tour-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sg-tour-btn { display: inline-block; padding: 13px 22px; border-radius: 999px; border: 1px solid #0d0d0d; color: #0d0d0d; text-decoration: none; font-size: 15px; font-weight: 600; transition: background .2s, color .2s; }
.sg-tour-btn:hover { background: #0d0d0d; color: #fff; }
.sg-tour-btn.is-primary { background: #0d0d0d; color: #fff; }
.sg-tour-btn.is-primary:hover { background: #1f5eff; border-color: #1f5eff; }

.sg-tour-pic { cursor: zoom-in; }
.sg-tour-pic:focus-visible { outline: 2px solid #1f5eff; outline-offset: 2px; }
.sg-tour-zoom { position: fixed; inset: 0; z-index: 2147483000; background: rgba(10,10,10,.88); display: flex; align-items: center; justify-content: center; padding: 48px 16px; cursor: zoom-out; }
.sg-tour-zoom[hidden], .sg-tour-zoom.is-pan[hidden] { display: none; }
.sg-tour-zoom img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
/* below 992 a wide capture opens larger than the screen and pans, so the small print can be read */
.sg-tour-zoom.is-pan { display: block; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 64px 16px 32px; }
.sg-tour-zoom.is-pan img { max-width: none; max-height: none; width: min(1600px, 220vw); margin: 0 auto; display: block; }
.sg-tour-zoom.is-pan .sg-tour-zoom-x { position: fixed; z-index: 1; }
.sg-tour-zoom-x { position: absolute; top: 12px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #0d0d0d; font-size: 24px; line-height: 40px; cursor: pointer; }
html.sg-tour-locked, html.sg-tour-locked body { overflow: hidden; }

@media (max-width: 991px) {
  .sg-tour { padding: 84px 16px 80px; }
  .sg-tour-panel { grid-template-columns: 1fr; gap: 28px; }
  .sg-tour-h3 { font-size: 24px; }
}
@media (max-width: 767px) {
  .sg-tour-head { text-align: left; margin-bottom: 28px; }
  .sg-tour-lead { font-size: 16px; }
  .sg-tour-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 4px; scrollbar-width: none; }
  .sg-tour-tabs::-webkit-scrollbar { display: none; }
  .sg-tour-tab { flex: none; padding: 10px 16px; font-size: 14px; }
  .sg-tour-window { border-radius: 10px; }
  .sg-tour-bar { height: 26px; }
  .sg-tour-bar span { display: none; }
  .sg-tour-pin { width: 22px; height: 22px; line-height: 22px; font-size: 11px; }
  .sg-tour-pic .sg-tour-pin { width: 20px; height: 20px; border-width: 1.5px; }
  .sg-tour-pic .sg-tour-pin b { left: -8px; top: -8px; width: 15px; height: 15px; line-height: 15px; font-size: 9px; }
  .sg-tour-stage { gap: 14px; }
  .sg-tour-phone { width: 48%; border-radius: 24px; padding: 6px; }
  .sg-tour-phone .sg-tour-pic { border-radius: 19px; }
  .sg-tour-points li { font-size: 15px; padding: 8px 6px; }
  .sg-tour-zoom-x { position: fixed; z-index: 1; }
  .sg-tour-foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .sg-tour-panel.is-in .sg-tour-stage, .sg-tour-pic .sg-tour-pin::after { animation: none; }
}

/* Phones: the tour stage's sideways swipe changes tab (js/stargo-phone-fx.js), so a
   horizontal pan there belongs to the page, not to the browser's back-swipe. Here, not in
   the lazily loaded phone sheet, so even the first swipe is covered; pinch-zoom stays. */
@media (max-width: 767px) {
  .sg-tour-stage { touch-action: pan-y pinch-zoom; }
}
