* {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #777;
  transition: all .15s;
}

a:hover {
  color: #10bbff;
}

:root {
  font-size: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1rem;
}

input,
textarea {
  outline: none;
}

body {
  background-color: #f5f7fa;
  background-image: 
    radial-gradient(#d1d5db 1px, transparent 1px),
    radial-gradient(#d1d5db 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}

::-webkit-scrollbar-thumb {
  background-color: rgb(201, 201, 201);
  border-radius: 10px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 6px;
}

::-webkit-scrollbar-corner {
  background: unset;
}

body {
  cursor: url(../cur/cursor.cur), default;

}

a:hover {
  cursor: url(../cur/hover.cur), pointer;
}

/* Removed conflicting grid styles to rely on main.css Flex/Bootstrap grid */
.row .flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.card-wrap .card-b:hover {
    box-shadow: 0 5px 20px #dad7d7cc;
    cursor: url(../cur/hover.cur), pointer;
    background: #f8f8f8;
    border-color: transparent !important;
}

.header-wrap {
  width: 100%;
  height: 4.5rem;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999; /* Increased z-index to stay on top */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: #ffffffb0;
  color: #707070;
  box-shadow: 0 2px 15px 0 rgb(115 111 111 / 10%);
}

.header-wrap .header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
}

.header-wrap .header .logo h1 {
  font-size: 1.5rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}

.header-wrap .header .word {
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
  font-size: 1.1rem;
  width: 60%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bg-img {
  width: 100%;
  box-sizing: border-box;
  background: url(https://xi-1255495366.cos.ap-chengdu.myqcloud.com/46854f50ad83747f00cc49a33db38408.png) no-repeat center;
  background-size: cover;
  height: 85vh; /* Reduced from 100vh to ensure cards below are visible */
  min-height: 500px; /* Slightly reduced min-height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 3rem;
}

.bg-img .middle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 15vw, 10rem); /* Fluid gap: min 1.5rem, pref 15vw, max 10rem */
  padding: 0;
  user-select: none;
  position: relative;
  z-index: 0;
}

.bg-img .middle img {
  width: clamp(5.5rem, 16vw, 13rem); /* Fluid size: min 5.5rem, pref 16vw, max 13rem */
  height: clamp(5.5rem, 16vw, 13rem);
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bg-img .middle img:hover {
  transform: scale(1.05);
}

.name-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 20px;
  border-radius: 20px;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  backdrop-filter: blur(5px);
  transition: background 0.3s ease;
}

.name-tag:hover {
  background: rgba(0, 0, 0, 0.8);
}

.bg-img .middle .img-male, .bg-img .middle .img-female {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.5s ease;
}

.bg-img .middle .love-icon img {
  width: clamp(3rem, 8vw, 6rem); /* Fluid icon size */
  height: clamp(3rem, 8vw, 6rem);
  border: none;
  animation: heart-beat 1.5s ease-in-out infinite;
  box-shadow: none;
}

.bg-img .waves {
  position: absolute; /* Changed to absolute */
  bottom: -7px; /* Reset to slight overlap to cover gaps, since container height is increased */
  width: 100%;
  height: 5rem;
  /* margin-top: 5rem; Removed */
  /* margin-bottom: -7px; */
  /* 修复 Safari 等浏览器下方空隙 */
}

.bg-img .parallax>use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.bg-img .parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.bg-img .parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.bg-img .parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.bg-img .parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

.time-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  padding: 3rem; /* Increased padding */
  margin-top: 0rem; /* Further Reduced from 1rem */
  margin-bottom: 2rem;
  position: relative;
  text-align: center;
  width: 100%; /* Ensure full width */
  max-width: 1200px; /* Limit maximum width */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box; /* Include padding in width */
}

.window-controls {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.time {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 0.1rem;
}

.time span {
  font-size: 1.2rem;
  line-height: 2rem;
  display: block;
  background-image: linear-gradient(270deg, #ff4500, #ffa500, #ffd700, #90ee90, #00ffff, #1e90ff, #9370db, #ff69b4, #ff4500);
  -webkit-background-clip: text;
  color: #0000;
  animation: jianbian 60s linear infinite;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.time-digits {
  font-family: 'Noto Serif SC', serif;
  color: #555;
  font-size: 1.8rem;
  font-weight: 700;
}

.time b {
  font-size: 2.2rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  color: #333;
  margin: 0 2px;
}

@keyframes jianbian {
  to {
    background-position: -2000rem;
  }
}

@keyframes heart-beat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* Replaced by unified card styles above */
/* .card-wrap .row .card ... styles removed to prevent conflicts */
.card-wrap .row .card {
    display: none; /* Hide legacy card style to ensure new one takes precedence if class still exists */
}


.card-wrap .row .flex-h {
  display: flex;
  align-items: center;
  justify-content: space-around;
  transition: all 0.08s linear;

}

.card-wrap .card-b {
  margin: 0 auto;
  width: 80%;
  padding: 2rem 1.5rem;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 8px 12px #e4e4e473;
  border: 1px solid rgba(208, 206, 206, 0.4) !important;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  transition: all .2s;
}

.card-wrap .card-b img {
  width: 6rem;
  margin-right: 3rem;
  transition: all .5s;
}

.card-wrap .card-b .text {
  flex-grow: 2;
}

.card-wrap .card-b .text span {
  font-size: 2rem;
  line-height: 3rem;
}

.card-wrap .card-b .text p {
  font-size: 1.2rem;
  color: #959595;
  font-weight: 500;
  margin-top: .5rem;
}

.footer-warp {
  margin-top: 4rem;
  background: #fff;
  position: relative;
}

.footer-warp::after {
    content: '';
    width: 100%;
    height: 50%;
    position: absolute;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, transparent, #ffffff);
    z-index: 1000;
    pointer-events: none;
}

.footer-warp .footer {
  padding: 2rem;
  text-align: center;
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
}

.footer-warp .footer p {
  line-height: 2.5rem;
  color: #564141;
  font-weight: 700;
}

.footer-warp .footer p img {
    width: 1rem;
    margin-right: .3rem;
}

.bg-img:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAKUlEQVQImU3IMREAIAgAwJfNkQCEsH8cijjpMf6vnXlQaIiJFx+omEBfmqIEZLe2jzcAAAAASUVORK5CYII=);
}

.mt-2rem{
  margin-top: 2rem;
}
/* Replaced by unified card styles above */

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Replaced by unified card styles above */
/* .card-wrap .row .card ... styles removed to prevent conflicts */
.card-wrap .row .card {
    display: none; /* Hide legacy card style to ensure new one takes precedence if class still exists */
}


