/* ===================================================
   南紡購物中心 客服教育訓練手冊 — 截圖與標註樣式
   =================================================== */

/* ====== Figure Container ====== */
.shot {
  margin: var(--space-5) 0;
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.shot__frame {
  position: relative;
  display: block;
  background: var(--color-bg);
  line-height: 0;
}
.shot__frame img {
  width: 100%;
  height: auto;
  display: block;
}
.shot__caption {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-soft);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.shot__caption strong {
  color: var(--color-primary-dark);
  margin-right: var(--space-2);
}

/* ====== Hotspot Markers (圓圈編號) ====== */
.hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px white, 0 2px 4px rgba(0,0,0,0.3);
  z-index: 2;
  transform: translate(-50%, -50%);
}
.hotspot--blue { background: var(--color-info); }
.hotspot--red { background: var(--color-danger); }
.hotspot--green { background: var(--color-success); }

/* ====== Highlight Box (紅框標示) ====== */
.highlight-box {
  position: absolute;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 0 1px white, 0 2px 8px rgba(224,123,57,0.3);
}
.highlight-box--blue { border-color: var(--color-info); box-shadow: 0 0 0 1px white, 0 2px 8px rgba(37,99,235,0.3); }
.highlight-box--red { border-color: var(--color-danger); box-shadow: 0 0 0 1px white, 0 2px 8px rgba(220,38,38,0.3); }
.highlight-box--dashed { border-style: dashed; }

/* ====== Arrow Marker ====== */
.arrow {
  position: absolute;
  font-family: var(--font-en);
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
  z-index: 2;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ====== Legend (圖例說明) ====== */
.shot__legend {
  list-style: none;
  padding: var(--space-3) var(--space-4) var(--space-4);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-2);
  background: var(--color-bg);
  border-top: 1px dashed var(--color-border);
  font-size: var(--fs-sm);
}
.shot__legend li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  margin: 0;
}
.shot__legend .legend-no {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--fs-xs);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ====== Placeholder（未補圖時的暫位） ====== */
.shot--placeholder .shot__frame {
  background: repeating-linear-gradient(
    45deg,
    #F1F3F8,
    #F1F3F8 16px,
    #E3E6EC 16px,
    #E3E6EC 32px
  );
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-mute);
  font-size: var(--fs-md);
  font-weight: 600;
}
.shot--placeholder .shot__frame::after {
  content: "🖼 截圖待補";
}

/* ====== Mock UI Wireframe (純文字示意) ====== */
.mock {
  font-family: var(--font-mono);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  padding: var(--space-4);
  white-space: pre;
  overflow-x: auto;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--color-text);
  margin: var(--space-4) 0;
}

/* ====== Sensitive Info Blur ====== */
.blur-sensitive {
  filter: blur(4px);
  user-select: none;
}

/* ====== Screen Group (多張並列) ====== */
.shot-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.shot-group .shot { margin: 0; }
