.page {
    display: none;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.page.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-container, .call-container {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.call-buttons {
    margin-top: 20px;
}

.accept-btn, .reject-btn {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.accept-btn {
    background-color: #4CAF50;
    color: white;
}

.reject-btn {
    background-color: #f44336;
    color: white;
}

#video-page video {
    max-width: 100%;
    max-height: 100vh;
}

#reject-page {
    background-color: #f44336;
    color: white;
    font-size: 2em;
    text-align: center;
}

#password-input1, #password-input2 {
    width: 80px;
    padding: 5px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.password-container p {
    font-size: 18px;
    margin: 20px 0;
}

/* 修改来电页面的样式 */
#call-page {
    background-image: url('你的背景图片.jpg');  /* 替换为你的图片路径 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 为了确保文字清晰可见，可以给call-container添加半透明背景 */
.call-container {
    background-color: rgba(255, 255, 255, 0.9);  /* 白色背景，0.9是透明度 */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
} 

/* 确保视频页面样式正确 */
#video-page {
    background-color: black; /* 视频播放时的背景色 */
}

#video-page video {
    max-width: 100%;
    max-height: 100vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 添加链接样式 */
.link-text {
    margin-top: 20px;
    font-size: 14px;
}

.link-text a {
    color: #007bff;
    text-decoration: none;
}

.link-text a:hover {
    text-decoration: underline;
}

/* 添加基础响应式样式 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* 修改容器响应式样式 */
.password-container, .call-container {
    width: 90%;
    max-width: 500px;
    padding: 20px;
    margin: 15px;
}

/* 输入框响应式调整 */
#password-input1, #password-input2 {
    width: 60px;
    font-size: 14px;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .password-container, .call-container {
        width: 95%;
        padding: 15px;
    }

    .password-container h2 {
        font-size: 1.5em;
    }

    .hint {
        font-size: 14px;
        padding: 8px;
    }

    .password-container p {
        font-size: 16px;
    }

    .call-container .caller-info h2 {
        font-size: 1.5em;
    }

    .call-buttons button {
        padding: 8px 16px;
        font-size: 14px;
    }

    #video-page video {
        width: 100%;
        height: auto;
    }
}

/* 更小屏幕的适配 */
@media screen and (max-width: 480px) {
    .password-container h2 {
        font-size: 1.2em;
    }

    .hint {
        font-size: 12px;
    }

    .password-container p {
        font-size: 14px;
    }

    #password-input1, #password-input2 {
        width: 50px;
        font-size: 12px;
    }
}