* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
}

.title-box {
    background-color: rgba(204, 153, 255, 0.7);
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    min-width: 300px;
    transition: all 0.3s ease;
}

.title {
    font-size: 2.2em;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

.options {
    display: flex;
    justify-content: space-between;
    width: 80%;
    max-width: 800px;
    gap: 40px;
}

.options {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    gap: 40px; /* 选项之间的间距 */
    position: absolute;
    top: 70%; /* 将选项框整体上移 */
    left: 50%;
    transform: translate(-50%, -50%); /* 确保完全居中 */
    width: 80%;
    max-width: 800px;
    margin-top: -100px; /* 向上偏移，调整到中上部 */
}

.option-box {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.option {
    font-size: 1.8em;
    color: #444;
    text-align: center;
    transition: all 0.3s ease;
}

/* 新增密码界面样式 */
.password-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 80%;
    max-width: 400px;
}

#passwordInput {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 1.2em;
    outline: none;
    transition: border-color 0.3s;
}

#passwordInput:focus {
    border-color: #cc99ff;
}

#confirmBtn {
    background-color: #cc99ff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s;
}

#confirmBtn:hover {
    background-color: #b366ff;
    transform: scale(1.05);
}

.error-msg {
    color: #ff4444;
    margin-top: 15px;
    font-size: 0.9em;
    height: 20px;
}

.final-page {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    color:pink ;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: none;
    padding: 60px 80px; /* 调整内边距以适应心形 */
    background-color: #cc99ff;
    border-radius: 50%;
    opacity: 0.8;
    /* 添加阴影和渐变效果 */
    box-shadow: 0 0 20px rgba(204, 153, 255, 0.8),
                inset 0 0 10px rgba(255, 255, 255, 0.5);
    background-image: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.3),
        rgba(204, 153, 255, 0.8)
    );
    /* 添加动画效果 */
    animation: float 3s ease-in-out infinite;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -55%) scale(1.05);
    }
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .title-box {
        padding: 15px 30px;
        min-width: 250px;
    }

    .title {
        font-size: 1.8em;
    }

    .options {
        flex-direction: column;
        width: 90%;
        gap: 20px;
    }

    .option-box {
        min-height: 100px;
    }

    .option {
        font-size: 1.5em;
    }

    .final-page {
        font-size: 3em;
        padding: 40px 60px;
    }
}

@media (max-width: 480px) {
    .title-box {
        padding: 10px 20px;
        min-width: 200px;
    }

    .title {
        font-size: 1.5em;
    }

    .option {
        font-size: 1.2em;
    }

    .final-page {
        font-size: 2em;
        padding: 30px 50px;
    }
}