/* ==================== 生日主题页面 ==================== */
#birthday-screen {
    min-height: 100vh;
    width     : 100%;
    background: linear-gradient(135deg, #fff9fc 0%, #fff5f9 30%, #ffeef5 70%, #ffe6f0 100%);
    overflow-y: auto;
    overflow-x: hidden;
    position  : relative;
    opacity   : 0;
    visibility: hidden;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    display   : none;
}

#birthday-screen.visible {
    opacity   : 1;
    visibility: visible;
    display   : block;
}

/* 滚动条美化 */
#birthday-screen::-webkit-scrollbar {
    width: 8px;
}

#birthday-screen::-webkit-scrollbar-track {
    background: rgba(255, 183, 197, 0.2);
}

#birthday-screen::-webkit-scrollbar-thumb {
    background   : linear-gradient(180deg, #ffc4d9, #ff85b3);
    border-radius: 10px;
}

/* 背景装饰 */
.birthday-bg-decoration {
    position      : fixed;
    top           : 0;
    left          : 0;
    width         : 100%;
    height        : 100%;
    pointer-events: none;
    z-index       : 1;
    overflow      : hidden;
}

.floating-heart,
.floating-star,
.confetti {
    position: absolute;
    opacity : 0;
}

.floating-heart {
    font-size: 24px;
    animation: floatHeart 6s ease-in-out infinite;
}

.heart-1 {
    top            : 10%;
    left           : 10%;
    animation-delay: 0s;
}

.heart-2 {
    top            : 20%;
    left           : 20%;
    animation-delay: 1s;
    font-size      : 20px;
}

.heart-3 {
    top            : 30%;
    left           : 80%;
    animation-delay: 2s;
    font-size      : 28px;
}

.heart-4 {
    top            : 40%;
    left           : 90%;
    animation-delay: 3s;
    font-size      : 22px;
}

.heart-5 {
    top            : 50%;
    left           : 50%;
    animation-delay: 4s;
    font-size      : 26px;
}

.floating-star {
    font-size: 20px;
    animation: floatStar 5s ease-in-out infinite;
}

.star-1 {
    top            : 15%;
    left           : 30%;
    animation-delay: 0.5s;
}

.star-2 {
    top            : 25%;
    left           : 60%;
    animation-delay: 1.5s;
    font-size      : 16px;
}

.star-3 {
    top            : 35%;
    left           : 40%;
    animation-delay: 2.5s;
    font-size      : 24px;
}

.confetti {
    width        : 10px;
    height       : 10px;
    border-radius: 3px;
    animation    : fallConfetti 4s linear infinite;
}

.confetti-1 {
    top            : -10%;
    left           : 20%;
    background     : #ffc4d9;
    animation-delay: 0s;
}

.confetti-2 {
    top            : -10%;
    left           : 40%;
    background     : #ffb3d1;
    animation-delay: 1s;
}

.confetti-3 {
    top            : -10%;
    left           : 60%;
    background     : #ff85b3;
    animation-delay: 2s;
}

.confetti-4 {
    top            : -10%;
    left           : 80%;
    background     : #ffd5e8;
    animation-delay: 3s;
}

.confetti-5 {
    top            : -10%;
    left           : 50%;
    background     : #ff99c2;
    animation-delay: 4s;
}

@keyframes floatHeart {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity  : 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity  : 0;
    }
}

@keyframes floatStar {

    0%,
    100% {
        transform: translateY(100vh) scale(0.5);
        opacity  : 0;
    }

    10% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-100px) scale(1.2);
        opacity  : 0;
    }
}

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

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity  : 0;
    }
}

/* 主内容区域 */
.birthday-main-content {
    max-width     : 1200px;
    margin        : 0 auto;
    padding       : 40px 20px 60px;
    position      : relative;
    z-index       : 10;
    min-height    : 100%;
    display       : flex;
    flex-direction: column;
    align-items   : center;
}

/* 顶部装饰 */
.birthday-top-deco {
    display        : flex;
    justify-content: center;
    gap            : 30px;
    font-size      : 2.5rem;
    margin-bottom  : 40px;
    animation      : bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity  : 0;
        transform: translateY(-30px);
    }

    100% {
        opacity  : 1;
        transform: translateY(0);
    }
}

.deco-icon {
    animation: float 3s ease-in-out infinite;
}

.deco-icon:nth-child(1) {
    animation-delay: 0s;
}

.deco-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.deco-icon:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 头像和标题区域 */
.birthday-header-section {
    display       : flex;
    flex-direction: column;
    align-items   : center;
    gap           : 30px;
    margin-bottom : 50px;
    animation     : fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity  : 0;
        transform: translateY(30px);
    }

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

.avatar-container {
    position       : relative;
    width          : 200px;
    height         : 200px;
    display        : flex;
    align-items    : center;
    justify-content: center;
}

.avatar-ring {
    position          : absolute;
    width             : 220px;
    height            : 220px;
    border            : 3px solid transparent;
    border-top-color  : #ff85b3;
    border-right-color: #ffc4d9;
    border-radius     : 50%;
    animation         : rotate 4s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.avatar-glow {
    position     : absolute;
    width        : 180px;
    height       : 180px;
    background   : radial-gradient(circle, rgba(255, 107, 157, 0.3), transparent 70%);
    border-radius: 50%;
    animation    : pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity  : 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity  : 1;
    }
}

.birthday-avatar {
    width        : 180px;
    height       : 180px;
    border-radius: 50%;
    object-fit   : cover;
    border       : 5px solid white;
    box-shadow   : 0 10px 40px rgba(255, 133, 179, 0.35);
    position     : relative;
    z-index      : 2;
}

.crown-icon {
    position : absolute;
    top      : 10px;
    right    : 10px;
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
    z-index  : 3;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.birthday-title-section {
    text-align: center;
}

.birthday-main-title {
    font-size              : 4rem;
    font-weight            : 800;
    margin-bottom          : 15px;
    background             : linear-gradient(135deg, #ff85b3, #ff9fc4, #ffc4d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip        : text;
    text-shadow            : none;
    letter-spacing         : 5px;
}

.birthday-subtitle {
    font-size    : 1.8rem;
    color        : #666;
    font-weight  : 600;
    margin-bottom: 10px;
}

.birthday-date {
    font-size     : 1.2rem;
    color         : #ff6b9d;
    font-weight   : 700;
    letter-spacing: 3px;
    background    : rgba(255, 107, 157, 0.1);
    padding       : 8px 25px;
    border-radius : 25px;
    display       : inline-block;
}

/* 生日信息卡片 */
.birthday-info-section {
    position      : absolute;
    left          : -4vw;
    top           : -3vw;
    font-size     : 10rem;
    max-width     : 110vw;
    max-height    : calc(100vh + 10vw);
    overflow      : hidden;
    word-break    : break-all;
    word-wrap     : break-word;
    letter-spacing: -5px;
    color         : rgba(215, 215, 215, 0.4);
    z-index       : -1;
    font-family   : serif;
    font-weight   : 700;
}

.info-card {
    background     : rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius  : 25px;
    padding        : 30px;
    box-shadow     : 0 10px 40px rgba(255, 107, 157, 0.15);
    display        : flex;
    justify-content: space-around;
    align-items    : center;
    gap            : 30px;
    flex-wrap      : wrap;
}

.info-item {
    display      : flex;
    align-items  : center;
    gap          : 12px;
    padding      : 15px 25px;
    background   : linear-gradient(135deg, rgba(255, 133, 179, 0.08), rgba(255, 196, 217, 0.08));
    border-radius: 15px;
    min-width    : 200px;
}

.info-icon {
    font-size: 2rem;
}

.info-label {
    font-size    : 0.9rem;
    color        : #999;
    font-weight  : 600;
    display      : block;
    margin-bottom: 5px;
}

.info-value {
    font-size  : 1.3rem;
    color      : #333;
    font-weight: 700;
}

/* 底部装饰 */
.birthday-bottom-deco {
    display        : flex;
    justify-content: center;
    gap            : 25px;
    font-size      : 2.5rem;
    margin-top     : auto;
    padding-top    : 40px;
    animation      : fadeInUp 1s ease-out 1.2s both;
}

/* 祝福语录 */
.birthday-wishes {
    display              : grid;
    grid-template-columns: repeat(3, 1fr);
    gap                  : 20px;
    position             : relative;
    z-index              : 10;
    animation            : fadeInRight 1s ease-out 0.9s both;
    max-width            : 1000px;
    margin-left          : auto;
    margin-right         : auto;
}

@keyframes fadeInRight {
    from {
        opacity  : 0;
        transform: translateX(30px);
    }

    to {
        opacity  : 1;
        transform: translateX(0);
    }
}

.wish-card {
    background     : rgba(1, 1, 1, 0.08);
    backdrop-filter: blur(10px);
    border-radius  : 25px;
    padding        : 15px;
    text-align     : center;
    border         : 1px solid rgba(1, 1, 1, 0.15);
    transition     : all 0.3s ease;
}

.wish-card:hover {
    transform   : translateY(-5px);
    box-shadow  : 0 10px 30px rgba(1, 107, 107, 0.3);
    border-color: rgba(1, 107, 107, 0.5);
}

.wish-icon {
    font-size    : 2.5rem;
    margin-bottom: 15px;
}

.wish-text {
    font-size  : 1rem;
    color      : rgba(1, 1, 1, 0.9);
    line-height: 1.6;
    margin     : 5px 0;
}

.wish-section-header {
    display      : flex;
    align-items  : center;
    gap          : 15px;
    margin-bottom: 25px;
}


/* 响应式设计 */
@media (max-width: 1024px) {
    .blessing-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .birthday-main-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    #birthday-screen {
        height    : auto;
        min-height: 100vh;
    }

    .birthday-main-content {
        padding: 30px 15px 40px;
    }

    .birthday-top-deco {
        font-size    : 2rem;
        gap          : 20px;
        margin-bottom: 30px;
    }

    .avatar-container {
        width : 160px;
        height: 160px;
    }

    .birthday-avatar {
        width : 140px;
        height: 140px;
    }

    .crown-icon {
        font-size: 2.5rem;
    }

    .birthday-main-title {
        font-size     : 2.2rem;
        letter-spacing: 3px;
    }

    .birthday-subtitle {
        font-size: 1.4rem;
    }

    .info-card {
        flex-direction: column;
        padding       : 25px;
    }

    .info-item {
        width          : 100%;
        justify-content: center;
    }

    .blessing-cards {
        grid-template-columns: 1fr;
    }

    .blessing-title {
        font-size: 1.6rem;
    }

    .blessing-card {
        padding: 25px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .blessing-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .birthday-main-title {
        font-size: 1.8rem;
    }

    .birthday-top-deco,
    .birthday-bottom-deco {
        font-size: 1.8rem;
    }

    .crown-icon {
        font-size: 2rem;
    }
}