/*
 * @FilePath: /new-www/styles/mask.css
 * 通用弹框遮罩样式 —— 由 js/mask.js 动态插入 .mask-overlay 时使用
 * 类名中性格式化,mask-overlay / mask-body / mask-title / mask-button / mask-close
 */

.mask-overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  user-select: none;
}

.mask-overlay.is-open {
  display: flex;
}

.mask-body {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  position: relative;
  padding: 10px;
  min-width: 320px;
  max-width: 90vw;
  animation: mask-fade-in 0.18s ease-out;
}

@keyframes mask-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.mask-title {
  font-size: 20px;
  font-weight: bold;
  margin: 30px;
  margin-top: 20px;
  text-align: center;
  color: #1a1a1a;
}

.mask-button {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  padding: 15px;
  margin: 30px;
  margin-top: 10px;
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.mask-button:hover {
  background-color: rgba(0, 0, 0, 0.95);
}

.mask-button-icon {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  flex-shrink: 0;
}

.mask-button-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.mask-button-text-main {
  font-size: 16px;
  font-weight: 500;
}

.mask-button-text-sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 2px;
}

.mask-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.mask-close:hover {
  opacity: 1;
}
