/* ── Raphifad Shared Styles ── */

/* 放大模态框 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.85);
  z-index: 999;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
.modal-overlay.show { display: flex; }
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  width: 95vw;
  max-height: 98vh;
  height: 98vh;
  position: relative;
}
.modal-zoom-stage {
  display: flex;
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
}
.modal-zoom-stage:active { cursor: grabbing; }
.modal-zoom-stage img {
  margin: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 40px rgba(0,0,0,.5);
  user-select: none;
  -webkit-user-drag: none;
}
.modal-close {
  position: absolute;
  top: -36px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: .6;
  transition: opacity .15s;
  line-height: 1;
}
.modal-close:hover { opacity: 1; }
.modal-zoom-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 6px 14px;
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.modal-zoom-bar .zoom-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: all .15s;
  font-family: inherit;
}
.modal-zoom-bar .zoom-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.modal-zoom-bar .zoom-btn.active { background: var(--primary); color: #fff; }
.modal-zoom-bar input[type="range"] {
  width: 100px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,.2);
  border-radius: 99px;
  outline: none;
}
.modal-zoom-bar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}
.modal-zoom-bar .zoom-label {
  color: #aaa;
  font-size: 12px;
  min-width: 35px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* 备案 */
.beian-footer{text-align:center;padding:12px 0 24px;font-size:12px}
.beian-footer a{color:var(--text2);text-decoration:none;display:inline-flex;align-items:center;gap:4px}
.beian-footer a:hover{color:var(--text)}
.beian-footer img{width:16px;height:16px}
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); font-size: 10px; font-weight: 600;
  cursor: pointer; position: relative; transition: all .15s;
  line-height: 1; flex-shrink: 0;
}
.help-icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.help-tooltip {
  display: none; position: absolute; bottom: 22px; left: -4px; transform: none;
  background: rgba(30, 31, 46, 0.70); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 10px; font-size: 11px; color: var(--text2);
  white-space: normal; max-width: 420px; width: max-content;
  z-index: 20; box-shadow: 0 4px 16px rgba(0,0,0,.4);
  font-weight: 400; pointer-events: none; line-height: 1.4;
}
.help-icon.active .help-tooltip { display: block; }
