

/* === 背景遮罩：模糊 + 暗化层 === */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);        /* 比原来稍暗，便于玻璃反光显现 */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#overlay.show {
  opacity: 1;
}

/* === 弹窗主体：液态玻璃核心层 === */
.share_popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 360px;
  transform: translate(-50%, -50%) scale(0.9);

  /* ✅ 半透明玻璃层，冷调渐变 + 模糊 */
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(240, 245, 255, 0.15) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* ✅ 柔光边缘，无明显边线 */
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 35px rgba(0, 0, 0, 0.3),       /* 外部阴影浮起感 */
    inset 0 1px 0 rgba(255, 255, 255, 0.25), /* 上缘微光 */
    inset 0 -1px 0 rgba(255, 255, 255, 0.1); /* 下缘柔光 */

  display: none;
  z-index: 9999;
  overflow: hidden;
  color: #1a1a1a;
  animation: popupBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* === 弹窗内容区：内部磨砂 + 内反光 === */
#remote-content {
  width: 100%;
  height: 100%;
  padding: 25px 30px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;

  /* ✅ 内层浅渐变 + 光泽感 */
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(240, 244, 255, 0.18) 100%
  );
  border-radius: inherit;
  color: #111;
  font-family: "SF Pro Display", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  line-height: 1.6;

  /* ✅ 内发光层，让中心略亮，四周略暗 */
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.05),
    inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* 滚动条细化 */
#remote-content::-webkit-scrollbar { width: 6px; }
#remote-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
#remote-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}




.share_popup .close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 32px;           /* ✅ 恢复原来的大小 */
  color: #666;
  cursor: pointer;

  display: inline-flex;       /* ✅ 确保 hover 命中精确 */
  align-items: center;
  justify-content: center;

  line-height: 1;             /* 避免字体偏下 */
  height: 1em;                /* 点击区域与文字一致 */
  width: 1em;

  user-select: none;          /* 避免误选中文字 */
  transform-origin: center center; /* ✅ 旋转居中 */
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease;

  z-index: 10002;             /* ✅ 提升层级，防止被遮盖 */
}

.share_popup .close-btn:hover {
  color: #ff4d4f;
  transform: rotate(90deg) scale(1.15);  /* ✅ 恢复原版那种“柔和弹动” */
}



/* 加载中动画 */
.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0,0,0,0.2);
  border-top-color: #0078ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 弹入弹出动画 */
@keyframes popupBounceIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes popupFadeOut {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}
