* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #0a0a12;
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
}

#container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#ui {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    z-index: 100;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

#info {
    background: rgba(0, 0, 0, 0.7);
    padding: 16px 24px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    max-width: 320px;
}

#info h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#info p {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

#controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    flex-wrap: wrap;
    justify-content: center;
}

#toggleBtn {
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    letter-spacing: 1px;
}

#toggleBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
}

#toggleBtn:active {
    transform: translateY(0);
}

#toggleBtn.active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
}

#toggleBtn.active:hover {
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.6);
}

#flameBtn {
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.4);
    letter-spacing: 1px;
}

#flameBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.6);
}

#flameBtn:active {
    transform: translateY(0);
}

#flameBtn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

#flameBtn.active:hover {
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
}

#flameBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#hoodBtn {
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    letter-spacing: 1px;
}

#hoodBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.6);
}

#hoodBtn:active {
    transform: translateY(0);
}

#hoodBtn.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

#status {
    color: #aaa;
    font-size: 13px;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

#tips {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: 30px;
    pointer-events: none;
}

#tips span {
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#cameraInfo {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 16px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-family: monospace;
    pointer-events: none;
}

/* 加载动画 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a12;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 210, 255, 0.2);
    border-top-color: #00d2ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 768px) {
    #ui {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    #info {
        max-width: 100%;
        text-align: center;
    }
    
    #tips {
        display: none;
    }
    
    #toggleBtn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* 版权信息 */
#copyright {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 8px;
    color: #aaa;
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
}
