body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  background: #fdfdfd;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* 打开弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.35);
  z-index: 9999;
}

.modal {
  background: #fff;
  width: 80vw;
  max-width: 320px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
}

.titlebar {
  padding: 12px 16px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f7f7f7;
}

.content {
  padding: 14px 16px;
  font-size: 15px;
}

.actions {
  padding: 12px 16px;
  text-align: right;
}

.btn.primary {
  background: #ff6fa8;
  color: white;
  border: none;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 8px;
}

#popup-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* 弹幕框架 */
.popup {
  position: absolute;
  width: 180px;
  background: white;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-size: 14px;
  overflow: hidden;
}

.popup .header {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
}

.popup .content {
  margin-top: 6px;
  color: #333;
  font-size: 14px;
  min-height: 20px;
  word-break: break-all;
}

/* 配色主题 */
.theme-blue { border-left: 5px solid #4da3ff; }
.theme-pink { border-left: 5px solid #ff6fa8; }
.theme-purple { border-left: 5px solid #b77bff; }
.theme-lime { border-left: 5px solid #98e85f; }
.theme-rose { border-left: 5px solid #ff4974; }
.theme-teal { border-left: 5px solid #40c4b3; }
.theme-orange { border-left: 5px solid #ff9d42; }

/* 手机适配 */
@media (max-width: 768px) {
  .popup {
    width: 150px;
    padding: 6px;
    font-size: 13px;
  }
  .popup .content {
    font-size: 13px;
  }
}

