/* public/assets/css/audio/tone-generator.css */

.tone-wrapper { padding: 32px; border-radius: var(--radius-lg); position: relative; }
.tone-header { text-align: center; margin-bottom: 32px; }
.tone-title { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.5px; }
.tone-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* 军工级仪器控制台 */
.tone-workspace { max-width: 800px; margin: 0 auto; background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border: 2px solid #334155; border-radius: 16px; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); display: flex; flex-direction: column; gap: 24px; }

/* 核心显示区 */
.tone-display-zone { background: #020617; border: 2px solid #334155; border-radius: 12px; overflow: hidden; position: relative; display: flex; flex-direction: column; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); }
.tone-lcd { display: flex; justify-content: center; align-items: baseline; padding: 20px 0 10px 0; background: linear-gradient(to bottom, rgba(15,23,42,0.8), rgba(0,0,0,0)); z-index: 10; }
.freq-lcd-input { background: transparent; border: none; font-family: 'Courier New', Courier, monospace; font-size: 4.5rem; font-weight: 900; color: #38bdf8; text-align: right; width: 220px; outline: none; text-shadow: 0 0 15px rgba(56, 189, 248, 0.6); }
/* 隐藏数字输入框的上下箭头 */
.freq-lcd-input::-webkit-outer-spin-button, .freq-lcd-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.freq-unit { font-size: 1.5rem; font-weight: 800; color: #64748b; margin-left: 8px; }

.tone-canvas { width: 100%; height: 120px; display: block; opacity: 0.8; }

/* 控制区 */
.tone-control-zone { display: flex; flex-direction: column; gap: 24px; padding: 0 12px; }
.tone-slider-group { display: flex; flex-direction: column; gap: 10px; }
.tone-slider-group label { font-size: 0.8rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; }

.tone-slider { -webkit-appearance: none; width: 100%; height: 8px; background: #334155; border-radius: 4px; outline: none; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); }
.tone-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(to bottom, #e2e8f0, #94a3b8); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.5); border: 2px solid #fff; transition: 0.1s; }
.tone-slider::-webkit-slider-thumb:active { transform: scale(1.1); }

/* 主频滑动条彩色渐变涂装 */
.hue-slider { background: linear-gradient(to right, #3b82f6, #10b981, #f59e0b, #ef4444, #d946ef); }

.tone-params-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pan-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: #64748b; font-weight: 700; margin-top: -4px; padding: 0 4px; }

/* 底部功能栏 */
.tone-bottom-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #334155; padding-top: 20px; margin-top: 8px; flex-wrap: wrap; gap: 16px; }
.wave-selector { display: flex; align-items: center; gap: 12px; }
.wave-selector label { font-size: 0.85rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; }
.tone-select { background: #0f172a; color: #f8fafc; border: 1px solid #475569; padding: 10px 16px; border-radius: 8px; font-weight: 700; font-size: 1rem; outline: none; cursor: pointer; }

.play-actions { flex: 1; display: flex; justify-content: flex-end; }
.tone-btn-play { padding: 16px 40px; font-size: 1.2rem; font-weight: 800; background: linear-gradient(to right, #10b981, #059669); color: #fff; border: none; border-radius: 30px; cursor: pointer; transition: 0.2s; box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3); text-transform: uppercase; letter-spacing: 1px; width: 100%; max-width: 250px; }
.tone-btn-play:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4); }
.tone-btn-stop { padding: 16px 40px; font-size: 1.2rem; font-weight: 800; background: linear-gradient(to right, #ef4444, #b91c1c); color: #fff; border: none; border-radius: 30px; cursor: pointer; transition: 0.2s; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); text-transform: uppercase; letter-spacing: 1px; width: 100%; max-width: 250px; }
.tone-btn-stop:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4); }

/* SEO 一键预设场景区 */
.tone-presets-zone { max-width: 800px; margin: 32px auto 0 auto; }
.presets-title { font-size: 1rem; color: var(--text-main); margin-bottom: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.presets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.preset-btn { background: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-main); padding: 16px; border-radius: 12px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.preset-btn:hover { border-color: #3b82f6; color: #3b82f6; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(59, 130, 246, 0.15); }

.tone-info-card { background: var(--bg-surface); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); max-width: 800px; margin: 0 auto; box-sizing: border-box; }

@media (max-width: 768px) {
    .freq-lcd-input { font-size: 3.5rem; width: 160px; }
    .tone-params-grid { grid-template-columns: 1fr; gap: 24px; }
    .presets-grid { grid-template-columns: 1fr; }
    .tone-bottom-bar { flex-direction: column; align-items: stretch; }
    .play-actions { justify-content: center; }
    .tone-btn-play, .tone-btn-stop { max-width: none; }
}