@charset "UTF-8";

.suite-breadcrumb {
    margin: 0 0 10px;
    color: #76543a;
    font-size: 13px;
}

.fn_part > .hd h1,
.fn_part .mathmod_form h1,
.fn_part .suite-guide h1 {
    margin: 14px auto;
    overflow: visible;
    color: #834b27;
    font: 24px/32px "Microsoft YaHei", "PingFang SC", sans-serif;
    text-align: center;
    text-indent: 0;
}

.suite-breadcrumb a,
.suite-related a,
.suite-content a {
    color: #9b4f17;
}

.calculator-suite {
    padding: 18px;
    color: #3e2b1d;
}

.suite-lead {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-left: 4px solid #b07135;
    background: #fff8e9;
    line-height: 1.8;
}

.suite-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 14px;
}

.suite-badges span {
    padding: 4px 9px;
    border: 1px solid #dfbd99;
    border-radius: 999px;
    background: #fff7e8;
    color: #75451f;
    font-size: 12px;
}

.suite-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.suite-form-grid > label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #603817;
    font-weight: 700;
    line-height: 1.5;
}

.suite-form-grid small {
    color: #806d5e;
    font-size: 12px;
    font-weight: 400;
}

.suite-form-grid input,
.suite-form-grid select,
.suite-form-grid textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #c7a47f;
    border-radius: 3px;
    background: #fff;
    color: #302217;
    font: inherit;
    font-weight: 400;
}

.suite-form-grid input:focus,
.suite-form-grid select:focus,
.suite-form-grid textarea:focus {
    border-color: #9b5d24;
    outline: 3px solid rgba(176, 113, 53, 0.2);
    outline-offset: 1px;
}

.suite-form-grid textarea {
    min-height: 88px;
    resize: vertical;
}

.suite-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
}

.suite-check-grid label {
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border: 1px solid #ead4ba;
    border-radius: 3px;
    background: #fff;
    color: #603817;
}

.suite-check-grid input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.suite-input {
    display: flex;
    align-items: stretch;
}

.suite-input input {
    min-width: 0;
    border-radius: 3px 0 0 3px;
}

.suite-input b {
    display: inline-flex;
    min-width: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #c7a47f;
    border-left: 0;
    border-radius: 0 3px 3px 0;
    background: #f4e4cf;
    color: #69411e;
    font-weight: 400;
    white-space: nowrap;
}

.suite-mode-panel {
    margin-top: 14px;
}

.suite-subform {
    margin: 18px 0 0;
    padding: 14px;
    border: 1px solid #d8b792;
    background: rgba(255, 255, 255, 0.45);
}

.suite-subform legend {
    padding: 0 8px;
    color: #7c451b;
    font-weight: 700;
}

.suite-subform > small {
    display: block;
    margin-top: 10px;
    color: #806d5e;
    line-height: 1.6;
}

.suite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.suite-actions button {
    min-width: 112px;
    min-height: 42px;
    padding: 9px 22px;
    border: 1px solid #8b4f1f;
    border-radius: 3px;
    background: #a4672e;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.suite-actions button[type="reset"] {
    border-color: #b58c67;
    background: #fff7ea;
    color: #75451f;
}

.suite-actions button:hover,
.suite-actions button:focus-visible {
    filter: brightness(0.95);
    outline: 3px solid rgba(176, 113, 53, 0.25);
}

.suite-error {
    margin-top: 16px;
    padding: 10px 12px;
    border: 1px solid #b83a2e;
    border-radius: 3px;
    background: #fff1ee;
    color: #8c251c;
}

.suite-result {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d0a67e;
    border-radius: 3px;
    background: #fffaf1;
    outline: none;
}

.suite-result > h2,
.suite-result > h3,
.suite-table > h3,
.suite-table-wrap > h3 {
    margin: 0 0 12px;
    color: #864511;
}

.suite-summary,
.suite-result-summary {
    margin: 0 0 14px;
    color: #4b2a11;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.suite-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.suite-metrics > div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #ead4ba;
    background: #fff;
}

.suite-metrics dt {
    margin: 0 0 4px;
    color: #80624a;
    font-size: 13px;
}

.suite-metrics dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #a34d0b;
    font-size: 18px;
    font-weight: 700;
}

.suite-table,
.suite-table-wrap {
    margin-top: 18px;
}

.suite-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.suite-table-scroll table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
}

.suite-table-scroll th,
.suite-table-scroll td {
    padding: 8px 10px;
    border: 1px solid #e4c8aa;
    text-align: right;
    white-space: nowrap;
}

.suite-table-scroll th {
    background: #f4e4cf;
    color: #603817;
}

.suite-table-scroll th:first-child,
.suite-table-scroll td:first-child {
    text-align: left;
}

.suite-table-scroll table.suite-table-compact {
    min-width: 0;
    table-layout: fixed;
}

.suite-table-compact th,
.suite-table-compact td,
.suite-table-compact th:first-child,
.suite-table-compact td:first-child {
    padding: 8px 4px;
    text-align: center;
}

.suite-note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed #d8b792;
    color: #765f4d;
    line-height: 1.7;
}

.suite-content,
.suite-guide,
.suite-faq,
.suite-related {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid #dfbd99;
    background: #fffaf1;
    color: #4c3828;
    line-height: 1.85;
}

.suite-content h2,
.suite-content h3,
.suite-guide h2,
.suite-guide h3,
.suite-faq h2,
.suite-related h2 {
    margin: 0 0 10px;
    color: #965015;
}

.suite-content h3:not(:first-child),
.suite-guide h3:not(:first-child) {
    margin-top: 16px;
}

.suite-content p,
.suite-content ul,
.suite-guide p,
.suite-guide ul {
    margin: 8px 0;
}

.suite-source {
    padding: 8px 10px;
    background: #fff4de;
    font-size: 13px;
}

.suite-faq details {
    border-top: 1px solid #ead7c1;
    padding: 10px 0;
}

.suite-faq details:first-of-type {
    border-top: 0;
}

.suite-faq summary {
    color: #663b1a;
    cursor: pointer;
    font-weight: 700;
}

.suite-faq details p {
    margin: 8px 0 0;
}

.suite-related ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    margin: 0;
    padding-left: 20px;
}

.algebra-1000-directory {
    color: #4c3828;
}

.algebra-1000-directory > h1 {
    margin: 4px 0 14px;
    color: #834b27;
    font: 700 25px/1.4 "Microsoft YaHei", "PingFang SC", sans-serif;
    text-align: center;
}

.algebra-family-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 22px;
}

.algebra-family-nav a {
    padding: 7px 10px;
    border: 1px solid #ddbb95;
    border-radius: 3px;
    background: #fff8e9;
    color: #8a4817;
    line-height: 1.4;
}

.algebra-family-section {
    margin: 22px 0;
    scroll-margin-top: 12px;
}

.algebra-family-section > h2,
.algebra-legacy-title {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-left: 4px solid #a4672e;
    background: #f8ead8;
    color: #7d4318;
    font-size: 19px;
}

.algebra-family-section > h2 small {
    color: #866e5b;
    font-size: 13px;
    font-weight: 400;
}

.algebra-calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.algebra-calculator-grid li {
    min-width: 0;
}

.algebra-calculator-grid a {
    display: block;
    padding: 7px 9px;
    border: 1px solid #ecd9c1;
    background: #fff;
    color: #824616;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.algebra-calculator-grid a:hover,
.algebra-calculator-grid a:focus-visible {
    border-color: #ad6a31;
    background: #fff8e9;
}

.matrix-2000-directory-summary,
.matrix-directory-page .bd,
.matrix-category-page .bd {
    overflow: hidden;
}

.matrix-directory-filter {
    display: block;
    margin: 18px 0 8px;
    padding: 14px;
    border: 1px solid #e4c9aa;
    border-radius: 8px;
    background: #fffaf3;
}

.matrix-directory-filter span {
    display: block;
    margin-bottom: 7px;
    color: #70401d;
    font-weight: 700;
}

.matrix-directory-filter input {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #cba77e;
    border-radius: 6px;
    background: #fff;
    font: inherit;
}

.suite-result-actions {
    margin-top: 12px;
}

.matrix-category-dimension > h2,
.matrix-directory-page .algebra-family-section > h2 a {
    color: inherit;
}

[hidden] {
    display: none !important;
}

@media (max-width: 640px) {
    .calculator-suite,
    .suite-content,
    .suite-faq,
    .suite-related {
        padding: 14px 12px;
    }

    .suite-form-grid,
    .suite-metrics,
    .suite-related ul,
    .suite-check-grid {
        grid-template-columns: 1fr;
    }

    .suite-actions button {
        flex: 1 1 120px;
    }

    .algebra-calculator-grid {
        grid-template-columns: 1fr;
    }
}
