/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #121212, #2a2a2a);
    color: #f0f0f0;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 标题样式 */
.header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 5px;
    background: linear-gradient(90deg, #ff7eb3, #7eb3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.1rem;
    color: #aaa;
    font-style: italic;
}

/* 控制区域样式 */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    background-color: rgba(40, 40, 40, 0.7);
    padding: 15px;
    border-radius: 10px;
}

.color-brushes-control, .brush-size-control {
    flex: 1;
    min-width: 250px;
}

.color-brushes-control label, .brush-size-control label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ddd;
}

/* 画笔选择器样式 */
.brushes {
    display: flex;
    gap: 12px;
}

.brush-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.brush-option:hover {
    transform: scale(1.1);
}

.brush-option.active {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.brush-option:hover .tooltip {
    opacity: 1;
}

/* 画笔大小控制 */
input[type="range"] {
    width: 80%;
    height: 8px;
    background: #444;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff7eb3, #7eb3ff);
    border-radius: 50%;
    cursor: pointer;
}

#lineWidthValue {
    display: inline-block;
    margin-left: 10px;
    background: rgba(60, 60, 60, 0.7);
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 30px;
    text-align: center;
}

/* 画布容器 */
.canvas-container {
    width: 100%;
    height: 400px;
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
}

#doodleCanvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#playSoundBtn {
    background: linear-gradient(135deg, #7eb3ff, #65d6ce);
    color: #111;
}

#clearCanvasBtn {
    background: linear-gradient(135deg, #ff7eb3, #ff6b6b);
    color: #111;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

/* 说明文字 */
.instructions {
    text-align: center;
    color: #aaa;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 制作人信息 */
.producer-info {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

.producer-tagline {
    font-style: italic;
    color: #7eb3ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .canvas-container {
        height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}