:root {
    --kehui-bg: #f5f7f2;
    --kehui-ink: #101511;
    --kehui-muted: #626d66;
    --kehui-soft: #e9f0e9;
    --kehui-card: #ffffff;
    --kehui-line: #dce5dc;
    --kehui-green: #246b52;
    --kehui-teal: #0f6a73;
    --kehui-gold: #b8832f;
    --kehui-dark: #07110f;
}

html {
    scroll-behavior: smooth;
}

body.kehui-custom-home {
    margin: 0;
    background: var(--kehui-bg);
    color: var(--kehui-ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body.kehui-custom-home * {
    box-sizing: border-box;
}

body.kehui-custom-home a {
    color: inherit;
}

.kehui-site {
    min-height: 100vh;
    padding-bottom: 64px;
    overflow-x: hidden;
}

.kehui-nav {
    width: min(1140px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.kehui-nav__brand {
    font-weight: 920;
    text-decoration: none;
    white-space: nowrap;
}

.kehui-nav__links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.kehui-nav__links a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border-radius: 999px;
    color: rgba(248, 251, 245, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 760;
}

.kehui-nav__links a:hover,
.kehui-nav__links a.is-active {
    background: rgba(248, 251, 245, 0.12);
    color: #fff;
}

.kehui-hero,
.kehui-page-hero {
    position: relative;
    color: #f8fbf5;
    background-image:
        linear-gradient(90deg, rgba(7, 17, 15, 0.96), rgba(7, 17, 15, 0.8) 45%, rgba(7, 17, 15, 0.46)),
        linear-gradient(180deg, rgba(7, 17, 15, 0.18), rgba(7, 17, 15, 0.74)),
        url("diagnostic-workspace.png");
    background-size: cover;
    background-position: center;
}

.kehui-hero {
    min-height: 92vh;
}

.kehui-page-hero {
    min-height: 430px;
}

.kehui-hero__inner,
.kehui-page-hero__inner {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.kehui-hero__inner {
    padding: 86px 0 50px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 42px;
    align-items: end;
}

.kehui-page-hero__inner {
    padding: 68px 0 88px;
}

.kehui-eyebrow {
    margin: 0 0 14px;
    color: var(--kehui-gold);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kehui-hero h1,
.kehui-page-hero h1 {
    max-width: 850px;
    margin: 0;
    font-weight: 920;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.kehui-hero h1 {
    font-size: 4rem;
    line-height: 1.08;
}

.kehui-page-hero h1 {
    font-size: 3.2rem;
    line-height: 1.12;
}

.kehui-hero__lead,
.kehui-page-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(248, 251, 245, 0.86);
    font-size: 1.22rem;
    line-height: 1.65;
    font-weight: 720;
}

.kehui-hero__body {
    max-width: 740px;
    margin: 16px 0 0;
    color: rgba(248, 251, 245, 0.72);
    font-size: 1rem;
    line-height: 1.85;
}

.kehui-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.kehui-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(248, 251, 245, 0.34);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 850;
}

.kehui-button--primary {
    border-color: #f8fbf5;
    background: #f8fbf5;
    color: var(--kehui-dark) !important;
}

.kehui-button--ghost {
    color: #f8fbf5;
}

.kehui-diagnostic-card {
    padding: 26px;
    border: 1px solid rgba(248, 251, 245, 0.18);
    border-radius: 8px;
    background: rgba(7, 17, 15, 0.78);
    backdrop-filter: blur(12px);
}

.kehui-diagnostic-card span {
    color: rgba(248, 251, 245, 0.62);
    font-size: 0.9rem;
}

.kehui-diagnostic-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.18rem;
    line-height: 1.45;
}

.kehui-diagnostic-card ul {
    margin: 22px 0 0;
    padding-left: 18px;
    color: rgba(248, 251, 245, 0.76);
    line-height: 1.8;
}

.kehui-metrics {
    width: min(1140px, calc(100% - 40px));
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(248, 251, 245, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(7, 17, 15, 0.64);
}

.kehui-metrics div {
    min-height: 96px;
    padding: 20px;
    border-right: 1px solid rgba(248, 251, 245, 0.14);
}

.kehui-metrics div:last-child {
    border-right: 0;
}

.kehui-metrics span {
    display: block;
    font-size: 2rem;
    line-height: 1;
    font-weight: 920;
}

.kehui-metrics strong {
    display: block;
    margin-top: 10px;
    color: rgba(248, 251, 245, 0.72);
}

.kehui-section {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0;
}

.kehui-section__head {
    max-width: 780px;
    margin-bottom: 34px;
}

.kehui-section__head p {
    margin: 12px 0 0;
    color: var(--kehui-muted);
    line-height: 1.76;
}

.kehui-section__head--split {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.kehui-section h2,
.kehui-final-cta h2,
.kehui-note-band h2 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: 0;
}

.kehui-link-grid,
.kehui-path__grid,
.kehui-services__grid,
.kehui-pricing__grid,
.kehui-review-grid,
.kehui-check-grid {
    display: grid;
    gap: 14px;
}

.kehui-link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kehui-path__grid,
.kehui-services__grid,
.kehui-pricing__grid,
.kehui-review-grid,
.kehui-check-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kehui-check-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kehui-entry-card,
.kehui-path article,
.kehui-services article,
.kehui-pricing__grid div,
.kehui-project-card,
.kehui-proof__list div,
.kehui-wechat-box,
.kehui-review-card,
.kehui-faq-item,
.kehui-check-grid article,
.kehui-price-card,
.kehui-note-band {
    border: 1px solid var(--kehui-line);
    border-radius: 8px;
    background: var(--kehui-card);
}

.kehui-entry-card {
    min-height: 178px;
    display: block;
    padding: 22px;
    text-decoration: none;
}

.kehui-entry-card span,
.kehui-services article > a,
.kehui-inline-link {
    color: var(--kehui-green);
    font-weight: 860;
}

.kehui-entry-card strong {
    display: block;
    margin-top: 22px;
    font-size: 1.12rem;
}

.kehui-entry-card p,
.kehui-path p,
.kehui-services p,
.kehui-proof p,
.kehui-pricing p,
.kehui-final-cta p,
.kehui-review-card p,
.kehui-faq-item p,
.kehui-check-grid p,
.kehui-note-band p {
    margin: 12px 0 0;
    color: var(--kehui-muted);
    line-height: 1.76;
}

.kehui-path article,
.kehui-services article,
.kehui-pricing__grid div,
.kehui-check-grid article {
    min-height: 210px;
    padding: 24px;
}

.kehui-path span {
    display: block;
    margin-bottom: 30px;
    color: var(--kehui-teal);
    font-weight: 920;
}

.kehui-path h3,
.kehui-services h3,
.kehui-project-card h3,
.kehui-review-card h3,
.kehui-faq-item h3,
.kehui-check-grid h3,
.kehui-price-card h3 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.4;
    letter-spacing: 0;
}

.kehui-services article > a {
    display: inline-flex;
    margin-top: 16px;
    text-decoration: none;
}

.kehui-proof {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 28px;
    align-items: center;
}

.kehui-proof__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.kehui-proof__list div {
    padding: 22px;
}

.kehui-proof__list strong,
.kehui-pricing__grid strong {
    display: block;
    font-size: 1.08rem;
}

.kehui-proof__list span {
    display: block;
    margin-top: 8px;
    color: var(--kehui-muted);
    line-height: 1.65;
}

.kehui-projects {
    width: 100%;
    max-width: none;
    padding: 78px max(20px, calc((100vw - 1140px) / 2));
    background: #eaf0e9;
}

.kehui-project-tools {
    display: flex;
    gap: 10px;
}

.kehui-project-tools input,
.kehui-project-tools select {
    height: 44px;
    border: 1px solid #cbd6cd;
    border-radius: 8px;
    background: #fff;
    color: var(--kehui-ink);
    font: inherit;
}

.kehui-project-tools input {
    width: 360px;
    padding: 0 14px;
}

.kehui-project-tools select {
    width: 140px;
    padding: 0 10px;
}

.kehui-result-count,
.kehui-project-note {
    color: var(--kehui-muted);
}

.kehui-result-count {
    margin: -12px 0 24px;
}

.kehui-project-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.kehui-project-card {
    min-height: 188px;
    padding: 20px;
}

.kehui-project-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--kehui-green);
    font-size: 0.84rem;
    font-weight: 900;
}

.kehui-project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.kehui-project-card__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #e8f1ed;
    color: #315344;
    font-size: 0.78rem;
    font-weight: 760;
}

.kehui-empty {
    grid-column: 1 / -1;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #bcc8c0;
    border-radius: 8px;
    color: var(--kehui-muted);
    background: rgba(255, 255, 255, 0.54);
}

.kehui-review-card {
    min-height: 218px;
    padding: 22px;
}

.kehui-review-card span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--kehui-soft);
    color: var(--kehui-green);
    font-size: 0.8rem;
    font-weight: 900;
}

.kehui-review-card h3 {
    margin-top: 18px;
}

.kehui-review-card strong {
    display: block;
    margin-top: 16px;
    color: var(--kehui-gold);
    font-size: 0.9rem;
}

.kehui-faq {
    padding-top: 20px;
}

.kehui-faq-item {
    padding: 22px;
    margin-bottom: 12px;
}

.kehui-pricing__grid div span {
    display: block;
    margin-bottom: 22px;
    color: var(--kehui-gold);
    font-weight: 900;
}

.kehui-price-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kehui-price-card {
    padding: 24px;
    min-height: 280px;
}

.kehui-price-card span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--kehui-soft);
    color: var(--kehui-green);
    font-size: 0.82rem;
    font-weight: 900;
}

.kehui-price-card ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.kehui-price-card li {
    padding: 11px 0;
    border-top: 1px solid var(--kehui-line);
    color: var(--kehui-muted);
    line-height: 1.7;
}

.kehui-price-card li strong {
    color: var(--kehui-ink);
}

.kehui-price-card p {
    margin: 16px 0 0;
    color: var(--kehui-muted);
    line-height: 1.76;
}

.kehui-flow-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: kehui-flow;
    list-style: none;
}

.kehui-flow-list li {
    min-height: 96px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 22px;
    border: 1px solid var(--kehui-line);
    border-radius: 8px;
    background: var(--kehui-card);
    counter-increment: kehui-flow;
}

.kehui-flow-list li::before {
    content: counter(kehui-flow, decimal-leading-zero);
    grid-row: 1 / span 2;
    color: var(--kehui-gold);
    font-weight: 920;
}

.kehui-flow-list strong,
.kehui-flow-list span {
    display: block;
}

.kehui-flow-list strong {
    grid-column: 2;
    font-size: 1.05rem;
}

.kehui-flow-list span {
    grid-column: 2;
    margin-top: 8px;
    color: var(--kehui-muted);
    line-height: 1.72;
}

.kehui-note-band {
    padding: 28px;
}

.kehui-note-band p {
    max-width: 820px;
}

.kehui-note-band p + p {
    margin-top: 14px;
}

.kehui-inline-link {
    display: inline-flex;
    margin-top: 20px;
    text-decoration: none;
}

.kehui-cross-links {
    padding-top: 24px;
}

.kehui-final-cta {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto 72px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: center;
    border-radius: 8px;
    background: var(--kehui-dark);
    color: #f8fbf5;
}

.kehui-contact-wrap .kehui-final-cta {
    margin-top: 72px;
}

.kehui-wechat-box {
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

.kehui-wechat-box span {
    color: rgba(248, 251, 245, 0.62);
}

.kehui-wechat-box strong {
    display: block;
    margin-top: 8px;
    font-size: 1.55rem;
}

.kehui-wechat-box button {
    width: 100%;
    min-height: 42px;
    margin-top: 18px;
    border: 0;
    border-radius: 8px;
    background: #f8fbf5;
    color: var(--kehui-dark);
    font: inherit;
    font-weight: 860;
    cursor: pointer;
}

.kehui-sticky-cta {
    position: fixed;
    right: 24px;
    bottom: 14px;
    z-index: 60;
    transform: none;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--kehui-green);
    color: #fff !important;
    text-decoration: none;
    font-weight: 850;
    box-shadow: 0 12px 34px rgba(16, 42, 31, 0.26);
    transition: opacity 180ms ease, transform 180ms ease;
}

.kehui-sticky-cta--hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 18px));
}

.kehui-inner-page .kehui-sticky-cta {
    display: none;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .kehui-hero__inner,
    .kehui-proof,
    .kehui-final-cta {
        grid-template-columns: 1fr;
    }

    .kehui-link-grid,
    .kehui-path__grid,
    .kehui-services__grid,
    .kehui-pricing__grid,
    .kehui-price-list,
    .kehui-project-list,
    .kehui-review-grid,
    .kehui-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kehui-section__head--split {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .kehui-nav,
    .kehui-hero__inner,
    .kehui-page-hero__inner,
    .kehui-metrics,
    .kehui-section,
    .kehui-final-cta {
        width: min(calc(100% - 28px), 390px);
    }

    .kehui-nav {
        min-height: auto;
        padding: 18px 0 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .kehui-nav__links {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }

    .kehui-nav__links a {
        min-height: 30px;
        padding: 0 9px;
        background: rgba(248, 251, 245, 0.08);
        font-size: 0.82rem;
    }

    .kehui-hero,
    .kehui-page-hero {
        min-height: auto;
    }

    .kehui-hero__inner {
        padding: 54px 0 28px;
        gap: 24px;
    }

    .kehui-page-hero__inner {
        padding: 44px 0 58px;
    }

    .kehui-hero h1,
    .kehui-page-hero h1 {
        font-size: 2.05rem;
        line-height: 1.16;
    }

    .kehui-hero__lead,
    .kehui-page-hero p {
        font-size: 1.04rem;
    }

    .kehui-button {
        width: 100%;
    }

    .kehui-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kehui-metrics div {
        min-height: 82px;
        border-bottom: 1px solid rgba(248, 251, 245, 0.14);
    }

    .kehui-section,
    .kehui-projects {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .kehui-section h2,
    .kehui-final-cta h2,
    .kehui-note-band h2 {
        font-size: 1.72rem;
    }

    .kehui-link-grid,
    .kehui-path__grid,
    .kehui-services__grid,
    .kehui-pricing__grid,
    .kehui-price-list,
    .kehui-project-list,
    .kehui-review-grid,
    .kehui-check-grid {
        grid-template-columns: 1fr;
    }

    .kehui-price-card {
        min-height: auto;
        padding: 22px;
    }

    .kehui-flow-list li {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kehui-flow-list li::before,
    .kehui-flow-list strong,
    .kehui-flow-list span {
        grid-column: 1;
    }

    .kehui-project-tools {
        flex-direction: column;
    }

    .kehui-project-tools input,
    .kehui-project-tools select {
        width: 100%;
    }

    .kehui-final-cta {
        margin-bottom: 78px;
        padding: 24px;
    }

    .kehui-sticky-cta {
        left: 50%;
        right: auto;
        width: min(calc(100% - 28px), 390px);
        padding: 0 12px;
        font-size: 0.9rem;
        transform: translateX(-50%);
    }

    .kehui-sticky-cta--hidden {
        transform: translate(-50%, calc(100% + 18px));
    }
}
