body:has(.cp-feed) {
    background: #f4f5f7 !important;
}

.cp-feed-header, .cp-feed {
    font-family: Inter, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.cp-feed-header {
    background: #161616 !important;
}

.cp-feed-bar {
    min-height: 94px;
    max-width: 1280px;
    margin: auto;
    padding: 14px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cp-feed-brand {
    color: #fff !important;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.cp-feed-header img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 65px;
    object-fit: contain;
}

.cp-feed-header-actions, .cp-feed-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cp-feed-header .cp-feed-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    flex: 0 1 300px;
    min-width: 0;
    margin: 0;
}

.cp-feed-search input {
    min-width: 0;
    max-width: 230px;
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #5f636b;
    border-radius: 5px;
    background: #25262a;
    color: #fff;
}

.cp-feed-search input::placeholder { color: #c2c5ce; }
.cp-feed-search button, .cp-feed-contact .cp-feed-wechat {
    padding: 7px 12px;
    margin: 0;
    border: 1px solid #a6adbc !important;
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}
.cp-feed-header .cp-feed-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 4.5em;
    min-height: 44px;
    color: #fff !important;
    line-height: 1.2;
    white-space: nowrap;
    word-break: normal;
}

.cp-feed {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(270px, 2fr);
    align-items: start;
    gap: 36px;
    max-width: 1210px;
    margin: 0 auto;
    padding: 22px 30px 50px;
    color: #161b24;
}
.cp-feed-sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
    max-height: none;
    overflow: visible;
}

.cp-feed a, .cp-feed-header a { text-decoration: none; }
.cp-feed a:focus-visible, .cp-feed-header :focus-visible, .cp-feed summary:focus-visible, .cp-feed button:focus-visible {
    outline: 2px solid #2b69d3;
    outline-offset: 3px;
}

.cp-feed h1 { margin: 4px 0 22px; font-size: 28px; }
.cp-feed h2 { margin: 0; line-height: 1.35; }
.cp-feed-intro {
    display: grid;
    grid-template-columns: minmax(220px, 31%) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 22px 24px;
    border: 1px solid #dce4d4;
    border-radius: 12px;
    background: #f3f8ee;
}
.cp-feed-intro-media { min-width: 0; }
.cp-feed-intro-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.cp-feed-intro-copy { min-width: 0; }
.cp-feed-intro h2 { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; line-height: 1.3; }
.cp-feed-intro p { margin: 0 0 12px; color: #435064; font-size: 15px; line-height: 1.75; }
.cp-feed-intro p:last-child { margin-bottom: 0; }
.cp-feed-intro-cta { color: #244f9e !important; }

.cp-feed-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #404fac;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.cp-feed-button:hover { filter: brightness(.94); }
.cp-feed-green { flex: none; padding: 6px 14px; border-radius: 4px; background: #237c00; }
.cp-feed-soft { background: #eeebfa; color: #4d3a7e !important; }

.cp-feed-card {
    padding: 15px 18px 20px;
    margin: 0 0 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
}
.cp-feed-card h2 { margin-bottom: 11px; font-size: clamp(20px, 2vw, 24px); }
.cp-feed-card h2 a { color: inherit; }
.cp-feed-card h2 a:hover { color: #244f9e; }
.cp-feed-card-body { display: flex; align-items: flex-start; gap: 18px; }
.cp-feed-thumb { flex: 0 0 27%; max-width: 198px; }
.cp-feed-thumb img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 5px; }
.cp-feed-summary { flex: 1; min-width: 0; }
.cp-feed-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: #59636f; }
.cp-feed-meta strong { color: #252c34; }
.cp-feed-summary p { margin: 7px 0; color: #555e69; font-size: 15px; line-height: 1.75; }
.cp-feed-read { display: inline-block; margin-top: 6px; color: #244f9e; font-size: 14px; font-weight: 600; }
.cp-feed-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cp-feed-pagination .page-numbers { padding: 5px 12px; border: 1px solid #dddfe6; background: #fff; }
.cp-feed-pagination .current { background: #404fac; color: #fff; }
.cp-feed-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }

.cp-feed-archive, .cp-feed-search-results { max-width: 1280px; gap: 24px; }
.cp-feed-archive h1, .cp-feed-search-results h1 { margin: 0 0 26px; font-size: 21px; }
main#content.cp-feed-search-results {
    width: 100% !important;
    max-width: 1210px !important;
    box-sizing: border-box;
}
.cp-feed-search-results .cp-feed-list { min-width: 0; }
.cp-feed-search-results .cp-feed-thumb { flex: 0 0 clamp(104px, 23%, 176px); min-width: 0; }
.cp-feed-search-results .cp-feed-card h2 { overflow-wrap: anywhere; }

.cp-feed .cp-feed-story { border: 0 !important; box-shadow: none !important; }
.cp-feed-story-heading {
    margin-bottom: 33px;
    background: transparent !important;
    border: 0 !important;
}
.cp-feed-story-heading h1.entry-title {
    margin: 0 0 12px;
    color: #121619;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 760;
    line-height: 1.25;
    text-align: left;
}
.cp-feed-story-heading .cp-feed-meta { color: #646b75; }
.cp-feed-story .cp-feed-story-content {
    margin: 0;
    max-width: none;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}
.cp-feed-story-content img { height: auto; max-width: 100%; }
.cp-feed-story-content h2 { margin: 1.65em 0 .7em; font-size: clamp(21px, 2.3vw, 27px); }
.cp-feed-story-content h3 { margin: 1.4em 0 .55em; font-size: 20px; }
.cp-feed-story-content .wp-block-table { overflow-x: auto; }
.cp-feed-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cp-feed-tags a { padding: 4px 10px; border: 1px solid #dfe2e9; font-size: 13px; }
.cp-feed-share { margin-top: 20px; }
.cp-feed-share summary { cursor: pointer; font-weight: 650; }
.cp-feed-share input { display: block; width: 100%; max-width: 480px; padding: 8px; }
.cp-feed-related { margin-top: 30px; padding-top: 18px; border-top: 1px solid #dfe2e9; }
.cp-feed-related h2 { margin-bottom: 14px; font-size: 21px; }
.cp-feed-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.cp-feed-related-grid a { color: inherit; font-size: 14px; }
.cp-feed-related-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 6px; }

.cp-feed-panel {
    margin-bottom: 30px;
    padding: 14px;
    border: 1px solid #e5e7ec;
    border-radius: 14px;
    background: #f7f8fa;
}
.cp-feed-panel h2 { font-size: 18px; font-weight: 750; }
.cp-feed-panel p { margin: 5px 0 10px; color: #5b6676; font-size: 13px; }
.cp-feed-scenes { padding: 0; margin: 0; list-style: none; }
.cp-feed-scenes a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin: 7px 0;
    padding: 8px 10px;
    border: 1px solid #eceef1;
    border-radius: 9px;
    background: #fff;
    color: #1f2631;
    font-size: 13px;
}
.cp-feed-scenes span { color: #626d7d; font-size: 12px; }
.cp-feed-guide-button { display: block; width: 100%; box-sizing: border-box; margin-top: 12px; }
.cp-feed-contact { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e7ec; }
.cp-feed-contact .cp-feed-button:first-child { background: #245fbb; }
.cp-feed-contact .cp-feed-wechat { color: #283244 !important; }
.cp-feed-panel .cp-feed-disclosure { margin: 8px 0 0; }
.cp-feed-panel details { padding: 10px 0; border-bottom: 1px solid #e3e5e9; }
.cp-feed-panel details:first-of-type { margin-top: 6px; }
.cp-feed-panel summary { cursor: pointer; font-size: 14px; font-weight: 650; }
.cp-feed-panel details p { margin: 6px 0 1px; }
.cp-feed-extra { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }

body:has(.cp-feed) .checkspilot-trust-footer {
    background: #161616;
}

@media (max-width: 820px) {
    .cp-feed-intro { grid-template-columns: minmax(180px, 30%) minmax(0, 1fr); gap: 18px; }
    .cp-feed { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-inline: 18px; }
    .cp-feed-sidebar { position: static; max-height: none; overflow: visible; }
    .cp-feed-bar { padding-inline: 18px; }
}
@media (max-width: 560px) {
    .cp-feed-intro { grid-template-columns: 1fr; padding: 18px 16px 22px; }
    .cp-feed-intro-media img { max-height: 220px; }
    .cp-feed-bar { flex-wrap: wrap; }
    .cp-feed-bar { gap: 8px; }
    .cp-feed-header-actions { flex: 1 1 100%; min-width: 0; }
    .cp-feed-header .cp-feed-search { flex: 1 1 0; }
    .cp-feed-header .cp-feed-search input { max-width: none; }
    .cp-feed-card-body { gap: 12px; }
    .cp-feed-card { padding-inline: 13px; }
    .cp-feed-thumb { flex-basis: 32%; }
    .cp-feed-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
    .cp-feed-header-actions { flex-wrap: wrap; }
    .cp-feed-header .cp-feed-search { flex-basis: 100%; }
}
