/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

#websiteFrame {
    width: 100vw;
    height: 100vh;
    border: none;
}

.floating-btn {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 1000;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    min-height: 50px;
    min-width: 50px;
}

.floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@media screen and (max-width: 768px) {
    .floating-btn {
        top: 105px;
        right: 15px;
        padding: 12px 16px;
        font-size: 14px;
        z-index: 9999 !important;
    }
    
    .btn-icon {
        width: 20px;
        height: 20px;
    }
    
    .video-container {
        width: 200px;
        height: 180px;
        margin-left: auto;
        margin-right: auto;
    }
    
    #tutorialVideo {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .device-btn {
        padding: 5px 6px;
        min-width: 50px;
        font-size: 11px;
    }
}

.btn-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.tutorial-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.tutorial-content img {
    display: block;
    margin: 10px auto;
}

.device-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px 0;
    gap: 8px;
}

.device-btn {
    padding: 8px 10px;
    border: 2px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    min-width: 70px;
}

.device-btn:hover {
    background-color: #e9e9e9;
}

.device-btn.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.video-container {
    margin-top: 15px;
    width: 280px;
    height: 180px;
    margin-left: auto;
    margin-right: auto;
}

#tutorialVideo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持视频比例并完整显示 */
}