/* 自定义样式 */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(212, 128, 122, 0.3);
  color: #2C2825;
}

/* 照片网格加载动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.photo-item {
  animation: fadeIn 0.4s ease-out;
}

/* Leaflet 地图容器 */
#map {
  z-index: 1;
}

.leaflet-container {
  border-radius: 1rem;
  font-family: inherit;
}

/* 移动端触摸优化 */
@media (max-width: 640px) {
  input, textarea, select, button {
    font-size: 16px !important; /* 防止 iOS 缩放 */
  }
}

/* 过渡效果 */
a, button {
  transition: all 0.2s ease;
}

/* Alpine 过渡 */
[x-cloak] {
  display: none !important;
}
