* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f0f0f0;
}

.container {
    display: flex;
    padding: 20px;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    height: 100vh;
}

/* 预览区域样式 */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preview-container {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#previewCanvas {
    max-width: 100%;
    max-height: 100%;
}

.drop-zone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 1.2em;
    pointer-events: none;
}

.drop-zone.hide {
    display: none;
}

/* 控制栏样式 */
.control-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

#progressBar {
    flex: 1;
}

/* 控制面板样式 */
.control-panel {
    width: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-section {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.settings-section h3 {
    margin-bottom: 10px;
    color: #333;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.frame-control {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 5px;
    align-items: center;
}

/* 按钮样式 */
button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

.full-width-btn {
    width: 100%;
    margin-bottom: 10px;
}

/* 消息列表样式 */
.message-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 100px;
    overflow-y: auto;
    padding: 5px;
}

.message {
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
}

.message.error {
    background: #ffebee;
    color: #c62828;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 滑块样式优化 */
input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
} 