* {
  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.8rem;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  background: rgba(246, 244, 239, 0.72);
  color: var(--ink-soft, #2a2d3a);
  box-shadow: 0 1px 0 rgba(17, 19, 26, 0.06), 0 6px 20px rgba(115, 111, 111, 0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header-wrap .header {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

/* ---------- Logo ---------- */
.header-wrap .header .logo .alogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink, #11131a);
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
}
/* Stack site name + writing on two lines */
.header-wrap .header .logo .logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}
.header-wrap .header .logo .logo-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
/* Site writing tagline — sits under the site name */
.header-wrap .header .logo .logo-text .logo-writing {
  margin-top: 3px;
  font-family: 'Noto Serif SC', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 1px;
  color: var(--muted, #6b7080);
  text-transform: none;
  font-weight: 400;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  display: inline-block;
}
.header-wrap .header .logo .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent, #ff5a3c);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(255, 90, 60, 0.35);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.header-wrap .header .logo .alogo:hover .logo-mark {
  transform: rotate(-12deg) scale(1.08);
}

/* ---------- Main navigation ---------- */
.header-wrap .header .lg-nav { justify-self: center; min-width: 0; }
.header-wrap .header .lg-nav ul {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(17, 19, 26, 0.04);
  border: 1px solid rgba(17, 19, 26, 0.06);
  border-radius: 999px;
}
.header-wrap .header .lg-nav li a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted, #6b7080);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  transition: color 0.3s ease, background 0.3s ease;
  line-height: 1;
}
.header-wrap .header .lg-nav .lg-nav-icon {
  display: none;
}
.header-wrap .header .lg-nav .lg-nav-en {
  font-size: 0.6rem;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: 0.7;
}
.header-wrap .header .lg-nav .lg-nav-cn {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: 'Noto Serif SC', serif;
}
.header-wrap .header .lg-nav li a:hover {
  color: var(--ink, #11131a);
  background: rgba(17, 19, 26, 0.05);
}
.header-wrap .header .lg-nav li.is-active a {
  background: var(--ink, #11131a);
  color: #fff7f1;
}
.header-wrap .header .lg-nav li.is-active .lg-nav-en {
  color: var(--accent, #ff5a3c);
  opacity: 1;
}

/* ---------- Right cluster (decorative flourish) ---------- */
.header-wrap .header .header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-wrap .header .header-flourish {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--muted, #6b7080);
}
.header-wrap .header .header-flourish-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(17,19,26,0), rgba(17,19,26,0.45), rgba(17,19,26,0));
}
.header-wrap .header .header-flourish-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent, #ff5a3c);
  box-shadow: 0 0 6px rgba(255, 90, 60, 0.5);
  animation: lg-pulse 2.4s ease-in-out infinite;
}
.header-wrap .header .header-flourish-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--ink-soft, #2a2d3a);
  text-transform: uppercase;
  font-weight: 500;
}
.header-wrap .header .header-flourish-date i {
  color: var(--accent, #ff5a3c);
  font-size: 0.82rem;
  animation: lg-pulse 2.4s ease-in-out infinite;
}
.header-wrap .header .header-flourish-date em {
  font-style: normal;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
@keyframes lg-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 90, 60, 0); }
}

/* Scroll state: more opaque & subtle shadow */
.header-wrap.is-scrolled {
  background: rgba(246, 244, 239, 0.92);
  box-shadow: 0 1px 0 rgba(17, 19, 26, 0.08), 0 10px 24px rgba(115, 111, 111, 0.08);
}

/* Default: hide the mobile-only bottom dock on desktop */
.lg-nav--mobile { display: none; }

/* ----------------------------------------------------------------------
   Mobile: redesigned layout
   - Top row: enriched logo (mark + site name + small subtitle) on the left,
     a small "since / since-2024" motif on the right, with a thin divider
     that bleeds into the page.
   - Navigation: BREAKS out of the header and becomes a frosted-glass
     bottom dock (centered, safe-area aware) so it never fights the
     content for legibility.
   -------------------------------------------------------------------- */
@media (max-width: 960px) {
  .header-wrap { height: 5.4rem; }
  .header-wrap .header {
    padding: 0 18px;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  /* ----- Top-row logo enrichment ----- */
  .header-wrap .header .logo .alogo {
    gap: 12px;
  }
  .header-wrap .header .logo .logo-mark {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(255, 90, 60, 0.4);
    animation: lg-heartbeat 1.8s ease-in-out infinite;
  }
  .header-wrap .header .logo .logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 0;
  }
  .header-wrap .header .logo .logo-text strong {
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--ink, #11131a);
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
  }
  .header-wrap .header .logo .logo-text .logo-writing {
    margin-top: 3px;
    font-family: 'Noto Serif SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.58rem;
    letter-spacing: 1px;
    color: var(--muted, #6b7080);
    text-transform: none;
    font-weight: 400;
    font-style: italic;
    max-width: 200px;
  }
  /* Right-cluster motif: keep the date visible on mobile,
     drop the decorative lines + extra dots to save space */
  .header-wrap .header .header-right { display: flex; }
  .header-wrap .header .header-flourish-line,
  .header-wrap .header .header-flourish-dot { display: none; }
  .header-wrap .header .header-flourish-date {
    font-size: 0.62rem;
    letter-spacing: 1px;
    color: var(--muted, #6b7080);
  }
  .header-wrap .header .header-flourish-date i { font-size: 0.72rem; }
  .header-wrap .header::after { display: none; }

  /* Thin divider line under the mobile header */
  .header-wrap::after {
    content: "";
    position: absolute;
    left: 18px; right: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
      rgba(17,19,26,0) 0%,
      rgba(17,19,26,0.18) 30%,
      rgba(17,19,26,0.18) 70%,
      rgba(17,19,26,0) 100%);
  }

  @keyframes lg-heartbeat {
    0%, 100% { transform: scale(1); }
    18%      { transform: scale(1.18); }
    36%      { transform: scale(1); }
    54%      { transform: scale(1.08); }
    72%      { transform: scale(1); }
  }

  /* Hide the in-header desktop nav on mobile (lives in head.php) */
  .lg-nav--desktop { display: none !important; }

  /* Show the footer-placed mobile nav as a bottom dock */
  .lg-nav--mobile { display: block; }

  /* ----- Mobile bottom frosted dock (lives in footer.php) ----- */
  .lg-nav--mobile {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 520px;
    z-index: 998;
    justify-self: auto;
    min-width: 0;
  }
  .lg-nav--mobile ul {
    padding: 8px;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Frosted glass — strong, readable on any background */
    background: rgba(246, 244, 239, 0.78);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    box-shadow:
      0 12px 32px rgba(17, 19, 26, 0.18),
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 -1px 0 rgba(17, 19, 26, 0.05) inset;
    display: flex;
    align-items: center;
  }
  .lg-nav--mobile ul::-webkit-scrollbar { display: none; }

  .lg-nav--mobile li {
    flex: 1 1 0;
    min-width: 56px;
    list-style: none;
  }
  .lg-nav--mobile li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    width: 100%;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .lg-nav--mobile li a:active {
    transform: scale(0.94);
  }
  .lg-nav--mobile .lg-nav-icon {
    display: inline-flex;
    width: 30px; height: 30px;
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    background: rgba(17, 19, 26, 0.06);
    color: var(--ink, #11131a);
    font-size: 0.95rem;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  }
  .lg-nav--mobile li.is-active a {
    background: transparent;
    color: var(--ink, #11131a);
  }
  .lg-nav--mobile li.is-active .lg-nav-icon {
    background: var(--accent, #ff5a3c);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 90, 60, 0.4);
  }
  .lg-nav--mobile li.is-active .lg-nav-cn {
    color: var(--accent, #ff5a3c);
  }
  .lg-nav--mobile .lg-nav-cn {
    font-size: 0.74rem;
    letter-spacing: 1px;
    color: var(--muted, #6b7080);
    transition: color 0.3s ease;
  }

  /* Reserve space at the bottom of <body> so content isn't covered by the dock */
  body { padding-bottom: 92px; }
}

@media (max-width: 480px) {
  .header-wrap .header { padding: 0 14px; }
  .header-wrap .header .logo .logo-text strong { font-size: 0.92rem; max-width: 160px; }
  .header-wrap .header .logo .logo-text .logo-writing { font-size: 0.54rem; max-width: 150px; }
  .header-wrap .header .header-flourish-date { font-size: 0.56rem; letter-spacing: 0.5px; }
  .header-wrap .header .header-flourish-date i { font-size: 0.66rem; }
  .lg-nav--mobile li a { padding: 7px 2px; }
  .lg-nav--mobile .lg-nav-icon { width: 28px; height: 28px; font-size: 0.9rem; }
  .lg-nav--mobile .lg-nav-cn { font-size: 0.7rem; }
}

.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(3rem, 22vw, 18rem); /* Pull avatars apart: min 3rem, pref 22vw, max 18rem */
  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-flex;
  align-items: center;
  gap: 8px;
  /* Frosted glass name plate over the dark carousel */
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  padding: 8px 24px;
  border-radius: 999px;
  margin-top: 1rem;
  font-size: 1.05rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
  letter-spacing: 3px;
  transition: background 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.name-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent, #ff5a3c);
  display: inline-block;
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.7);
}

.name-tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.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 */
}


