* {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

.clearfix:after {
  content: '';
  display: block;
  clear: both;
}

.clear {
  clear: both;
}

body {
  background-color: #ffd1dc;
}

.heart-container {
  display: table;
  flex-wrap: wrap;
  margin: 100px auto;
  width: fit-content;
  padding: 0 20px;
}

.box {
  float: left;
  width: 25px;
  height: 25px;
  border-radius: 2px;
  margin-right: 2px;
  margin-bottom: 2px;
}

.box:hover {
  background: #0c0101;
}

.box:not(.transparent) {
  background-color: rgb(245, 9, 9);
  opacity: 0;
  transform: translateY(-300px);
  animation: move 4s infinite;
}

@keyframes move {
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  65% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(300px);
  }
}

.box.delay1 {
  animation-delay: 0.1s;
}

.box.delay2 {
  animation-delay: 0.2s;
}

.box.delay3 {
  animation-delay: 0.4s;
}

.box.delay4 {
  animation-delay: 0.5s;
}

.box.delay5 {
  animation-delay: 0.7s;
}

.box.delay6 {
  animation-delay: 0.9s;
}

.love {
  margin: 100px 20px 0;
  color: #000000;
  font-size: 40px;
  text-align: center;
  font-family: 'Ma Shan Zheng', 'STKaiti', cursive;
  line-height: 1.5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 2px;
  position: relative;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.djj {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(45deg, #ff4d4d, #ff0000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  display: inline-block;
  padding: 0 10px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
}

.pt {
  font-size: 48px;
  font-weight: 900;
  color: #000000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  display: block;
  margin-top: 20px;
  padding: 10px 30px;
  background: linear-gradient(45deg, #ffd1dc, #ffb6c1);
  border-radius: 25px;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* 新的Masonry瀑布流样式 */
.photo-wall {
  width: 100%;
  margin: 50px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.photo-item {
  margin-bottom: 20px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.photo-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
  cursor: pointer;
}

.photo-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-item video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: block;
  break-inside: avoid;
  object-fit: cover;
  cursor: pointer;
}

.photo-item video:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

p span {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(45deg, #000000, #333333);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  display: inline-block;
  animation: nameFloat 3s ease-in-out infinite;
}

@keyframes nameFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.love-text {
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 20px auto;
  font-size: 32px;
  color: #ff4d4d;
  font-family: 'Ma Shan Zheng', 'STKaiti', cursive;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  width: 60%;
}

.love-text::before,
.love-text::after {
  content: '❤';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.love-text::before {
  left: 10px;
}

.love-text::after {
  right: 10px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {
    transform: translate(-50%, -50%) scale(0.1);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 40px;
  color: #f1f1f1;
  font-size: 80px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
}

.close:hover {
  color: #bbb;
  transform: scale(1.1);
}

.video-container {
  margin: 30px 0;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  height: 50vh;
}

.video-container video {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
  display: block;
}

/* 添加音乐控制按钮样式 */
.music-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.music-control:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.music-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(45deg, #ff4d4d, #ff3333);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3);
}

.music-btn:hover {
  transform: scale(1.05);
}

.music-btn i {
  color: white;
  font-size: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.music-btn.playing i {
  animation: rotate 3s linear infinite;
}

/* 添加照片计数器样式 */
.photo-counter {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  font-family: 'Ma Shan Zheng', 'STKaiti', cursive;
  color: #ff4d4d;
  font-size: 24px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  gap: 10px;
}

.photo-counter:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.photo-counter i {
  font-size: 28px;
  color: #ff4d4d;
}

.photo-counter .number {
  font-weight: bold;
  background: linear-gradient(45deg, #ff4d4d, #ff0000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 添加备案信息样式 */
.icp-info {
  text-align: center;
  padding: 20px 0;
  color: #666;
  font-size: 14px;
  margin-top: 30px;
}

.icp-info a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.icp-info a:hover {
  color: #ff4d4d;
}

.icp-info img {
  vertical-align: middle;
  margin-right: 5px;
  height: 16px;
}

/* 懒加载样式 */
.lazy-image {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* 更新时间样式 */
.update-time {
  text-align: center;
  padding: 15px 0;
  color: #888;
  font-size: 22px;
  margin-top: 10px;
  font-family: 'Ma Shan Zheng', 'STKaiti', cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 10px 20px 0;
  backdrop-filter: blur(5px);
}

.update-time i {
  color: #ff4d4d;
  font-size: 24px;
}

.update-time span {
  color: #666;
}

.update-time #lastUpdateTime {
  color: #ff4d4d;
  font-weight: bold;
}

/* 响应式调整 - 移除自定义CSS，让Bootstrap栅格系统工作 */
/* Bootstrap的col-xl-4会自动处理响应式布局 */
