/* 基础布局 - 保持9:16比例 */
.app-container {
    position: relative;
    width: 100vw;
    height: calc(100vw * (16/9));
    max-width: calc(100vh * (9/16));
    max-height: 100vh;
    margin: 0 auto;
    background-color: #FFF9F0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* 宽屏适配 */
@media (min-aspect-ratio: 9/16) {
    .app-container {
        width: calc(100vh * (9/16));
        height: 100vh;
    }
}

/* 标题栏 */
.header {
    background: linear-gradient(to right, #A67C52, #D2B48C);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    z-index: 10;
}

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

/* 内容区域 */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    position: relative;
}

/* 白色背景的视频容器 */
.video-container {
    width: 100%;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.video-container img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* 圆形控制按钮区域 */
.control-buttons {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    margin-top: auto;
}

.control-btn.circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #D2B48C;
    color: #5C4033;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(166, 124, 82, 0.1);
}

.control-btn.circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(166, 124, 82, 0.15);
}

.control-btn.circle.active {
    background: linear-gradient(to bottom, #A67C52, #D2B48C);
    color: white;
    border-color: #8A6D5B;
}

.control-btn .icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.control-btn .btn-text {
    font-size: 12px;
    font-weight: bold;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(3px);
}

.modal-box {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

.modal-box.small {
    max-width: 300px;
}

.modal-header {
    background: linear-gradient(to right, #A67C52, #D2B48C);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    flex: 1;
    text-align: center;
}

.ai-avatar {
    font-size: 30px;
    margin-right: 15px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.modal-content {
    padding: 20px;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EEE;
}

.tip-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tip-icon {
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.tip-card p {
    margin: 0;
    color: #5C4033;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    padding: 15px 20px;
    border-top: 1px solid #EEE;
}

.modal-btn {
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-left: 10px;
    border: none;
}

.modal-btn.cancel {
    background: #EEE;
    color: #666;
}

.modal-btn.confirm {
    background: linear-gradient(to right, #A67C52, #D2B48C);
    color: white;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* 状态提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    display: none;
    z-index: 50;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.toast.success {
    background-color: rgba(76, 175, 80, 0.9);
}

.toast.warning {
    background-color: rgba(255, 152, 0, 0.9);
}

/* 动画 */
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}