* {
    box-sizing: border-box;
}


:root {
    font-family:
        Inter,
        "Segoe UI",
        "Microsoft YaHei",
        sans-serif;

    color: #e8edf5;
    background: #0d1117;
}


body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            #182235 0,
            #0d1117 45%
        );
}


.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}


.site-header {
    border-bottom: 1px solid #273142;
    background: rgba(13, 17, 23, 0.85);
}


.header-content {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


.site-header h1 {
    margin: 0;
    font-size: 22px;
}


.subtitle {
    margin: 6px 0 0;
    color: #8b98aa;
    font-size: 14px;
}


.language-button {
    padding: 8px 14px;

    color: #e8edf5;
    background: #161d27;

    border: 1px solid #344158;
    border-radius: 8px;

    cursor: pointer;
}


.language-button:hover {
    background: #202a38;
}


.hero {
    padding: 72px 0 48px;
}


.eyebrow {
    color: #7d8da5;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.16em;
}


.hero h2 {
    max-width: 720px;

    margin: 12px 0;

    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
}


.hero-description {
    max-width: 650px;

    color: #9ba8ba;

    font-size: 17px;
    line-height: 1.7;
}


.tool-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.tool-card {
    min-height: 230px;

    padding: 24px;

    border: 1px solid #293447;
    border-radius: 14px;

    background: rgba(22, 29, 39, 0.82);
}


.tool-card:hover {
    border-color: #4c5d77;
}


.primary-card {
    border-color: #4d6284;
}


.card-label {
    margin-bottom: 26px;

    color: #8190a6;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.14em;
}


.tool-card h3 {
    margin: 0 0 12px;

    font-size: 21px;
}


.tool-card p {
    min-height: 72px;

    margin: 0 0 20px;

    color: #98a5b7;

    line-height: 1.6;
}


.status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 6px;

    font-size: 12px;
}


.status.ready {
    color: #a8d5b5;
    background: #17271d;
}


.development-section {
    padding: 60px 0 80px;
}


.development-section h2 {
    font-size: 20px;
}


.future-tools {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}


.future-tools span {
    padding: 9px 12px;

    color: #8d9aad;

    background: #151b24;

    border: 1px solid #293243;
    border-radius: 8px;
}


.site-footer {
    padding: 26px 0;

    color: #68778c;

    border-top: 1px solid #202938;

    font-size: 13px;
}


.config-tool {
    padding: 20px 0 60px;
}


.qa-mode-tabs {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 20px;
}


.qa-mode-button {
    padding: 9px 14px;

    color: #9ba8ba;
    background: #151c26;

    border: 1px solid #2d394c;
    border-radius: 8px;

    cursor: pointer;
}


.qa-mode-button:hover {
    color: #dce5f2;
    border-color: #485a75;
}


.qa-mode-button.active {
    color: #ffffff;
    background: #315f9f;
    border-color: #4777b7;
}


.rule-panel {
    display: none;
}


.rule-panel.active {
    display: block;
}


.rule-input,
.rule-textarea {
    width: 100%;

    margin-bottom: 8px;
    padding: 10px 12px;

    color: #e8edf5;
    background: #0d131c;

    border: 1px solid #344158;
    border-radius: 8px;
}


.rule-textarea {
    min-height: 120px;

    resize: vertical;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    line-height: 1.5;
}


.rule-help {
    margin: 0 0 18px;

    color: #748399;

    font-size: 12px;
    line-height: 1.6;
}


.section-heading {
    margin-bottom: 24px;
}


.section-heading h2 {
    margin: 8px 0;
    font-size: 28px;
}


.section-heading p {
    color: #98a5b7;
}


.tool-workspace {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 20px;
}


.input-panel,
.result-panel {
    padding: 22px;

    background: rgba(22, 29, 39, 0.85);

    border: 1px solid #293447;
    border-radius: 14px;
}


.input-panel label {
    display: block;

    margin: 0 0 8px;

    color: #aab6c7;

    font-size: 13px;
    font-weight: 600;
}


#configInput {
    width: 100%;
    min-height: 360px;

    margin-bottom: 18px;
    padding: 14px;

    resize: vertical;

    color: #e8edf5;
    background: #0d131c;

    border: 1px solid #344158;
    border-radius: 8px;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    line-height: 1.5;
}


#idField {
    width: 100%;

    margin-bottom: 18px;
    padding: 10px 12px;

    color: #e8edf5;
    background: #0d131c;

    border: 1px solid #344158;
    border-radius: 8px;
}


.primary-button {
    width: 100%;

    padding: 11px 16px;

    color: #ffffff;
    background: #315f9f;

    border: 0;
    border-radius: 8px;

    font-weight: 600;

    cursor: pointer;
}


.primary-button:hover {
    background: #3b6caf;
}


.primary-button:disabled {
    opacity: 0.6;
    cursor: wait;
}


.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.result-header h3 {
    margin: 0;
}


.result-status {
    padding: 5px 9px;

    border-radius: 6px;

    font-size: 12px;
}


.result-status.idle {
    color: #9ba8ba;
    background: #202936;
}


.result-status.valid {
    color: #a8d5b5;
    background: #17271d;
}


.result-status.invalid {
    color: #efb1b1;
    background: #321d1d;
}


.result-summary {
    margin: 24px 0;

    color: #bcc7d5;

    font-size: 15px;
}


.issue-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.issue-item {
    padding: 14px;

    background: #111822;

    border: 1px solid #313d50;
    border-radius: 8px;
}


.issue-code {
    margin-bottom: 7px;

    color: #e7a9a9;

    font-size: 12px;
    font-weight: 700;
}


.issue-message {
    color: #c5cfdd;

    font-size: 14px;
    line-height: 1.5;
}


.issue-meta {
    margin-top: 7px;

    color: #7f8da0;

    font-size: 12px;
}


.qa-summary-cards {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
    margin-bottom: 20px;
}


.qa-summary-cards[hidden] {
    display: none;
}


.qa-summary-card {
    padding: 14px;

    background: #111822;

    border: 1px solid #313d50;
    border-radius: 8px;
}


.qa-summary-card span {
    display: block;

    color: #8493a7;

    font-size: 12px;
}


.qa-summary-card strong {
    display: block;

    margin-top: 7px;

    color: #e8edf5;

    font-size: 22px;
}


@media (max-width: 760px) {

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-workspace {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 48px;
    }

}
