/* 方程求解计算器样式 */

.tool-title-wrapper {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-light);
}
.tool-title-wrapper i { font-size: 2rem; color: var(--primary-color); }
.tool-title-wrapper .tool-title { margin-bottom: 0; border-bottom: none; }

.eq-error {
    display: none; margin-bottom: 1rem; padding: 0.65rem 0.9rem;
    border-radius: 8px; background: #fff1f0; border: 1px solid #ffccc7;
    color: #c92a2a; font-size: 0.9rem;
}
.eq-error.show { display: block; }

.eq-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.eq-tabs button {
    padding: 0.45rem 0.9rem; border: 1px solid var(--border-color, #dfe3e8);
    background: #fff; color: var(--text-color); border-radius: 20px;
    font-size: 0.86rem; cursor: pointer;
}
.eq-tabs button.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }

.eq-fields { display: none; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; margin-bottom: 0.8rem; }
.eq-fields.is-on { display: flex; }
.eq-fields.mode-linear .eq-c-only, .eq-fields.mode-linear .eq-d-only,
.eq-fields.mode-quadratic .eq-d-only { display: none; }
.eq-field { flex: 1 1 110px; min-width: 0; }
.eq-field label { display: block; font-size: 0.82rem; color: #7a8394; margin-bottom: 0.3rem; }
.eq-field .form-input { width: 100%; font-family: var(--font-mono, monospace); }
.eq-formula {
    flex: 1 1 100%; margin-top: 0.2rem; padding: 0.5rem 0.75rem;
    background: #f7f9fc; border-radius: 8px; font-size: 0.9rem;
    color: var(--text-color); font-family: var(--font-mono, monospace);
}

.eq-actions { display: flex; gap: 0.5rem; margin-bottom: 0.85rem; }
.eq-go, .eq-conv-go {
    padding: 0.58rem 1.2rem; background: var(--primary-color);
    border: 1px solid var(--primary-color); color: #fff;
    border-radius: 8px; font-size: 0.9rem; cursor: pointer;
}
.eq-go:hover { filter: brightness(1.08); }

.eq-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-bottom: 1rem; }
.eq-chips-label { font-size: 0.82rem; color: #7a8394; margin-right: 0.3rem; }
.eq-chips button {
    padding: 0.28rem 0.72rem; border: 1px solid var(--border-color, #dfe3e8);
    background: #fff; color: var(--text-color); border-radius: 20px;
    font-size: 0.8rem; cursor: pointer; font-family: var(--font-mono, monospace);
}
.eq-chips button:hover { border-color: var(--primary-color); color: var(--primary-color); }

.eq-section-title { margin: 1rem 0 0.6rem; font-size: 1rem; font-weight: 600; color: var(--text-color); }
.eq-result {
    padding: 0.8rem 0.95rem; background: #eef4ff; border-radius: 8px;
    color: var(--primary-color); font-size: 1.15rem; font-weight: 600;
    word-break: break-word; line-height: 1.6;
}
.eq-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.eq-steps li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    padding: 0.55rem 0.75rem; background: #f7f9fc; border-radius: 8px;
    font-size: 0.9rem; line-height: 1.65; color: var(--text-color); word-break: break-word;
}
.eq-step-num {
    flex: 0 0 1.35rem; height: 1.35rem; line-height: 1.35rem; text-align: center;
    border-radius: 50%; background: var(--primary-color); color: #fff; font-size: 0.75rem; font-weight: 600;
}
.eq-note { margin-top: 0.85rem; padding: 0.65rem 0.85rem; background: #f0fbf6; border-radius: 8px; font-size: 0.85rem; color: #137a56; line-height: 1.7; }
.eq-hint { margin: 0.8rem 0 0; font-size: 0.83rem; color: #7a8394; line-height: 1.7; }

@media (max-width: 600px) {
    .eq-tabs button { flex: 1 1 44%; }
    .eq-field { flex: 1 1 44%; }
}
