
/* ======================================================== */
/* 全局快捷中枢悬浮球 (Floating Portal Core) - 纯透明高定版   */
/* ======================================================== */

/* =========================================================
   1. 全局悬浮球主球体 (默认完全透明无底色)
========================================================= */
.portal-floating-orb {
  position: fixed;
  bottom: 120px;
  right: 18px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 600;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: none;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.portal-floating-orb:active {
  transform: scale(0.92);
}

.orb-custom-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
  filter: none !important;
}

.portal-floating-orb.style-blackframe {
  background: #ffffff !important;
  border: 2px solid #111111 !important;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  overflow: hidden;
}
.orb-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portal-floating-orb.style-pngstandee {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.orb-png-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
  filter: none !important;
}

/* =========================================================
   2. 4 个环绕圆按钮 (由下往上叠放 + 名称在上方 + 精巧雪花 ❆)
========================================================= */
.portal-satellites-group {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 590;
}

.satellite-item-wrap {
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  width: 38px;
  height: auto;
  touch-action: none !important;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* 层叠层级：由下往上叠（记忆最高，依次覆盖上去） */
.satellite-item-wrap[data-idx="0"] { z-index: 599 !important; }
.satellite-item-wrap[data-idx="1"] { z-index: 598 !important; }
.satellite-item-wrap[data-idx="2"] { z-index: 597 !important; }
.satellite-item-wrap[data-idx="3"] { z-index: 596 !important; }

.portal-floating-orb.open ~ .portal-satellites-group .satellite-item-wrap {
  opacity: 1;
  pointer-events: auto;
}

.portal-satellites-group.is-rotating .satellite-item-wrap {
  transition: none !important;
}

.satellite-label-top {
  font-size: 10px;
  font-weight: 800;
  color: #334155;
  line-height: 1;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  position: relative;
  z-index: 600;
}

.satellite-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
  transition: transform 0.15s ease;
  box-sizing: border-box;
}
.satellite-item-wrap:active .satellite-circle-btn {
  transform: scale(0.9);
}

.satellite-inner-blue {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eaf2fa;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1;
  box-sizing: border-box;
}

/* =========================================================
   3. 面板外壳（彻底去除灰色/黑色遮罩，100% 透明）
========================================================= */
.portal-panel-mask {
  position: fixed;
  inset: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 610;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-panel-mask.show {
  opacity: 1;
  pointer-events: auto;
}

.portal-panel-card {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 40px) scale(0.94);
  width: calc(100vw - 32px);
  max-width: 375px;
  height: 76vh;
  max-height: 640px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  z-index: 610;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-panel-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.panel-head-bar {
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  background: #fbfbfc;
  flex-shrink: 0;
}
.panel-head-title-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.panel-script-tag {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #7a8fa6;
  line-height: 1;
  letter-spacing: 0.5px;
}
.panel-main-title {
  font-size: 16px;
  font-weight: 800;
  color: #111418;
}
.panel-close-x {
  background: none;
  border: none;
  font-size: 16px;
  color: #8e8e93;
  cursor: pointer;
  padding: 4px;
}

.panel-content-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-content-body::-webkit-scrollbar { display: none; }

/* 记忆三栏手账卡片 */
.mem-trio-card {
  background: #f8f8fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.mem-col-left {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mem-date-badge {
  font-family: monospace;
  font-size: 9.5px;
  font-weight: 800;
  color: #111111;
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  align-self: flex-start;
}
.mem-track-text {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}
.mem-spine-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.15) 20%, rgba(0,0,0,0.15) 80%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mem-star-node {
  font-size: 7px;
  color: #111111;
  background: #f8f8fa;
  padding: 2px 0;
}
.mem-col-mid {
  flex: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mem-thought-quote {
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
  font-style: italic;
  line-height: 1.4;
}
.mem-summary-sub {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.35;
}
.mem-col-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mem-archive-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 6px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 700;
  color: #0f172a;
}

/* API 卡片 */
.api-card-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  cursor: pointer;
}
.api-card-pill.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}
.api-card-pill.active .api-pill-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.api-pill-info { display: flex; flex-direction: column; gap: 2px; }
.api-pill-name { font-size: 13.5px; font-weight: 800; }
.api-pill-model { font-size: 10.5px; font-family: monospace; opacity: 0.65; }
.api-pill-badge { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,0.06); }

/* 浮球样式定制行 */
.orb-style-row {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.orb-style-row.active {
  border-color: #111111;
  background: #f1f5f9;
}
.orb-style-preview-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.orb-style-preview-box:active {
  transform: scale(0.92);
}
.orb-style-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.orb-style-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.orb-style-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* 立绘链接输入与历史记录容器 */
.standee-custom-panel {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.standee-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.standee-panel-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.standee-url-input-wrap {
  display: flex;
  gap: 6px;
  width: 100%;
}
.standee-url-input {
  flex: 1;
  height: 34px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 12.5px;
  color: #111111;
  outline: none;
  font-family: inherit;
}
.standee-btn {
  height: 34px;
  padding: 0 12px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.standee-btn:active {
  opacity: 0.6;
}
.standee-btn.outline {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.standee-history-shelf {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
}
.standee-history-shelf::-webkit-scrollbar { display: none; }

.standee-history-item-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.standee-history-card {
  position: relative;
  width: 54px;
  height: 68px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  box-sizing: border-box;
  transition: all 0.18s ease;
}
.standee-history-card.active {
  border-color: #111111;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.standee-history-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.standee-del-x {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 9px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.standee-copy-link-btn {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: background 0.15s;
}
.standee-copy-link-btn:active {
  background: #111111;
  color: #ffffff;
}
.standee-copy-link-btn svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* =========================================================
   报错反馈弹窗
========================================================= */
.portal-feedback-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 620;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portal-feedback-card {
  width: 300px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.portal-feedback-title {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 2px;
}

.portal-feedback-desc {
  font-size: 11px;
  color: #666666;
  text-align: center;
  line-height: 1.5;
}

.portal-feedback-textarea {
  width: 100%;
  height: 120px;
  background: #f5f5f7;
  border: 1px solid #e0e0e4;
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  font-family: monospace;
  color: #1a1a1a;
  resize: none;
  box-sizing: border-box;
  -webkit-user-select: text;
  user-select: text;
}

.portal-feedback-btns {
  display: flex;
  gap: 10px;
  width: 100%;
}

.portal-feedback-btn {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.portal-feedback-btn.cancel {
  background: #f0f0f2;
  color: #666666;
  border: none;
}

.portal-feedback-btn.confirm {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
}

