/* --- 分析仪特有样式 --- */

/* 页面整体布局压缩，确保无需滑动 */
.content-section {
    padding: 20px 20px; /* 极度压缩内容区上下边距 */
}

footer {
    margin-top: 20px; /* 极度压缩页脚上方间距 */
    padding: 20px 0;
}

/* --- 升降号切换器 (Notation Toggle) --- */
.notation-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;    /* 增加与 Hero 的距离 */
}

.notation-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--item-border);
    background: var(--card-bg);
    font-family: 'Musical', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-sub);
    box-shadow: 0 2px 8px rgba(14, 52, 112, 0.05);
    font-feature-settings: normal;
}

.notation-btn:hover {
    transform: scale(1.1);
    color: var(--primary-blue);
}

.notation-btn.active {
    background: var(--primary-blue) !important;
    color: var(--on-primary) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: 0 4px 15px rgba(30, 102, 198, 0.3);
}

.analyzer-card {
    margin: 0 auto;
    max-width: 450px;
    padding: 40px;
    text-align: center;
}

#meter {
    width: 100%;
    height: 120px;
    position: relative;
    margin-bottom: 30px;
}

/* 使用伪元素绘制底部的水平分割线，以实现圆头效果 */
#meter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--item-border);
    border-radius: 2px;
}

#pointer {
    width: 4px;
    height: 80px;
    background: var(--primary-blue);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transition: transform 0.1s ease-out;
    transform: translateX(-50%) rotate(0deg);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(30, 102, 198, 0.2);
    z-index: 2;
}

.center-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 100px;
    background: var(--item-border);
    transform: translateX(-50%);
    border-radius: 1px;
    z-index: 1;
}

.current-note {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 5px 0; /* 压缩音高显示的垂直间距 */
    font-family: 'Musical', 'Inter Var', sans-serif;
    letter-spacing: -1px;
    font-feature-settings: normal;
}

.frequency-val {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 20px; /* 压缩频率数值下方的间距 */
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.frequency-val small {
    font-size: 1.1rem;
    color: var(--text-sub);
    font-weight: 400;
}

.status {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-top: 15px; /* 压缩状态提示上方的间距 */
}

/* 按钮调整 */
.analyzer-card .modal-btn {
    padding: 15px 50px;
    min-width: 180px;
    font-size: 1.15rem;
    font-family: inherit;
    border: none;
}

@media (max-width: 768px) {
    .analyzer-card { padding: 30px 20px; }
    .current-note { font-size: 3.2rem; }
    .frequency-val { font-size: 2rem; }
}