/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* 页面滚动条样式 */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientScroll 2s ease infinite;
    z-index: 9999;
    will-change: width;
}

/* 滚动时的视差效果 */
.parallax-layer {
    transition: transform 0.1s ease-out;
}

/* 增强的滚动锚点 */
.scroll-margin {
    scroll-margin-top: 100px;
}

/* 高性能滚动容器 */
.high-performance-scroll {
    will-change: scroll-position;
    contain: layout style paint;
}

/* 滚动时的背景模糊渐变 */
.scroll-blur-effect {
    transition: backdrop-filter 0.3s ease;
}

@keyframes gradientScroll {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 滚动到特定元素的平滑效果 */
html {
    scroll-behavior: smooth;
}

/* 滚动时的元素视差效果 */
.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* 滚动时背景渐变动画 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #667eea 50%, #764ba2 75%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 滚动时的元素出现动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.scroll-animate.visible {
    opacity: 1;
}

/* 元素从左边滑入 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-animate-left {
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.scroll-animate-left.visible {
    opacity: 1;
}

/* 元素从右边滑入 */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-animate-right {
    opacity: 0;
    animation: slideInRight 0.6s ease forwards;
}

.scroll-animate-right.visible {
    opacity: 1;
}

/* 元素缩放出现 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scroll-animate-scale {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
}

.scroll-animate-scale.visible {
    opacity: 1;
}

/* 元素旋转出现 */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.scroll-animate-rotate {
    opacity: 0;
    animation: rotateIn 0.6s ease forwards;
}

.scroll-animate-rotate.visible {
    opacity: 1;
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
    animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
    0%, 100% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(15px);
    }
}

.scroll-indicator.visible {
    opacity: 1;
}

/* 锚点链接样式 */
.anchor-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.anchor-link:hover {
    color: #667eea;
    transform: scale(1.05);
}

/* 滚动时的内容淡入 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 滚动条按钮样式增强 */
.scroll-top-btn {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.scroll-top-btn:active {
    transform: translateY(-2px) scale(1.05);
}

/* 平滑滚动到元素的样式 */
.guestbook-section,
.personal-info,
.contact-info,
.button-container {
    scroll-margin-top: 20px;
}

/* 滚动时的阴影增强 */
.card {
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3);
    transform: translateY(-5px);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/微信图片_20260410211504_27_18.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

/* 名片样式变量 */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6c8ebf;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --accent-color: #82b1ff;
}

/* 名片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.card-content {
    padding: 30px;
}

/* 个人信息部分 */
.personal-info {
    text-align: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.personal-info h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.personal-info .title {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-weight: 500;
}

.personal-info .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* 联系信息部分 */
.contact-info {
    margin-bottom: 25px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.contact-info h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-info a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* 个人简介部分 */
.bio {
    margin-bottom: 25px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.bio h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.bio p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* 技能部分 */
.skills {
    margin-bottom: 10px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.skills h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.skill-tag:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 按钮容器样式 */
.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* 后台入口按钮样式 */
.admin-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.admin-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

.admin-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.admin-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 按钮样式 */
.popup-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.popup-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popup-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

.popup-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.popup-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 弹窗样式 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    text-align: center;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup.active .popup-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}



.popup-content h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 20px;
}

.popup-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
}

/* 弹窗按钮容器 */
.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* 弹窗按钮样式 */
.popup-action-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.popup-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.popup-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

.popup-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.popup-action-btn:active::before {
    width: 200px;
    height: 200px;
}

/* 点赞按钮特殊样式 */
.like-btn {
    background-color: rgba(255, 105, 180, 0.3);
    border-color: rgba(255, 105, 180, 0.5);
}

.like-btn:hover {
    background-color: rgba(255, 105, 180, 0.4);
}

/* 输入框容器样式 */
.input-container {
    margin-bottom: 20px;
}

/* 密码输入容器 */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* 显示密码按钮 */
.toggle-password-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.toggle-password-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.toggle-password-btn:active {
    transform: scale(0.95);
}

/* 输入框样式 */
.name-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.name-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.name-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* 提交按钮样式 */
.submit-btn {
    background-color: rgba(105, 255, 180, 0.3);
    border-color: rgba(105, 255, 180, 0.5);
}

.submit-btn:hover {
    background-color: rgba(105, 255, 180, 0.4);
}

/* 计数容器样式 */
.count-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 计数项样式 */
.count-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 计数数字样式 */
#love-number {
    font-weight: bold;
    color: rgba(105, 255, 180, 0.9);
}

#like-number {
    font-weight: bold;
    color: rgba(255, 105, 180, 0.9);
}

/* 关闭按钮样式 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
}

/* 后台界面样式 */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-panel.active {
    opacity: 1;
    visibility: visible;
}

.admin-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 40px 40px 80px;
    width: 90%;
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    text-align: center;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.admin-panel.active .admin-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.admin-content h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 24px;
}

.admin-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-size: 16px;
}

.admin-content h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 18px;
}

/* 后台登录界面样式 */
.admin-login {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

/* 选项卡导航样式 */
.admin-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.tab-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-radius: 10px 10px 0 0;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.2);
}

/* 选项卡内容样式 */
.tab-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

.tab-pane.active {
    display: block;
}

.tab-pane p {
    margin-bottom: 15px;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Love me记录样式 */
.love-records {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    backdrop-filter: blur(8px);
}

.love-records p {
    margin-bottom: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
}

.love-records p:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

/* 后台关闭按钮样式 */
.admin-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.admin-close-btn:hover {
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .card-content {
        padding: 20px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .personal-info h1 {
        font-size: 20px;
    }

    .personal-info .title {
        font-size: 14px;
    }

    .personal-info .subtitle {
        font-size: 12px;
    }

    .contact-info h2 {
        font-size: 16px;
    }

    .contact-info li {
        font-size: 13px;
    }

    .popup-content {
        padding: 20px;
        width: 95%;
    }

    .popup-content h3 {
        font-size: 18px;
    }

    .popup-content p {
        font-size: 13px;
    }
}

/* 动态效果 - 渐变背景动画 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 头像浮动动画 */
.avatar {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 头像呼吸动画 */
@keyframes avatarPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.avatar {
    animation: avatarPulse 3s ease-in-out infinite;
}

/* 浮动粒子效果 */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 按钮脉冲动画 */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.popup-btn, .admin-btn, .popup-action-btn {
    animation: buttonPulse 2s infinite;
}

/* 卡片元素出现动画 */
.personal-info, .contact-info, .button-container {
    opacity: 0;
    animation: slideInUp 0.6s ease forwards;
}

.personal-info {
    animation-delay: 0.1s;
}

.contact-info {
    animation-delay: 0.2s;
}

.button-container {
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 星星闪烁效果 */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* 增强的背景粒子效果 */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 背景网格效果 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* 增强的背景渐变动画 */
body {
    background: linear-gradient(
        -45deg, 
        #667eea, 
        #764ba2, 
        #f093fb, 
        #f5576c
    );
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 鼠标移动时的背景响应效果 */
body {
    transition: background-position 0.1s ease-out;
}

/* 卡片动态背景效果 */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        transparent 50%
    );
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

/* 浮动光效 */
.floating-light {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(
        circle, 
        rgba(102, 126, 234, 0.3) 0%, 
        transparent 70%
    );
    pointer-events: none;
    animation: floatLight 15s infinite ease-in-out;
    z-index: -1;
}

@keyframes floatLight {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-10px) translateX(-20px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.5;
    }
}

/* 链接下划线动画 */
.contact-info a {
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.contact-info a:hover::after {
    width: 100%;
}

/* 文字逐字出现动画 */
.typing-animation {
    overflow: hidden;
    border-right: 3px solid rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }
    to {
        width: 100%
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }
    50% {
        border-color: rgba(255, 255, 255, 0.7);
    }
}

/* 文字悬停效果 */
.text-hover-effect {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.text-hover-effect:hover {
    transform: translateY(-3px);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7), 0 0 30px rgba(102, 126, 234, 0.5);
}

/* 文字发光效果 */
.text-glow {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(102, 126, 234, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(102, 126, 234, 0.5);
    }
    to {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(118, 75, 162, 0.6);
    }
}

/* 文字波浪动画 */
.text-wave {
    display: inline-block;
}

.text-wave span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.text-wave span:nth-child(1) { animation-delay: 0s; }
.text-wave span:nth-child(2) { animation-delay: 0.1s; }
.text-wave span:nth-child(3) { animation-delay: 0.2s; }
.text-wave span:nth-child(4) { animation-delay: 0.3s; }
.text-wave span:nth-child(5) { animation-delay: 0.4s; }
.text-wave span:nth-child(6) { animation-delay: 0.5s; }
.text-wave span:nth-child(7) { animation-delay: 0.6s; }
.text-wave span:nth-child(8) { animation-delay: 0.7s; }
.text-wave span:nth-child(9) { animation-delay: 0.8s; }
.text-wave span:nth-child(10) { animation-delay: 0.9s; }

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 微交互效果 - 点击反馈 */
.click-feedback {
    position: relative;
    overflow: hidden;
}

.click-feedback:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* 微交互效果 - 悬停反馈 */
.hover-feedback {
    transition: all 0.3s ease;
}

.hover-feedback:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 微交互效果 - 焦点反馈 */
.focus-feedback {
    transition: all 0.3s ease;
}

.focus-feedback:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

/* 数字增长动画 */
.number-animate {
    transition: all 0.5s ease;
}

/* 按钮文字动画 */
.button-text {
    position: relative;
    z-index: 1;
}

.button-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.3);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.popup-btn:hover .button-text::before,
.admin-btn:hover .button-text::before,
.popup-action-btn:hover .button-text::before {
    transform: translateY(0);
}

/* 3D按钮效果 */
.popup-btn, .admin-btn, .popup-action-btn, .clear-btn {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.popup-btn:hover, .admin-btn:hover, .popup-action-btn:hover, .clear-btn:hover {
    transform: translateY(-3px) rotateX(5deg) rotateY(5deg);
}

/* 按钮按下效果 */
.popup-btn:active, .admin-btn:active, .popup-action-btn:active, .clear-btn:active {
    transform: translateY(0) rotateX(0) rotateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

/* 按钮加载状态 */
.button-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.button-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

/* 输入框动画效果增强 */
.name-input, .message-input {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.name-input:focus, .message-input:focus {
    transform: scale(1.01) translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 输入框占位符动画 */
.name-input::placeholder, .message-input::placeholder {
    transition: all 0.3s ease;
    opacity: 0.6;
}

.name-input:focus::placeholder, .message-input:focus::placeholder {
    transform: translateY(-10px);
    opacity: 0;
}

/* 滑块控件动画 */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="range"]:hover {
    background: rgba(255, 255, 255, 0.3);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(102, 126, 234, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: rgba(102, 126, 234, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* 复选框动画 */
input[type="checkbox"] {
    position: relative;
    width: 18px;
    height: 18px;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="checkbox"]:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

input[type="checkbox"]:checked {
    background: rgba(102, 126, 234, 0.8);
    border-color: rgba(102, 126, 234, 1);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 选项卡按钮增强效果 */
.tab-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transition: left 0.6s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

/* 滚动到顶部按钮增强效果 */
.scroll-top-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-top-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.8);
}

.scroll-top-btn:active {
    transform: translateY(-4px) scale(1.05);
}

/* 弹窗关闭按钮增强效果 */
.close-btn, .admin-close-btn {
    transition: all 0.3s ease;
    transform-origin: center;
}

.close-btn:hover, .admin-close-btn:hover {
    transform: rotate(90deg) scale(1.2);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* 显示密码按钮增强效果 */
.toggle-password-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.toggle-password-btn:hover {
    transform: scale(1.2) rotate(15deg);
    color: #ffffff;
}

.toggle-password-btn:active {
    transform: scale(1.1) rotate(15deg);
}

/* 刷新按钮容器 */
.refresh-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

/* 刷新按钮样式 */
.refresh-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.refresh-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.refresh-btn:active {
    transform: rotate(180deg) scale(0.95);
}

/* 服务面板样式 */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
}

.service-item h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 16px;
}

.service-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.status {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.status.online {
    background-color: rgba(105, 255, 180, 0.3);
    color: #69ffb4;
}

.status.offline {
    background-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* 延迟显示样式 */
.latency {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.latency.good {
    background-color: rgba(105, 255, 180, 0.3);
    color: #69ffb4;
}

.latency.moderate {
    background-color: rgba(255, 214, 10, 0.3);
    color: #ffd60a;
}

.latency.poor {
    background-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* 状态面板样式 */
.status-dashboard {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(8px);
}

.status-card h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 16px;
}

.status-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 5px;
}

.status-card span {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

/* 监控面板样式 */
.monitoring-panel {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(8px);
}

.monitoring-panel h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    font-size: 16px;
}

.monitoring-panel p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
}

#last-update {
    font-weight: bold;
    color: rgba(105, 255, 180, 0.9);
}

.monitoring-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.stat-value {
    color: rgba(255, 255, 255, 0.9);
    font-weight: bold;
    font-size: 16px;
}

/* 后台设置选项卡样式 */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.setting-item p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.setting-item span {
    font-weight: bold;
    color: rgba(105, 255, 180, 0.9);
}

.danger-zone {
    border-color: rgba(255, 107, 107, 0.3);
    background-color: rgba(255, 107, 107, 0.1);
}

/* 清除按钮样式 */
.clear-btn {
    background-color: rgba(255, 107, 107, 0.3);
    color: white;
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.clear-btn:hover {
    background-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.clear-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.2);
}

.full-width {
    width: 100%;
}

/* 鼠标光影效果 */
.mouse-light {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 70%
    );
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

/* 增强玻璃效果 - 当鼠标靠近时 */
.card, .popup-content, .admin-content {
    position: relative;
    overflow: hidden;
}

.card::before, .popup-content::before, .admin-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card:hover::before, .popup-content:hover::before, .admin-content:hover::before {
    opacity: 1;
}

/* 液态玻璃边缘光晕 */
.card, .popup-content, .admin-content {
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* 鼠标移动时的液态波纹效果 */
@keyframes liquidRipple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    animation: liquidRipple 0.6s ease-out forwards;
}

/* 卡片边缘流动光效 */
.card::after, .popup-content::after, .admin-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    pointer-events: none;
    animation: edgeLight 3s infinite linear;
}

@keyframes edgeLight {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 增强按钮液态效果 */
.popup-btn, .admin-btn, .popup-action-btn, .clear-btn {
    position: relative;
    overflow: hidden;
}

.popup-btn::before, .admin-btn::before, .popup-action-btn::before, .clear-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.4s ease, height 0.4s ease;
}

.popup-btn:hover::before, .admin-btn:hover::before, .popup-action-btn:hover::before, .clear-btn:hover::before {
    width: 200%;
    height: 200%;
}

/* 留言板按钮样式 */
.guestbook-btn {
    background-color: rgba(105, 255, 180, 0.3);
    color: white;
    border: 1px solid rgba(105, 255, 180, 0.5);
    border-radius: 20px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    animation: buttonPulse 2s infinite;
}

.guestbook-btn:hover {
    background-color: rgba(105, 255, 180, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 255, 180, 0.2);
}

.guestbook-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(105, 255, 180, 0.2);
}

/* 留言板输入区 */
.guestbook-input {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 留言文本框 */
.message-input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    min-height: 100px;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.message-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
}

/* 留言列表 */
.guestbook-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
}

/* 留言项 */
.guestbook-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(8px);
    animation: slideInUp 0.3s ease;
}

.guestbook-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.guestbook-item-name {
    font-weight: bold;
    color: rgba(105, 255, 180, 0.9);
    font-size: 16px;
}

.guestbook-item-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.guestbook-item-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

/* 留言板删除按钮 */
.guestbook-delete-btn {
    background-color: rgba(255, 107, 107, 0.3);
    color: white;
    border: 1px solid rgba(255, 107, 107, 0.5);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.guestbook-delete-btn:hover {
    background-color: rgba(255, 107, 107, 0.5);
}

/* 响应式设计变量 */
:root {
    --card-max-width: 600px;
    --card-padding: 30px;
    --avatar-size: 120px;
    --heading-font-size: 24px;
    --text-font-size: 16px;
    --border-radius: 16px;
    --primary-glow: 0 0 15px rgba(102, 126, 234, 0.5);
    --secondary-glow: 0 0 15px rgba(118, 75, 162, 0.5);
}

/* 增强的按钮悬停效果 */
.popup-btn:hover, .admin-btn:hover, .popup-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--primary-glow), 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 卡片悬停增强效果 */
.card:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: var(--primary-glow), 0 15px 40px rgba(31, 38, 135, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 输入框聚焦效果 */
.name-input:focus, .message-input:focus {
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), var(--primary-glow);
    transform: scale(1.01);
}

/* 液态波纹效果增强 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
    pointer-events: none;
    animation: liquidRipple 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* 增强的液态波纹动画 */
@keyframes liquidRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* 卡片边缘流动光效增强 */
.card::after, .popup-content::after, .admin-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    pointer-events: none;
    animation: edgeLight 2s infinite linear;
}

/* 增强的边缘光效动画 */
@keyframes edgeLight {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 鼠标跟随效果增强 */
.mouse-light {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 70%
    );
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease, transform 0.1s ease-out;
}

/* 卡片鼠标跟随效果 */
.card:hover {
    --mouse-x: 50%;
    --mouse-y: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 按钮脉冲动画增强 */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7), var(--primary-glow);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0), var(--primary-glow);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), var(--primary-glow);
    }
}

/* 头像悬停效果增强 */
.avatar:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), var(--primary-glow);
    border-color: rgba(102, 126, 234, 0.8);
}

/* 联系信息悬停效果 */
.contact-info li:hover {
    transform: translateX(5px);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contact-info li {
    transition: all 0.3s ease;
}

/* 留言板项目悬停效果 */
.guestbook-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), var(--primary-glow);
    border-color: rgba(102, 126, 234, 0.5);
}

.guestbook-item {
    transition: all 0.3s ease;
}

/* 超小屏幕（手机，小于360px） */
@media (max-width: 360px) {
    :root {
        --card-max-width: 100%;
        --card-padding: 15px;
        --avatar-size: 80px;
        --heading-font-size: 18px;
        --text-font-size: 14px;
        --border-radius: 12px;
    }
    
    .card {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .personal-info h1 {
        font-size: 18px;
    }
    
    .personal-info .title {
        font-size: 14px;
    }
    
    .personal-info .subtitle {
        font-size: 12px;
    }
    
    .contact-info h2 {
        font-size: 16px;
    }
    
    .contact-info li {
        font-size: 13px;
    }
    
    .guestbook-section h3 {
        font-size: 18px;
    }
    
    .name-input, .message-input {
        font-size: 14px;
        padding: 8px;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* 小屏幕（手机，361px-480px） */
@media (min-width: 361px) and (max-width: 480px) {
    :root {
        --card-max-width: 100%;
        --card-padding: 20px;
        --avatar-size: 90px;
        --heading-font-size: 20px;
        --text-font-size: 15px;
        --border-radius: 14px;
    }
    
    .card {
        max-width: 100%;
        border-radius: 14px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .avatar {
        width: 90px;
        height: 90px;
        margin-bottom: 18px;
    }
    
    .personal-info h1 {
        font-size: 20px;
    }
    
    .personal-info .title {
        font-size: 15px;
    }
    
    .personal-info .subtitle {
        font-size: 13px;
    }
    
    .contact-info h2 {
        font-size: 17px;
    }
    
    .contact-info li {
        font-size: 14px;
    }
    
    .guestbook-section h3 {
        font-size: 20px;
    }
    
    .name-input, .message-input {
        font-size: 15px;
        padding: 9px;
    }
    
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .popup-btn, .admin-btn, .guestbook-btn {
        width: 100%;
    }
    
    .guestbook-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* 中等屏幕（平板，481px-768px） */
@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --card-max-width: 90%;
        --card-padding: 25px;
        --avatar-size: 100px;
        --heading-font-size: 22px;
        --text-font-size: 15px;
        --border-radius: 15px;
    }
    
    .card {
        max-width: 90%;
        border-radius: 15px;
    }
    
    .card-content {
        padding: 25px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 18px;
    }
    
    .personal-info h1 {
        font-size: 22px;
    }
    
    .personal-info .title {
        font-size: 15px;
    }
    
    .personal-info .subtitle {
        font-size: 14px;
    }
    
    .contact-info h2 {
        font-size: 18px;
    }
    
    .contact-info li {
        font-size: 14px;
    }
    
    .guestbook-section h3 {
        font-size: 22px;
    }
    
    .name-input, .message-input {
        font-size: 15px;
        padding: 10px;
    }
    
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 25px;
        right: 25px;
    }
}

/* 大屏幕（桌面，769px-1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --card-max-width: 80%;
        --card-padding: 28px;
        --avatar-size: 110px;
        --heading-font-size: 23px;
        --text-font-size: 16px;
        --border-radius: 16px;
    }
    
    .card {
        max-width: 80%;
        border-radius: 16px;
    }
    
    .card-content {
        padding: 28px;
    }
    
    .avatar {
        width: 110px;
        height: 110px;
        margin-bottom: 19px;
    }
    
    .personal-info h1 {
        font-size: 23px;
    }
    
    .personal-info .title {
        font-size: 16px;
    }
    
    .personal-info .subtitle {
        font-size: 14px;
    }
    
    .contact-info h2 {
        font-size: 19px;
    }
    
    .contact-info li {
        font-size: 15px;
    }
    
    .guestbook-section h3 {
        font-size: 23px;
    }
    
    .name-input, .message-input {
        font-size: 16px;
        padding: 11px;
    }
    
    .scroll-top-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
        bottom: 28px;
        right: 28px;
    }
}

/* 超大屏幕（大屏幕桌面，1025px以上） */
@media (min-width: 1025px) {
    :root {
        --card-max-width: 700px;
        --card-padding: 30px;
        --avatar-size: 120px;
        --heading-font-size: 24px;
        --text-font-size: 16px;
        --border-radius: 16px;
    }
    
    .card {
        max-width: 700px;
        border-radius: 16px;
    }
    
    .card-content {
        padding: 30px;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .personal-info h1 {
        font-size: 24px;
    }
    
    .personal-info .title {
        font-size: 16px;
    }
    
    .personal-info .subtitle {
        font-size: 14px;
    }
    
    .contact-info h2 {
        font-size: 20px;
    }
    
    .contact-info li {
        font-size: 15px;
    }
    
    .guestbook-section h3 {
        font-size: 24px;
    }
    
    .name-input, .message-input {
        font-size: 16px;
        padding: 12px;
    }
    
    .scroll-top-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 30px;
        right: 30px;
    }
}

/* 高DPI屏幕适配（Retina显示） */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .avatar {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .card {
        box-shadow: 0 8px 32px rgba(31, 38, 135, 0.25);
    }
    
    .card:hover {
        box-shadow: 0 12px 40px rgba(31, 38, 135, 0.35);
    }
}

/* 横屏模式适配 */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding: 10px;
        min-height: 100vh;
    }
    
    .card {
        max-width: 95%;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .guestbook-section .guestbook-list {
        max-height: 200px;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .mouse-light, .particle, .star, .scroll-top-btn, .button-container {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
        max-width: 100%;
    }
    
    .personal-info h1, .personal-info .title, .personal-info .subtitle,
    .contact-info h2, .contact-info li,
    .guestbook-section h3 {
        color: black;
        text-shadow: none;
    }
}

/* 主页面留言板样式 */
.guestbook-section {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    animation: slideInUp 0.5s ease;
}

.guestbook-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.guestbook-section .guestbook-input {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.guestbook-section .guestbook-list {
    max-height: 300px;
    overflow-y: auto;
}

.guestbook-section .guestbook-list::-webkit-scrollbar {
    width: 6px;
}

.guestbook-section .guestbook-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.guestbook-section .guestbook-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.guestbook-section .guestbook-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 滚动到顶部按钮 */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

/* 滑动动画 */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面元素加载动画 */
.card {
    animation: fadeInUp 0.8s ease;
}

.personal-info {
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.contact-info {
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.button-container {
    animation: fadeInUp 0.6s ease 0.6s backwards;
}

.guestbook-section {
    animation: fadeInUp 0.6s ease 0.8s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 弹窗过渡效果增强 */
.popup-content {
    transform: translate(-50%, -60%) scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.popup.active .popup-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 后台面板过渡效果增强 */
.admin-content {
    transform: translate(-50%, -60%) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.admin-panel.active .admin-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 页面元素进入视口动画 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动触发的淡入动画 */
.fade-in-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
}

/* 滚动触发的从左滑入动画 */
.slide-in-left-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 滚动触发的从右滑入动画 */
.slide-in-right-on-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 滚动触发的从下滑入动画 */
.slide-in-up-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-up-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动触发的缩放入场动画 */
.scale-in-on-scroll {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
}

/* 滚动触发的旋转入场动画 */
.rotate-in-on-scroll {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.rotate-in-on-scroll.visible {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* 滚动触发的弹性动画 */
.bounce-in-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动触发的淡入缩放动画 */
.fade-scale-in-on-scroll {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-scale-in-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
}

/* 滚动触发的 stagger 动画 */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 滚动时的背景视差效果 */
.parallax-bg {
    transition: transform 0.1s ease-out;
}

/* 滚动时的元素视差效果 */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* 滚动时的模糊效果 */
.blur-on-scroll {
    transition: filter 0.3s ease;
}

.blur-on-scroll.scrolled {
    filter: blur(5px);
}

/* 滚动时的透明度变化 */
.fade-on-scroll {
    transition: opacity 0.3s ease;
}

.fade-on-scroll.scrolled {
    opacity: 0.6;
}

/* 滚动时的缩放变化 */
.scale-on-scroll {
    transition: transform 0.3s ease;
}

.scale-on-scroll.scrolled {
    transform: scale(0.95);
}