/* Layout and structural properties */
.plugin-web-update-notice {
  position: fixed;
  user-select: none;
  z-index: 99999;
}

.plugin-web-update-notice-content {
  border-radius: 8px;
  padding: 12px 18px;
  line-height: 1.5715;
  width: 290px;
  box-sizing: border-box;
}

.plugin-web-update-notice-content-title {
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 24px;
}

.plugin-web-update-notice-content-desc {
  font-size: 13px;
  line-height: 20px;
}

.plugin-web-update-notice-tools {
  margin-top: 8px;
  text-align: right;
}

.plugin-web-update-notice-btn {
  padding: 4px 10px;
  line-height: 1.5;
  border-radius: 4px;
  transition: all 0.2s linear;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}

/* Light Theme (原默认样式) */
.plugin-web-update-notice.theme-light .plugin-web-update-notice-content {
  background-color: #ffffff;
  color: #000000d9;
  border: 1px solid #f0f0f0;
  box-shadow:
    0 3px 6px -4px #0000001f,
    0 6px 16px #00000014,
    0 9px 28px 8px #0000000d;
}

.plugin-web-update-notice.theme-light .plugin-web-update-notice-content-title {
  color: #000000d9;
}

.plugin-web-update-notice.theme-light .plugin-web-update-notice-content-desc {
  color: rgba(0, 0, 0, 0.65);
}

.plugin-web-update-notice.theme-light .plugin-web-update-notice-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.plugin-web-update-notice.theme-light .plugin-web-update-notice-refresh-btn {
  color: #1677ff;
}

.plugin-web-update-notice.theme-light .plugin-web-update-notice-dismiss-btn {
  color: rgba(0, 0, 0, 0.45);
}

/* Dark Theme (深色主题) */
.plugin-web-update-notice.theme-dark .plugin-web-update-notice-content {
  background-color: #1e222d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 32px 4px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

.plugin-web-update-notice.theme-dark .plugin-web-update-notice-content-title {
  color: #ffffff;
  font-weight: 600;
}

.plugin-web-update-notice.theme-dark .plugin-web-update-notice-content-desc {
  color: rgba(255, 255, 255, 0.85);
}

.plugin-web-update-notice.theme-dark .plugin-web-update-notice-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.plugin-web-update-notice.theme-dark .plugin-web-update-notice-refresh-btn {
  color: #ffffff;
  background-color: #ff8900;
  box-shadow: 0 2px 8px rgba(255, 137, 0, 0.3);
  font-weight: 600;
}

.plugin-web-update-notice.theme-dark .plugin-web-update-notice-refresh-btn:hover {
  background-color: #ff9d26;
  box-shadow: 0 4px 14px rgba(255, 137, 0, 0.4);
}

.plugin-web-update-notice.theme-dark .plugin-web-update-notice-dismiss-btn {
  color: rgba(255, 255, 255, 0.65);
}

/* 针对移动端小屏幕的响应式适配 */
@media (max-width: 480px) {
  .plugin-web-update-notice {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    width: auto !important;
  }
  .plugin-web-update-notice-content {
    width: auto !important;
  }
}
