/* * @description: */
/* * nickName: 	xis好 */
/*  email: xis-hao@qq.com
 */
/* 尊重原创，保留所有权利！ */
/* tel    :17364686746
 */
/* @date 2025/11/24
*/
/* back-btn.css */
.fixed-back-btn {
  position: fixed;
  left: 20px;
  top: 20px;
  padding: 8px 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.fixed-back-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .fixed-back-btn {
    padding: 6px 12px;
    font-size: 13px;
    left: 15px;
    top: 15px;
  }
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 5px;
  animation: fadeIn 0.3s;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.heart-trace-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100vh;
    pointer-events: none; 
    z-index: 9999; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.font-pacifico {
    font-family: 'Comic Sans MS', 'Marker Felt', '微软雅黑', cursive, sans-serif;
}

body {
    min-height: 100vh;
    font-family: sans-serif;
    --color: #E1E1E1;
    background-color: #F3F3F3;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
        linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
    background-size: 55px 55px;
    transition: background-color 0.3s ease; /* 新增：平滑过渡 */
}

a, button {
    text-decoration: none;
    transition: all 0.2s ease;
}
button {
    border: none;
    cursor: pointer;
}

.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding: 0 1rem; }
.py-4 { padding: 1rem 0; }
.py-16 { padding: 4rem 0; }
.p-8 { padding: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

.bg-pink-100 { background-color: #ffccd5; }
.bg-pink-400 { background-color: #f472b6; }
.bg-pink-500 { background-color: #ec4899; }
.bg-pink-50 { background-color: #fef2f7; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-black-30 { background-color: rgba(0,0,0,0.3); }
.bg-black-50 { background-color: rgba(0,0,0,0.5); }
.text-white { color: #ffffff; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-pink-400 { color: #f472b6; }
.text-pink-600 { color: #db2777; }

.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(236, 72, 153, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }

.aspect-3-2 { aspect-ratio: 3/2; }
.object-cover { object-fit: cover; }
.object-top { object-position: top; }

.top-1-2 { top: 50%; }
.translate-y-neg-1-2 { transform: translateY(-50%); }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }

.hover-bg-pink-500:hover { background-color: #ec4899; }
.hover-bg-black-50:hover { background-color: rgba(0,0,0,0.5); }
.hover-text-pink-400:hover { color: #f472b6; }

.nav-container {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 9999px;
    background-color: #e8e4df;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    z-index: 10;
    margin: 1rem auto;
    max-width: 90%;
    flex-wrap: wrap;
    justify-content: center;
    transition: background-color 0.3s ease; /* 新增：平滑过渡 */
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 9999px;
    padding: 0.5rem 0.75rem;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-btn.blog-btn {
    background-color: #b3e0ff; 
    box-shadow: 0 2px 8px rgba(102, 178, 255, 0.3);
    font-weight: 600;
}

.nav-btn.blog-btn:hover {
    background-color: #99d6ff; 
    transform: translateY(-0.5rem) scale(1.25);
}

.nav-btn:hover {
    transform: translateY(-0.5rem) scale(1.25);
}

.nav-btn:hover::before {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 1rem;
    font-size: 0.6rem;
    padding: 0 0.25rem;
    background-color: rgba(0,0,0,0.5);
    color: white;
    position: absolute;
    top: -1.75rem;
    border-radius: 0.375rem;
    content: attr(data-tooltip);
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f472b6;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-btn:hover {
    background-color: #ec4899;
    transform: scale(1.1);
}


@media (max-width: 768px) {
    .nav-container {
        max-width: 95%;
    }
    
    .nav-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}

/* 新增：深色模式样式 */
body.dark-mode {
    --color: #3a3a3a; /* 深色网格线 */
    background-color: #1a1a1a; /* 深色背景 */
    color: #f0f0f0; /* 全局文字颜色 */
}

/* 深色模式下的元素适配 */
body.dark-mode .bg-pink-100 { background-color: #5c1a31; }
body.dark-mode .bg-pink-50 { background-color: #3d1122; }
body.dark-mode .nav-container { background-color: #333333; }
body.dark-mode .nav-btn { 
    background-color: #444444; 
    color: #ffffff; 
}
body.dark-mode .nav-btn.blog-btn { 
    background-color: #1a365d; 
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}
body.dark-mode .nav-btn.blog-btn:hover { background-color: #2c5282; }
body.dark-mode .modal-content { 
    background-color: #2c2c2c; 
    color: #ffffff; 
    border-color: #555;
}
body.dark-mode .close { color: #ccc; }
body.dark-mode .close:hover { color: #fff; }
body.dark-mode a { color: #ff9cc2; }
body.dark-mode .floating-btn { background-color: #9d2970; }
body.dark-mode .floating-btn:hover { background-color: #831858; }
body.dark-mode .fixed-back-btn { background-color: #0a4b8c; }
body.dark-mode .fixed-back-btn:hover { background-color: #073561; }