/**
 * viewport-guard.css
 * 设计工具页面窄屏/移动设备提示遮罩
 * - 桌面窄屏（宽度 < 1024px）：提示拉宽页面
 * - 移动设备（手机/平板）：提示在电脑端打开 + 复制页面地址
 * 样式自包含，按 prefers-color-scheme 切换明暗，不依赖各页面 CSS 变量
 */

.dvg-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f7f8fa;
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.dvg-overlay.is-active {
  display: flex;
}

.dvg-card {
  width: 100%;
  max-width: 340px;
  padding: 38px 30px 32px;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  text-align: center;
  box-sizing: border-box;
}

.dvg-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: #1d4ed8;
}
.dvg-icon svg {
  width: 46px;
  height: 46px;
  display: block;
}

.dvg-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #1d2129;
  letter-spacing: 0.1px;
}

.dvg-desc {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.65;
  color: #86909c;
}

.dvg-btn[hidden] {
  display: none;
}
.dvg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 18px;
  border: none;
  border-radius: 6px;
  background: #1d4ed8;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.dvg-btn:hover {
  background: #1a47c7;
}
.dvg-btn:active {
  background: #1740b5;
}
.dvg-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}
.dvg-btn.is-copied {
  background: #00b42a;
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
  .dvg-overlay {
    background: #17171a;
  }
  .dvg-card {
    background: #2d2d30;
    border-color: #3a3a3d;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  }
  .dvg-title {
    color: #f7f8fa;
  }
  .dvg-desc {
    color: #a8a8b3;
  }
  .dvg-icon {
    color: #3b82f6;
  }
}
