.icp-footer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(4px + env(safe-area-inset-bottom));
  z-index: 30;
  padding: 0 16px;
  background: transparent;
  color: #9f6f7b;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
}

/* 备案号只在网站首页展示，避免遮挡答题操作区。 */
body:has([data-testid="start-quiz-btn"]) .icp-footer {
  display: block;
}

/* 结果页取消分享入口，其余按钮与功能保持不变。 */
[data-testid="share-btn"] {
  display: none !important;
}

.result-image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
  background: rgba(20, 12, 16, 0.82);
  -webkit-overflow-scrolling: touch;
}

.result-image-preview-panel {
  width: min(100%, 520px);
  margin: 0 auto;
}

.result-image-preview-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #7f1d3a;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.result-image-preview-close {
  flex: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  font-size: 14px;
}

.result-image-preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  -webkit-touch-callout: default;
  user-select: auto;
}

.icp-footer a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.icp-footer a:hover {
  text-decoration: underline;
}
