/* 三角函数计算器样式 */

.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; }

.trig-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;
}
.trig-error.show { display: block; }

.trig-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem; margin-bottom: 0.9rem; }
.trig-field { flex: 1 1 190px; min-width: 0; }
.trig-field label { display: block; font-size: 0.85rem; color: #7a8394; margin-bottom: 0.35rem; }
.trig-field .form-input { width: 100%; font-size: 1.05rem; }
.trig-modes { display: flex; gap: 0.3rem; flex: 0 0 auto; }
.trig-modes button, .trig-go, .trig-inv-go {
    padding: 0.55rem 0.95rem; border: 1px solid var(--border-color, #dfe3e8);
    background: #fff; color: var(--text-color); border-radius: 8px;
    font-size: 0.86rem; cursor: pointer;
}
.trig-modes button.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.trig-go, .trig-inv-go { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.trig-go:hover, .trig-inv-go:hover { filter: brightness(1.08); }

.trig-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-bottom: 1.1rem; }
.trig-chips-label { font-size: 0.82rem; color: #7a8394; margin-right: 0.3rem; }
.trig-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;
}
.trig-chips button:hover { border-color: var(--primary-color); color: var(--primary-color); }

.trig-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 760px) { .trig-main { grid-template-columns: 1fr; } }

.trig-section-title { margin: 0 0 0.65rem; font-size: 1rem; font-weight: 600; color: var(--text-color); }
.trig-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.trig-cell {
    border: 1px solid var(--border-color, #e6e9ef); border-left: 3px solid var(--primary-color);
    border-radius: 8px; padding: 0.6rem 0.75rem; background: #fbfcfe; min-width: 0;
}
.trig-cell.is-undefined { border-left-color: #f5a623; background: #fffbf2; }
.trig-cell-name { font-size: 0.8rem; color: #7a8394; margin-bottom: 0.25rem; }
.trig-cell-value { font-size: 1.15rem; font-weight: 600; color: var(--primary-color); word-break: break-all; }
.trig-cell.is-undefined .trig-cell-value { color: #a8730b; font-size: 0.95rem; }

.trig-circle-box {
    border: 1px solid var(--border-color, #e6e9ef); border-radius: 10px;
    padding: 0.6rem; background: #fff;
}
.trig-svg { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto; }
.trig-circle-meta { font-size: 0.82rem; color: #7a8394; text-align: center; line-height: 1.8; }

.trig-inv {
    margin-top: 1.1rem; border-top: 1px dashed var(--border-color, #e3e8ef); padding-top: 1rem;
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem;
}
.trig-inv .form-select { flex: 0 0 130px; }
.trig-inv .form-input { flex: 1 1 150px; min-width: 0; }
.trig-inv-result {
    flex: 1 1 100%; margin-top: 0.35rem; padding: 0.6rem 0.8rem;
    background: #eef4ff; border-radius: 8px; color: var(--primary-color);
    font-size: 1.1rem; font-weight: 600; word-break: break-all;
}
.trig-note, .trig-hint { font-size: 0.85rem; color: #7a8394; line-height: 1.7; }
.trig-note { margin-top: 0.9rem; padding: 0.65rem 0.85rem; background: #f7f9fc; border-radius: 8px; }
.trig-hint { margin: 0.7rem 0 0; }

@media (max-width: 480px) {
    .trig-grid { grid-template-columns: 1fr; }
    .trig-modes { width: 100%; }
}
