body {
    /* 柔和的渐变背景 */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 100vh;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* 毛玻璃卡片效果 */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

/* 拍立得照片风格 */
.photo-frame {
    background: white;
    padding: 10px 10px 25px 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 4px;
}

.photo-frame:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

/* 随机旋转效果 */
.rotate-left { transform: rotate(-3deg); }
.rotate-right { transform: rotate(3deg); }
.rotate-slight-left { transform: rotate(-1.5deg); }

/* 导航栏样式 */
.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #dc3545; /* Bootstrap danger color */
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
    left: 10%;
}

.nav-link:hover {
    color: #dc3545 !important;
}

/* 进入动画 */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 自定义宽度类 */
.w-40 {
    width: 40%;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 调整顶部卡片宽度 */
    .top-card {
        width: 95% !important;
        padding: 2rem 1rem !important;
    }

    /* 调整图片大小 */
    .photo-frame {
        max-width: 150px !important;
    }
    
    /* 调整导航栏 */
    .custom-nav {
        flex-wrap: wrap;
        width: 100% !important;
        padding: 0.5rem !important;
        border-radius: 15px !important;
    }
    
    .custom-nav .nav-item {
        width: 50%; /* 一行两个 */
        text-align: center;
        margin-bottom: 5px;
    }

    .custom-nav .nav-link {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    /* 底部区域调整 */
    .bottom-section .container {
        padding: 0 15px;
    }
    
    .bottom-section .d-flex {
        flex-direction: column;
    }

    .bottom-section .w-40 {
        width: 100% !important;
        display: block !important; /* 确保在移动端显示图片 */
        margin-bottom: -20px; /* 让图片和下面卡片稍微重叠 */
        position: relative;
        z-index: 1;
        text-align: center;
    }
    
    .bottom-section .w-40 img {
        border-radius: 10px !important;
        width: 100%;
        max-width: 300px; /* 限制最大宽度 */
        height: 200px;
        object-fit: cover;
    }

    .bottom-section .w-50 {
        width: 100% !important;
        border-radius: 20px !important; /* 重置圆角 */
        padding: 2rem 1.5rem !important;
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.85); /* 增加不透明度 */
    }

    .display-6 {
        font-size: 1.5rem;
    }
    
    .fs-2 {
        font-size: 1.1rem !important;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem !important;
        font-size: 0.9rem;
    }
}
