/* ============================================
   DreamBuilder VK — 换新升级中
   额外自定义样式
   ============================================ */

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 选中文本颜色 */
::selection {
  background-color: rgba(59, 130, 246, 0.2);
  color: inherit;
}

.dark ::selection {
  background-color: rgba(96, 165, 250, 0.3);
}

/* 输入框自动填充样式覆盖 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px rgb(249 250 251) inset !important;
  -webkit-text-fill-color: rgb(17 24 39) !important;
  transition: background-color 5000s ease-in-out 0s;
}

.dark input:-webkit-autofill,
.dark input:-webkit-autofill:hover,
.dark input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px rgb(31 41 55) inset !important;
  -webkit-text-fill-color: rgb(243 244 246) !important;
}

/* 按钮点击波纹效果 */
button[type="submit"] {
  position: relative;
  overflow: hidden;
}

button[type="submit"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

button[type="submit"]:active::after {
  opacity: 1;
}

/* 响应式微调 */
@media (max-width: 640px) {
  .sm\:text-4xl {
    font-size: 1.875rem;
  }
}
