/* * @description: */
/* * nickName: 	xis好 */
/*  email: xis-hao@qq.com
 */
/* 尊重原创，保留所有权利！ */
/* tel    :17364686746
 */
/* @date 2025/11/24
*/

.fixed-back-btn {
  position: fixed;
  /* 关键修改：right 改成 left，控制距离左侧距离 */
  left: 20px; /* 距离左侧距离（可调整，如15px更贴边） */
  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);
}

/* 手机端适配（同步修改 left） */
@media (max-width: 768px) {
  .fixed-back-btn {
    padding: 6px 12px;
    font-size: 13px;
    left: 15px; /* 手机端距离左侧距离 */
    top: 15px; /* 手机端距离顶部距离 */
  }
}






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

.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; }


.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);
}


/* 新增：深色模式样式 */
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; }
/* back-btn.css */

.fixed-back-btn {
  position: fixed;
  /* 关键修改：right 改成 left，控制距离左侧距离 */
  left: 20px; /* 距离左侧距离（可调整，如15px更贴边） */
  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);
}

/* 手机端适配（同步修改 left） */
@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: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(244, 114, 182, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(244, 114, 182, 0.6);
}

/* 模态框遮罩层 - 保持不变 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
}

/* 模态框内容卡片 - 保持不变 */
.modal-content {
    background-color: white;
    margin: 0;
    padding: 30px 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
    font-family: "Microsoft YaHei", sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 关闭按钮 - 保持不变 */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close:hover {
    color: #ec4899;
}

/* 卡片内文本样式 - 保持不变 */
.modal-content h2 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.6rem;
    border-bottom: 2px solid #f472b6;
    padding-bottom: 10px;
}

.modal-content p {
    color: #555;
    line-height: 1.6;
    margin: 10px 0;
    font-size: 1rem;
}

/* 备案信息行样式 - 保持不变 */
#recordContainer {
    margin: 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* 卡片内链接样式 - 保持不变 */
.modal-content a {
    color: #ec4899;
    text-decoration: none;
    margin: 8px 10px;
    transition: all 0.2s ease;
    display: inline-block;
}

.modal-content a:hover {
    color: #d94085;
    transform: translateY(-2px);
    text-decoration: underline;
}

/* 分隔符样式 - 保持不变 */
.separator {
    color: #999;
    margin: 0 5px;
}

/* 美化分割线文本 - 保持不变 */
.decor-line {
    color: #f472b6;
    font-size: 0.9rem;
}

/* ========== 新增：卡片内音乐控制按钮样式 ========== */
.modal-music-section {
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin: 20px 0 !important;
}

.modal-control-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(244, 114, 182, 0.3);
}

.modal-control-btn:hover {
    background: linear-gradient(135deg, #ec4899, #d94085);
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(244, 114, 182, 0.4);
}

.modal-control-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}


.buttton {
            min-width: 120px;
            position: relative;
            cursor: pointer;
            padding: 2px 2px;
            border: 0;
            border-radius: 7px;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
            /* 径向渐变背景 */
            background: radial-gradient(
              ellipse at bottom,
              rgba(71, 81, 92, 1) 0%,
              rgba(11, 21, 30, 1) 45%
            );
            color: rgb(255, 255, 255, 0.66);
            transition: all 1s cubic-bezier(0.15, 0.83, 0.66, 1);
            /* 适配a标签的关键样式 */
            display: inline-block; /* 让padding/width生效 */
            text-decoration: none; /* 去掉链接下划线 */
            text-align: center; /* 文字居中 */
        }
        /* 按钮底部渐变线伪元素 */
        .buttton::before {
            content: "";
            width: 70%;
            height: 1px;
            position: absolute;
            bottom: 0;
            left: 15%;
            background: linear-gradient(
              90deg,
              rgba(255, 255, 255, 0) 0%,
              rgba(255, 255, 255, 1) 50%,
              rgba(255, 255, 255, 0) 100%
            );
            opacity: 0.2;
            transition: all 1s cubic-bezier(0.15, 0.83, 0.66, 1);
        }
        /* hover效果：文字高亮+缩放+上移 */
        .buttton:hover {
            color: rgb(255, 255, 255, 1);
            transform: scale(1.1) translateY(-3px);
            /* 防止hover时按钮重叠，增加轻微阴影 */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }
        /* hover时底部渐变线高亮 */
        .buttton:hover::before {
            opacity: 1;
        }

        
        
        
        
        
        
        
        
        
        
        

        /* 核心按钮样式（适配a标签，保留原.btn样式逻辑） */
        .btttn {
            outline: 0;
            display: inline-flex; /* 保持弹性布局，适配动画元素 */
            align-items: center;
            justify-content: center; /* 调整为center，文字居中更美观 */
            background: #40B3A2; /* 青绿色背景 */
            min-width: 2px; /* 最小宽度200px */
            border: 0;
            border-radius: 4px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .1); /* 阴影效果 */
            box-sizing: border-box;
            padding: 3px 3px; /* 内边距，保证按钮尺寸 */
            color: #fff; /* 白色文字 */
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 1.2px;
            text-transform: uppercase; /* 文字大写 */
            overflow: hidden; /* 隐藏动画溢出部分 */
            cursor: pointer; /* 鼠标指针变手型 */
            text-decoration: none; /* 去掉a标签默认下划线 */
            position: relative; /* 为波纹动画定位做准备 */
            margin: 5px 0; /* 按钮之间增加间距 */
        }
        /* hover效果 */
        .btttn:hover {
            opacity: .95;
        }
        /* 波纹动画元素 */
        .btttn .animatttion {
            position: absolute; /* 绝对定位，不影响文字 */
            border-radius: 100%;
            animation: ripple 0.6s linear infinite;
        }
        /* 波纹动画关键帧 */
        @keyframes ripple {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1), 0 0 0 20px rgba(255, 255, 255, 0.1), 0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 60px rgba(255, 255, 255, 0.1);
            }
            100% {
                box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.1), 0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 60px rgba(255, 255, 255, 0.1), 0 0 0 80px rgba(255, 255, 255, 0);
            }
        }