/* Birthday Celebration Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #ee9ca7 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.birthday-header {
    text-align: center;
    margin-bottom: 200px;
    margin-top: 200px;
    animation: fadeInDown 1s ease-out;
}

.birthday-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 0px #ff6b6b, 6px 6px 0px #feca57;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}
.birthday-title2 {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #86921d;
    text-shadow: 3px 3px 0px #ff6b6b, 6px 6px 0px #feca57;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

.birthday-title3 {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #86921d;
    text-shadow: 3px 3px 0px #ff6b6b, 6px 6px 0px #feca57;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
    text-align: center;

}

.birthday-subtitle {
    font-size: 1.3rem;
    color: #f8f9fa;
    font-weight: 600;
}

/* Main Content */
.birthday-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Birthday Person Section */
.birthday-person {
    position: relative;
    border-radius: 22px;
    padding: 42px 28px;
    text-align: center;
    overflow: hidden;
    margin-top: 30px;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);

    /* 背景图 */
    background: url("/img/111.png") center/cover no-repeat;
}

/* 毛玻璃遮罩层 */
.birthday-person::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(1px);
    z-index: 0;
}

/* 内容层提升 */
.birthday-person > * {
    position: relative;
    z-index: 1;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #ff6b6b;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.avatar-overlay {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: #feca57;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.age-badge {
    font-size: 2rem;
    animation: rotate 3s infinite linear;
}

.person-name {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #2d3436;
    text-shadow: 2px 1px 0px #ff6b6b, 4px 2px 0px #feca57;
    margin-bottom: 10px;
}

.birthday-date {
    font-family: 'ZCOOL KuaiLe', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 1px 1px 0px #ff6b6b, 2px 2px 0px #feca57;
    margin-bottom: 10px;
}

/* Birthday Message */
.birthday-message {
    animation: fadeInUp 1s ease-out 0.6s both;

}

.message-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */



    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    /* 背景图 */
    background: url("/img/222.png") center/cover no-repeat;
}

.message-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.main-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3436;
}

/* Activities Section */
.birthday-activities {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.activity-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.activity-card p {
    margin-top: 15px;
    font-weight: 600;
    color: #2d3436;
    font-size: 1.1rem;
}


/* Music Note */
.music-note {
    font-size: 4rem;
    animation: musicBounce 2s infinite;
}

@keyframes musicBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Gift Box */
.gift-box {
    font-size: 4rem;
    animation: giftShake 2s infinite;
}

@keyframes giftShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}



/* Gallery */
.birthday-gallery {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 1.2s both;
    /* 背景图 */
    background: url("/img/333.png") center/cover no-repeat;
}

.birthday-gallery h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #2d3436;
    text-align: center;
    margin-bottom: 30px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.photo-frame {
    text-align: center;
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: scale(1.05);
}

.photo-frame img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.photo-frame p {
    margin-top: 10px;
    font-weight: 600;
    color: #2d3436;
}


/* Balloons */
.balloons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.balloon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.balloon-1 {
    animation-delay: 0s;
    color: #ff6b6b;
}

.balloon-2 {
    animation-delay: 1s;
    color: #feca57;
}

.balloon-3 {
    animation-delay: 2s;
    color: #48dbfb;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: confettiFall 3s linear infinite;
}

.confetti:nth-child(odd) {
    background: #feca57;
    animation-duration: 2.5s;
}

.confetti:nth-child(3n) {
    background: #48dbfb;
    animation-duration: 3.5s;
}

.confetti:nth-child(4n) {
    background: #ff9ff3;
    animation-duration: 2s;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Customize Panel */
.customize-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}

.customize-panel.closed {
    transform: translateX(calc(100% - 50px));
}

.customize-toggle {
    position: absolute;
    top: 10px;
    left: -40px;
    width: 40px;
    height: 40px;
    background: #ff6b6b;
    border: none;
    border-radius: 10px 0 0 10px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.customize-toggle:hover {
    background: #ee5a52;
}

.customize-content {
    padding: 20px;
    width: 250px;
}

.customize-content h4 {
    font-family: 'Fredoka One', cursive;
    color: #2d3436;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3436;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 107, 107, 0.4);
    }
    100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .birthday-title {
        font-size: 2.5rem;
    }
    
    .birthday-subtitle {
        font-size: 1.1rem;
    }
    
    .birthday-person {
        padding: 30px 20px;
    }
    
    .avatar {
        width: 150px;
        height: 150px;
    }
    
    .person-name {
        font-size: 2rem;
    }
    
    .activity-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .customize-panel {
        position: relative;
        top: auto;
        right: auto;
        margin: 20px auto;
        transform: none;
    }
    
    .customize-panel.closed {
        transform: none;
    }
    
    .customize-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .birthday-title {
        font-size: 2rem;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
    }
    
    .balloons {
        gap: 10px;
    }
    
    .balloon {
        font-size: 2rem;
    }
}





















/* 默认状态 */
.activity-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease, background 0.5s ease;
    position: relative;
    overflow: hidden;
}

/* 激活状态背景图 */
.activity-card.active {
    background: url("/img/5.png") center/cover no-repeat;
    color: #fff; /* 文字变白，更好看 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.activity-card.active::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.10); /* 略微增加透明度，让背景更清晰 */
    backdrop-filter: blur(3px); /* 从 14px 降到 6px，减少模糊 */
    z-index: 0;
}

.activity-card.active > * {
    position: relative;
    z-index: 1;
}

.inline-player {
    margin-top: 12px;
    display: none;
}

.activity-card.active .inline-player {
    display: block;

}

/* 🎧 播放按钮 */
.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff7a18, #ff3d81);
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(255, 61, 129, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 61, 129, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

/* 🎵 歌词 */
.lyrics-container {
    height: 180px;
    overflow: hidden;
}

#lyrics {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

#lyrics li {
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    color: #dddddd;
    transition: all 0.3s ease;
}

#lyrics li.active {
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 0px #ff6b6b, 2px 2px 0px #feca57;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}


.music-note {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.activity-card.playing .music-note {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}













/*.fullscreen-hero {*/
/*    height: 100vh;*/
/*    width: 100%;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    background: linear-gradient(135deg, #b58494, #d99eb1);*/
/*    scroll-snap-align: start;*/
/*}*/

/* 让整体支持整页滚动吸附 */
html, body {
    scroll-behavior: smooth;
}

body {
    scroll-snap-type: y mandatory;
}

/* container 取消顶部间距 */
.container {
    padding-top: 0;
}

/* header 内容居中美化 */
.birthday-header {
    text-align: center;
}

.birthday-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 15px 0;
}








/* 毛玻璃容器 */
.glass {
    background: rgba(255,255,255,.35);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    padding: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

/* 轮播主体 */
.carousel-wrapper {
    position: relative;
    /*max-width: 950px;*/
    margin: 60px auto;
    perspective: 1200px;
}

.carousel-viewport {
    overflow: hidden;
}

/* 轨道 */
.carousel-track {
    display: flex;
    gap: 50px;
    align-items: center;
    transition: transform .65s cubic-bezier(.4,0,.2,1);
}

/* 卡片 */
.card {
    width: 260px;
    height: 340px;
    border-radius: 22px;
    background: #fff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0,0,0,.18);
    filter: grayscale(100%) blur(1px);
    opacity: .45;
    transform: scale(.82) rotateY(18deg);
    transition: all .65s cubic-bezier(.4,0,.2,1);
    animation: float 4s ease-in-out infinite;
}

.card img {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.card p {
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}

/* 当前卡片 */
.card.active {
    filter: none;
    opacity: 1;
    transform: scale(1.1) rotateY(0deg) translateZ(60px);
    animation: floatActive 3s ease-in-out infinite;
}

/* 呼吸浮动动画 */
@keyframes float {
    0%,100% { transform: translateY(0) scale(.82) rotateY(18deg); }
    50% { transform: translateY(-8px) scale(.82) rotateY(18deg); }
}

@keyframes floatActive {
    0%,100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-12px) scale(1.1); }
}

/* 按钮 */
.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    font-size: 32px;
    background: rgba(255,255,255,.9);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.prev { left: -25px; }
.next { right: -25px; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.title3 {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 0px #ff6b6b;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out 0s infinite alternate both;
}











.main-message {
     font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
    display: block;      /* 重要 */
    border-right: 2px solid #ff3d81;
    padding-right: 5px;
    max-width: 90%;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #ff3d81; }
}









