.instrument-tuner {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    max-width: 280px;
    margin: 10px auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tuner-header {
    background-color: #2c3e50;
    color: white;
    padding: 8px 10px;
    text-align: center;
}

.instrument-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 1px;
}

.tuning-mode {
    font-size: 11px;
    opacity: 0.8;
}

.tuner-display {
    padding: 10px 8px;
    text-align: center;
    background-color: #f8f9fa;
}

.note-display {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frequency-display {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.tuning-indicator {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.indicator-markers {
    display: flex;
    width: 70%;
    justify-content: space-between;
    position: relative;
}

.marker {
    width: 1px;
    height: 8px;
    background-color: #bdc3c7;
}

.marker.center {
    height: 12px;
    background-color: #2c3e50;
}

.needle {
    width: 70%;
    height: 2px;
    background-color: #e74c3c;
    position: absolute;
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.accuracy {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 3px;
}

.accuracy.perfect {
    color: #2ecc71;
    font-weight: bold;
}

.strings-container {
    padding: 8px;
}

.string-row {
    display: flex;
    margin-bottom: 6px;
    align-items: center;
}

.string-name {
    width: 30px;
    font-size: 11px;
    font-weight: bold;
    color: #2c3e50;
}

.string-button {
    flex: 1;
    padding: 6px;
    background-color: #ecf0f1;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.string-button:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.string-button.active {
    background-color: #2c3e50;
    color: white;
}

.string-button.playing {
    background-color: #e74c3c;
    color: white;
    animation: pulse 0.5s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.02); }
}

.controls {
    display: flex;
    padding: 0 8px 8px;
    gap: 6px;
}

.control-button {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-button {
    background-color: #2ecc71;
    color: white;
}

.start-button:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

.stop-button {
    background-color: #e74c3c;
    color: white;
}

.stop-button:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.stop-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.instructions {
    padding: 6px 8px;
    background-color: #f8f9fa;
    border-top: 1px solid #ecf0f1;
    font-size: 10px;
    color: #7f8c8d;
    text-align: center;
}

.instrument-selector {
    display: flex;
    padding: 4px 8px;
    background-color: #ecf0f1;
    border-bottom: 1px solid #dcdde1;
}

.instrument-option {
    flex: 1;
    padding: 4px;
    text-align: center;
    background: none;
    border: none;
    font-size: 11px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.instrument-option.active {
    background-color: #3498db;
    color: white;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .instrument-tuner {
        max-width: 260px;
        border-radius: 10px;
        margin: 8px auto;
    }
    
    .note-display {
        font-size: 24px;
        height: 30px;
    }
    
    .string-button {
        padding: 5px;
        font-size: 11px;
    }
    
    .control-button {
        padding: 5px;
        font-size: 10px;
    }
}