/* 极简涂鸦板样式 */
.doodle-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    text-align: center;
}

.doodle-title {
    font-size: 28px;
    color: #776e65;
    margin: 0 0 10px 0;
}

.doodle-description {
    color: #776e65;
    margin: 0 0 20px 0;
}

.drawing-board {
    width: 800px;
    height: 500px;
    border: 2px solid #8b4513;
    border-radius: 5px;
    background: white;
    margin: 0 auto 20px;
    cursor: crosshair;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.drawing-board canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.toolbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.tool-label {
    font-weight: bold;
    color: #776e65;
    white-space: nowrap;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.size-slider {
    width: 100px;
}

.clear-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background: #dc3545;
    color: white;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.save-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background: #28a745;
    color: white;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    background: #17a2b8;
    color: white;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #138496;
    transform: translateY(-2px);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.preview {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.color-palette {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-option:hover {
    transform: scale(1.2);
}

.color-option.active {
    border-color: #333;
    transform: scale(1.2);
}

/* 隐藏按钮和工作模式 */
.hidden-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 9999;
    display: none;
}

.work-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.work-screen {
    background: #f0f0f0;
    width: 90%;
    height: 80%;
    border: 1px solid #ccc;
    padding: 20px;
    font-family: 'Courier New', monospace;
    overflow: auto;
}

.work-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.work-content {
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .drawing-board {
        width: 95vw;
        height: 60vh;
        max-width: 600px;
        max-height: 400px;
    }
    
    .doodle-container {
        margin: 10px;
        padding: 15px;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tool-group {
        justify-content: center;
    }
}