/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* 顶部对齐 */
    min-height: 100vh;
}

/* 容器样式 */
.container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    margin-bottom: 40px; /* 增加底部间距 */
}

h1 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #9B8FB5;
    font-weight: 600;
}

/* 视频容器样式 */
.video-container {
    background-color: #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.video-placeholder {
    width: 100%;
    height: 500px; /* 更大的视频区域 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d1d5db;
    border-radius: 10px;
    color: #666;
    font-size: 20px;
    position: relative;
}

/* 人脸识别框样式 */
.face-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; /* 更大的识别框 */
    height: 300px;
    border: 4px dashed #9B8FB5; /* 蓝色虚线框 */
    border-radius: 15px;
}

/* 按钮样式 */
.capture-btn {
    background-color: #9B8FB5;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 25px; /* 增加按钮底部间距 */
}

.capture-btn:hover {
    background-color: #FF69B4;
    transform: scale(1.05);
}

.capture-btn:active {
    transform: scale(0.95);
}

/* 结果容器样式 */
.result-container {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 25px; /* 增加结果区域底部间距 */
}

h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #9B8FB5;
    font-weight: 600;
}

.result-text {
    font-size: 18px;
    color: #666;
}

/* 额外内容区域样式 */
.additional-content {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.additional-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #9B8FB5;
}

.additional-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}