:root {
    --helper-text: #172033;
    --helper-muted: #667085;
    --helper-border: #e4e7ec;
    --helper-surface: #ffffff;
    --helper-background: #f5f7fa;
}

* {
    box-sizing: border-box;
}

body.helper-page {
    margin: 0;
    color: var(--helper-text);
    background: var(--helper-background);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
}

.helper-main {
    min-height: calc(100vh - 320px);
    padding-top: 80px;
}

.helper-heading {
    padding: 48px 20px 34px;
    background: var(--helper-surface);
    border-bottom: 1px solid var(--helper-border);
}

.helper-heading__inner {
    width: min(960px, 100%);
    margin: 0 auto;
}

.helper-heading h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.25;
    letter-spacing: 0;
}

.helper-products {
    display: grid;
    gap: 16px;
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.helper-product {
    --product-color: #0066ff;
    --product-soft: #eef5ff;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 132px;
    padding: 24px 26px 24px 22px;
    background: var(--helper-surface);
    border: 1px solid var(--helper-border);
    border-left: 4px solid var(--product-color);
    border-radius: 6px;
}

.helper-product--love {
    --product-color: #df3f82;
    --product-soft: #fff0f6;
}

.helper-product--discipline {
    --product-color: #16875d;
    --product-soft: #edf9f4;
}

.helper-product > img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.helper-product__copy {
    min-width: 0;
}

.helper-product__copy h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0;
}

.helper-product__copy p {
    margin: 0;
    color: var(--helper-muted);
    font-size: 15px;
    line-height: 1.6;
}

.helper-product__actions {
    display: grid;
    grid-template-columns: repeat(2, 128px);
    gap: 10px;
}

.helper-product__actions--single {
    grid-template-columns: 128px;
}

.helper-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--product-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.helper-action i {
    font-size: 19px;
}

.helper-action--primary {
    color: #ffffff;
    background: var(--product-color);
}

.helper-action--secondary {
    color: var(--product-color);
    background: var(--product-soft);
}

.helper-action:hover {
    transform: translateY(-1px);
}

.helper-action:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--product-color) 25%, transparent);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    body.helper-page #cs-float-btn {
        display: none !important;
    }

    .helper-main {
        padding-top: 64px;
    }

    .helper-heading {
        padding: 28px 16px 22px;
    }

    .helper-heading h1 {
        font-size: 28px;
    }

    .helper-products {
        gap: 12px;
        width: calc(100% - 32px);
        padding: 20px 0 40px;
    }

    .helper-product {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 14px 16px;
        min-height: 0;
        padding: 18px 16px 16px 14px;
    }

    .helper-product > img {
        width: 56px;
        height: 56px;
    }

    .helper-product__copy h2 {
        margin-bottom: 4px;
        font-size: 18px;
    }

    .helper-product__copy p {
        font-size: 13px;
        line-height: 1.5;
    }

    .helper-product__actions,
    .helper-product__actions--single {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .helper-product__actions--single .helper-action {
        grid-column: 1 / -1;
    }

    .helper-action {
        min-height: 42px;
        padding: 0 10px;
        font-size: 14px;
    }
}
